diff --git a/java-securitycenter/README.md b/java-securitycenter/README.md index 13d09301f8a2..b9c136518bec 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: com.google.cloud libraries-bom - 26.11.0 + 26.12.0 pom import diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java index 0e0a1dac374a..8a6aca96694d 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterClient.java @@ -60,9 +60,13 @@ * // - 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()) { - * OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); - * Source source = Source.newBuilder().build(); - * Source response = securityCenterClient.createSource(parent, source); + * SecurityHealthAnalyticsSettingsName parent = + * SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]"); + * SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = + * SecurityHealthAnalyticsCustomModule.newBuilder().build(); + * SecurityHealthAnalyticsCustomModule response = + * securityCenterClient.createSecurityHealthAnalyticsCustomModule( + * parent, securityHealthAnalyticsCustomModule); * } * } * @@ -373,6 +377,169 @@ public final UnaryCallable bulkMuteFindingsC return stub.bulkMuteFindingsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, + * and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the + * given parent. These modules are enabled by default. + * + *

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()) {
+   *   SecurityHealthAnalyticsSettingsName parent =
+   *       SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]");
+   *   SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule =
+   *       SecurityHealthAnalyticsCustomModule.newBuilder().build();
+   *   SecurityHealthAnalyticsCustomModule response =
+   *       securityCenterClient.createSecurityHealthAnalyticsCustomModule(
+   *           parent, securityHealthAnalyticsCustomModule);
+   * }
+   * }
+ * + * @param parent Required. Resource name of the new custom module's parent. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings", + * "folders/{folder}/securityHealthAnalyticsSettings", or + * "projects/{project}/securityHealthAnalyticsSettings" + * @param securityHealthAnalyticsCustomModule Required. SecurityHealthAnalytics custom module to + * create. The provided name is ignored and reset with provided parent information and + * server-generated ID. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SecurityHealthAnalyticsCustomModule createSecurityHealthAnalyticsCustomModule( + SecurityHealthAnalyticsSettingsName parent, + SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule) { + CreateSecurityHealthAnalyticsCustomModuleRequest request = + CreateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSecurityHealthAnalyticsCustomModule(securityHealthAnalyticsCustomModule) + .build(); + return createSecurityHealthAnalyticsCustomModule(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, + * and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the + * given parent. These modules are enabled by default. + * + *

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 =
+   *       SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]").toString();
+   *   SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule =
+   *       SecurityHealthAnalyticsCustomModule.newBuilder().build();
+   *   SecurityHealthAnalyticsCustomModule response =
+   *       securityCenterClient.createSecurityHealthAnalyticsCustomModule(
+   *           parent, securityHealthAnalyticsCustomModule);
+   * }
+   * }
+ * + * @param parent Required. Resource name of the new custom module's parent. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings", + * "folders/{folder}/securityHealthAnalyticsSettings", or + * "projects/{project}/securityHealthAnalyticsSettings" + * @param securityHealthAnalyticsCustomModule Required. SecurityHealthAnalytics custom module to + * create. The provided name is ignored and reset with provided parent information and + * server-generated ID. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SecurityHealthAnalyticsCustomModule createSecurityHealthAnalyticsCustomModule( + String parent, SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule) { + CreateSecurityHealthAnalyticsCustomModuleRequest request = + CreateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + .setParent(parent) + .setSecurityHealthAnalyticsCustomModule(securityHealthAnalyticsCustomModule) + .build(); + return createSecurityHealthAnalyticsCustomModule(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, + * and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the + * given parent. These modules are enabled by default. + * + *

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()) {
+   *   CreateSecurityHealthAnalyticsCustomModuleRequest request =
+   *       CreateSecurityHealthAnalyticsCustomModuleRequest.newBuilder()
+   *           .setParent(
+   *               SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]")
+   *                   .toString())
+   *           .setSecurityHealthAnalyticsCustomModule(
+   *               SecurityHealthAnalyticsCustomModule.newBuilder().build())
+   *           .build();
+   *   SecurityHealthAnalyticsCustomModule response =
+   *       securityCenterClient.createSecurityHealthAnalyticsCustomModule(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 SecurityHealthAnalyticsCustomModule createSecurityHealthAnalyticsCustomModule( + CreateSecurityHealthAnalyticsCustomModuleRequest request) { + return createSecurityHealthAnalyticsCustomModuleCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, + * and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the + * given parent. These modules are enabled by default. + * + *

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()) {
+   *   CreateSecurityHealthAnalyticsCustomModuleRequest request =
+   *       CreateSecurityHealthAnalyticsCustomModuleRequest.newBuilder()
+   *           .setParent(
+   *               SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]")
+   *                   .toString())
+   *           .setSecurityHealthAnalyticsCustomModule(
+   *               SecurityHealthAnalyticsCustomModule.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       securityCenterClient
+   *           .createSecurityHealthAnalyticsCustomModuleCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   SecurityHealthAnalyticsCustomModule response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + CreateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + createSecurityHealthAnalyticsCustomModuleCallable() { + return stub.createSecurityHealthAnalyticsCustomModuleCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a source. @@ -1597,6 +1764,144 @@ public final void deleteNotificationConfig(DeleteNotificationConfigRequest reque return stub.deleteNotificationConfigCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM + * hierarchy. This method is only supported for resident custom modules. + * + *

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()) {
+   *   SecurityHealthAnalyticsCustomModuleName name =
+   *       SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+   *           "[ORGANIZATION]", "[CUSTOM_MODULE]");
+   *   securityCenterClient.deleteSecurityHealthAnalyticsCustomModule(name);
+   * }
+   * }
+ * + * @param name Required. Name of the custom module to delete. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", + * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", or + * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSecurityHealthAnalyticsCustomModule( + SecurityHealthAnalyticsCustomModuleName name) { + DeleteSecurityHealthAnalyticsCustomModuleRequest request = + DeleteSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteSecurityHealthAnalyticsCustomModule(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM + * hierarchy. This method is only supported for resident custom modules. + * + *

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 name =
+   *       SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+   *               "[ORGANIZATION]", "[CUSTOM_MODULE]")
+   *           .toString();
+   *   securityCenterClient.deleteSecurityHealthAnalyticsCustomModule(name);
+   * }
+   * }
+ * + * @param name Required. Name of the custom module to delete. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", + * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", or + * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSecurityHealthAnalyticsCustomModule(String name) { + DeleteSecurityHealthAnalyticsCustomModuleRequest request = + DeleteSecurityHealthAnalyticsCustomModuleRequest.newBuilder().setName(name).build(); + deleteSecurityHealthAnalyticsCustomModule(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM + * hierarchy. This method is only supported for resident custom modules. + * + *

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()) {
+   *   DeleteSecurityHealthAnalyticsCustomModuleRequest request =
+   *       DeleteSecurityHealthAnalyticsCustomModuleRequest.newBuilder()
+   *           .setName(
+   *               SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+   *                       "[ORGANIZATION]", "[CUSTOM_MODULE]")
+   *                   .toString())
+   *           .build();
+   *   securityCenterClient.deleteSecurityHealthAnalyticsCustomModule(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 void deleteSecurityHealthAnalyticsCustomModule( + DeleteSecurityHealthAnalyticsCustomModuleRequest request) { + deleteSecurityHealthAnalyticsCustomModuleCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM + * hierarchy. This method is only supported for resident custom modules. + * + *

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()) {
+   *   DeleteSecurityHealthAnalyticsCustomModuleRequest request =
+   *       DeleteSecurityHealthAnalyticsCustomModuleRequest.newBuilder()
+   *           .setName(
+   *               SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+   *                       "[ORGANIZATION]", "[CUSTOM_MODULE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       securityCenterClient
+   *           .deleteSecurityHealthAnalyticsCustomModuleCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteSecurityHealthAnalyticsCustomModuleCallable() { + return stub.deleteSecurityHealthAnalyticsCustomModuleCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets a BigQuery export. @@ -2203,7 +2508,7 @@ public final OrganizationSettings getOrganizationSettings( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a source. + * Retrieves an EffectiveSecurityHealthAnalyticsCustomModule. * *

Sample code: * @@ -2214,24 +2519,34 @@ public final OrganizationSettings getOrganizationSettings( * // - 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()) { - * SourceName name = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]"); - * Source response = securityCenterClient.getSource(name); + * EffectiveSecurityHealthAnalyticsCustomModuleName name = + * EffectiveSecurityHealthAnalyticsCustomModuleName.ofOrganizationEffectiveCustomModuleName( + * "[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]"); + * EffectiveSecurityHealthAnalyticsCustomModule response = + * securityCenterClient.getEffectiveSecurityHealthAnalyticsCustomModule(name); * } * } * - * @param name Required. Relative resource name of the source. Its format is - * "organizations/[organization_id]/source/[source_id]". + * @param name Required. Name of the effective custom module to get. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", + * "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", + * or + * "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Source getSource(SourceName name) { - GetSourceRequest request = - GetSourceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getSource(request); + public final EffectiveSecurityHealthAnalyticsCustomModule + getEffectiveSecurityHealthAnalyticsCustomModule( + EffectiveSecurityHealthAnalyticsCustomModuleName name) { + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request = + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getEffectiveSecurityHealthAnalyticsCustomModule(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a source. + * Retrieves an EffectiveSecurityHealthAnalyticsCustomModule. * *

Sample code: * @@ -2242,23 +2557,32 @@ public final Source getSource(SourceName name) { * // - 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 name = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString(); - * Source response = securityCenterClient.getSource(name); + * String name = + * EffectiveSecurityHealthAnalyticsCustomModuleName.ofOrganizationEffectiveCustomModuleName( + * "[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]") + * .toString(); + * EffectiveSecurityHealthAnalyticsCustomModule response = + * securityCenterClient.getEffectiveSecurityHealthAnalyticsCustomModule(name); * } * } * - * @param name Required. Relative resource name of the source. Its format is - * "organizations/[organization_id]/source/[source_id]". + * @param name Required. Name of the effective custom module to get. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", + * "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", + * or + * "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Source getSource(String name) { - GetSourceRequest request = GetSourceRequest.newBuilder().setName(name).build(); - return getSource(request); + public final EffectiveSecurityHealthAnalyticsCustomModule + getEffectiveSecurityHealthAnalyticsCustomModule(String name) { + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request = + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.newBuilder().setName(name).build(); + return getEffectiveSecurityHealthAnalyticsCustomModule(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a source. + * Retrieves an EffectiveSecurityHealthAnalyticsCustomModule. * *

Sample code: * @@ -2269,24 +2593,31 @@ public final Source getSource(String name) { * // - 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()) { - * GetSourceRequest request = - * GetSourceRequest.newBuilder() - * .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString()) + * GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request = + * GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + * .setName( + * EffectiveSecurityHealthAnalyticsCustomModuleName + * .ofOrganizationEffectiveCustomModuleName( + * "[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]") + * .toString()) * .build(); - * Source response = securityCenterClient.getSource(request); + * EffectiveSecurityHealthAnalyticsCustomModule response = + * securityCenterClient.getEffectiveSecurityHealthAnalyticsCustomModule(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 Source getSource(GetSourceRequest request) { - return getSourceCallable().call(request); + public final EffectiveSecurityHealthAnalyticsCustomModule + getEffectiveSecurityHealthAnalyticsCustomModule( + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request) { + return getEffectiveSecurityHealthAnalyticsCustomModuleCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a source. + * Retrieves an EffectiveSecurityHealthAnalyticsCustomModule. * *

Sample code: * @@ -2297,23 +2628,33 @@ public final Source getSource(GetSourceRequest request) { * // - 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()) { - * GetSourceRequest request = - * GetSourceRequest.newBuilder() - * .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString()) + * GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request = + * GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + * .setName( + * EffectiveSecurityHealthAnalyticsCustomModuleName + * .ofOrganizationEffectiveCustomModuleName( + * "[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]") + * .toString()) * .build(); - * ApiFuture future = securityCenterClient.getSourceCallable().futureCall(request); + * ApiFuture future = + * securityCenterClient + * .getEffectiveSecurityHealthAnalyticsCustomModuleCallable() + * .futureCall(request); * // Do something. - * Source response = future.get(); + * EffectiveSecurityHealthAnalyticsCustomModule response = future.get(); * } * } */ - public final UnaryCallable getSourceCallable() { - return stub.getSourceCallable(); + public final UnaryCallable< + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, + EffectiveSecurityHealthAnalyticsCustomModule> + getEffectiveSecurityHealthAnalyticsCustomModuleCallable() { + return stub.getEffectiveSecurityHealthAnalyticsCustomModuleCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Filters an organization's assets and groups them by their specified properties. + * Retrieves a SecurityHealthAnalyticsCustomModule. * *

Sample code: * @@ -2324,32 +2665,32 @@ public final UnaryCallable getSourceCallable() { * // - 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()) { - * GroupAssetsRequest request = - * GroupAssetsRequest.newBuilder() - * .setParent(OrganizationName.of("[ORGANIZATION]").toString()) - * .setFilter("filter-1274492040") - * .setGroupBy("groupBy293428022") - * .setCompareDuration(Duration.newBuilder().build()) - * .setReadTime(Timestamp.newBuilder().build()) - * .setPageToken("pageToken873572522") - * .setPageSize(883849137) - * .build(); - * for (GroupResult element : securityCenterClient.groupAssets(request).iterateAll()) { - * // doThingsWith(element); - * } + * SecurityHealthAnalyticsCustomModuleName name = + * SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName( + * "[ORGANIZATION]", "[CUSTOM_MODULE]"); + * SecurityHealthAnalyticsCustomModule response = + * securityCenterClient.getSecurityHealthAnalyticsCustomModule(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. Name of the custom module to get. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", + * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", or + * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GroupAssetsPagedResponse groupAssets(GroupAssetsRequest request) { - return groupAssetsPagedCallable().call(request); + public final SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModule( + SecurityHealthAnalyticsCustomModuleName name) { + GetSecurityHealthAnalyticsCustomModuleRequest request = + GetSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getSecurityHealthAnalyticsCustomModule(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Filters an organization's assets and groups them by their specified properties. + * Retrieves a SecurityHealthAnalyticsCustomModule. * *

Sample code: * @@ -2360,27 +2701,274 @@ public final GroupAssetsPagedResponse groupAssets(GroupAssetsRequest request) { * // - 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()) { - * GroupAssetsRequest request = - * GroupAssetsRequest.newBuilder() - * .setParent(OrganizationName.of("[ORGANIZATION]").toString()) - * .setFilter("filter-1274492040") - * .setGroupBy("groupBy293428022") - * .setCompareDuration(Duration.newBuilder().build()) - * .setReadTime(Timestamp.newBuilder().build()) - * .setPageToken("pageToken873572522") - * .setPageSize(883849137) - * .build(); - * ApiFuture future = - * securityCenterClient.groupAssetsPagedCallable().futureCall(request); - * // Do something. - * for (GroupResult element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * String name = + * SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName( + * "[ORGANIZATION]", "[CUSTOM_MODULE]") + * .toString(); + * SecurityHealthAnalyticsCustomModule response = + * securityCenterClient.getSecurityHealthAnalyticsCustomModule(name); * } * } + * + * @param name Required. Name of the custom module to get. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", + * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", or + * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - groupAssetsPagedCallable() { + public final SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModule( + String name) { + GetSecurityHealthAnalyticsCustomModuleRequest request = + GetSecurityHealthAnalyticsCustomModuleRequest.newBuilder().setName(name).build(); + return getSecurityHealthAnalyticsCustomModule(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a SecurityHealthAnalyticsCustomModule. + * + *

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()) {
+   *   GetSecurityHealthAnalyticsCustomModuleRequest request =
+   *       GetSecurityHealthAnalyticsCustomModuleRequest.newBuilder()
+   *           .setName(
+   *               SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+   *                       "[ORGANIZATION]", "[CUSTOM_MODULE]")
+   *                   .toString())
+   *           .build();
+   *   SecurityHealthAnalyticsCustomModule response =
+   *       securityCenterClient.getSecurityHealthAnalyticsCustomModule(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 SecurityHealthAnalyticsCustomModule getSecurityHealthAnalyticsCustomModule( + GetSecurityHealthAnalyticsCustomModuleRequest request) { + return getSecurityHealthAnalyticsCustomModuleCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a SecurityHealthAnalyticsCustomModule. + * + *

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()) {
+   *   GetSecurityHealthAnalyticsCustomModuleRequest request =
+   *       GetSecurityHealthAnalyticsCustomModuleRequest.newBuilder()
+   *           .setName(
+   *               SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+   *                       "[ORGANIZATION]", "[CUSTOM_MODULE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       securityCenterClient.getSecurityHealthAnalyticsCustomModuleCallable().futureCall(request);
+   *   // Do something.
+   *   SecurityHealthAnalyticsCustomModule response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + GetSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + getSecurityHealthAnalyticsCustomModuleCallable() { + return stub.getSecurityHealthAnalyticsCustomModuleCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a source. + * + *

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()) {
+   *   SourceName name = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+   *   Source response = securityCenterClient.getSource(name);
+   * }
+   * }
+ * + * @param name Required. Relative resource name of the source. Its format is + * "organizations/[organization_id]/source/[source_id]". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Source getSource(SourceName name) { + GetSourceRequest request = + GetSourceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getSource(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a source. + * + *

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 name = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString();
+   *   Source response = securityCenterClient.getSource(name);
+   * }
+   * }
+ * + * @param name Required. Relative resource name of the source. Its format is + * "organizations/[organization_id]/source/[source_id]". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Source getSource(String name) { + GetSourceRequest request = GetSourceRequest.newBuilder().setName(name).build(); + return getSource(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a source. + * + *

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()) {
+   *   GetSourceRequest request =
+   *       GetSourceRequest.newBuilder()
+   *           .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+   *           .build();
+   *   Source response = securityCenterClient.getSource(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 Source getSource(GetSourceRequest request) { + return getSourceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a source. + * + *

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()) {
+   *   GetSourceRequest request =
+   *       GetSourceRequest.newBuilder()
+   *           .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+   *           .build();
+   *   ApiFuture future = securityCenterClient.getSourceCallable().futureCall(request);
+   *   // Do something.
+   *   Source response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getSourceCallable() { + return stub.getSourceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Filters an organization's assets and groups them by their specified properties. + * + *

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()) {
+   *   GroupAssetsRequest request =
+   *       GroupAssetsRequest.newBuilder()
+   *           .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setGroupBy("groupBy293428022")
+   *           .setCompareDuration(Duration.newBuilder().build())
+   *           .setReadTime(Timestamp.newBuilder().build())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   for (GroupResult element : securityCenterClient.groupAssets(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @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 GroupAssetsPagedResponse groupAssets(GroupAssetsRequest request) { + return groupAssetsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Filters an organization's assets and groups them by their specified properties. + * + *

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()) {
+   *   GroupAssetsRequest request =
+   *       GroupAssetsRequest.newBuilder()
+   *           .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setGroupBy("groupBy293428022")
+   *           .setCompareDuration(Duration.newBuilder().build())
+   *           .setReadTime(Timestamp.newBuilder().build())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   ApiFuture future =
+   *       securityCenterClient.groupAssetsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (GroupResult element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + groupAssetsPagedCallable() { return stub.groupAssetsPagedCallable(); } @@ -2789,10 +3377,8 @@ public final UnaryCallable listAssetsCall // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists an organization or source's findings. - * - *

To list across all sources provide a `-` as the source id. Example: - * /v1/organizations/{organization_id}/sources/-/findings + * Returns a list of all resident SecurityHealthAnalyticsCustomModules under the given CRM parent + * and all of the parent’s CRM descendants. * *

Sample code: * @@ -2803,38 +3389,37 @@ public final UnaryCallable listAssetsCall * // - 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()) { - * ListFindingsRequest request = - * ListFindingsRequest.newBuilder() - * .setParent( - * SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString()) - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") - * .setReadTime(Timestamp.newBuilder().build()) - * .setCompareDuration(Duration.newBuilder().build()) - * .setFieldMask(FieldMask.newBuilder().build()) - * .setPageToken("pageToken873572522") - * .setPageSize(883849137) - * .build(); - * for (ListFindingsResponse.ListFindingsResult element : - * securityCenterClient.listFindings(request).iterateAll()) { + * SecurityHealthAnalyticsSettingsName parent = + * SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]"); + * for (SecurityHealthAnalyticsCustomModule element : + * securityCenterClient + * .listDescendantSecurityHealthAnalyticsCustomModules(parent) + * .iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. Name of parent to list descendant custom modules. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings", + * "folders/{folder}/securityHealthAnalyticsSettings", or + * "projects/{project}/securityHealthAnalyticsSettings" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFindingsPagedResponse listFindings(ListFindingsRequest request) { - return listFindingsPagedCallable().call(request); + public final ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse + listDescendantSecurityHealthAnalyticsCustomModules( + SecurityHealthAnalyticsSettingsName parent) { + ListDescendantSecurityHealthAnalyticsCustomModulesRequest request = + ListDescendantSecurityHealthAnalyticsCustomModulesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDescendantSecurityHealthAnalyticsCustomModules(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists an organization or source's findings. - * - *

To list across all sources provide a `-` as the source id. Example: - * /v1/organizations/{organization_id}/sources/-/findings + * Returns a list of all resident SecurityHealthAnalyticsCustomModules under the given CRM parent + * and all of the parent’s CRM descendants. * *

Sample code: * @@ -2845,9 +3430,221 @@ public final ListFindingsPagedResponse listFindings(ListFindingsRequest request) * // - 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()) { - * ListFindingsRequest request = - * ListFindingsRequest.newBuilder() - * .setParent( + * String parent = + * SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]").toString(); + * for (SecurityHealthAnalyticsCustomModule element : + * securityCenterClient + * .listDescendantSecurityHealthAnalyticsCustomModules(parent) + * .iterateAll()) { + * // doThingsWith(element); + * } + * } + * } + * + * @param parent Required. Name of parent to list descendant custom modules. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings", + * "folders/{folder}/securityHealthAnalyticsSettings", or + * "projects/{project}/securityHealthAnalyticsSettings" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse + listDescendantSecurityHealthAnalyticsCustomModules(String parent) { + ListDescendantSecurityHealthAnalyticsCustomModulesRequest request = + ListDescendantSecurityHealthAnalyticsCustomModulesRequest.newBuilder() + .setParent(parent) + .build(); + return listDescendantSecurityHealthAnalyticsCustomModules(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of all resident SecurityHealthAnalyticsCustomModules under the given CRM parent + * and all of the parent’s CRM descendants. + * + *

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()) {
+   *   ListDescendantSecurityHealthAnalyticsCustomModulesRequest request =
+   *       ListDescendantSecurityHealthAnalyticsCustomModulesRequest.newBuilder()
+   *           .setParent(
+   *               SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (SecurityHealthAnalyticsCustomModule element :
+   *       securityCenterClient
+   *           .listDescendantSecurityHealthAnalyticsCustomModules(request)
+   *           .iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @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 ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse + listDescendantSecurityHealthAnalyticsCustomModules( + ListDescendantSecurityHealthAnalyticsCustomModulesRequest request) { + return listDescendantSecurityHealthAnalyticsCustomModulesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of all resident SecurityHealthAnalyticsCustomModules under the given CRM parent + * and all of the parent’s CRM descendants. + * + *

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()) {
+   *   ListDescendantSecurityHealthAnalyticsCustomModulesRequest request =
+   *       ListDescendantSecurityHealthAnalyticsCustomModulesRequest.newBuilder()
+   *           .setParent(
+   *               SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       securityCenterClient
+   *           .listDescendantSecurityHealthAnalyticsCustomModulesPagedCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   for (SecurityHealthAnalyticsCustomModule element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse> + listDescendantSecurityHealthAnalyticsCustomModulesPagedCallable() { + return stub.listDescendantSecurityHealthAnalyticsCustomModulesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of all resident SecurityHealthAnalyticsCustomModules under the given CRM parent + * and all of the parent’s CRM descendants. + * + *

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()) {
+   *   ListDescendantSecurityHealthAnalyticsCustomModulesRequest request =
+   *       ListDescendantSecurityHealthAnalyticsCustomModulesRequest.newBuilder()
+   *           .setParent(
+   *               SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListDescendantSecurityHealthAnalyticsCustomModulesResponse response =
+   *         securityCenterClient
+   *             .listDescendantSecurityHealthAnalyticsCustomModulesCallable()
+   *             .call(request);
+   *     for (SecurityHealthAnalyticsCustomModule element :
+   *         response.getSecurityHealthAnalyticsCustomModulesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + ListDescendantSecurityHealthAnalyticsCustomModulesResponse> + listDescendantSecurityHealthAnalyticsCustomModulesCallable() { + return stub.listDescendantSecurityHealthAnalyticsCustomModulesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists an organization or source's findings. + * + *

To list across all sources provide a `-` as the source id. Example: + * /v1/organizations/{organization_id}/sources/-/findings + * + *

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()) {
+   *   ListFindingsRequest request =
+   *       ListFindingsRequest.newBuilder()
+   *           .setParent(
+   *               SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setReadTime(Timestamp.newBuilder().build())
+   *           .setCompareDuration(Duration.newBuilder().build())
+   *           .setFieldMask(FieldMask.newBuilder().build())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   for (ListFindingsResponse.ListFindingsResult element :
+   *       securityCenterClient.listFindings(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @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 ListFindingsPagedResponse listFindings(ListFindingsRequest request) { + return listFindingsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists an organization or source's findings. + * + *

To list across all sources provide a `-` as the source id. Example: + * /v1/organizations/{organization_id}/sources/-/findings + * + *

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()) {
+   *   ListFindingsRequest request =
+   *       ListFindingsRequest.newBuilder()
+   *           .setParent(
    *               SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
    *           .setFilter("filter-1274492040")
    *           .setOrderBy("orderBy-1207110587")
@@ -3220,7 +4017,396 @@ public final ListNotificationConfigsPagedResponse listNotificationConfigs(
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD.
   /**
-   * Lists notification configs.
+   * Lists notification configs.
+   *
+   * 

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()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (NotificationConfig element :
+   *       securityCenterClient.listNotificationConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the parent in which to list the notification + * configurations. Its format is "organizations/[organization_id]", "folders/[folder_id]", or + * "projects/[project_id]". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListNotificationConfigsPagedResponse listNotificationConfigs(ProjectName parent) { + ListNotificationConfigsRequest request = + ListNotificationConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listNotificationConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists notification configs. + * + *

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 = OrganizationName.of("[ORGANIZATION]").toString();
+   *   for (NotificationConfig element :
+   *       securityCenterClient.listNotificationConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the parent in which to list the notification + * configurations. Its format is "organizations/[organization_id]", "folders/[folder_id]", or + * "projects/[project_id]". + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListNotificationConfigsPagedResponse listNotificationConfigs(String parent) { + ListNotificationConfigsRequest request = + ListNotificationConfigsRequest.newBuilder().setParent(parent).build(); + return listNotificationConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists notification configs. + * + *

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()) {
+   *   ListNotificationConfigsRequest request =
+   *       ListNotificationConfigsRequest.newBuilder()
+   *           .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   for (NotificationConfig element :
+   *       securityCenterClient.listNotificationConfigs(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @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 ListNotificationConfigsPagedResponse listNotificationConfigs( + ListNotificationConfigsRequest request) { + return listNotificationConfigsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists notification configs. + * + *

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()) {
+   *   ListNotificationConfigsRequest request =
+   *       ListNotificationConfigsRequest.newBuilder()
+   *           .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   ApiFuture future =
+   *       securityCenterClient.listNotificationConfigsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (NotificationConfig element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listNotificationConfigsPagedCallable() { + return stub.listNotificationConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists notification configs. + * + *

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()) {
+   *   ListNotificationConfigsRequest request =
+   *       ListNotificationConfigsRequest.newBuilder()
+   *           .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+   *           .setPageToken("pageToken873572522")
+   *           .setPageSize(883849137)
+   *           .build();
+   *   while (true) {
+   *     ListNotificationConfigsResponse response =
+   *         securityCenterClient.listNotificationConfigsCallable().call(request);
+   *     for (NotificationConfig element : response.getNotificationConfigsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listNotificationConfigsCallable() { + return stub.listNotificationConfigsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the given parent. This + * includes resident modules defined at the scope of the parent, and inherited modules, inherited + * from CRM ancestors. + * + *

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()) {
+   *   SecurityHealthAnalyticsSettingsName parent =
+   *       SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]");
+   *   for (EffectiveSecurityHealthAnalyticsCustomModule element :
+   *       securityCenterClient
+   *           .listEffectiveSecurityHealthAnalyticsCustomModules(parent)
+   *           .iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Name of parent to list effective custom modules. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings", + * "folders/{folder}/securityHealthAnalyticsSettings", or + * "projects/{project}/securityHealthAnalyticsSettings" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse + listEffectiveSecurityHealthAnalyticsCustomModules( + SecurityHealthAnalyticsSettingsName parent) { + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request = + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listEffectiveSecurityHealthAnalyticsCustomModules(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the given parent. This + * includes resident modules defined at the scope of the parent, and inherited modules, inherited + * from CRM ancestors. + * + *

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 =
+   *       SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]").toString();
+   *   for (EffectiveSecurityHealthAnalyticsCustomModule element :
+   *       securityCenterClient
+   *           .listEffectiveSecurityHealthAnalyticsCustomModules(parent)
+   *           .iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Name of parent to list effective custom modules. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings", + * "folders/{folder}/securityHealthAnalyticsSettings", or + * "projects/{project}/securityHealthAnalyticsSettings" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse + listEffectiveSecurityHealthAnalyticsCustomModules(String parent) { + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request = + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.newBuilder() + .setParent(parent) + .build(); + return listEffectiveSecurityHealthAnalyticsCustomModules(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the given parent. This + * includes resident modules defined at the scope of the parent, and inherited modules, inherited + * from CRM ancestors. + * + *

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()) {
+   *   ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request =
+   *       ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.newBuilder()
+   *           .setParent(
+   *               SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (EffectiveSecurityHealthAnalyticsCustomModule element :
+   *       securityCenterClient
+   *           .listEffectiveSecurityHealthAnalyticsCustomModules(request)
+   *           .iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @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 ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse + listEffectiveSecurityHealthAnalyticsCustomModules( + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request) { + return listEffectiveSecurityHealthAnalyticsCustomModulesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the given parent. This + * includes resident modules defined at the scope of the parent, and inherited modules, inherited + * from CRM ancestors. + * + *

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()) {
+   *   ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request =
+   *       ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.newBuilder()
+   *           .setParent(
+   *               SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       securityCenterClient
+   *           .listEffectiveSecurityHealthAnalyticsCustomModulesPagedCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   for (EffectiveSecurityHealthAnalyticsCustomModule element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse> + listEffectiveSecurityHealthAnalyticsCustomModulesPagedCallable() { + return stub.listEffectiveSecurityHealthAnalyticsCustomModulesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the given parent. This + * includes resident modules defined at the scope of the parent, and inherited modules, inherited + * from CRM ancestors. + * + *

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()) {
+   *   ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request =
+   *       ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.newBuilder()
+   *           .setParent(
+   *               SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListEffectiveSecurityHealthAnalyticsCustomModulesResponse response =
+   *         securityCenterClient
+   *             .listEffectiveSecurityHealthAnalyticsCustomModulesCallable()
+   *             .call(request);
+   *     for (EffectiveSecurityHealthAnalyticsCustomModule element :
+   *         response.getEffectiveSecurityHealthAnalyticsCustomModulesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> + listEffectiveSecurityHealthAnalyticsCustomModulesCallable() { + return stub.listEffectiveSecurityHealthAnalyticsCustomModulesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes + * resident modules defined at the scope of the parent, and inherited modules, inherited from CRM + * ancestors. * *

Sample code: * @@ -3231,30 +4417,35 @@ public final ListNotificationConfigsPagedResponse listNotificationConfigs( * // - 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()) { - * ProjectName parent = ProjectName.of("[PROJECT]"); - * for (NotificationConfig element : - * securityCenterClient.listNotificationConfigs(parent).iterateAll()) { + * SecurityHealthAnalyticsSettingsName parent = + * SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]"); + * for (SecurityHealthAnalyticsCustomModule element : + * securityCenterClient.listSecurityHealthAnalyticsCustomModules(parent).iterateAll()) { * // doThingsWith(element); * } * } * }

* - * @param parent Required. The name of the parent in which to list the notification - * configurations. Its format is "organizations/[organization_id]", "folders/[folder_id]", or - * "projects/[project_id]". + * @param parent Required. Name of parent to list custom modules. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings", + * "folders/{folder}/securityHealthAnalyticsSettings", or + * "projects/{project}/securityHealthAnalyticsSettings" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNotificationConfigsPagedResponse listNotificationConfigs(ProjectName parent) { - ListNotificationConfigsRequest request = - ListNotificationConfigsRequest.newBuilder() + public final ListSecurityHealthAnalyticsCustomModulesPagedResponse + listSecurityHealthAnalyticsCustomModules(SecurityHealthAnalyticsSettingsName parent) { + ListSecurityHealthAnalyticsCustomModulesRequest request = + ListSecurityHealthAnalyticsCustomModulesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listNotificationConfigs(request); + return listSecurityHealthAnalyticsCustomModules(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists notification configs. + * Returns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes + * resident modules defined at the scope of the parent, and inherited modules, inherited from CRM + * ancestors. * *

Sample code: * @@ -3265,28 +4456,33 @@ public final ListNotificationConfigsPagedResponse listNotificationConfigs(Projec * // - 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 = OrganizationName.of("[ORGANIZATION]").toString(); - * for (NotificationConfig element : - * securityCenterClient.listNotificationConfigs(parent).iterateAll()) { + * String parent = + * SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]").toString(); + * for (SecurityHealthAnalyticsCustomModule element : + * securityCenterClient.listSecurityHealthAnalyticsCustomModules(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The name of the parent in which to list the notification - * configurations. Its format is "organizations/[organization_id]", "folders/[folder_id]", or - * "projects/[project_id]". + * @param parent Required. Name of parent to list custom modules. Its format is + * "organizations/{organization}/securityHealthAnalyticsSettings", + * "folders/{folder}/securityHealthAnalyticsSettings", or + * "projects/{project}/securityHealthAnalyticsSettings" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListNotificationConfigsPagedResponse listNotificationConfigs(String parent) { - ListNotificationConfigsRequest request = - ListNotificationConfigsRequest.newBuilder().setParent(parent).build(); - return listNotificationConfigs(request); + public final ListSecurityHealthAnalyticsCustomModulesPagedResponse + listSecurityHealthAnalyticsCustomModules(String parent) { + ListSecurityHealthAnalyticsCustomModulesRequest request = + ListSecurityHealthAnalyticsCustomModulesRequest.newBuilder().setParent(parent).build(); + return listSecurityHealthAnalyticsCustomModules(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists notification configs. + * Returns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes + * resident modules defined at the scope of the parent, and inherited modules, inherited from CRM + * ancestors. * *

Sample code: * @@ -3297,14 +4493,16 @@ public final ListNotificationConfigsPagedResponse listNotificationConfigs(String * // - 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()) { - * ListNotificationConfigsRequest request = - * ListNotificationConfigsRequest.newBuilder() - * .setParent(OrganizationName.of("[ORGANIZATION]").toString()) - * .setPageToken("pageToken873572522") + * ListSecurityHealthAnalyticsCustomModulesRequest request = + * ListSecurityHealthAnalyticsCustomModulesRequest.newBuilder() + * .setParent( + * SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]") + * .toString()) * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * for (NotificationConfig element : - * securityCenterClient.listNotificationConfigs(request).iterateAll()) { + * for (SecurityHealthAnalyticsCustomModule element : + * securityCenterClient.listSecurityHealthAnalyticsCustomModules(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -3313,14 +4511,17 @@ public final ListNotificationConfigsPagedResponse listNotificationConfigs(String * @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 ListNotificationConfigsPagedResponse listNotificationConfigs( - ListNotificationConfigsRequest request) { - return listNotificationConfigsPagedCallable().call(request); + public final ListSecurityHealthAnalyticsCustomModulesPagedResponse + listSecurityHealthAnalyticsCustomModules( + ListSecurityHealthAnalyticsCustomModulesRequest request) { + return listSecurityHealthAnalyticsCustomModulesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists notification configs. + * Returns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes + * resident modules defined at the scope of the parent, and inherited modules, inherited from CRM + * ancestors. * *

Sample code: * @@ -3331,29 +4532,37 @@ public final ListNotificationConfigsPagedResponse listNotificationConfigs( * // - 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()) { - * ListNotificationConfigsRequest request = - * ListNotificationConfigsRequest.newBuilder() - * .setParent(OrganizationName.of("[ORGANIZATION]").toString()) - * .setPageToken("pageToken873572522") + * ListSecurityHealthAnalyticsCustomModulesRequest request = + * ListSecurityHealthAnalyticsCustomModulesRequest.newBuilder() + * .setParent( + * SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]") + * .toString()) * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * securityCenterClient.listNotificationConfigsPagedCallable().futureCall(request); + * ApiFuture future = + * securityCenterClient + * .listSecurityHealthAnalyticsCustomModulesPagedCallable() + * .futureCall(request); * // Do something. - * for (NotificationConfig element : future.get().iterateAll()) { + * for (SecurityHealthAnalyticsCustomModule element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listNotificationConfigsPagedCallable() { - return stub.listNotificationConfigsPagedCallable(); + public final UnaryCallable< + ListSecurityHealthAnalyticsCustomModulesRequest, + ListSecurityHealthAnalyticsCustomModulesPagedResponse> + listSecurityHealthAnalyticsCustomModulesPagedCallable() { + return stub.listSecurityHealthAnalyticsCustomModulesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists notification configs. + * Returns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes + * resident modules defined at the scope of the parent, and inherited modules, inherited from CRM + * ancestors. * *

Sample code: * @@ -3364,16 +4573,19 @@ public final ListNotificationConfigsPagedResponse listNotificationConfigs( * // - 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()) { - * ListNotificationConfigsRequest request = - * ListNotificationConfigsRequest.newBuilder() - * .setParent(OrganizationName.of("[ORGANIZATION]").toString()) - * .setPageToken("pageToken873572522") + * ListSecurityHealthAnalyticsCustomModulesRequest request = + * ListSecurityHealthAnalyticsCustomModulesRequest.newBuilder() + * .setParent( + * SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]") + * .toString()) * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); * while (true) { - * ListNotificationConfigsResponse response = - * securityCenterClient.listNotificationConfigsCallable().call(request); - * for (NotificationConfig element : response.getNotificationConfigsList()) { + * ListSecurityHealthAnalyticsCustomModulesResponse response = + * securityCenterClient.listSecurityHealthAnalyticsCustomModulesCallable().call(request); + * for (SecurityHealthAnalyticsCustomModule element : + * response.getSecurityHealthAnalyticsCustomModulesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -3386,9 +4598,11 @@ public final ListNotificationConfigsPagedResponse listNotificationConfigs( * } * } */ - public final UnaryCallable - listNotificationConfigsCallable() { - return stub.listNotificationConfigsCallable(); + public final UnaryCallable< + ListSecurityHealthAnalyticsCustomModulesRequest, + ListSecurityHealthAnalyticsCustomModulesResponse> + listSecurityHealthAnalyticsCustomModulesCallable() { + return stub.listSecurityHealthAnalyticsCustomModulesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. @@ -4821,6 +6035,119 @@ public final OrganizationSettings updateOrganizationSettings( return stub.updateOrganizationSettingsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the SecurityHealthAnalyticsCustomModule under the given name based on the given update + * mask. Updating the enablement state is supported on both resident and inherited modules (though + * resident modules cannot have an enablement state of “inherited”). Updating the display name and + * custom config of a module is supported on resident modules only. + * + *

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()) {
+   *   SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule =
+   *       SecurityHealthAnalyticsCustomModule.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   SecurityHealthAnalyticsCustomModule response =
+   *       securityCenterClient.updateSecurityHealthAnalyticsCustomModule(
+   *           securityHealthAnalyticsCustomModule, updateMask);
+   * }
+   * }
+ * + * @param securityHealthAnalyticsCustomModule Required. The SecurityHealthAnalytics custom module + * to update. + * @param updateMask The list of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SecurityHealthAnalyticsCustomModule updateSecurityHealthAnalyticsCustomModule( + SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule, + FieldMask updateMask) { + UpdateSecurityHealthAnalyticsCustomModuleRequest request = + UpdateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + .setSecurityHealthAnalyticsCustomModule(securityHealthAnalyticsCustomModule) + .setUpdateMask(updateMask) + .build(); + return updateSecurityHealthAnalyticsCustomModule(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the SecurityHealthAnalyticsCustomModule under the given name based on the given update + * mask. Updating the enablement state is supported on both resident and inherited modules (though + * resident modules cannot have an enablement state of “inherited”). Updating the display name and + * custom config of a module is supported on resident modules only. + * + *

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()) {
+   *   UpdateSecurityHealthAnalyticsCustomModuleRequest request =
+   *       UpdateSecurityHealthAnalyticsCustomModuleRequest.newBuilder()
+   *           .setSecurityHealthAnalyticsCustomModule(
+   *               SecurityHealthAnalyticsCustomModule.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   SecurityHealthAnalyticsCustomModule response =
+   *       securityCenterClient.updateSecurityHealthAnalyticsCustomModule(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 SecurityHealthAnalyticsCustomModule updateSecurityHealthAnalyticsCustomModule( + UpdateSecurityHealthAnalyticsCustomModuleRequest request) { + return updateSecurityHealthAnalyticsCustomModuleCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the SecurityHealthAnalyticsCustomModule under the given name based on the given update + * mask. Updating the enablement state is supported on both resident and inherited modules (though + * resident modules cannot have an enablement state of “inherited”). Updating the display name and + * custom config of a module is supported on resident modules only. + * + *

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()) {
+   *   UpdateSecurityHealthAnalyticsCustomModuleRequest request =
+   *       UpdateSecurityHealthAnalyticsCustomModuleRequest.newBuilder()
+   *           .setSecurityHealthAnalyticsCustomModule(
+   *               SecurityHealthAnalyticsCustomModule.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       securityCenterClient
+   *           .updateSecurityHealthAnalyticsCustomModuleCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   SecurityHealthAnalyticsCustomModule response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + UpdateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + updateSecurityHealthAnalyticsCustomModuleCallable() { + return stub.updateSecurityHealthAnalyticsCustomModuleCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a source. @@ -5945,6 +7272,112 @@ protected ListAssetsFixedSizeCollection createCollection( } } + public static class ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse + extends AbstractPagedListResponse< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + ListDescendantSecurityHealthAnalyticsCustomModulesResponse, + SecurityHealthAnalyticsCustomModule, + ListDescendantSecurityHealthAnalyticsCustomModulesPage, + ListDescendantSecurityHealthAnalyticsCustomModulesFixedSizeCollection> { + + public static ApiFuture + createAsync( + PageContext< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + ListDescendantSecurityHealthAnalyticsCustomModulesResponse, + SecurityHealthAnalyticsCustomModule> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDescendantSecurityHealthAnalyticsCustomModulesPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse( + ListDescendantSecurityHealthAnalyticsCustomModulesPage page) { + super( + page, + ListDescendantSecurityHealthAnalyticsCustomModulesFixedSizeCollection + .createEmptyCollection()); + } + } + + public static class ListDescendantSecurityHealthAnalyticsCustomModulesPage + extends AbstractPage< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + ListDescendantSecurityHealthAnalyticsCustomModulesResponse, + SecurityHealthAnalyticsCustomModule, + ListDescendantSecurityHealthAnalyticsCustomModulesPage> { + + private ListDescendantSecurityHealthAnalyticsCustomModulesPage( + PageContext< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + ListDescendantSecurityHealthAnalyticsCustomModulesResponse, + SecurityHealthAnalyticsCustomModule> + context, + ListDescendantSecurityHealthAnalyticsCustomModulesResponse response) { + super(context, response); + } + + private static ListDescendantSecurityHealthAnalyticsCustomModulesPage createEmptyPage() { + return new ListDescendantSecurityHealthAnalyticsCustomModulesPage(null, null); + } + + @Override + protected ListDescendantSecurityHealthAnalyticsCustomModulesPage createPage( + PageContext< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + ListDescendantSecurityHealthAnalyticsCustomModulesResponse, + SecurityHealthAnalyticsCustomModule> + context, + ListDescendantSecurityHealthAnalyticsCustomModulesResponse response) { + return new ListDescendantSecurityHealthAnalyticsCustomModulesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + ListDescendantSecurityHealthAnalyticsCustomModulesResponse, + SecurityHealthAnalyticsCustomModule> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDescendantSecurityHealthAnalyticsCustomModulesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + ListDescendantSecurityHealthAnalyticsCustomModulesResponse, + SecurityHealthAnalyticsCustomModule, + ListDescendantSecurityHealthAnalyticsCustomModulesPage, + ListDescendantSecurityHealthAnalyticsCustomModulesFixedSizeCollection> { + + private ListDescendantSecurityHealthAnalyticsCustomModulesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDescendantSecurityHealthAnalyticsCustomModulesFixedSizeCollection + createEmptyCollection() { + return new ListDescendantSecurityHealthAnalyticsCustomModulesFixedSizeCollection(null, 0); + } + + @Override + protected ListDescendantSecurityHealthAnalyticsCustomModulesFixedSizeCollection + createCollection( + List pages, + int collectionSize) { + return new ListDescendantSecurityHealthAnalyticsCustomModulesFixedSizeCollection( + pages, collectionSize); + } + } + public static class ListFindingsPagedResponse extends AbstractPagedListResponse< ListFindingsRequest, @@ -6197,6 +7630,211 @@ protected ListNotificationConfigsFixedSizeCollection createCollection( } } + public static class ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse + extends AbstractPagedListResponse< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, + EffectiveSecurityHealthAnalyticsCustomModule, + ListEffectiveSecurityHealthAnalyticsCustomModulesPage, + ListEffectiveSecurityHealthAnalyticsCustomModulesFixedSizeCollection> { + + public static ApiFuture + createAsync( + PageContext< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, + EffectiveSecurityHealthAnalyticsCustomModule> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListEffectiveSecurityHealthAnalyticsCustomModulesPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse( + ListEffectiveSecurityHealthAnalyticsCustomModulesPage page) { + super( + page, + ListEffectiveSecurityHealthAnalyticsCustomModulesFixedSizeCollection + .createEmptyCollection()); + } + } + + public static class ListEffectiveSecurityHealthAnalyticsCustomModulesPage + extends AbstractPage< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, + EffectiveSecurityHealthAnalyticsCustomModule, + ListEffectiveSecurityHealthAnalyticsCustomModulesPage> { + + private ListEffectiveSecurityHealthAnalyticsCustomModulesPage( + PageContext< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, + EffectiveSecurityHealthAnalyticsCustomModule> + context, + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse response) { + super(context, response); + } + + private static ListEffectiveSecurityHealthAnalyticsCustomModulesPage createEmptyPage() { + return new ListEffectiveSecurityHealthAnalyticsCustomModulesPage(null, null); + } + + @Override + protected ListEffectiveSecurityHealthAnalyticsCustomModulesPage createPage( + PageContext< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, + EffectiveSecurityHealthAnalyticsCustomModule> + context, + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse response) { + return new ListEffectiveSecurityHealthAnalyticsCustomModulesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, + EffectiveSecurityHealthAnalyticsCustomModule> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListEffectiveSecurityHealthAnalyticsCustomModulesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse, + EffectiveSecurityHealthAnalyticsCustomModule, + ListEffectiveSecurityHealthAnalyticsCustomModulesPage, + ListEffectiveSecurityHealthAnalyticsCustomModulesFixedSizeCollection> { + + private ListEffectiveSecurityHealthAnalyticsCustomModulesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListEffectiveSecurityHealthAnalyticsCustomModulesFixedSizeCollection + createEmptyCollection() { + return new ListEffectiveSecurityHealthAnalyticsCustomModulesFixedSizeCollection(null, 0); + } + + @Override + protected ListEffectiveSecurityHealthAnalyticsCustomModulesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListEffectiveSecurityHealthAnalyticsCustomModulesFixedSizeCollection( + pages, collectionSize); + } + } + + public static class ListSecurityHealthAnalyticsCustomModulesPagedResponse + extends AbstractPagedListResponse< + ListSecurityHealthAnalyticsCustomModulesRequest, + ListSecurityHealthAnalyticsCustomModulesResponse, + SecurityHealthAnalyticsCustomModule, + ListSecurityHealthAnalyticsCustomModulesPage, + ListSecurityHealthAnalyticsCustomModulesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListSecurityHealthAnalyticsCustomModulesRequest, + ListSecurityHealthAnalyticsCustomModulesResponse, + SecurityHealthAnalyticsCustomModule> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSecurityHealthAnalyticsCustomModulesPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListSecurityHealthAnalyticsCustomModulesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListSecurityHealthAnalyticsCustomModulesPagedResponse( + ListSecurityHealthAnalyticsCustomModulesPage page) { + super( + page, + ListSecurityHealthAnalyticsCustomModulesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSecurityHealthAnalyticsCustomModulesPage + extends AbstractPage< + ListSecurityHealthAnalyticsCustomModulesRequest, + ListSecurityHealthAnalyticsCustomModulesResponse, + SecurityHealthAnalyticsCustomModule, + ListSecurityHealthAnalyticsCustomModulesPage> { + + private ListSecurityHealthAnalyticsCustomModulesPage( + PageContext< + ListSecurityHealthAnalyticsCustomModulesRequest, + ListSecurityHealthAnalyticsCustomModulesResponse, + SecurityHealthAnalyticsCustomModule> + context, + ListSecurityHealthAnalyticsCustomModulesResponse response) { + super(context, response); + } + + private static ListSecurityHealthAnalyticsCustomModulesPage createEmptyPage() { + return new ListSecurityHealthAnalyticsCustomModulesPage(null, null); + } + + @Override + protected ListSecurityHealthAnalyticsCustomModulesPage createPage( + PageContext< + ListSecurityHealthAnalyticsCustomModulesRequest, + ListSecurityHealthAnalyticsCustomModulesResponse, + SecurityHealthAnalyticsCustomModule> + context, + ListSecurityHealthAnalyticsCustomModulesResponse response) { + return new ListSecurityHealthAnalyticsCustomModulesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListSecurityHealthAnalyticsCustomModulesRequest, + ListSecurityHealthAnalyticsCustomModulesResponse, + SecurityHealthAnalyticsCustomModule> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSecurityHealthAnalyticsCustomModulesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSecurityHealthAnalyticsCustomModulesRequest, + ListSecurityHealthAnalyticsCustomModulesResponse, + SecurityHealthAnalyticsCustomModule, + ListSecurityHealthAnalyticsCustomModulesPage, + ListSecurityHealthAnalyticsCustomModulesFixedSizeCollection> { + + private ListSecurityHealthAnalyticsCustomModulesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSecurityHealthAnalyticsCustomModulesFixedSizeCollection + createEmptyCollection() { + return new ListSecurityHealthAnalyticsCustomModulesFixedSizeCollection(null, 0); + } + + @Override + protected ListSecurityHealthAnalyticsCustomModulesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSecurityHealthAnalyticsCustomModulesFixedSizeCollection(pages, collectionSize); + } + } + public static class ListSourcesPagedResponse extends AbstractPagedListResponse< ListSourcesRequest, 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 eac528cf0f60..871abd75833b 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 @@ -20,9 +20,12 @@ import static com.google.cloud.securitycenter.v1.SecurityCenterClient.GroupFindingsPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListAssetsPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListBigQueryExportsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListFindingsPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListMuteConfigsPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListNotificationConfigsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSourcesPagedResponse; import com.google.api.core.ApiFunction; @@ -66,7 +69,8 @@ *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *

For example, to set the total timeout of createSource to 30 seconds: + *

For example, to set the total timeout of createSecurityHealthAnalyticsCustomModule to 30 + * seconds: * *

{@code
  * // This snippet has been automatically generated and should be regarded as a code template only.
@@ -77,10 +81,10 @@
  * SecurityCenterSettings.Builder securityCenterSettingsBuilder =
  *     SecurityCenterSettings.newBuilder();
  * securityCenterSettingsBuilder
- *     .createSourceSettings()
+ *     .createSecurityHealthAnalyticsCustomModuleSettings()
  *     .setRetrySettings(
  *         securityCenterSettingsBuilder
- *             .createSourceSettings()
+ *             .createSecurityHealthAnalyticsCustomModuleSettings()
  *             .getRetrySettings()
  *             .toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
@@ -102,6 +106,17 @@ public UnaryCallSettings bulkMuteFindingsSet
     return ((SecurityCenterStubSettings) getStubSettings()).bulkMuteFindingsOperationSettings();
   }
 
+  /**
+   * Returns the object with the settings used for calls to
+   * createSecurityHealthAnalyticsCustomModule.
+   */
+  public UnaryCallSettings<
+          CreateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule>
+      createSecurityHealthAnalyticsCustomModuleSettings() {
+    return ((SecurityCenterStubSettings) getStubSettings())
+        .createSecurityHealthAnalyticsCustomModuleSettings();
+  }
+
   /** Returns the object with the settings used for calls to createSource. */
   public UnaryCallSettings createSourceSettings() {
     return ((SecurityCenterStubSettings) getStubSettings()).createSourceSettings();
@@ -134,6 +149,16 @@ public UnaryCallSettings deleteMuteConfigSetting
     return ((SecurityCenterStubSettings) getStubSettings()).deleteNotificationConfigSettings();
   }
 
+  /**
+   * Returns the object with the settings used for calls to
+   * deleteSecurityHealthAnalyticsCustomModule.
+   */
+  public UnaryCallSettings
+      deleteSecurityHealthAnalyticsCustomModuleSettings() {
+    return ((SecurityCenterStubSettings) getStubSettings())
+        .deleteSecurityHealthAnalyticsCustomModuleSettings();
+  }
+
   /** Returns the object with the settings used for calls to getBigQueryExport. */
   public UnaryCallSettings getBigQueryExportSettings() {
     return ((SecurityCenterStubSettings) getStubSettings()).getBigQueryExportSettings();
@@ -161,6 +186,28 @@ public UnaryCallSettings getMuteConfigSettings
     return ((SecurityCenterStubSettings) getStubSettings()).getOrganizationSettingsSettings();
   }
 
+  /**
+   * Returns the object with the settings used for calls to
+   * getEffectiveSecurityHealthAnalyticsCustomModule.
+   */
+  public UnaryCallSettings<
+          GetEffectiveSecurityHealthAnalyticsCustomModuleRequest,
+          EffectiveSecurityHealthAnalyticsCustomModule>
+      getEffectiveSecurityHealthAnalyticsCustomModuleSettings() {
+    return ((SecurityCenterStubSettings) getStubSettings())
+        .getEffectiveSecurityHealthAnalyticsCustomModuleSettings();
+  }
+
+  /**
+   * Returns the object with the settings used for calls to getSecurityHealthAnalyticsCustomModule.
+   */
+  public UnaryCallSettings<
+          GetSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule>
+      getSecurityHealthAnalyticsCustomModuleSettings() {
+    return ((SecurityCenterStubSettings) getStubSettings())
+        .getSecurityHealthAnalyticsCustomModuleSettings();
+  }
+
   /** Returns the object with the settings used for calls to getSource. */
   public UnaryCallSettings getSourceSettings() {
     return ((SecurityCenterStubSettings) getStubSettings()).getSourceSettings();
@@ -184,6 +231,19 @@ public UnaryCallSettings getSourceSettings() {
     return ((SecurityCenterStubSettings) getStubSettings()).listAssetsSettings();
   }
 
+  /**
+   * Returns the object with the settings used for calls to
+   * listDescendantSecurityHealthAnalyticsCustomModules.
+   */
+  public PagedCallSettings<
+          ListDescendantSecurityHealthAnalyticsCustomModulesRequest,
+          ListDescendantSecurityHealthAnalyticsCustomModulesResponse,
+          ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse>
+      listDescendantSecurityHealthAnalyticsCustomModulesSettings() {
+    return ((SecurityCenterStubSettings) getStubSettings())
+        .listDescendantSecurityHealthAnalyticsCustomModulesSettings();
+  }
+
   /** Returns the object with the settings used for calls to listFindings. */
   public PagedCallSettings
       listFindingsSettings() {
@@ -206,6 +266,32 @@ public UnaryCallSettings getSourceSettings() {
     return ((SecurityCenterStubSettings) getStubSettings()).listNotificationConfigsSettings();
   }
 
+  /**
+   * Returns the object with the settings used for calls to
+   * listEffectiveSecurityHealthAnalyticsCustomModules.
+   */
+  public PagedCallSettings<
+          ListEffectiveSecurityHealthAnalyticsCustomModulesRequest,
+          ListEffectiveSecurityHealthAnalyticsCustomModulesResponse,
+          ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse>
+      listEffectiveSecurityHealthAnalyticsCustomModulesSettings() {
+    return ((SecurityCenterStubSettings) getStubSettings())
+        .listEffectiveSecurityHealthAnalyticsCustomModulesSettings();
+  }
+
+  /**
+   * Returns the object with the settings used for calls to
+   * listSecurityHealthAnalyticsCustomModules.
+   */
+  public PagedCallSettings<
+          ListSecurityHealthAnalyticsCustomModulesRequest,
+          ListSecurityHealthAnalyticsCustomModulesResponse,
+          ListSecurityHealthAnalyticsCustomModulesPagedResponse>
+      listSecurityHealthAnalyticsCustomModulesSettings() {
+    return ((SecurityCenterStubSettings) getStubSettings())
+        .listSecurityHealthAnalyticsCustomModulesSettings();
+  }
+
   /** Returns the object with the settings used for calls to listSources. */
   public PagedCallSettings
       listSourcesSettings() {
@@ -272,6 +358,17 @@ public UnaryCallSettings updateMuteConfigSe
     return ((SecurityCenterStubSettings) getStubSettings()).updateOrganizationSettingsSettings();
   }
 
+  /**
+   * Returns the object with the settings used for calls to
+   * updateSecurityHealthAnalyticsCustomModule.
+   */
+  public UnaryCallSettings<
+          UpdateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule>
+      updateSecurityHealthAnalyticsCustomModuleSettings() {
+    return ((SecurityCenterStubSettings) getStubSettings())
+        .updateSecurityHealthAnalyticsCustomModuleSettings();
+  }
+
   /** Returns the object with the settings used for calls to updateSource. */
   public UnaryCallSettings updateSourceSettings() {
     return ((SecurityCenterStubSettings) getStubSettings()).updateSourceSettings();
@@ -434,6 +531,16 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().bulkMuteFindingsOperationSettings();
     }
 
+    /**
+     * Returns the builder for the settings used for calls to
+     * createSecurityHealthAnalyticsCustomModule.
+     */
+    public UnaryCallSettings.Builder<
+            CreateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule>
+        createSecurityHealthAnalyticsCustomModuleSettings() {
+      return getStubSettingsBuilder().createSecurityHealthAnalyticsCustomModuleSettings();
+    }
+
     /** Returns the builder for the settings used for calls to createSource. */
     public UnaryCallSettings.Builder createSourceSettings() {
       return getStubSettingsBuilder().createSourceSettings();
@@ -467,6 +574,15 @@ public UnaryCallSettings.Builder deleteMuteConfi
       return getStubSettingsBuilder().deleteNotificationConfigSettings();
     }
 
+    /**
+     * Returns the builder for the settings used for calls to
+     * deleteSecurityHealthAnalyticsCustomModule.
+     */
+    public UnaryCallSettings.Builder
+        deleteSecurityHealthAnalyticsCustomModuleSettings() {
+      return getStubSettingsBuilder().deleteSecurityHealthAnalyticsCustomModuleSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getBigQueryExport. */
     public UnaryCallSettings.Builder
         getBigQueryExportSettings() {
@@ -495,6 +611,27 @@ public UnaryCallSettings.Builder getMuteConfig
       return getStubSettingsBuilder().getOrganizationSettingsSettings();
     }
 
+    /**
+     * Returns the builder for the settings used for calls to
+     * getEffectiveSecurityHealthAnalyticsCustomModule.
+     */
+    public UnaryCallSettings.Builder<
+            GetEffectiveSecurityHealthAnalyticsCustomModuleRequest,
+            EffectiveSecurityHealthAnalyticsCustomModule>
+        getEffectiveSecurityHealthAnalyticsCustomModuleSettings() {
+      return getStubSettingsBuilder().getEffectiveSecurityHealthAnalyticsCustomModuleSettings();
+    }
+
+    /**
+     * Returns the builder for the settings used for calls to
+     * getSecurityHealthAnalyticsCustomModule.
+     */
+    public UnaryCallSettings.Builder<
+            GetSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule>
+        getSecurityHealthAnalyticsCustomModuleSettings() {
+      return getStubSettingsBuilder().getSecurityHealthAnalyticsCustomModuleSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getSource. */
     public UnaryCallSettings.Builder getSourceSettings() {
       return getStubSettingsBuilder().getSourceSettings();
@@ -520,6 +657,18 @@ public UnaryCallSettings.Builder getSourceSettings() {
       return getStubSettingsBuilder().listAssetsSettings();
     }
 
+    /**
+     * Returns the builder for the settings used for calls to
+     * listDescendantSecurityHealthAnalyticsCustomModules.
+     */
+    public PagedCallSettings.Builder<
+            ListDescendantSecurityHealthAnalyticsCustomModulesRequest,
+            ListDescendantSecurityHealthAnalyticsCustomModulesResponse,
+            ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse>
+        listDescendantSecurityHealthAnalyticsCustomModulesSettings() {
+      return getStubSettingsBuilder().listDescendantSecurityHealthAnalyticsCustomModulesSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listFindings. */
     public PagedCallSettings.Builder<
             ListFindingsRequest, ListFindingsResponse, ListFindingsPagedResponse>
@@ -543,6 +692,30 @@ public UnaryCallSettings.Builder getSourceSettings() {
       return getStubSettingsBuilder().listNotificationConfigsSettings();
     }
 
+    /**
+     * Returns the builder for the settings used for calls to
+     * listEffectiveSecurityHealthAnalyticsCustomModules.
+     */
+    public PagedCallSettings.Builder<
+            ListEffectiveSecurityHealthAnalyticsCustomModulesRequest,
+            ListEffectiveSecurityHealthAnalyticsCustomModulesResponse,
+            ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse>
+        listEffectiveSecurityHealthAnalyticsCustomModulesSettings() {
+      return getStubSettingsBuilder().listEffectiveSecurityHealthAnalyticsCustomModulesSettings();
+    }
+
+    /**
+     * Returns the builder for the settings used for calls to
+     * listSecurityHealthAnalyticsCustomModules.
+     */
+    public PagedCallSettings.Builder<
+            ListSecurityHealthAnalyticsCustomModulesRequest,
+            ListSecurityHealthAnalyticsCustomModulesResponse,
+            ListSecurityHealthAnalyticsCustomModulesPagedResponse>
+        listSecurityHealthAnalyticsCustomModulesSettings() {
+      return getStubSettingsBuilder().listSecurityHealthAnalyticsCustomModulesSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listSources. */
     public PagedCallSettings.Builder<
             ListSourcesRequest, ListSourcesResponse, ListSourcesPagedResponse>
@@ -612,6 +785,16 @@ public UnaryCallSettings.Builder updateFindingSet
       return getStubSettingsBuilder().updateOrganizationSettingsSettings();
     }
 
+    /**
+     * Returns the builder for the settings used for calls to
+     * updateSecurityHealthAnalyticsCustomModule.
+     */
+    public UnaryCallSettings.Builder<
+            UpdateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule>
+        updateSecurityHealthAnalyticsCustomModuleSettings() {
+      return getStubSettingsBuilder().updateSecurityHealthAnalyticsCustomModuleSettings();
+    }
+
     /** Returns the builder for the settings used for calls to updateSource. */
     public UnaryCallSettings.Builder updateSourceSettings() {
       return getStubSettingsBuilder().updateSourceSettings();
diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/gapic_metadata.json b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/gapic_metadata.json
index 54707f98ca23..c229c768c599 100644
--- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/gapic_metadata.json
+++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/gapic_metadata.json
@@ -25,6 +25,9 @@
             "CreateNotificationConfig": {
               "methods": ["createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfigCallable"]
             },
+            "CreateSecurityHealthAnalyticsCustomModule": {
+              "methods": ["createSecurityHealthAnalyticsCustomModule", "createSecurityHealthAnalyticsCustomModule", "createSecurityHealthAnalyticsCustomModule", "createSecurityHealthAnalyticsCustomModuleCallable"]
+            },
             "CreateSource": {
               "methods": ["createSource", "createSource", "createSource", "createSourceCallable"]
             },
@@ -37,9 +40,15 @@
             "DeleteNotificationConfig": {
               "methods": ["deleteNotificationConfig", "deleteNotificationConfig", "deleteNotificationConfig", "deleteNotificationConfigCallable"]
             },
+            "DeleteSecurityHealthAnalyticsCustomModule": {
+              "methods": ["deleteSecurityHealthAnalyticsCustomModule", "deleteSecurityHealthAnalyticsCustomModule", "deleteSecurityHealthAnalyticsCustomModule", "deleteSecurityHealthAnalyticsCustomModuleCallable"]
+            },
             "GetBigQueryExport": {
               "methods": ["getBigQueryExport", "getBigQueryExport", "getBigQueryExport", "getBigQueryExportCallable"]
             },
+            "GetEffectiveSecurityHealthAnalyticsCustomModule": {
+              "methods": ["getEffectiveSecurityHealthAnalyticsCustomModule", "getEffectiveSecurityHealthAnalyticsCustomModule", "getEffectiveSecurityHealthAnalyticsCustomModule", "getEffectiveSecurityHealthAnalyticsCustomModuleCallable"]
+            },
             "GetIamPolicy": {
               "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"]
             },
@@ -52,6 +61,9 @@
             "GetOrganizationSettings": {
               "methods": ["getOrganizationSettings", "getOrganizationSettings", "getOrganizationSettings", "getOrganizationSettingsCallable"]
             },
+            "GetSecurityHealthAnalyticsCustomModule": {
+              "methods": ["getSecurityHealthAnalyticsCustomModule", "getSecurityHealthAnalyticsCustomModule", "getSecurityHealthAnalyticsCustomModule", "getSecurityHealthAnalyticsCustomModuleCallable"]
+            },
             "GetSource": {
               "methods": ["getSource", "getSource", "getSource", "getSourceCallable"]
             },
@@ -67,6 +79,12 @@
             "ListBigQueryExports": {
               "methods": ["listBigQueryExports", "listBigQueryExports", "listBigQueryExports", "listBigQueryExports", "listBigQueryExports", "listBigQueryExportsPagedCallable", "listBigQueryExportsCallable"]
             },
+            "ListDescendantSecurityHealthAnalyticsCustomModules": {
+              "methods": ["listDescendantSecurityHealthAnalyticsCustomModules", "listDescendantSecurityHealthAnalyticsCustomModules", "listDescendantSecurityHealthAnalyticsCustomModules", "listDescendantSecurityHealthAnalyticsCustomModulesPagedCallable", "listDescendantSecurityHealthAnalyticsCustomModulesCallable"]
+            },
+            "ListEffectiveSecurityHealthAnalyticsCustomModules": {
+              "methods": ["listEffectiveSecurityHealthAnalyticsCustomModules", "listEffectiveSecurityHealthAnalyticsCustomModules", "listEffectiveSecurityHealthAnalyticsCustomModules", "listEffectiveSecurityHealthAnalyticsCustomModulesPagedCallable", "listEffectiveSecurityHealthAnalyticsCustomModulesCallable"]
+            },
             "ListFindings": {
               "methods": ["listFindings", "listFindingsPagedCallable", "listFindingsCallable"]
             },
@@ -76,6 +94,9 @@
             "ListNotificationConfigs": {
               "methods": ["listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigsPagedCallable", "listNotificationConfigsCallable"]
             },
+            "ListSecurityHealthAnalyticsCustomModules": {
+              "methods": ["listSecurityHealthAnalyticsCustomModules", "listSecurityHealthAnalyticsCustomModules", "listSecurityHealthAnalyticsCustomModules", "listSecurityHealthAnalyticsCustomModulesPagedCallable", "listSecurityHealthAnalyticsCustomModulesCallable"]
+            },
             "ListSources": {
               "methods": ["listSources", "listSources", "listSources", "listSources", "listSources", "listSourcesPagedCallable", "listSourcesCallable"]
             },
@@ -112,6 +133,9 @@
             "UpdateOrganizationSettings": {
               "methods": ["updateOrganizationSettings", "updateOrganizationSettings", "updateOrganizationSettingsCallable"]
             },
+            "UpdateSecurityHealthAnalyticsCustomModule": {
+              "methods": ["updateSecurityHealthAnalyticsCustomModule", "updateSecurityHealthAnalyticsCustomModule", "updateSecurityHealthAnalyticsCustomModuleCallable"]
+            },
             "UpdateSecurityMarks": {
               "methods": ["updateSecurityMarks", "updateSecurityMarks", "updateSecurityMarksCallable"]
             },
diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java
index ebc78a4b25ab..221c3e2617cf 100644
--- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java
+++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/package-info.java
@@ -32,9 +32,13 @@
  * // - 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()) {
- *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
- *   Source source = Source.newBuilder().build();
- *   Source response = securityCenterClient.createSource(parent, source);
+ *   SecurityHealthAnalyticsSettingsName parent =
+ *       SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]");
+ *   SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule =
+ *       SecurityHealthAnalyticsCustomModule.newBuilder().build();
+ *   SecurityHealthAnalyticsCustomModule response =
+ *       securityCenterClient.createSecurityHealthAnalyticsCustomModule(
+ *           parent, securityHealthAnalyticsCustomModule);
  * }
  * }
*/ diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java index cd09071d4c99..8523c509500d 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/GrpcSecurityCenterStub.java @@ -20,9 +20,12 @@ import static com.google.cloud.securitycenter.v1.SecurityCenterClient.GroupFindingsPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListAssetsPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListBigQueryExportsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListFindingsPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListMuteConfigsPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListNotificationConfigsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSourcesPagedResponse; import com.google.api.gax.core.BackgroundResource; @@ -39,16 +42,21 @@ import com.google.cloud.securitycenter.v1.CreateFindingRequest; import com.google.cloud.securitycenter.v1.CreateMuteConfigRequest; import com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest; +import com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycenter.v1.CreateSourceRequest; import com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest; import com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest; import com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest; +import com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest; +import com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule; import com.google.cloud.securitycenter.v1.ExternalSystem; import com.google.cloud.securitycenter.v1.Finding; import com.google.cloud.securitycenter.v1.GetBigQueryExportRequest; +import com.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycenter.v1.GetMuteConfigRequest; import com.google.cloud.securitycenter.v1.GetNotificationConfigRequest; import com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest; +import com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycenter.v1.GetSourceRequest; import com.google.cloud.securitycenter.v1.GroupAssetsRequest; import com.google.cloud.securitycenter.v1.GroupAssetsResponse; @@ -58,12 +66,18 @@ import com.google.cloud.securitycenter.v1.ListAssetsResponse; import com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest; import com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse; +import com.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest; +import com.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse; +import com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest; +import com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse; import com.google.cloud.securitycenter.v1.ListFindingsRequest; import com.google.cloud.securitycenter.v1.ListFindingsResponse; import com.google.cloud.securitycenter.v1.ListMuteConfigsRequest; import com.google.cloud.securitycenter.v1.ListMuteConfigsResponse; import com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest; import com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse; +import com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest; +import com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse; import com.google.cloud.securitycenter.v1.ListSourcesRequest; import com.google.cloud.securitycenter.v1.ListSourcesResponse; import com.google.cloud.securitycenter.v1.MuteConfig; @@ -71,6 +85,7 @@ import com.google.cloud.securitycenter.v1.OrganizationSettings; import com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest; import com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; import com.google.cloud.securitycenter.v1.SecurityMarks; import com.google.cloud.securitycenter.v1.SetFindingStateRequest; import com.google.cloud.securitycenter.v1.SetMuteRequest; @@ -81,6 +96,7 @@ import com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest; import com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest; import com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest; +import com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest; import com.google.cloud.securitycenter.v1.UpdateSourceRequest; import com.google.common.collect.ImmutableMap; @@ -116,6 +132,23 @@ public class GrpcSecurityCenterStub extends SecurityCenterStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor< + CreateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + createSecurityHealthAnalyticsCustomModuleMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/CreateSecurityHealthAnalyticsCustomModule") + .setRequestMarshaller( + ProtoUtils.marshaller( + CreateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SecurityHealthAnalyticsCustomModule.getDefaultInstance())) + .build(); + private static final MethodDescriptor createSourceMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -176,6 +209,18 @@ public class GrpcSecurityCenterStub extends SecurityCenterStub { .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor + deleteSecurityHealthAnalyticsCustomModuleMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/DeleteSecurityHealthAnalyticsCustomModule") + .setRequestMarshaller( + ProtoUtils.marshaller( + DeleteSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor getBigQueryExportMethodDescriptor = MethodDescriptor.newBuilder() @@ -227,6 +272,41 @@ public class GrpcSecurityCenterStub extends SecurityCenterStub { ProtoUtils.marshaller(OrganizationSettings.getDefaultInstance())) .build(); + private static final MethodDescriptor< + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, + EffectiveSecurityHealthAnalyticsCustomModule> + getEffectiveSecurityHealthAnalyticsCustomModuleMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/GetEffectiveSecurityHealthAnalyticsCustomModule") + .setRequestMarshaller( + ProtoUtils.marshaller( + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + EffectiveSecurityHealthAnalyticsCustomModule.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + GetSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + getSecurityHealthAnalyticsCustomModuleMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/GetSecurityHealthAnalyticsCustomModule") + .setRequestMarshaller( + ProtoUtils.marshaller( + GetSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SecurityHealthAnalyticsCustomModule.getDefaultInstance())) + .build(); + private static final MethodDescriptor getSourceMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -265,6 +345,27 @@ public class GrpcSecurityCenterStub extends SecurityCenterStub { .setResponseMarshaller(ProtoUtils.marshaller(ListAssetsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + ListDescendantSecurityHealthAnalyticsCustomModulesResponse> + listDescendantSecurityHealthAnalyticsCustomModulesMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/ListDescendantSecurityHealthAnalyticsCustomModules") + .setRequestMarshaller( + ProtoUtils.marshaller( + ListDescendantSecurityHealthAnalyticsCustomModulesRequest + .getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListDescendantSecurityHealthAnalyticsCustomModulesResponse + .getDefaultInstance())) + .build(); + private static final MethodDescriptor listFindingsMethodDescriptor = MethodDescriptor.newBuilder() @@ -300,6 +401,46 @@ public class GrpcSecurityCenterStub extends SecurityCenterStub { ProtoUtils.marshaller(ListNotificationConfigsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> + listEffectiveSecurityHealthAnalyticsCustomModulesMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/ListEffectiveSecurityHealthAnalyticsCustomModules") + .setRequestMarshaller( + ProtoUtils.marshaller( + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + .getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + .getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListSecurityHealthAnalyticsCustomModulesRequest, + ListSecurityHealthAnalyticsCustomModulesResponse> + listSecurityHealthAnalyticsCustomModulesMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/ListSecurityHealthAnalyticsCustomModules") + .setRequestMarshaller( + ProtoUtils.marshaller( + ListSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor listSourcesMethodDescriptor = MethodDescriptor.newBuilder() @@ -411,6 +552,23 @@ public class GrpcSecurityCenterStub extends SecurityCenterStub { ProtoUtils.marshaller(OrganizationSettings.getDefaultInstance())) .build(); + private static final MethodDescriptor< + UpdateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + updateSecurityHealthAnalyticsCustomModuleMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/UpdateSecurityHealthAnalyticsCustomModule") + .setRequestMarshaller( + ProtoUtils.marshaller( + UpdateSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SecurityHealthAnalyticsCustomModule.getDefaultInstance())) + .build(); + private static final MethodDescriptor updateSourceMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -478,6 +636,9 @@ public class GrpcSecurityCenterStub extends SecurityCenterStub { private final UnaryCallable bulkMuteFindingsCallable; private final OperationCallable bulkMuteFindingsOperationCallable; + private final UnaryCallable< + CreateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + createSecurityHealthAnalyticsCustomModuleCallable; private final UnaryCallable createSourceCallable; private final UnaryCallable createFindingCallable; private final UnaryCallable createMuteConfigCallable; @@ -486,6 +647,8 @@ public class GrpcSecurityCenterStub extends SecurityCenterStub { private final UnaryCallable deleteMuteConfigCallable; private final UnaryCallable deleteNotificationConfigCallable; + private final UnaryCallable + deleteSecurityHealthAnalyticsCustomModuleCallable; private final UnaryCallable getBigQueryExportCallable; private final UnaryCallable getIamPolicyCallable; private final UnaryCallable getMuteConfigCallable; @@ -493,6 +656,13 @@ public class GrpcSecurityCenterStub extends SecurityCenterStub { getNotificationConfigCallable; private final UnaryCallable getOrganizationSettingsCallable; + private final UnaryCallable< + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, + EffectiveSecurityHealthAnalyticsCustomModule> + getEffectiveSecurityHealthAnalyticsCustomModuleCallable; + private final UnaryCallable< + GetSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + getSecurityHealthAnalyticsCustomModuleCallable; private final UnaryCallable getSourceCallable; private final UnaryCallable groupAssetsCallable; private final UnaryCallable @@ -502,6 +672,14 @@ public class GrpcSecurityCenterStub extends SecurityCenterStub { groupFindingsPagedCallable; private final UnaryCallable listAssetsCallable; private final UnaryCallable listAssetsPagedCallable; + private final UnaryCallable< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + ListDescendantSecurityHealthAnalyticsCustomModulesResponse> + listDescendantSecurityHealthAnalyticsCustomModulesCallable; + private final UnaryCallable< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse> + listDescendantSecurityHealthAnalyticsCustomModulesPagedCallable; private final UnaryCallable listFindingsCallable; private final UnaryCallable listFindingsPagedCallable; @@ -513,6 +691,22 @@ public class GrpcSecurityCenterStub extends SecurityCenterStub { listNotificationConfigsCallable; private final UnaryCallable listNotificationConfigsPagedCallable; + private final UnaryCallable< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> + listEffectiveSecurityHealthAnalyticsCustomModulesCallable; + private final UnaryCallable< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse> + listEffectiveSecurityHealthAnalyticsCustomModulesPagedCallable; + private final UnaryCallable< + ListSecurityHealthAnalyticsCustomModulesRequest, + ListSecurityHealthAnalyticsCustomModulesResponse> + listSecurityHealthAnalyticsCustomModulesCallable; + private final UnaryCallable< + ListSecurityHealthAnalyticsCustomModulesRequest, + ListSecurityHealthAnalyticsCustomModulesPagedResponse> + listSecurityHealthAnalyticsCustomModulesPagedCallable; private final UnaryCallable listSourcesCallable; private final UnaryCallable listSourcesPagedCallable; @@ -532,6 +726,9 @@ public class GrpcSecurityCenterStub extends SecurityCenterStub { updateNotificationConfigCallable; private final UnaryCallable updateOrganizationSettingsCallable; + private final UnaryCallable< + UpdateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + updateSecurityHealthAnalyticsCustomModuleCallable; private final UnaryCallable updateSourceCallable; private final UnaryCallable updateSecurityMarksCallable; @@ -599,6 +796,21 @@ protected GrpcSecurityCenterStub( return params.build(); }) .build(); + GrpcCallSettings< + CreateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + createSecurityHealthAnalyticsCustomModuleTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(createSecurityHealthAnalyticsCustomModuleMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); GrpcCallSettings createSourceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createSourceMethodDescriptor) @@ -661,6 +873,17 @@ protected GrpcSecurityCenterStub( return params.build(); }) .build(); + GrpcCallSettings + deleteSecurityHealthAnalyticsCustomModuleTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteSecurityHealthAnalyticsCustomModuleMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); GrpcCallSettings getBigQueryExportTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getBigQueryExportMethodDescriptor) @@ -713,6 +936,38 @@ protected GrpcSecurityCenterStub( return params.build(); }) .build(); + GrpcCallSettings< + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, + EffectiveSecurityHealthAnalyticsCustomModule> + getEffectiveSecurityHealthAnalyticsCustomModuleTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor( + getEffectiveSecurityHealthAnalyticsCustomModuleMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings< + GetSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + getSecurityHealthAnalyticsCustomModuleTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(getSecurityHealthAnalyticsCustomModuleMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); GrpcCallSettings getSourceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getSourceMethodDescriptor) @@ -753,6 +1008,23 @@ protected GrpcSecurityCenterStub( return params.build(); }) .build(); + GrpcCallSettings< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + ListDescendantSecurityHealthAnalyticsCustomModulesResponse> + listDescendantSecurityHealthAnalyticsCustomModulesTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor( + listDescendantSecurityHealthAnalyticsCustomModulesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); GrpcCallSettings listFindingsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listFindingsMethodDescriptor) @@ -786,6 +1058,39 @@ protected GrpcSecurityCenterStub( return params.build(); }) .build(); + GrpcCallSettings< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> + listEffectiveSecurityHealthAnalyticsCustomModulesTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor( + listEffectiveSecurityHealthAnalyticsCustomModulesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings< + ListSecurityHealthAnalyticsCustomModulesRequest, + ListSecurityHealthAnalyticsCustomModulesResponse> + listSecurityHealthAnalyticsCustomModulesTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listSecurityHealthAnalyticsCustomModulesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); GrpcCallSettings listSourcesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listSourcesMethodDescriptor) @@ -906,6 +1211,24 @@ protected GrpcSecurityCenterStub( return params.build(); }) .build(); + GrpcCallSettings< + UpdateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + updateSecurityHealthAnalyticsCustomModuleTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(updateSecurityHealthAnalyticsCustomModuleMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "security_health_analytics_custom_module.name", + String.valueOf( + request.getSecurityHealthAnalyticsCustomModule().getName())); + return params.build(); + }) + .build(); GrpcCallSettings updateSourceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateSourceMethodDescriptor) @@ -984,6 +1307,11 @@ protected GrpcSecurityCenterStub( settings.bulkMuteFindingsOperationSettings(), clientContext, operationsStub); + this.createSecurityHealthAnalyticsCustomModuleCallable = + callableFactory.createUnaryCallable( + createSecurityHealthAnalyticsCustomModuleTransportSettings, + settings.createSecurityHealthAnalyticsCustomModuleSettings(), + clientContext); this.createSourceCallable = callableFactory.createUnaryCallable( createSourceTransportSettings, settings.createSourceSettings(), clientContext); @@ -1006,6 +1334,11 @@ protected GrpcSecurityCenterStub( deleteNotificationConfigTransportSettings, settings.deleteNotificationConfigSettings(), clientContext); + this.deleteSecurityHealthAnalyticsCustomModuleCallable = + callableFactory.createUnaryCallable( + deleteSecurityHealthAnalyticsCustomModuleTransportSettings, + settings.deleteSecurityHealthAnalyticsCustomModuleSettings(), + clientContext); this.getBigQueryExportCallable = callableFactory.createUnaryCallable( getBigQueryExportTransportSettings, @@ -1027,6 +1360,16 @@ protected GrpcSecurityCenterStub( getOrganizationSettingsTransportSettings, settings.getOrganizationSettingsSettings(), clientContext); + this.getEffectiveSecurityHealthAnalyticsCustomModuleCallable = + callableFactory.createUnaryCallable( + getEffectiveSecurityHealthAnalyticsCustomModuleTransportSettings, + settings.getEffectiveSecurityHealthAnalyticsCustomModuleSettings(), + clientContext); + this.getSecurityHealthAnalyticsCustomModuleCallable = + callableFactory.createUnaryCallable( + getSecurityHealthAnalyticsCustomModuleTransportSettings, + settings.getSecurityHealthAnalyticsCustomModuleSettings(), + clientContext); this.getSourceCallable = callableFactory.createUnaryCallable( getSourceTransportSettings, settings.getSourceSettings(), clientContext); @@ -1048,6 +1391,16 @@ protected GrpcSecurityCenterStub( this.listAssetsPagedCallable = callableFactory.createPagedCallable( listAssetsTransportSettings, settings.listAssetsSettings(), clientContext); + this.listDescendantSecurityHealthAnalyticsCustomModulesCallable = + callableFactory.createUnaryCallable( + listDescendantSecurityHealthAnalyticsCustomModulesTransportSettings, + settings.listDescendantSecurityHealthAnalyticsCustomModulesSettings(), + clientContext); + this.listDescendantSecurityHealthAnalyticsCustomModulesPagedCallable = + callableFactory.createPagedCallable( + listDescendantSecurityHealthAnalyticsCustomModulesTransportSettings, + settings.listDescendantSecurityHealthAnalyticsCustomModulesSettings(), + clientContext); this.listFindingsCallable = callableFactory.createUnaryCallable( listFindingsTransportSettings, settings.listFindingsSettings(), clientContext); @@ -1070,6 +1423,26 @@ protected GrpcSecurityCenterStub( listNotificationConfigsTransportSettings, settings.listNotificationConfigsSettings(), clientContext); + this.listEffectiveSecurityHealthAnalyticsCustomModulesCallable = + callableFactory.createUnaryCallable( + listEffectiveSecurityHealthAnalyticsCustomModulesTransportSettings, + settings.listEffectiveSecurityHealthAnalyticsCustomModulesSettings(), + clientContext); + this.listEffectiveSecurityHealthAnalyticsCustomModulesPagedCallable = + callableFactory.createPagedCallable( + listEffectiveSecurityHealthAnalyticsCustomModulesTransportSettings, + settings.listEffectiveSecurityHealthAnalyticsCustomModulesSettings(), + clientContext); + this.listSecurityHealthAnalyticsCustomModulesCallable = + callableFactory.createUnaryCallable( + listSecurityHealthAnalyticsCustomModulesTransportSettings, + settings.listSecurityHealthAnalyticsCustomModulesSettings(), + clientContext); + this.listSecurityHealthAnalyticsCustomModulesPagedCallable = + callableFactory.createPagedCallable( + listSecurityHealthAnalyticsCustomModulesTransportSettings, + settings.listSecurityHealthAnalyticsCustomModulesSettings(), + clientContext); this.listSourcesCallable = callableFactory.createUnaryCallable( listSourcesTransportSettings, settings.listSourcesSettings(), clientContext); @@ -1122,6 +1495,11 @@ protected GrpcSecurityCenterStub( updateOrganizationSettingsTransportSettings, settings.updateOrganizationSettingsSettings(), clientContext); + this.updateSecurityHealthAnalyticsCustomModuleCallable = + callableFactory.createUnaryCallable( + updateSecurityHealthAnalyticsCustomModuleTransportSettings, + settings.updateSecurityHealthAnalyticsCustomModuleSettings(), + clientContext); this.updateSourceCallable = callableFactory.createUnaryCallable( updateSourceTransportSettings, settings.updateSourceSettings(), clientContext); @@ -1175,6 +1553,13 @@ public UnaryCallable bulkMuteFindingsCallabl return bulkMuteFindingsOperationCallable; } + @Override + public UnaryCallable< + CreateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + createSecurityHealthAnalyticsCustomModuleCallable() { + return createSecurityHealthAnalyticsCustomModuleCallable; + } + @Override public UnaryCallable createSourceCallable() { return createSourceCallable; @@ -1206,6 +1591,12 @@ public UnaryCallable deleteNotificationC return deleteNotificationConfigCallable; } + @Override + public UnaryCallable + deleteSecurityHealthAnalyticsCustomModuleCallable() { + return deleteSecurityHealthAnalyticsCustomModuleCallable; + } + @Override public UnaryCallable getBigQueryExportCallable() { return getBigQueryExportCallable; @@ -1233,6 +1624,21 @@ public UnaryCallable getMuteConfigCallable() { return getOrganizationSettingsCallable; } + @Override + public UnaryCallable< + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, + EffectiveSecurityHealthAnalyticsCustomModule> + getEffectiveSecurityHealthAnalyticsCustomModuleCallable() { + return getEffectiveSecurityHealthAnalyticsCustomModuleCallable; + } + + @Override + public UnaryCallable< + GetSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + getSecurityHealthAnalyticsCustomModuleCallable() { + return getSecurityHealthAnalyticsCustomModuleCallable; + } + @Override public UnaryCallable getSourceCallable() { return getSourceCallable; @@ -1269,6 +1675,22 @@ public UnaryCallable listAssetsPaged return listAssetsPagedCallable; } + @Override + public UnaryCallable< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + ListDescendantSecurityHealthAnalyticsCustomModulesResponse> + listDescendantSecurityHealthAnalyticsCustomModulesCallable() { + return listDescendantSecurityHealthAnalyticsCustomModulesCallable; + } + + @Override + public UnaryCallable< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse> + listDescendantSecurityHealthAnalyticsCustomModulesPagedCallable() { + return listDescendantSecurityHealthAnalyticsCustomModulesPagedCallable; + } + @Override public UnaryCallable listFindingsCallable() { return listFindingsCallable; @@ -1302,6 +1724,38 @@ public UnaryCallable listMuteCo return listNotificationConfigsPagedCallable; } + @Override + public UnaryCallable< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> + listEffectiveSecurityHealthAnalyticsCustomModulesCallable() { + return listEffectiveSecurityHealthAnalyticsCustomModulesCallable; + } + + @Override + public UnaryCallable< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse> + listEffectiveSecurityHealthAnalyticsCustomModulesPagedCallable() { + return listEffectiveSecurityHealthAnalyticsCustomModulesPagedCallable; + } + + @Override + public UnaryCallable< + ListSecurityHealthAnalyticsCustomModulesRequest, + ListSecurityHealthAnalyticsCustomModulesResponse> + listSecurityHealthAnalyticsCustomModulesCallable() { + return listSecurityHealthAnalyticsCustomModulesCallable; + } + + @Override + public UnaryCallable< + ListSecurityHealthAnalyticsCustomModulesRequest, + ListSecurityHealthAnalyticsCustomModulesPagedResponse> + listSecurityHealthAnalyticsCustomModulesPagedCallable() { + return listSecurityHealthAnalyticsCustomModulesPagedCallable; + } + @Override public UnaryCallable listSourcesCallable() { return listSourcesCallable; @@ -1371,6 +1825,13 @@ public UnaryCallable updateMuteConfigCallab return updateOrganizationSettingsCallable; } + @Override + public UnaryCallable< + UpdateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + updateSecurityHealthAnalyticsCustomModuleCallable() { + return updateSecurityHealthAnalyticsCustomModuleCallable; + } + @Override public UnaryCallable updateSourceCallable() { return updateSourceCallable; diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterStub.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterStub.java index ad27ac4f3f58..64d71c6b5676 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterStub.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/HttpJsonSecurityCenterStub.java @@ -20,9 +20,12 @@ import static com.google.cloud.securitycenter.v1.SecurityCenterClient.GroupFindingsPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListAssetsPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListBigQueryExportsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListFindingsPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListMuteConfigsPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListNotificationConfigsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSourcesPagedResponse; import com.google.api.HttpRule; @@ -48,16 +51,21 @@ import com.google.cloud.securitycenter.v1.CreateFindingRequest; import com.google.cloud.securitycenter.v1.CreateMuteConfigRequest; import com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest; +import com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycenter.v1.CreateSourceRequest; import com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest; import com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest; import com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest; +import com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest; +import com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule; import com.google.cloud.securitycenter.v1.ExternalSystem; import com.google.cloud.securitycenter.v1.Finding; import com.google.cloud.securitycenter.v1.GetBigQueryExportRequest; +import com.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycenter.v1.GetMuteConfigRequest; import com.google.cloud.securitycenter.v1.GetNotificationConfigRequest; import com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest; +import com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycenter.v1.GetSourceRequest; import com.google.cloud.securitycenter.v1.GroupAssetsRequest; import com.google.cloud.securitycenter.v1.GroupAssetsResponse; @@ -67,12 +75,18 @@ import com.google.cloud.securitycenter.v1.ListAssetsResponse; import com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest; import com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse; +import com.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest; +import com.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse; +import com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest; +import com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse; import com.google.cloud.securitycenter.v1.ListFindingsRequest; import com.google.cloud.securitycenter.v1.ListFindingsResponse; import com.google.cloud.securitycenter.v1.ListMuteConfigsRequest; import com.google.cloud.securitycenter.v1.ListMuteConfigsResponse; import com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest; import com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse; +import com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest; +import com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse; import com.google.cloud.securitycenter.v1.ListSourcesRequest; import com.google.cloud.securitycenter.v1.ListSourcesResponse; import com.google.cloud.securitycenter.v1.MuteConfig; @@ -80,6 +94,7 @@ import com.google.cloud.securitycenter.v1.OrganizationSettings; import com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest; import com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; import com.google.cloud.securitycenter.v1.SecurityMarks; import com.google.cloud.securitycenter.v1.SetFindingStateRequest; import com.google.cloud.securitycenter.v1.SetMuteRequest; @@ -90,6 +105,7 @@ import com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest; import com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest; import com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest; +import com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest; import com.google.cloud.securitycenter.v1.UpdateSourceRequest; import com.google.common.collect.ImmutableMap; @@ -168,6 +184,55 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor< + CreateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + createSecurityHealthAnalyticsCustomModuleMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/CreateSecurityHealthAnalyticsCustomModule") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{parent=organizations/*/securityHealthAnalyticsSettings}/customModules", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=folders/*/securityHealthAnalyticsSettings}/customModules", + "/v1/{parent=projects/*/securityHealthAnalyticsSettings}/customModules") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "securityHealthAnalyticsCustomModule", + request.getSecurityHealthAnalyticsCustomModule(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SecurityHealthAnalyticsCustomModule.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor createSourceMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -403,6 +468,45 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub { .build()) .build(); + private static final ApiMethodDescriptor + deleteSecurityHealthAnalyticsCustomModuleMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/DeleteSecurityHealthAnalyticsCustomModule") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{name=organizations/*/securityHealthAnalyticsSettings/customModules/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=folders/*/securityHealthAnalyticsSettings/customModules/*}", + "/v1/{name=projects/*/securityHealthAnalyticsSettings/customModules/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor getBigQueryExportMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -587,6 +691,96 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub { .build()) .build(); + private static final ApiMethodDescriptor< + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, + EffectiveSecurityHealthAnalyticsCustomModule> + getEffectiveSecurityHealthAnalyticsCustomModuleMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/GetEffectiveSecurityHealthAnalyticsCustomModule") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{name=organizations/*/securityHealthAnalyticsSettings/effectiveCustomModules/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer< + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest> + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=folders/*/securityHealthAnalyticsSettings/effectiveCustomModules/*}", + "/v1/{name=projects/*/securityHealthAnalyticsSettings/effectiveCustomModules/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer< + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest> + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser + .newBuilder() + .setDefaultInstance( + EffectiveSecurityHealthAnalyticsCustomModule.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + GetSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + getSecurityHealthAnalyticsCustomModuleMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/GetSecurityHealthAnalyticsCustomModule") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{name=organizations/*/securityHealthAnalyticsSettings/customModules/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=folders/*/securityHealthAnalyticsSettings/customModules/*}", + "/v1/{name=projects/*/securityHealthAnalyticsSettings/customModules/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SecurityHealthAnalyticsCustomModule.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor getSourceMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.securitycenter.v1.SecurityCenter/GetSource") @@ -744,6 +938,57 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub { .build()) .build(); + private static final ApiMethodDescriptor< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + ListDescendantSecurityHealthAnalyticsCustomModulesResponse> + listDescendantSecurityHealthAnalyticsCustomModulesMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/ListDescendantSecurityHealthAnalyticsCustomModules") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{parent=organizations/*/securityHealthAnalyticsSettings}/customModules:listDescendant", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest> + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=folders/*/securityHealthAnalyticsSettings}/customModules:listDescendant", + "/v1/{parent=projects/*/securityHealthAnalyticsSettings}/customModules:listDescendant") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest> + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser + .newBuilder() + .setDefaultInstance( + ListDescendantSecurityHealthAnalyticsCustomModulesResponse + .getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listFindingsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -870,6 +1115,105 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub { .build()) .build(); + private static final ApiMethodDescriptor< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> + listEffectiveSecurityHealthAnalyticsCustomModulesMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/ListEffectiveSecurityHealthAnalyticsCustomModules") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{parent=organizations/*/securityHealthAnalyticsSettings}/effectiveCustomModules", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest> + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=folders/*/securityHealthAnalyticsSettings}/effectiveCustomModules", + "/v1/{parent=projects/*/securityHealthAnalyticsSettings}/effectiveCustomModules") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest> + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser + .newBuilder() + .setDefaultInstance( + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + .getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListSecurityHealthAnalyticsCustomModulesRequest, + ListSecurityHealthAnalyticsCustomModulesResponse> + listSecurityHealthAnalyticsCustomModulesMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/ListSecurityHealthAnalyticsCustomModules") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{parent=organizations/*/securityHealthAnalyticsSettings}/customModules", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=folders/*/securityHealthAnalyticsSettings}/customModules", + "/v1/{parent=projects/*/securityHealthAnalyticsSettings}/customModules") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser + .newBuilder() + .setDefaultInstance( + ListSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listSourcesMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1321,6 +1665,59 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub { .build()) .build(); + private static final ApiMethodDescriptor< + UpdateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + updateSecurityHealthAnalyticsCustomModuleMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.securitycenter.v1.SecurityCenter/UpdateSecurityHealthAnalyticsCustomModule") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{securityHealthAnalyticsCustomModule.name=organizations/*/securityHealthAnalyticsSettings/customModules/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "securityHealthAnalyticsCustomModule.name", + request.getSecurityHealthAnalyticsCustomModule().getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{securityHealthAnalyticsCustomModule.name=folders/*/securityHealthAnalyticsSettings/customModules/*}", + "/v1/{securityHealthAnalyticsCustomModule.name=projects/*/securityHealthAnalyticsSettings/customModules/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "securityHealthAnalyticsCustomModule", + request.getSecurityHealthAnalyticsCustomModule(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SecurityHealthAnalyticsCustomModule.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor updateSourceMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1576,6 +1973,9 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub { private final UnaryCallable bulkMuteFindingsCallable; private final OperationCallable bulkMuteFindingsOperationCallable; + private final UnaryCallable< + CreateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + createSecurityHealthAnalyticsCustomModuleCallable; private final UnaryCallable createSourceCallable; private final UnaryCallable createFindingCallable; private final UnaryCallable createMuteConfigCallable; @@ -1584,6 +1984,8 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub { private final UnaryCallable deleteMuteConfigCallable; private final UnaryCallable deleteNotificationConfigCallable; + private final UnaryCallable + deleteSecurityHealthAnalyticsCustomModuleCallable; private final UnaryCallable getBigQueryExportCallable; private final UnaryCallable getIamPolicyCallable; private final UnaryCallable getMuteConfigCallable; @@ -1591,6 +1993,13 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub { getNotificationConfigCallable; private final UnaryCallable getOrganizationSettingsCallable; + private final UnaryCallable< + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, + EffectiveSecurityHealthAnalyticsCustomModule> + getEffectiveSecurityHealthAnalyticsCustomModuleCallable; + private final UnaryCallable< + GetSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + getSecurityHealthAnalyticsCustomModuleCallable; private final UnaryCallable getSourceCallable; private final UnaryCallable groupAssetsCallable; private final UnaryCallable @@ -1600,6 +2009,14 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub { groupFindingsPagedCallable; private final UnaryCallable listAssetsCallable; private final UnaryCallable listAssetsPagedCallable; + private final UnaryCallable< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + ListDescendantSecurityHealthAnalyticsCustomModulesResponse> + listDescendantSecurityHealthAnalyticsCustomModulesCallable; + private final UnaryCallable< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse> + listDescendantSecurityHealthAnalyticsCustomModulesPagedCallable; private final UnaryCallable listFindingsCallable; private final UnaryCallable listFindingsPagedCallable; @@ -1611,6 +2028,22 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub { listNotificationConfigsCallable; private final UnaryCallable listNotificationConfigsPagedCallable; + private final UnaryCallable< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> + listEffectiveSecurityHealthAnalyticsCustomModulesCallable; + private final UnaryCallable< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse> + listEffectiveSecurityHealthAnalyticsCustomModulesPagedCallable; + private final UnaryCallable< + ListSecurityHealthAnalyticsCustomModulesRequest, + ListSecurityHealthAnalyticsCustomModulesResponse> + listSecurityHealthAnalyticsCustomModulesCallable; + private final UnaryCallable< + ListSecurityHealthAnalyticsCustomModulesRequest, + ListSecurityHealthAnalyticsCustomModulesPagedResponse> + listSecurityHealthAnalyticsCustomModulesPagedCallable; private final UnaryCallable listSourcesCallable; private final UnaryCallable listSourcesPagedCallable; @@ -1630,6 +2063,9 @@ public class HttpJsonSecurityCenterStub extends SecurityCenterStub { updateNotificationConfigCallable; private final UnaryCallable updateOrganizationSettingsCallable; + private final UnaryCallable< + UpdateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + updateSecurityHealthAnalyticsCustomModuleCallable; private final UnaryCallable updateSourceCallable; private final UnaryCallable updateSecurityMarksCallable; @@ -1714,6 +2150,16 @@ protected HttpJsonSecurityCenterStub( .setMethodDescriptor(bulkMuteFindingsMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings< + CreateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + createSecurityHealthAnalyticsCustomModuleTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(createSecurityHealthAnalyticsCustomModuleMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings createSourceTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(createSourceMethodDescriptor) @@ -1746,6 +2192,13 @@ protected HttpJsonSecurityCenterStub( .setMethodDescriptor(deleteNotificationConfigMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings + deleteSecurityHealthAnalyticsCustomModuleTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(deleteSecurityHealthAnalyticsCustomModuleMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings getBigQueryExportTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1774,6 +2227,28 @@ protected HttpJsonSecurityCenterStub( .setMethodDescriptor(getOrganizationSettingsMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings< + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, + EffectiveSecurityHealthAnalyticsCustomModule> + getEffectiveSecurityHealthAnalyticsCustomModuleTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor( + getEffectiveSecurityHealthAnalyticsCustomModuleMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings< + GetSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + getSecurityHealthAnalyticsCustomModuleTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(getSecurityHealthAnalyticsCustomModuleMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings getSourceTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getSourceMethodDescriptor) @@ -1795,6 +2270,18 @@ protected HttpJsonSecurityCenterStub( .setMethodDescriptor(listAssetsMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + ListDescendantSecurityHealthAnalyticsCustomModulesResponse> + listDescendantSecurityHealthAnalyticsCustomModulesTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor( + listDescendantSecurityHealthAnalyticsCustomModulesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings listFindingsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listFindingsMethodDescriptor) @@ -1813,6 +2300,29 @@ protected HttpJsonSecurityCenterStub( .setMethodDescriptor(listNotificationConfigsMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> + listEffectiveSecurityHealthAnalyticsCustomModulesTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor( + listEffectiveSecurityHealthAnalyticsCustomModulesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings< + ListSecurityHealthAnalyticsCustomModulesRequest, + ListSecurityHealthAnalyticsCustomModulesResponse> + listSecurityHealthAnalyticsCustomModulesTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listSecurityHealthAnalyticsCustomModulesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings listSourcesTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listSourcesMethodDescriptor) @@ -1873,6 +2383,16 @@ protected HttpJsonSecurityCenterStub( .setMethodDescriptor(updateOrganizationSettingsMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings< + UpdateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + updateSecurityHealthAnalyticsCustomModuleTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(updateSecurityHealthAnalyticsCustomModuleMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings updateSourceTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(updateSourceMethodDescriptor) @@ -1918,6 +2438,11 @@ protected HttpJsonSecurityCenterStub( settings.bulkMuteFindingsOperationSettings(), clientContext, httpJsonOperationsStub); + this.createSecurityHealthAnalyticsCustomModuleCallable = + callableFactory.createUnaryCallable( + createSecurityHealthAnalyticsCustomModuleTransportSettings, + settings.createSecurityHealthAnalyticsCustomModuleSettings(), + clientContext); this.createSourceCallable = callableFactory.createUnaryCallable( createSourceTransportSettings, settings.createSourceSettings(), clientContext); @@ -1940,6 +2465,11 @@ protected HttpJsonSecurityCenterStub( deleteNotificationConfigTransportSettings, settings.deleteNotificationConfigSettings(), clientContext); + this.deleteSecurityHealthAnalyticsCustomModuleCallable = + callableFactory.createUnaryCallable( + deleteSecurityHealthAnalyticsCustomModuleTransportSettings, + settings.deleteSecurityHealthAnalyticsCustomModuleSettings(), + clientContext); this.getBigQueryExportCallable = callableFactory.createUnaryCallable( getBigQueryExportTransportSettings, @@ -1961,6 +2491,16 @@ protected HttpJsonSecurityCenterStub( getOrganizationSettingsTransportSettings, settings.getOrganizationSettingsSettings(), clientContext); + this.getEffectiveSecurityHealthAnalyticsCustomModuleCallable = + callableFactory.createUnaryCallable( + getEffectiveSecurityHealthAnalyticsCustomModuleTransportSettings, + settings.getEffectiveSecurityHealthAnalyticsCustomModuleSettings(), + clientContext); + this.getSecurityHealthAnalyticsCustomModuleCallable = + callableFactory.createUnaryCallable( + getSecurityHealthAnalyticsCustomModuleTransportSettings, + settings.getSecurityHealthAnalyticsCustomModuleSettings(), + clientContext); this.getSourceCallable = callableFactory.createUnaryCallable( getSourceTransportSettings, settings.getSourceSettings(), clientContext); @@ -1982,6 +2522,16 @@ protected HttpJsonSecurityCenterStub( this.listAssetsPagedCallable = callableFactory.createPagedCallable( listAssetsTransportSettings, settings.listAssetsSettings(), clientContext); + this.listDescendantSecurityHealthAnalyticsCustomModulesCallable = + callableFactory.createUnaryCallable( + listDescendantSecurityHealthAnalyticsCustomModulesTransportSettings, + settings.listDescendantSecurityHealthAnalyticsCustomModulesSettings(), + clientContext); + this.listDescendantSecurityHealthAnalyticsCustomModulesPagedCallable = + callableFactory.createPagedCallable( + listDescendantSecurityHealthAnalyticsCustomModulesTransportSettings, + settings.listDescendantSecurityHealthAnalyticsCustomModulesSettings(), + clientContext); this.listFindingsCallable = callableFactory.createUnaryCallable( listFindingsTransportSettings, settings.listFindingsSettings(), clientContext); @@ -2004,6 +2554,26 @@ protected HttpJsonSecurityCenterStub( listNotificationConfigsTransportSettings, settings.listNotificationConfigsSettings(), clientContext); + this.listEffectiveSecurityHealthAnalyticsCustomModulesCallable = + callableFactory.createUnaryCallable( + listEffectiveSecurityHealthAnalyticsCustomModulesTransportSettings, + settings.listEffectiveSecurityHealthAnalyticsCustomModulesSettings(), + clientContext); + this.listEffectiveSecurityHealthAnalyticsCustomModulesPagedCallable = + callableFactory.createPagedCallable( + listEffectiveSecurityHealthAnalyticsCustomModulesTransportSettings, + settings.listEffectiveSecurityHealthAnalyticsCustomModulesSettings(), + clientContext); + this.listSecurityHealthAnalyticsCustomModulesCallable = + callableFactory.createUnaryCallable( + listSecurityHealthAnalyticsCustomModulesTransportSettings, + settings.listSecurityHealthAnalyticsCustomModulesSettings(), + clientContext); + this.listSecurityHealthAnalyticsCustomModulesPagedCallable = + callableFactory.createPagedCallable( + listSecurityHealthAnalyticsCustomModulesTransportSettings, + settings.listSecurityHealthAnalyticsCustomModulesSettings(), + clientContext); this.listSourcesCallable = callableFactory.createUnaryCallable( listSourcesTransportSettings, settings.listSourcesSettings(), clientContext); @@ -2056,6 +2626,11 @@ protected HttpJsonSecurityCenterStub( updateOrganizationSettingsTransportSettings, settings.updateOrganizationSettingsSettings(), clientContext); + this.updateSecurityHealthAnalyticsCustomModuleCallable = + callableFactory.createUnaryCallable( + updateSecurityHealthAnalyticsCustomModuleTransportSettings, + settings.updateSecurityHealthAnalyticsCustomModuleSettings(), + clientContext); this.updateSourceCallable = callableFactory.createUnaryCallable( updateSourceTransportSettings, settings.updateSourceSettings(), clientContext); @@ -2098,24 +2673,31 @@ protected HttpJsonSecurityCenterStub( public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(bulkMuteFindingsMethodDescriptor); + methodDescriptors.add(createSecurityHealthAnalyticsCustomModuleMethodDescriptor); methodDescriptors.add(createSourceMethodDescriptor); methodDescriptors.add(createFindingMethodDescriptor); methodDescriptors.add(createMuteConfigMethodDescriptor); methodDescriptors.add(createNotificationConfigMethodDescriptor); methodDescriptors.add(deleteMuteConfigMethodDescriptor); methodDescriptors.add(deleteNotificationConfigMethodDescriptor); + methodDescriptors.add(deleteSecurityHealthAnalyticsCustomModuleMethodDescriptor); methodDescriptors.add(getBigQueryExportMethodDescriptor); methodDescriptors.add(getIamPolicyMethodDescriptor); methodDescriptors.add(getMuteConfigMethodDescriptor); methodDescriptors.add(getNotificationConfigMethodDescriptor); methodDescriptors.add(getOrganizationSettingsMethodDescriptor); + methodDescriptors.add(getEffectiveSecurityHealthAnalyticsCustomModuleMethodDescriptor); + methodDescriptors.add(getSecurityHealthAnalyticsCustomModuleMethodDescriptor); methodDescriptors.add(getSourceMethodDescriptor); methodDescriptors.add(groupAssetsMethodDescriptor); methodDescriptors.add(groupFindingsMethodDescriptor); methodDescriptors.add(listAssetsMethodDescriptor); + methodDescriptors.add(listDescendantSecurityHealthAnalyticsCustomModulesMethodDescriptor); methodDescriptors.add(listFindingsMethodDescriptor); methodDescriptors.add(listMuteConfigsMethodDescriptor); methodDescriptors.add(listNotificationConfigsMethodDescriptor); + methodDescriptors.add(listEffectiveSecurityHealthAnalyticsCustomModulesMethodDescriptor); + methodDescriptors.add(listSecurityHealthAnalyticsCustomModulesMethodDescriptor); methodDescriptors.add(listSourcesMethodDescriptor); methodDescriptors.add(runAssetDiscoveryMethodDescriptor); methodDescriptors.add(setFindingStateMethodDescriptor); @@ -2127,6 +2709,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(updateMuteConfigMethodDescriptor); methodDescriptors.add(updateNotificationConfigMethodDescriptor); methodDescriptors.add(updateOrganizationSettingsMethodDescriptor); + methodDescriptors.add(updateSecurityHealthAnalyticsCustomModuleMethodDescriptor); methodDescriptors.add(updateSourceMethodDescriptor); methodDescriptors.add(updateSecurityMarksMethodDescriptor); methodDescriptors.add(createBigQueryExportMethodDescriptor); @@ -2151,6 +2734,13 @@ public UnaryCallable bulkMuteFindingsCallabl return bulkMuteFindingsOperationCallable; } + @Override + public UnaryCallable< + CreateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + createSecurityHealthAnalyticsCustomModuleCallable() { + return createSecurityHealthAnalyticsCustomModuleCallable; + } + @Override public UnaryCallable createSourceCallable() { return createSourceCallable; @@ -2182,6 +2772,12 @@ public UnaryCallable deleteNotificationC return deleteNotificationConfigCallable; } + @Override + public UnaryCallable + deleteSecurityHealthAnalyticsCustomModuleCallable() { + return deleteSecurityHealthAnalyticsCustomModuleCallable; + } + @Override public UnaryCallable getBigQueryExportCallable() { return getBigQueryExportCallable; @@ -2209,6 +2805,21 @@ public UnaryCallable getMuteConfigCallable() { return getOrganizationSettingsCallable; } + @Override + public UnaryCallable< + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, + EffectiveSecurityHealthAnalyticsCustomModule> + getEffectiveSecurityHealthAnalyticsCustomModuleCallable() { + return getEffectiveSecurityHealthAnalyticsCustomModuleCallable; + } + + @Override + public UnaryCallable< + GetSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + getSecurityHealthAnalyticsCustomModuleCallable() { + return getSecurityHealthAnalyticsCustomModuleCallable; + } + @Override public UnaryCallable getSourceCallable() { return getSourceCallable; @@ -2245,6 +2856,22 @@ public UnaryCallable listAssetsPaged return listAssetsPagedCallable; } + @Override + public UnaryCallable< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + ListDescendantSecurityHealthAnalyticsCustomModulesResponse> + listDescendantSecurityHealthAnalyticsCustomModulesCallable() { + return listDescendantSecurityHealthAnalyticsCustomModulesCallable; + } + + @Override + public UnaryCallable< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse> + listDescendantSecurityHealthAnalyticsCustomModulesPagedCallable() { + return listDescendantSecurityHealthAnalyticsCustomModulesPagedCallable; + } + @Override public UnaryCallable listFindingsCallable() { return listFindingsCallable; @@ -2278,6 +2905,38 @@ public UnaryCallable listMuteCo return listNotificationConfigsPagedCallable; } + @Override + public UnaryCallable< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> + listEffectiveSecurityHealthAnalyticsCustomModulesCallable() { + return listEffectiveSecurityHealthAnalyticsCustomModulesCallable; + } + + @Override + public UnaryCallable< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse> + listEffectiveSecurityHealthAnalyticsCustomModulesPagedCallable() { + return listEffectiveSecurityHealthAnalyticsCustomModulesPagedCallable; + } + + @Override + public UnaryCallable< + ListSecurityHealthAnalyticsCustomModulesRequest, + ListSecurityHealthAnalyticsCustomModulesResponse> + listSecurityHealthAnalyticsCustomModulesCallable() { + return listSecurityHealthAnalyticsCustomModulesCallable; + } + + @Override + public UnaryCallable< + ListSecurityHealthAnalyticsCustomModulesRequest, + ListSecurityHealthAnalyticsCustomModulesPagedResponse> + listSecurityHealthAnalyticsCustomModulesPagedCallable() { + return listSecurityHealthAnalyticsCustomModulesPagedCallable; + } + @Override public UnaryCallable listSourcesCallable() { return listSourcesCallable; @@ -2347,6 +3006,13 @@ public UnaryCallable updateMuteConfigCallab return updateOrganizationSettingsCallable; } + @Override + public UnaryCallable< + UpdateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + updateSecurityHealthAnalyticsCustomModuleCallable() { + return updateSecurityHealthAnalyticsCustomModuleCallable; + } + @Override public UnaryCallable updateSourceCallable() { return updateSourceCallable; diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java index 4207bbc3a47d..aae153937c2b 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStub.java @@ -20,9 +20,12 @@ import static com.google.cloud.securitycenter.v1.SecurityCenterClient.GroupFindingsPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListAssetsPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListBigQueryExportsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListFindingsPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListMuteConfigsPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListNotificationConfigsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSourcesPagedResponse; import com.google.api.gax.core.BackgroundResource; @@ -35,16 +38,21 @@ import com.google.cloud.securitycenter.v1.CreateFindingRequest; import com.google.cloud.securitycenter.v1.CreateMuteConfigRequest; import com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest; +import com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycenter.v1.CreateSourceRequest; import com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest; import com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest; import com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest; +import com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest; +import com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule; import com.google.cloud.securitycenter.v1.ExternalSystem; import com.google.cloud.securitycenter.v1.Finding; import com.google.cloud.securitycenter.v1.GetBigQueryExportRequest; +import com.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycenter.v1.GetMuteConfigRequest; import com.google.cloud.securitycenter.v1.GetNotificationConfigRequest; import com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest; +import com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycenter.v1.GetSourceRequest; import com.google.cloud.securitycenter.v1.GroupAssetsRequest; import com.google.cloud.securitycenter.v1.GroupAssetsResponse; @@ -54,12 +62,18 @@ import com.google.cloud.securitycenter.v1.ListAssetsResponse; import com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest; import com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse; +import com.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest; +import com.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse; +import com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest; +import com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse; import com.google.cloud.securitycenter.v1.ListFindingsRequest; import com.google.cloud.securitycenter.v1.ListFindingsResponse; import com.google.cloud.securitycenter.v1.ListMuteConfigsRequest; import com.google.cloud.securitycenter.v1.ListMuteConfigsResponse; import com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest; import com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse; +import com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest; +import com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse; import com.google.cloud.securitycenter.v1.ListSourcesRequest; import com.google.cloud.securitycenter.v1.ListSourcesResponse; import com.google.cloud.securitycenter.v1.MuteConfig; @@ -67,6 +81,7 @@ import com.google.cloud.securitycenter.v1.OrganizationSettings; import com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest; import com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; import com.google.cloud.securitycenter.v1.SecurityMarks; import com.google.cloud.securitycenter.v1.SetFindingStateRequest; import com.google.cloud.securitycenter.v1.SetMuteRequest; @@ -77,6 +92,7 @@ import com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest; import com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest; import com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest; +import com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest; import com.google.cloud.securitycenter.v1.UpdateSourceRequest; import com.google.iam.v1.GetIamPolicyRequest; @@ -115,6 +131,13 @@ public UnaryCallable bulkMuteFindingsCallabl throw new UnsupportedOperationException("Not implemented: bulkMuteFindingsCallable()"); } + public UnaryCallable< + CreateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + createSecurityHealthAnalyticsCustomModuleCallable() { + throw new UnsupportedOperationException( + "Not implemented: createSecurityHealthAnalyticsCustomModuleCallable()"); + } + public UnaryCallable createSourceCallable() { throw new UnsupportedOperationException("Not implemented: createSourceCallable()"); } @@ -140,6 +163,12 @@ public UnaryCallable deleteNotificationC throw new UnsupportedOperationException("Not implemented: deleteNotificationConfigCallable()"); } + public UnaryCallable + deleteSecurityHealthAnalyticsCustomModuleCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteSecurityHealthAnalyticsCustomModuleCallable()"); + } + public UnaryCallable getBigQueryExportCallable() { throw new UnsupportedOperationException("Not implemented: getBigQueryExportCallable()"); } @@ -162,6 +191,21 @@ public UnaryCallable getMuteConfigCallable() { throw new UnsupportedOperationException("Not implemented: getOrganizationSettingsCallable()"); } + public UnaryCallable< + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, + EffectiveSecurityHealthAnalyticsCustomModule> + getEffectiveSecurityHealthAnalyticsCustomModuleCallable() { + throw new UnsupportedOperationException( + "Not implemented: getEffectiveSecurityHealthAnalyticsCustomModuleCallable()"); + } + + public UnaryCallable< + GetSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + getSecurityHealthAnalyticsCustomModuleCallable() { + throw new UnsupportedOperationException( + "Not implemented: getSecurityHealthAnalyticsCustomModuleCallable()"); + } + public UnaryCallable getSourceCallable() { throw new UnsupportedOperationException("Not implemented: getSourceCallable()"); } @@ -191,6 +235,22 @@ public UnaryCallable listAssetsCallable() throw new UnsupportedOperationException("Not implemented: listAssetsCallable()"); } + public UnaryCallable< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse> + listDescendantSecurityHealthAnalyticsCustomModulesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listDescendantSecurityHealthAnalyticsCustomModulesPagedCallable()"); + } + + public UnaryCallable< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + ListDescendantSecurityHealthAnalyticsCustomModulesResponse> + listDescendantSecurityHealthAnalyticsCustomModulesCallable() { + throw new UnsupportedOperationException( + "Not implemented: listDescendantSecurityHealthAnalyticsCustomModulesCallable()"); + } + public UnaryCallable listFindingsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listFindingsPagedCallable()"); } @@ -219,6 +279,38 @@ public UnaryCallable listMuteCo throw new UnsupportedOperationException("Not implemented: listNotificationConfigsCallable()"); } + public UnaryCallable< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse> + listEffectiveSecurityHealthAnalyticsCustomModulesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listEffectiveSecurityHealthAnalyticsCustomModulesPagedCallable()"); + } + + public UnaryCallable< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> + listEffectiveSecurityHealthAnalyticsCustomModulesCallable() { + throw new UnsupportedOperationException( + "Not implemented: listEffectiveSecurityHealthAnalyticsCustomModulesCallable()"); + } + + public UnaryCallable< + ListSecurityHealthAnalyticsCustomModulesRequest, + ListSecurityHealthAnalyticsCustomModulesPagedResponse> + listSecurityHealthAnalyticsCustomModulesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listSecurityHealthAnalyticsCustomModulesPagedCallable()"); + } + + public UnaryCallable< + ListSecurityHealthAnalyticsCustomModulesRequest, + ListSecurityHealthAnalyticsCustomModulesResponse> + listSecurityHealthAnalyticsCustomModulesCallable() { + throw new UnsupportedOperationException( + "Not implemented: listSecurityHealthAnalyticsCustomModulesCallable()"); + } + public UnaryCallable listSourcesPagedCallable() { throw new UnsupportedOperationException("Not implemented: listSourcesPagedCallable()"); } @@ -277,6 +369,13 @@ public UnaryCallable updateMuteConfigCallab "Not implemented: updateOrganizationSettingsCallable()"); } + public UnaryCallable< + UpdateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule> + updateSecurityHealthAnalyticsCustomModuleCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateSecurityHealthAnalyticsCustomModuleCallable()"); + } + public UnaryCallable updateSourceCallable() { throw new UnsupportedOperationException("Not implemented: updateSourceCallable()"); } diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java index 285811af4acb..45e6404c8be6 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/SecurityCenterStubSettings.java @@ -20,9 +20,12 @@ import static com.google.cloud.securitycenter.v1.SecurityCenterClient.GroupFindingsPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListAssetsPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListBigQueryExportsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListFindingsPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListMuteConfigsPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListNotificationConfigsPagedResponse; +import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse; import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSourcesPagedResponse; import com.google.api.core.ApiFunction; @@ -61,16 +64,21 @@ import com.google.cloud.securitycenter.v1.CreateFindingRequest; import com.google.cloud.securitycenter.v1.CreateMuteConfigRequest; import com.google.cloud.securitycenter.v1.CreateNotificationConfigRequest; +import com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycenter.v1.CreateSourceRequest; import com.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest; import com.google.cloud.securitycenter.v1.DeleteMuteConfigRequest; import com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest; +import com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest; +import com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule; import com.google.cloud.securitycenter.v1.ExternalSystem; import com.google.cloud.securitycenter.v1.Finding; import com.google.cloud.securitycenter.v1.GetBigQueryExportRequest; +import com.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycenter.v1.GetMuteConfigRequest; import com.google.cloud.securitycenter.v1.GetNotificationConfigRequest; import com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest; +import com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycenter.v1.GetSourceRequest; import com.google.cloud.securitycenter.v1.GroupAssetsRequest; import com.google.cloud.securitycenter.v1.GroupAssetsResponse; @@ -81,12 +89,18 @@ import com.google.cloud.securitycenter.v1.ListAssetsResponse; import com.google.cloud.securitycenter.v1.ListBigQueryExportsRequest; import com.google.cloud.securitycenter.v1.ListBigQueryExportsResponse; +import com.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest; +import com.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse; +import com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest; +import com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse; import com.google.cloud.securitycenter.v1.ListFindingsRequest; import com.google.cloud.securitycenter.v1.ListFindingsResponse; import com.google.cloud.securitycenter.v1.ListMuteConfigsRequest; import com.google.cloud.securitycenter.v1.ListMuteConfigsResponse; import com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest; import com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse; +import com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest; +import com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse; import com.google.cloud.securitycenter.v1.ListSourcesRequest; import com.google.cloud.securitycenter.v1.ListSourcesResponse; import com.google.cloud.securitycenter.v1.MuteConfig; @@ -94,6 +108,7 @@ import com.google.cloud.securitycenter.v1.OrganizationSettings; import com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest; import com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponse; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; import com.google.cloud.securitycenter.v1.SecurityMarks; import com.google.cloud.securitycenter.v1.SetFindingStateRequest; import com.google.cloud.securitycenter.v1.SetMuteRequest; @@ -104,6 +119,7 @@ import com.google.cloud.securitycenter.v1.UpdateMuteConfigRequest; import com.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest; import com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest; +import com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest; import com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest; import com.google.cloud.securitycenter.v1.UpdateSourceRequest; import com.google.common.collect.ImmutableList; @@ -138,7 +154,8 @@ *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *

For example, to set the total timeout of createSource to 30 seconds: + *

For example, to set the total timeout of createSecurityHealthAnalyticsCustomModule to 30 + * seconds: * *

{@code
  * // This snippet has been automatically generated and should be regarded as a code template only.
@@ -149,10 +166,10 @@
  * SecurityCenterStubSettings.Builder securityCenterSettingsBuilder =
  *     SecurityCenterStubSettings.newBuilder();
  * securityCenterSettingsBuilder
- *     .createSourceSettings()
+ *     .createSecurityHealthAnalyticsCustomModuleSettings()
  *     .setRetrySettings(
  *         securityCenterSettingsBuilder
- *             .createSourceSettings()
+ *             .createSecurityHealthAnalyticsCustomModuleSettings()
  *             .getRetrySettings()
  *             .toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
@@ -169,6 +186,9 @@ public class SecurityCenterStubSettings extends StubSettings bulkMuteFindingsSettings;
   private final OperationCallSettings
       bulkMuteFindingsOperationSettings;
+  private final UnaryCallSettings<
+          CreateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule>
+      createSecurityHealthAnalyticsCustomModuleSettings;
   private final UnaryCallSettings createSourceSettings;
   private final UnaryCallSettings createFindingSettings;
   private final UnaryCallSettings createMuteConfigSettings;
@@ -177,6 +197,8 @@ public class SecurityCenterStubSettings extends StubSettings deleteMuteConfigSettings;
   private final UnaryCallSettings
       deleteNotificationConfigSettings;
+  private final UnaryCallSettings
+      deleteSecurityHealthAnalyticsCustomModuleSettings;
   private final UnaryCallSettings
       getBigQueryExportSettings;
   private final UnaryCallSettings getIamPolicySettings;
@@ -185,6 +207,13 @@ public class SecurityCenterStubSettings extends StubSettings
       getOrganizationSettingsSettings;
+  private final UnaryCallSettings<
+          GetEffectiveSecurityHealthAnalyticsCustomModuleRequest,
+          EffectiveSecurityHealthAnalyticsCustomModule>
+      getEffectiveSecurityHealthAnalyticsCustomModuleSettings;
+  private final UnaryCallSettings<
+          GetSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule>
+      getSecurityHealthAnalyticsCustomModuleSettings;
   private final UnaryCallSettings getSourceSettings;
   private final PagedCallSettings
       groupAssetsSettings;
@@ -193,6 +222,11 @@ public class SecurityCenterStubSettings extends StubSettings
       listAssetsSettings;
+  private final PagedCallSettings<
+          ListDescendantSecurityHealthAnalyticsCustomModulesRequest,
+          ListDescendantSecurityHealthAnalyticsCustomModulesResponse,
+          ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse>
+      listDescendantSecurityHealthAnalyticsCustomModulesSettings;
   private final PagedCallSettings<
           ListFindingsRequest, ListFindingsResponse, ListFindingsPagedResponse>
       listFindingsSettings;
@@ -204,6 +238,16 @@ public class SecurityCenterStubSettings extends StubSettings
       listNotificationConfigsSettings;
+  private final PagedCallSettings<
+          ListEffectiveSecurityHealthAnalyticsCustomModulesRequest,
+          ListEffectiveSecurityHealthAnalyticsCustomModulesResponse,
+          ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse>
+      listEffectiveSecurityHealthAnalyticsCustomModulesSettings;
+  private final PagedCallSettings<
+          ListSecurityHealthAnalyticsCustomModulesRequest,
+          ListSecurityHealthAnalyticsCustomModulesResponse,
+          ListSecurityHealthAnalyticsCustomModulesPagedResponse>
+      listSecurityHealthAnalyticsCustomModulesSettings;
   private final PagedCallSettings
       listSourcesSettings;
   private final UnaryCallSettings runAssetDiscoverySettings;
@@ -222,6 +266,9 @@ public class SecurityCenterStubSettings extends StubSettings
       updateOrganizationSettingsSettings;
+  private final UnaryCallSettings<
+          UpdateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule>
+      updateSecurityHealthAnalyticsCustomModuleSettings;
   private final UnaryCallSettings updateSourceSettings;
   private final UnaryCallSettings
       updateSecurityMarksSettings;
@@ -345,6 +392,57 @@ public Iterable extractResources(
             }
           };
 
+  private static final PagedListDescriptor<
+          ListDescendantSecurityHealthAnalyticsCustomModulesRequest,
+          ListDescendantSecurityHealthAnalyticsCustomModulesResponse,
+          SecurityHealthAnalyticsCustomModule>
+      LIST_DESCENDANT_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_PAGE_STR_DESC =
+          new PagedListDescriptor<
+              ListDescendantSecurityHealthAnalyticsCustomModulesRequest,
+              ListDescendantSecurityHealthAnalyticsCustomModulesResponse,
+              SecurityHealthAnalyticsCustomModule>() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListDescendantSecurityHealthAnalyticsCustomModulesRequest injectToken(
+                ListDescendantSecurityHealthAnalyticsCustomModulesRequest payload, String token) {
+              return ListDescendantSecurityHealthAnalyticsCustomModulesRequest.newBuilder(payload)
+                  .setPageToken(token)
+                  .build();
+            }
+
+            @Override
+            public ListDescendantSecurityHealthAnalyticsCustomModulesRequest injectPageSize(
+                ListDescendantSecurityHealthAnalyticsCustomModulesRequest payload, int pageSize) {
+              return ListDescendantSecurityHealthAnalyticsCustomModulesRequest.newBuilder(payload)
+                  .setPageSize(pageSize)
+                  .build();
+            }
+
+            @Override
+            public Integer extractPageSize(
+                ListDescendantSecurityHealthAnalyticsCustomModulesRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(
+                ListDescendantSecurityHealthAnalyticsCustomModulesResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(
+                ListDescendantSecurityHealthAnalyticsCustomModulesResponse payload) {
+              return payload.getSecurityHealthAnalyticsCustomModulesList() == null
+                  ? ImmutableList.of()
+                  : payload.getSecurityHealthAnalyticsCustomModulesList();
+            }
+          };
+
   private static final PagedListDescriptor<
           ListFindingsRequest, ListFindingsResponse, ListFindingsResponse.ListFindingsResult>
       LIST_FINDINGS_PAGE_STR_DESC =
@@ -470,6 +568,108 @@ public Iterable extractResources(
             }
           };
 
+  private static final PagedListDescriptor<
+          ListEffectiveSecurityHealthAnalyticsCustomModulesRequest,
+          ListEffectiveSecurityHealthAnalyticsCustomModulesResponse,
+          EffectiveSecurityHealthAnalyticsCustomModule>
+      LIST_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_PAGE_STR_DESC =
+          new PagedListDescriptor<
+              ListEffectiveSecurityHealthAnalyticsCustomModulesRequest,
+              ListEffectiveSecurityHealthAnalyticsCustomModulesResponse,
+              EffectiveSecurityHealthAnalyticsCustomModule>() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListEffectiveSecurityHealthAnalyticsCustomModulesRequest injectToken(
+                ListEffectiveSecurityHealthAnalyticsCustomModulesRequest payload, String token) {
+              return ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.newBuilder(payload)
+                  .setPageToken(token)
+                  .build();
+            }
+
+            @Override
+            public ListEffectiveSecurityHealthAnalyticsCustomModulesRequest injectPageSize(
+                ListEffectiveSecurityHealthAnalyticsCustomModulesRequest payload, int pageSize) {
+              return ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.newBuilder(payload)
+                  .setPageSize(pageSize)
+                  .build();
+            }
+
+            @Override
+            public Integer extractPageSize(
+                ListEffectiveSecurityHealthAnalyticsCustomModulesRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(
+                ListEffectiveSecurityHealthAnalyticsCustomModulesResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(
+                ListEffectiveSecurityHealthAnalyticsCustomModulesResponse payload) {
+              return payload.getEffectiveSecurityHealthAnalyticsCustomModulesList() == null
+                  ? ImmutableList.of()
+                  : payload.getEffectiveSecurityHealthAnalyticsCustomModulesList();
+            }
+          };
+
+  private static final PagedListDescriptor<
+          ListSecurityHealthAnalyticsCustomModulesRequest,
+          ListSecurityHealthAnalyticsCustomModulesResponse,
+          SecurityHealthAnalyticsCustomModule>
+      LIST_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_PAGE_STR_DESC =
+          new PagedListDescriptor<
+              ListSecurityHealthAnalyticsCustomModulesRequest,
+              ListSecurityHealthAnalyticsCustomModulesResponse,
+              SecurityHealthAnalyticsCustomModule>() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListSecurityHealthAnalyticsCustomModulesRequest injectToken(
+                ListSecurityHealthAnalyticsCustomModulesRequest payload, String token) {
+              return ListSecurityHealthAnalyticsCustomModulesRequest.newBuilder(payload)
+                  .setPageToken(token)
+                  .build();
+            }
+
+            @Override
+            public ListSecurityHealthAnalyticsCustomModulesRequest injectPageSize(
+                ListSecurityHealthAnalyticsCustomModulesRequest payload, int pageSize) {
+              return ListSecurityHealthAnalyticsCustomModulesRequest.newBuilder(payload)
+                  .setPageSize(pageSize)
+                  .build();
+            }
+
+            @Override
+            public Integer extractPageSize(
+                ListSecurityHealthAnalyticsCustomModulesRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(
+                ListSecurityHealthAnalyticsCustomModulesResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(
+                ListSecurityHealthAnalyticsCustomModulesResponse payload) {
+              return payload.getSecurityHealthAnalyticsCustomModulesList() == null
+                  ? ImmutableList.of()
+                  : payload.getSecurityHealthAnalyticsCustomModulesList();
+            }
+          };
+
   private static final PagedListDescriptor
       LIST_SOURCES_PAGE_STR_DESC =
           new PagedListDescriptor() {
@@ -599,6 +799,41 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListDescendantSecurityHealthAnalyticsCustomModulesRequest,
+          ListDescendantSecurityHealthAnalyticsCustomModulesResponse,
+          ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse>
+      LIST_DESCENDANT_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListDescendantSecurityHealthAnalyticsCustomModulesRequest,
+              ListDescendantSecurityHealthAnalyticsCustomModulesResponse,
+              ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse>() {
+            @Override
+            public ApiFuture
+                getFuturePagedResponse(
+                    UnaryCallable<
+                            ListDescendantSecurityHealthAnalyticsCustomModulesRequest,
+                            ListDescendantSecurityHealthAnalyticsCustomModulesResponse>
+                        callable,
+                    ListDescendantSecurityHealthAnalyticsCustomModulesRequest request,
+                    ApiCallContext context,
+                    ApiFuture
+                        futureResponse) {
+              PageContext<
+                      ListDescendantSecurityHealthAnalyticsCustomModulesRequest,
+                      ListDescendantSecurityHealthAnalyticsCustomModulesResponse,
+                      SecurityHealthAnalyticsCustomModule>
+                  pageContext =
+                      PageContext.create(
+                          callable,
+                          LIST_DESCENDANT_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_PAGE_STR_DESC,
+                          request,
+                          context);
+              return ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse.createAsync(
+                  pageContext, futureResponse);
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListFindingsRequest, ListFindingsResponse, ListFindingsPagedResponse>
       LIST_FINDINGS_PAGE_STR_FACT =
@@ -664,6 +899,75 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListEffectiveSecurityHealthAnalyticsCustomModulesRequest,
+          ListEffectiveSecurityHealthAnalyticsCustomModulesResponse,
+          ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse>
+      LIST_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListEffectiveSecurityHealthAnalyticsCustomModulesRequest,
+              ListEffectiveSecurityHealthAnalyticsCustomModulesResponse,
+              ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse>() {
+            @Override
+            public ApiFuture
+                getFuturePagedResponse(
+                    UnaryCallable<
+                            ListEffectiveSecurityHealthAnalyticsCustomModulesRequest,
+                            ListEffectiveSecurityHealthAnalyticsCustomModulesResponse>
+                        callable,
+                    ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request,
+                    ApiCallContext context,
+                    ApiFuture
+                        futureResponse) {
+              PageContext<
+                      ListEffectiveSecurityHealthAnalyticsCustomModulesRequest,
+                      ListEffectiveSecurityHealthAnalyticsCustomModulesResponse,
+                      EffectiveSecurityHealthAnalyticsCustomModule>
+                  pageContext =
+                      PageContext.create(
+                          callable,
+                          LIST_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_PAGE_STR_DESC,
+                          request,
+                          context);
+              return ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse.createAsync(
+                  pageContext, futureResponse);
+            }
+          };
+
+  private static final PagedListResponseFactory<
+          ListSecurityHealthAnalyticsCustomModulesRequest,
+          ListSecurityHealthAnalyticsCustomModulesResponse,
+          ListSecurityHealthAnalyticsCustomModulesPagedResponse>
+      LIST_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListSecurityHealthAnalyticsCustomModulesRequest,
+              ListSecurityHealthAnalyticsCustomModulesResponse,
+              ListSecurityHealthAnalyticsCustomModulesPagedResponse>() {
+            @Override
+            public ApiFuture
+                getFuturePagedResponse(
+                    UnaryCallable<
+                            ListSecurityHealthAnalyticsCustomModulesRequest,
+                            ListSecurityHealthAnalyticsCustomModulesResponse>
+                        callable,
+                    ListSecurityHealthAnalyticsCustomModulesRequest request,
+                    ApiCallContext context,
+                    ApiFuture futureResponse) {
+              PageContext<
+                      ListSecurityHealthAnalyticsCustomModulesRequest,
+                      ListSecurityHealthAnalyticsCustomModulesResponse,
+                      SecurityHealthAnalyticsCustomModule>
+                  pageContext =
+                      PageContext.create(
+                          callable,
+                          LIST_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_PAGE_STR_DESC,
+                          request,
+                          context);
+              return ListSecurityHealthAnalyticsCustomModulesPagedResponse.createAsync(
+                  pageContext, futureResponse);
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListSourcesRequest, ListSourcesResponse, ListSourcesPagedResponse>
       LIST_SOURCES_PAGE_STR_FACT =
@@ -713,6 +1017,16 @@ public UnaryCallSettings bulkMuteFindingsSet
     return bulkMuteFindingsOperationSettings;
   }
 
+  /**
+   * Returns the object with the settings used for calls to
+   * createSecurityHealthAnalyticsCustomModule.
+   */
+  public UnaryCallSettings<
+          CreateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule>
+      createSecurityHealthAnalyticsCustomModuleSettings() {
+    return createSecurityHealthAnalyticsCustomModuleSettings;
+  }
+
   /** Returns the object with the settings used for calls to createSource. */
   public UnaryCallSettings createSourceSettings() {
     return createSourceSettings;
@@ -745,6 +1059,15 @@ public UnaryCallSettings deleteMuteConfigSetting
     return deleteNotificationConfigSettings;
   }
 
+  /**
+   * Returns the object with the settings used for calls to
+   * deleteSecurityHealthAnalyticsCustomModule.
+   */
+  public UnaryCallSettings
+      deleteSecurityHealthAnalyticsCustomModuleSettings() {
+    return deleteSecurityHealthAnalyticsCustomModuleSettings;
+  }
+
   /** Returns the object with the settings used for calls to getBigQueryExport. */
   public UnaryCallSettings getBigQueryExportSettings() {
     return getBigQueryExportSettings;
@@ -772,6 +1095,26 @@ public UnaryCallSettings getMuteConfigSettings
     return getOrganizationSettingsSettings;
   }
 
+  /**
+   * Returns the object with the settings used for calls to
+   * getEffectiveSecurityHealthAnalyticsCustomModule.
+   */
+  public UnaryCallSettings<
+          GetEffectiveSecurityHealthAnalyticsCustomModuleRequest,
+          EffectiveSecurityHealthAnalyticsCustomModule>
+      getEffectiveSecurityHealthAnalyticsCustomModuleSettings() {
+    return getEffectiveSecurityHealthAnalyticsCustomModuleSettings;
+  }
+
+  /**
+   * Returns the object with the settings used for calls to getSecurityHealthAnalyticsCustomModule.
+   */
+  public UnaryCallSettings<
+          GetSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule>
+      getSecurityHealthAnalyticsCustomModuleSettings() {
+    return getSecurityHealthAnalyticsCustomModuleSettings;
+  }
+
   /** Returns the object with the settings used for calls to getSource. */
   public UnaryCallSettings getSourceSettings() {
     return getSourceSettings;
@@ -795,6 +1138,18 @@ public UnaryCallSettings getSourceSettings() {
     return listAssetsSettings;
   }
 
+  /**
+   * Returns the object with the settings used for calls to
+   * listDescendantSecurityHealthAnalyticsCustomModules.
+   */
+  public PagedCallSettings<
+          ListDescendantSecurityHealthAnalyticsCustomModulesRequest,
+          ListDescendantSecurityHealthAnalyticsCustomModulesResponse,
+          ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse>
+      listDescendantSecurityHealthAnalyticsCustomModulesSettings() {
+    return listDescendantSecurityHealthAnalyticsCustomModulesSettings;
+  }
+
   /** Returns the object with the settings used for calls to listFindings. */
   public PagedCallSettings
       listFindingsSettings() {
@@ -817,6 +1172,30 @@ public UnaryCallSettings getSourceSettings() {
     return listNotificationConfigsSettings;
   }
 
+  /**
+   * Returns the object with the settings used for calls to
+   * listEffectiveSecurityHealthAnalyticsCustomModules.
+   */
+  public PagedCallSettings<
+          ListEffectiveSecurityHealthAnalyticsCustomModulesRequest,
+          ListEffectiveSecurityHealthAnalyticsCustomModulesResponse,
+          ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse>
+      listEffectiveSecurityHealthAnalyticsCustomModulesSettings() {
+    return listEffectiveSecurityHealthAnalyticsCustomModulesSettings;
+  }
+
+  /**
+   * Returns the object with the settings used for calls to
+   * listSecurityHealthAnalyticsCustomModules.
+   */
+  public PagedCallSettings<
+          ListSecurityHealthAnalyticsCustomModulesRequest,
+          ListSecurityHealthAnalyticsCustomModulesResponse,
+          ListSecurityHealthAnalyticsCustomModulesPagedResponse>
+      listSecurityHealthAnalyticsCustomModulesSettings() {
+    return listSecurityHealthAnalyticsCustomModulesSettings;
+  }
+
   /** Returns the object with the settings used for calls to listSources. */
   public PagedCallSettings
       listSourcesSettings() {
@@ -883,6 +1262,16 @@ public UnaryCallSettings updateMuteConfigSe
     return updateOrganizationSettingsSettings;
   }
 
+  /**
+   * Returns the object with the settings used for calls to
+   * updateSecurityHealthAnalyticsCustomModule.
+   */
+  public UnaryCallSettings<
+          UpdateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule>
+      updateSecurityHealthAnalyticsCustomModuleSettings() {
+    return updateSecurityHealthAnalyticsCustomModuleSettings;
+  }
+
   /** Returns the object with the settings used for calls to updateSource. */
   public UnaryCallSettings updateSourceSettings() {
     return updateSourceSettings;
@@ -1026,24 +1415,38 @@ protected SecurityCenterStubSettings(Builder settingsBuilder) throws IOException
 
     bulkMuteFindingsSettings = settingsBuilder.bulkMuteFindingsSettings().build();
     bulkMuteFindingsOperationSettings = settingsBuilder.bulkMuteFindingsOperationSettings().build();
+    createSecurityHealthAnalyticsCustomModuleSettings =
+        settingsBuilder.createSecurityHealthAnalyticsCustomModuleSettings().build();
     createSourceSettings = settingsBuilder.createSourceSettings().build();
     createFindingSettings = settingsBuilder.createFindingSettings().build();
     createMuteConfigSettings = settingsBuilder.createMuteConfigSettings().build();
     createNotificationConfigSettings = settingsBuilder.createNotificationConfigSettings().build();
     deleteMuteConfigSettings = settingsBuilder.deleteMuteConfigSettings().build();
     deleteNotificationConfigSettings = settingsBuilder.deleteNotificationConfigSettings().build();
+    deleteSecurityHealthAnalyticsCustomModuleSettings =
+        settingsBuilder.deleteSecurityHealthAnalyticsCustomModuleSettings().build();
     getBigQueryExportSettings = settingsBuilder.getBigQueryExportSettings().build();
     getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
     getMuteConfigSettings = settingsBuilder.getMuteConfigSettings().build();
     getNotificationConfigSettings = settingsBuilder.getNotificationConfigSettings().build();
     getOrganizationSettingsSettings = settingsBuilder.getOrganizationSettingsSettings().build();
+    getEffectiveSecurityHealthAnalyticsCustomModuleSettings =
+        settingsBuilder.getEffectiveSecurityHealthAnalyticsCustomModuleSettings().build();
+    getSecurityHealthAnalyticsCustomModuleSettings =
+        settingsBuilder.getSecurityHealthAnalyticsCustomModuleSettings().build();
     getSourceSettings = settingsBuilder.getSourceSettings().build();
     groupAssetsSettings = settingsBuilder.groupAssetsSettings().build();
     groupFindingsSettings = settingsBuilder.groupFindingsSettings().build();
     listAssetsSettings = settingsBuilder.listAssetsSettings().build();
+    listDescendantSecurityHealthAnalyticsCustomModulesSettings =
+        settingsBuilder.listDescendantSecurityHealthAnalyticsCustomModulesSettings().build();
     listFindingsSettings = settingsBuilder.listFindingsSettings().build();
     listMuteConfigsSettings = settingsBuilder.listMuteConfigsSettings().build();
     listNotificationConfigsSettings = settingsBuilder.listNotificationConfigsSettings().build();
+    listEffectiveSecurityHealthAnalyticsCustomModulesSettings =
+        settingsBuilder.listEffectiveSecurityHealthAnalyticsCustomModulesSettings().build();
+    listSecurityHealthAnalyticsCustomModulesSettings =
+        settingsBuilder.listSecurityHealthAnalyticsCustomModulesSettings().build();
     listSourcesSettings = settingsBuilder.listSourcesSettings().build();
     runAssetDiscoverySettings = settingsBuilder.runAssetDiscoverySettings().build();
     runAssetDiscoveryOperationSettings =
@@ -1058,6 +1461,8 @@ protected SecurityCenterStubSettings(Builder settingsBuilder) throws IOException
     updateNotificationConfigSettings = settingsBuilder.updateNotificationConfigSettings().build();
     updateOrganizationSettingsSettings =
         settingsBuilder.updateOrganizationSettingsSettings().build();
+    updateSecurityHealthAnalyticsCustomModuleSettings =
+        settingsBuilder.updateSecurityHealthAnalyticsCustomModuleSettings().build();
     updateSourceSettings = settingsBuilder.updateSourceSettings().build();
     updateSecurityMarksSettings = settingsBuilder.updateSecurityMarksSettings().build();
     createBigQueryExportSettings = settingsBuilder.createBigQueryExportSettings().build();
@@ -1074,6 +1479,9 @@ public static class Builder extends StubSettings.Builder
         bulkMuteFindingsOperationSettings;
+    private final UnaryCallSettings.Builder<
+            CreateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule>
+        createSecurityHealthAnalyticsCustomModuleSettings;
     private final UnaryCallSettings.Builder createSourceSettings;
     private final UnaryCallSettings.Builder createFindingSettings;
     private final UnaryCallSettings.Builder
@@ -1084,6 +1492,8 @@ public static class Builder extends StubSettings.Builder
         deleteNotificationConfigSettings;
+    private final UnaryCallSettings.Builder
+        deleteSecurityHealthAnalyticsCustomModuleSettings;
     private final UnaryCallSettings.Builder
         getBigQueryExportSettings;
     private final UnaryCallSettings.Builder getIamPolicySettings;
@@ -1092,6 +1502,13 @@ public static class Builder extends StubSettings.Builder
         getOrganizationSettingsSettings;
+    private final UnaryCallSettings.Builder<
+            GetEffectiveSecurityHealthAnalyticsCustomModuleRequest,
+            EffectiveSecurityHealthAnalyticsCustomModule>
+        getEffectiveSecurityHealthAnalyticsCustomModuleSettings;
+    private final UnaryCallSettings.Builder<
+            GetSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule>
+        getSecurityHealthAnalyticsCustomModuleSettings;
     private final UnaryCallSettings.Builder getSourceSettings;
     private final PagedCallSettings.Builder<
             GroupAssetsRequest, GroupAssetsResponse, GroupAssetsPagedResponse>
@@ -1102,6 +1519,11 @@ public static class Builder extends StubSettings.Builder
         listAssetsSettings;
+    private final PagedCallSettings.Builder<
+            ListDescendantSecurityHealthAnalyticsCustomModulesRequest,
+            ListDescendantSecurityHealthAnalyticsCustomModulesResponse,
+            ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse>
+        listDescendantSecurityHealthAnalyticsCustomModulesSettings;
     private final PagedCallSettings.Builder<
             ListFindingsRequest, ListFindingsResponse, ListFindingsPagedResponse>
         listFindingsSettings;
@@ -1113,6 +1535,16 @@ public static class Builder extends StubSettings.Builder
         listNotificationConfigsSettings;
+    private final PagedCallSettings.Builder<
+            ListEffectiveSecurityHealthAnalyticsCustomModulesRequest,
+            ListEffectiveSecurityHealthAnalyticsCustomModulesResponse,
+            ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse>
+        listEffectiveSecurityHealthAnalyticsCustomModulesSettings;
+    private final PagedCallSettings.Builder<
+            ListSecurityHealthAnalyticsCustomModulesRequest,
+            ListSecurityHealthAnalyticsCustomModulesResponse,
+            ListSecurityHealthAnalyticsCustomModulesPagedResponse>
+        listSecurityHealthAnalyticsCustomModulesSettings;
     private final PagedCallSettings.Builder<
             ListSourcesRequest, ListSourcesResponse, ListSourcesPagedResponse>
         listSourcesSettings;
@@ -1136,6 +1568,9 @@ public static class Builder extends StubSettings.Builder
         updateOrganizationSettingsSettings;
+    private final UnaryCallSettings.Builder<
+            UpdateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule>
+        updateSecurityHealthAnalyticsCustomModuleSettings;
     private final UnaryCallSettings.Builder updateSourceSettings;
     private final UnaryCallSettings.Builder
         updateSecurityMarksSettings;
@@ -1231,25 +1666,41 @@ protected Builder(ClientContext clientContext) {
 
       bulkMuteFindingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       bulkMuteFindingsOperationSettings = OperationCallSettings.newBuilder();
+      createSecurityHealthAnalyticsCustomModuleSettings =
+          UnaryCallSettings.newUnaryCallSettingsBuilder();
       createSourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       createFindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       createMuteConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       createNotificationConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       deleteMuteConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       deleteNotificationConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      deleteSecurityHealthAnalyticsCustomModuleSettings =
+          UnaryCallSettings.newUnaryCallSettingsBuilder();
       getBigQueryExportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       getMuteConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       getNotificationConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       getOrganizationSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getEffectiveSecurityHealthAnalyticsCustomModuleSettings =
+          UnaryCallSettings.newUnaryCallSettingsBuilder();
+      getSecurityHealthAnalyticsCustomModuleSettings =
+          UnaryCallSettings.newUnaryCallSettingsBuilder();
       getSourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       groupAssetsSettings = PagedCallSettings.newBuilder(GROUP_ASSETS_PAGE_STR_FACT);
       groupFindingsSettings = PagedCallSettings.newBuilder(GROUP_FINDINGS_PAGE_STR_FACT);
       listAssetsSettings = PagedCallSettings.newBuilder(LIST_ASSETS_PAGE_STR_FACT);
+      listDescendantSecurityHealthAnalyticsCustomModulesSettings =
+          PagedCallSettings.newBuilder(
+              LIST_DESCENDANT_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_PAGE_STR_FACT);
       listFindingsSettings = PagedCallSettings.newBuilder(LIST_FINDINGS_PAGE_STR_FACT);
       listMuteConfigsSettings = PagedCallSettings.newBuilder(LIST_MUTE_CONFIGS_PAGE_STR_FACT);
       listNotificationConfigsSettings =
           PagedCallSettings.newBuilder(LIST_NOTIFICATION_CONFIGS_PAGE_STR_FACT);
+      listEffectiveSecurityHealthAnalyticsCustomModulesSettings =
+          PagedCallSettings.newBuilder(
+              LIST_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_PAGE_STR_FACT);
+      listSecurityHealthAnalyticsCustomModulesSettings =
+          PagedCallSettings.newBuilder(LIST_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_PAGE_STR_FACT);
       listSourcesSettings = PagedCallSettings.newBuilder(LIST_SOURCES_PAGE_STR_FACT);
       runAssetDiscoverySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       runAssetDiscoveryOperationSettings = OperationCallSettings.newBuilder();
@@ -1262,6 +1713,8 @@ protected Builder(ClientContext clientContext) {
       updateMuteConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       updateNotificationConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       updateOrganizationSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+      updateSecurityHealthAnalyticsCustomModuleSettings =
+          UnaryCallSettings.newUnaryCallSettingsBuilder();
       updateSourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       updateSecurityMarksSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
       createBigQueryExportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -1273,24 +1726,31 @@ protected Builder(ClientContext clientContext) {
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               bulkMuteFindingsSettings,
+              createSecurityHealthAnalyticsCustomModuleSettings,
               createSourceSettings,
               createFindingSettings,
               createMuteConfigSettings,
               createNotificationConfigSettings,
               deleteMuteConfigSettings,
               deleteNotificationConfigSettings,
+              deleteSecurityHealthAnalyticsCustomModuleSettings,
               getBigQueryExportSettings,
               getIamPolicySettings,
               getMuteConfigSettings,
               getNotificationConfigSettings,
               getOrganizationSettingsSettings,
+              getEffectiveSecurityHealthAnalyticsCustomModuleSettings,
+              getSecurityHealthAnalyticsCustomModuleSettings,
               getSourceSettings,
               groupAssetsSettings,
               groupFindingsSettings,
               listAssetsSettings,
+              listDescendantSecurityHealthAnalyticsCustomModulesSettings,
               listFindingsSettings,
               listMuteConfigsSettings,
               listNotificationConfigsSettings,
+              listEffectiveSecurityHealthAnalyticsCustomModulesSettings,
+              listSecurityHealthAnalyticsCustomModulesSettings,
               listSourcesSettings,
               runAssetDiscoverySettings,
               setFindingStateSettings,
@@ -1302,6 +1762,7 @@ protected Builder(ClientContext clientContext) {
               updateMuteConfigSettings,
               updateNotificationConfigSettings,
               updateOrganizationSettingsSettings,
+              updateSecurityHealthAnalyticsCustomModuleSettings,
               updateSourceSettings,
               updateSecurityMarksSettings,
               createBigQueryExportSettings,
@@ -1316,24 +1777,38 @@ protected Builder(SecurityCenterStubSettings settings) {
 
       bulkMuteFindingsSettings = settings.bulkMuteFindingsSettings.toBuilder();
       bulkMuteFindingsOperationSettings = settings.bulkMuteFindingsOperationSettings.toBuilder();
+      createSecurityHealthAnalyticsCustomModuleSettings =
+          settings.createSecurityHealthAnalyticsCustomModuleSettings.toBuilder();
       createSourceSettings = settings.createSourceSettings.toBuilder();
       createFindingSettings = settings.createFindingSettings.toBuilder();
       createMuteConfigSettings = settings.createMuteConfigSettings.toBuilder();
       createNotificationConfigSettings = settings.createNotificationConfigSettings.toBuilder();
       deleteMuteConfigSettings = settings.deleteMuteConfigSettings.toBuilder();
       deleteNotificationConfigSettings = settings.deleteNotificationConfigSettings.toBuilder();
+      deleteSecurityHealthAnalyticsCustomModuleSettings =
+          settings.deleteSecurityHealthAnalyticsCustomModuleSettings.toBuilder();
       getBigQueryExportSettings = settings.getBigQueryExportSettings.toBuilder();
       getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
       getMuteConfigSettings = settings.getMuteConfigSettings.toBuilder();
       getNotificationConfigSettings = settings.getNotificationConfigSettings.toBuilder();
       getOrganizationSettingsSettings = settings.getOrganizationSettingsSettings.toBuilder();
+      getEffectiveSecurityHealthAnalyticsCustomModuleSettings =
+          settings.getEffectiveSecurityHealthAnalyticsCustomModuleSettings.toBuilder();
+      getSecurityHealthAnalyticsCustomModuleSettings =
+          settings.getSecurityHealthAnalyticsCustomModuleSettings.toBuilder();
       getSourceSettings = settings.getSourceSettings.toBuilder();
       groupAssetsSettings = settings.groupAssetsSettings.toBuilder();
       groupFindingsSettings = settings.groupFindingsSettings.toBuilder();
       listAssetsSettings = settings.listAssetsSettings.toBuilder();
+      listDescendantSecurityHealthAnalyticsCustomModulesSettings =
+          settings.listDescendantSecurityHealthAnalyticsCustomModulesSettings.toBuilder();
       listFindingsSettings = settings.listFindingsSettings.toBuilder();
       listMuteConfigsSettings = settings.listMuteConfigsSettings.toBuilder();
       listNotificationConfigsSettings = settings.listNotificationConfigsSettings.toBuilder();
+      listEffectiveSecurityHealthAnalyticsCustomModulesSettings =
+          settings.listEffectiveSecurityHealthAnalyticsCustomModulesSettings.toBuilder();
+      listSecurityHealthAnalyticsCustomModulesSettings =
+          settings.listSecurityHealthAnalyticsCustomModulesSettings.toBuilder();
       listSourcesSettings = settings.listSourcesSettings.toBuilder();
       runAssetDiscoverySettings = settings.runAssetDiscoverySettings.toBuilder();
       runAssetDiscoveryOperationSettings = settings.runAssetDiscoveryOperationSettings.toBuilder();
@@ -1346,6 +1821,8 @@ protected Builder(SecurityCenterStubSettings settings) {
       updateMuteConfigSettings = settings.updateMuteConfigSettings.toBuilder();
       updateNotificationConfigSettings = settings.updateNotificationConfigSettings.toBuilder();
       updateOrganizationSettingsSettings = settings.updateOrganizationSettingsSettings.toBuilder();
+      updateSecurityHealthAnalyticsCustomModuleSettings =
+          settings.updateSecurityHealthAnalyticsCustomModuleSettings.toBuilder();
       updateSourceSettings = settings.updateSourceSettings.toBuilder();
       updateSecurityMarksSettings = settings.updateSecurityMarksSettings.toBuilder();
       createBigQueryExportSettings = settings.createBigQueryExportSettings.toBuilder();
@@ -1356,24 +1833,31 @@ protected Builder(SecurityCenterStubSettings settings) {
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               bulkMuteFindingsSettings,
+              createSecurityHealthAnalyticsCustomModuleSettings,
               createSourceSettings,
               createFindingSettings,
               createMuteConfigSettings,
               createNotificationConfigSettings,
               deleteMuteConfigSettings,
               deleteNotificationConfigSettings,
+              deleteSecurityHealthAnalyticsCustomModuleSettings,
               getBigQueryExportSettings,
               getIamPolicySettings,
               getMuteConfigSettings,
               getNotificationConfigSettings,
               getOrganizationSettingsSettings,
+              getEffectiveSecurityHealthAnalyticsCustomModuleSettings,
+              getSecurityHealthAnalyticsCustomModuleSettings,
               getSourceSettings,
               groupAssetsSettings,
               groupFindingsSettings,
               listAssetsSettings,
+              listDescendantSecurityHealthAnalyticsCustomModulesSettings,
               listFindingsSettings,
               listMuteConfigsSettings,
               listNotificationConfigsSettings,
+              listEffectiveSecurityHealthAnalyticsCustomModulesSettings,
+              listSecurityHealthAnalyticsCustomModulesSettings,
               listSourcesSettings,
               runAssetDiscoverySettings,
               setFindingStateSettings,
@@ -1385,6 +1869,7 @@ protected Builder(SecurityCenterStubSettings settings) {
               updateMuteConfigSettings,
               updateNotificationConfigSettings,
               updateOrganizationSettingsSettings,
+              updateSecurityHealthAnalyticsCustomModuleSettings,
               updateSourceSettings,
               updateSecurityMarksSettings,
               createBigQueryExportSettings,
@@ -1425,6 +1910,11 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
 
+      builder
+          .createSecurityHealthAnalyticsCustomModuleSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
+
       builder
           .createSourceSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
@@ -1455,6 +1945,11 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
 
+      builder
+          .deleteSecurityHealthAnalyticsCustomModuleSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
+
       builder
           .getBigQueryExportSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
@@ -1480,6 +1975,16 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
 
+      builder
+          .getEffectiveSecurityHealthAnalyticsCustomModuleSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
+
+      builder
+          .getSecurityHealthAnalyticsCustomModuleSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
+
       builder
           .getSourceSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
@@ -1500,6 +2005,11 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params"));
 
+      builder
+          .listDescendantSecurityHealthAnalyticsCustomModulesSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
+
       builder
           .listFindingsSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes"))
@@ -1515,6 +2025,16 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
 
+      builder
+          .listEffectiveSecurityHealthAnalyticsCustomModulesSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
+
+      builder
+          .listSecurityHealthAnalyticsCustomModulesSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
+
       builder
           .listSourcesSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
@@ -1570,6 +2090,11 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
 
+      builder
+          .updateSecurityHealthAnalyticsCustomModuleSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
+
       builder
           .updateSourceSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
@@ -1681,6 +2206,16 @@ public Builder applyToAllUnaryMethods(
       return bulkMuteFindingsOperationSettings;
     }
 
+    /**
+     * Returns the builder for the settings used for calls to
+     * createSecurityHealthAnalyticsCustomModule.
+     */
+    public UnaryCallSettings.Builder<
+            CreateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule>
+        createSecurityHealthAnalyticsCustomModuleSettings() {
+      return createSecurityHealthAnalyticsCustomModuleSettings;
+    }
+
     /** Returns the builder for the settings used for calls to createSource. */
     public UnaryCallSettings.Builder createSourceSettings() {
       return createSourceSettings;
@@ -1714,6 +2249,15 @@ public UnaryCallSettings.Builder deleteMuteConfi
       return deleteNotificationConfigSettings;
     }
 
+    /**
+     * Returns the builder for the settings used for calls to
+     * deleteSecurityHealthAnalyticsCustomModule.
+     */
+    public UnaryCallSettings.Builder
+        deleteSecurityHealthAnalyticsCustomModuleSettings() {
+      return deleteSecurityHealthAnalyticsCustomModuleSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getBigQueryExport. */
     public UnaryCallSettings.Builder
         getBigQueryExportSettings() {
@@ -1742,6 +2286,27 @@ public UnaryCallSettings.Builder getMuteConfig
       return getOrganizationSettingsSettings;
     }
 
+    /**
+     * Returns the builder for the settings used for calls to
+     * getEffectiveSecurityHealthAnalyticsCustomModule.
+     */
+    public UnaryCallSettings.Builder<
+            GetEffectiveSecurityHealthAnalyticsCustomModuleRequest,
+            EffectiveSecurityHealthAnalyticsCustomModule>
+        getEffectiveSecurityHealthAnalyticsCustomModuleSettings() {
+      return getEffectiveSecurityHealthAnalyticsCustomModuleSettings;
+    }
+
+    /**
+     * Returns the builder for the settings used for calls to
+     * getSecurityHealthAnalyticsCustomModule.
+     */
+    public UnaryCallSettings.Builder<
+            GetSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule>
+        getSecurityHealthAnalyticsCustomModuleSettings() {
+      return getSecurityHealthAnalyticsCustomModuleSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getSource. */
     public UnaryCallSettings.Builder getSourceSettings() {
       return getSourceSettings;
@@ -1767,6 +2332,18 @@ public UnaryCallSettings.Builder getSourceSettings() {
       return listAssetsSettings;
     }
 
+    /**
+     * Returns the builder for the settings used for calls to
+     * listDescendantSecurityHealthAnalyticsCustomModules.
+     */
+    public PagedCallSettings.Builder<
+            ListDescendantSecurityHealthAnalyticsCustomModulesRequest,
+            ListDescendantSecurityHealthAnalyticsCustomModulesResponse,
+            ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse>
+        listDescendantSecurityHealthAnalyticsCustomModulesSettings() {
+      return listDescendantSecurityHealthAnalyticsCustomModulesSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listFindings. */
     public PagedCallSettings.Builder<
             ListFindingsRequest, ListFindingsResponse, ListFindingsPagedResponse>
@@ -1790,6 +2367,30 @@ public UnaryCallSettings.Builder getSourceSettings() {
       return listNotificationConfigsSettings;
     }
 
+    /**
+     * Returns the builder for the settings used for calls to
+     * listEffectiveSecurityHealthAnalyticsCustomModules.
+     */
+    public PagedCallSettings.Builder<
+            ListEffectiveSecurityHealthAnalyticsCustomModulesRequest,
+            ListEffectiveSecurityHealthAnalyticsCustomModulesResponse,
+            ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse>
+        listEffectiveSecurityHealthAnalyticsCustomModulesSettings() {
+      return listEffectiveSecurityHealthAnalyticsCustomModulesSettings;
+    }
+
+    /**
+     * Returns the builder for the settings used for calls to
+     * listSecurityHealthAnalyticsCustomModules.
+     */
+    public PagedCallSettings.Builder<
+            ListSecurityHealthAnalyticsCustomModulesRequest,
+            ListSecurityHealthAnalyticsCustomModulesResponse,
+            ListSecurityHealthAnalyticsCustomModulesPagedResponse>
+        listSecurityHealthAnalyticsCustomModulesSettings() {
+      return listSecurityHealthAnalyticsCustomModulesSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listSources. */
     public PagedCallSettings.Builder<
             ListSourcesRequest, ListSourcesResponse, ListSourcesPagedResponse>
@@ -1861,6 +2462,16 @@ public UnaryCallSettings.Builder updateFindingSet
       return updateOrganizationSettingsSettings;
     }
 
+    /**
+     * Returns the builder for the settings used for calls to
+     * updateSecurityHealthAnalyticsCustomModule.
+     */
+    public UnaryCallSettings.Builder<
+            UpdateSecurityHealthAnalyticsCustomModuleRequest, SecurityHealthAnalyticsCustomModule>
+        updateSecurityHealthAnalyticsCustomModuleSettings() {
+      return updateSecurityHealthAnalyticsCustomModuleSettings;
+    }
+
     /** Returns the builder for the settings used for calls to updateSource. */
     public UnaryCallSettings.Builder updateSourceSettings() {
       return updateSourceSettings;
diff --git a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenterImpl.java b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenterImpl.java
index c309ef8a19bd..8c9b3ad9a110 100644
--- a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenterImpl.java
+++ b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/MockSecurityCenterImpl.java
@@ -86,6 +86,28 @@ public void bulkMuteFindings(
     }
   }
 
+  @Override
+  public void createSecurityHealthAnalyticsCustomModule(
+      CreateSecurityHealthAnalyticsCustomModuleRequest request,
+      StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof SecurityHealthAnalyticsCustomModule) {
+      requests.add(request);
+      responseObserver.onNext(((SecurityHealthAnalyticsCustomModule) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method CreateSecurityHealthAnalyticsCustomModule, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  SecurityHealthAnalyticsCustomModule.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
   @Override
   public void createSource(CreateSourceRequest request, StreamObserver responseObserver) {
     Object response = responses.poll();
@@ -212,6 +234,28 @@ public void deleteNotificationConfig(
     }
   }
 
+  @Override
+  public void deleteSecurityHealthAnalyticsCustomModule(
+      DeleteSecurityHealthAnalyticsCustomModuleRequest request,
+      StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof Empty) {
+      requests.add(request);
+      responseObserver.onNext(((Empty) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method DeleteSecurityHealthAnalyticsCustomModule, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  Empty.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
   @Override
   public void getBigQueryExport(
       GetBigQueryExportRequest request, StreamObserver responseObserver) {
@@ -317,6 +361,50 @@ public void getOrganizationSettings(
     }
   }
 
+  @Override
+  public void getEffectiveSecurityHealthAnalyticsCustomModule(
+      GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request,
+      StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof EffectiveSecurityHealthAnalyticsCustomModule) {
+      requests.add(request);
+      responseObserver.onNext(((EffectiveSecurityHealthAnalyticsCustomModule) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method GetEffectiveSecurityHealthAnalyticsCustomModule, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  EffectiveSecurityHealthAnalyticsCustomModule.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
+  @Override
+  public void getSecurityHealthAnalyticsCustomModule(
+      GetSecurityHealthAnalyticsCustomModuleRequest request,
+      StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof SecurityHealthAnalyticsCustomModule) {
+      requests.add(request);
+      responseObserver.onNext(((SecurityHealthAnalyticsCustomModule) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method GetSecurityHealthAnalyticsCustomModule, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  SecurityHealthAnalyticsCustomModule.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
   @Override
   public void getSource(GetSourceRequest request, StreamObserver responseObserver) {
     Object response = responses.poll();
@@ -400,6 +488,29 @@ public void listAssets(
     }
   }
 
+  @Override
+  public void listDescendantSecurityHealthAnalyticsCustomModules(
+      ListDescendantSecurityHealthAnalyticsCustomModulesRequest request,
+      StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof ListDescendantSecurityHealthAnalyticsCustomModulesResponse) {
+      requests.add(request);
+      responseObserver.onNext(
+          ((ListDescendantSecurityHealthAnalyticsCustomModulesResponse) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method ListDescendantSecurityHealthAnalyticsCustomModules, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  ListDescendantSecurityHealthAnalyticsCustomModulesResponse.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
   @Override
   public void listFindings(
       ListFindingsRequest request, StreamObserver responseObserver) {
@@ -464,6 +575,51 @@ public void listNotificationConfigs(
     }
   }
 
+  @Override
+  public void listEffectiveSecurityHealthAnalyticsCustomModules(
+      ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request,
+      StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) {
+      requests.add(request);
+      responseObserver.onNext(
+          ((ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method ListEffectiveSecurityHealthAnalyticsCustomModules, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
+  @Override
+  public void listSecurityHealthAnalyticsCustomModules(
+      ListSecurityHealthAnalyticsCustomModulesRequest request,
+      StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof ListSecurityHealthAnalyticsCustomModulesResponse) {
+      requests.add(request);
+      responseObserver.onNext(((ListSecurityHealthAnalyticsCustomModulesResponse) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method ListSecurityHealthAnalyticsCustomModules, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  ListSecurityHealthAnalyticsCustomModulesResponse.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
   @Override
   public void listSources(
       ListSourcesRequest request, StreamObserver responseObserver) {
@@ -696,6 +852,28 @@ public void updateOrganizationSettings(
     }
   }
 
+  @Override
+  public void updateSecurityHealthAnalyticsCustomModule(
+      UpdateSecurityHealthAnalyticsCustomModuleRequest request,
+      StreamObserver responseObserver) {
+    Object response = responses.poll();
+    if (response instanceof SecurityHealthAnalyticsCustomModule) {
+      requests.add(request);
+      responseObserver.onNext(((SecurityHealthAnalyticsCustomModule) response));
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError(((Exception) response));
+    } else {
+      responseObserver.onError(
+          new IllegalArgumentException(
+              String.format(
+                  "Unrecognized response type %s for method UpdateSecurityHealthAnalyticsCustomModule, expected %s or %s",
+                  response == null ? "null" : response.getClass().getName(),
+                  SecurityHealthAnalyticsCustomModule.class.getName(),
+                  Exception.class.getName())));
+    }
+  }
+
   @Override
   public void updateSource(UpdateSourceRequest request, StreamObserver responseObserver) {
     Object response = responses.poll();
diff --git a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java
index 98a767751c82..74f18ddca401 100644
--- a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java
+++ b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java
@@ -20,9 +20,12 @@
 import static com.google.cloud.securitycenter.v1.SecurityCenterClient.GroupFindingsPagedResponse;
 import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListAssetsPagedResponse;
 import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListBigQueryExportsPagedResponse;
+import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse;
+import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse;
 import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListFindingsPagedResponse;
 import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListMuteConfigsPagedResponse;
 import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListNotificationConfigsPagedResponse;
+import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse;
 import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSourcesPagedResponse;
 
 import com.google.api.gax.core.NoCredentialsProvider;
@@ -190,6 +193,130 @@ public void bulkMuteFindingsExceptionTest2() throws Exception {
     }
   }
 
+  @Test
+  public void createSecurityHealthAnalyticsCustomModuleTest() throws Exception {
+    SecurityHealthAnalyticsCustomModule expectedResponse =
+        SecurityHealthAnalyticsCustomModule.newBuilder()
+            .setName(
+                SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+                        "[ORGANIZATION]", "[CUSTOM_MODULE]")
+                    .toString())
+            .setDisplayName("displayName1714148973")
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .setLastEditor("lastEditor1523898275")
+            .setAncestorModule(
+                SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+                        "[ORGANIZATION]", "[CUSTOM_MODULE]")
+                    .toString())
+            .setCustomConfig(CustomConfig.newBuilder().build())
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    SecurityHealthAnalyticsSettingsName parent =
+        SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]");
+    SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule =
+        SecurityHealthAnalyticsCustomModule.newBuilder().build();
+
+    SecurityHealthAnalyticsCustomModule actualResponse =
+        client.createSecurityHealthAnalyticsCustomModule(
+            parent, securityHealthAnalyticsCustomModule);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void createSecurityHealthAnalyticsCustomModuleExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      SecurityHealthAnalyticsSettingsName parent =
+          SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]");
+      SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule =
+          SecurityHealthAnalyticsCustomModule.newBuilder().build();
+      client.createSecurityHealthAnalyticsCustomModule(parent, securityHealthAnalyticsCustomModule);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void createSecurityHealthAnalyticsCustomModuleTest2() throws Exception {
+    SecurityHealthAnalyticsCustomModule expectedResponse =
+        SecurityHealthAnalyticsCustomModule.newBuilder()
+            .setName(
+                SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+                        "[ORGANIZATION]", "[CUSTOM_MODULE]")
+                    .toString())
+            .setDisplayName("displayName1714148973")
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .setLastEditor("lastEditor1523898275")
+            .setAncestorModule(
+                SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+                        "[ORGANIZATION]", "[CUSTOM_MODULE]")
+                    .toString())
+            .setCustomConfig(CustomConfig.newBuilder().build())
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String parent = "organizations/organization-7807/securityHealthAnalyticsSettings";
+    SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule =
+        SecurityHealthAnalyticsCustomModule.newBuilder().build();
+
+    SecurityHealthAnalyticsCustomModule actualResponse =
+        client.createSecurityHealthAnalyticsCustomModule(
+            parent, securityHealthAnalyticsCustomModule);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void createSecurityHealthAnalyticsCustomModuleExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String parent = "organizations/organization-7807/securityHealthAnalyticsSettings";
+      SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule =
+          SecurityHealthAnalyticsCustomModule.newBuilder().build();
+      client.createSecurityHealthAnalyticsCustomModule(parent, securityHealthAnalyticsCustomModule);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
   @Test
   public void createSourceTest() throws Exception {
     Source expectedResponse =
@@ -321,6 +448,7 @@ public void createFindingTest() throws Exception {
             .setExfiltration(Exfiltration.newBuilder().build())
             .addAllIamBindings(new ArrayList())
             .setNextSteps("nextSteps1206138868")
+            .setModuleName("moduleName-870351081")
             .addAllContainers(new ArrayList())
             .setKubernetes(Kubernetes.newBuilder().build())
             .setDatabase(Database.newBuilder().build())
@@ -402,6 +530,7 @@ public void createFindingTest2() throws Exception {
             .setExfiltration(Exfiltration.newBuilder().build())
             .addAllIamBindings(new ArrayList())
             .setNextSteps("nextSteps1206138868")
+            .setModuleName("moduleName-870351081")
             .addAllContainers(new ArrayList())
             .setKubernetes(Kubernetes.newBuilder().build())
             .setDatabase(Database.newBuilder().build())
@@ -1484,6 +1613,92 @@ public void deleteNotificationConfigExceptionTest2() throws Exception {
     }
   }
 
+  @Test
+  public void deleteSecurityHealthAnalyticsCustomModuleTest() throws Exception {
+    Empty expectedResponse = Empty.newBuilder().build();
+    mockService.addResponse(expectedResponse);
+
+    SecurityHealthAnalyticsCustomModuleName name =
+        SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+            "[ORGANIZATION]", "[CUSTOM_MODULE]");
+
+    client.deleteSecurityHealthAnalyticsCustomModule(name);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void deleteSecurityHealthAnalyticsCustomModuleExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      SecurityHealthAnalyticsCustomModuleName name =
+          SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+              "[ORGANIZATION]", "[CUSTOM_MODULE]");
+      client.deleteSecurityHealthAnalyticsCustomModule(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void deleteSecurityHealthAnalyticsCustomModuleTest2() throws Exception {
+    Empty expectedResponse = Empty.newBuilder().build();
+    mockService.addResponse(expectedResponse);
+
+    String name =
+        "organizations/organization-3280/securityHealthAnalyticsSettings/customModules/customModule-3280";
+
+    client.deleteSecurityHealthAnalyticsCustomModule(name);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void deleteSecurityHealthAnalyticsCustomModuleExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String name =
+          "organizations/organization-3280/securityHealthAnalyticsSettings/customModules/customModule-3280";
+      client.deleteSecurityHealthAnalyticsCustomModule(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
   @Test
   public void getBigQueryExportTest() throws Exception {
     BigQueryExport expectedResponse =
@@ -1989,19 +2204,25 @@ public void getOrganizationSettingsExceptionTest2() throws Exception {
   }
 
   @Test
-  public void getSourceTest() throws Exception {
-    Source expectedResponse =
-        Source.newBuilder()
-            .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+  public void getEffectiveSecurityHealthAnalyticsCustomModuleTest() throws Exception {
+    EffectiveSecurityHealthAnalyticsCustomModule expectedResponse =
+        EffectiveSecurityHealthAnalyticsCustomModule.newBuilder()
+            .setName(
+                EffectiveSecurityHealthAnalyticsCustomModuleName
+                    .ofOrganizationEffectiveCustomModuleName(
+                        "[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]")
+                    .toString())
+            .setCustomConfig(CustomConfig.newBuilder().build())
             .setDisplayName("displayName1714148973")
-            .setDescription("description-1724546052")
-            .setCanonicalName("canonicalName2122381727")
             .build();
     mockService.addResponse(expectedResponse);
 
-    SourceName name = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+    EffectiveSecurityHealthAnalyticsCustomModuleName name =
+        EffectiveSecurityHealthAnalyticsCustomModuleName.ofOrganizationEffectiveCustomModuleName(
+            "[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]");
 
-    Source actualResponse = client.getSource(name);
+    EffectiveSecurityHealthAnalyticsCustomModule actualResponse =
+        client.getEffectiveSecurityHealthAnalyticsCustomModule(name);
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -2020,15 +2241,17 @@ public void getSourceTest() throws Exception {
   }
 
   @Test
-  public void getSourceExceptionTest() throws Exception {
+  public void getEffectiveSecurityHealthAnalyticsCustomModuleExceptionTest() throws Exception {
     ApiException exception =
         ApiExceptionFactory.createException(
             new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
     mockService.addException(exception);
 
     try {
-      SourceName name = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
-      client.getSource(name);
+      EffectiveSecurityHealthAnalyticsCustomModuleName name =
+          EffectiveSecurityHealthAnalyticsCustomModuleName.ofOrganizationEffectiveCustomModuleName(
+              "[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]");
+      client.getEffectiveSecurityHealthAnalyticsCustomModule(name);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception.
@@ -2036,19 +2259,24 @@ public void getSourceExceptionTest() throws Exception {
   }
 
   @Test
-  public void getSourceTest2() throws Exception {
-    Source expectedResponse =
-        Source.newBuilder()
-            .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+  public void getEffectiveSecurityHealthAnalyticsCustomModuleTest2() throws Exception {
+    EffectiveSecurityHealthAnalyticsCustomModule expectedResponse =
+        EffectiveSecurityHealthAnalyticsCustomModule.newBuilder()
+            .setName(
+                EffectiveSecurityHealthAnalyticsCustomModuleName
+                    .ofOrganizationEffectiveCustomModuleName(
+                        "[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]")
+                    .toString())
+            .setCustomConfig(CustomConfig.newBuilder().build())
             .setDisplayName("displayName1714148973")
-            .setDescription("description-1724546052")
-            .setCanonicalName("canonicalName2122381727")
             .build();
     mockService.addResponse(expectedResponse);
 
-    String name = "organizations/organization-7292/sources/source-7292";
+    String name =
+        "organizations/organization-9493/securityHealthAnalyticsSettings/effectiveCustomModules/effectiveCustomModule-9493";
 
-    Source actualResponse = client.getSource(name);
+    EffectiveSecurityHealthAnalyticsCustomModule actualResponse =
+        client.getEffectiveSecurityHealthAnalyticsCustomModule(name);
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -2067,15 +2295,16 @@ public void getSourceTest2() throws Exception {
   }
 
   @Test
-  public void getSourceExceptionTest2() throws Exception {
+  public void getEffectiveSecurityHealthAnalyticsCustomModuleExceptionTest2() throws Exception {
     ApiException exception =
         ApiExceptionFactory.createException(
             new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
     mockService.addException(exception);
 
     try {
-      String name = "organizations/organization-7292/sources/source-7292";
-      client.getSource(name);
+      String name =
+          "organizations/organization-9493/securityHealthAnalyticsSettings/effectiveCustomModules/effectiveCustomModule-9493";
+      client.getEffectiveSecurityHealthAnalyticsCustomModule(name);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception.
@@ -2083,32 +2312,31 @@ public void getSourceExceptionTest2() throws Exception {
   }
 
   @Test
-  public void groupAssetsTest() throws Exception {
-    GroupResult responsesElement = GroupResult.newBuilder().build();
-    GroupAssetsResponse expectedResponse =
-        GroupAssetsResponse.newBuilder()
-            .setNextPageToken("")
-            .addAllGroupByResults(Arrays.asList(responsesElement))
+  public void getSecurityHealthAnalyticsCustomModuleTest() throws Exception {
+    SecurityHealthAnalyticsCustomModule expectedResponse =
+        SecurityHealthAnalyticsCustomModule.newBuilder()
+            .setName(
+                SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+                        "[ORGANIZATION]", "[CUSTOM_MODULE]")
+                    .toString())
+            .setDisplayName("displayName1714148973")
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .setLastEditor("lastEditor1523898275")
+            .setAncestorModule(
+                SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+                        "[ORGANIZATION]", "[CUSTOM_MODULE]")
+                    .toString())
+            .setCustomConfig(CustomConfig.newBuilder().build())
             .build();
     mockService.addResponse(expectedResponse);
 
-    GroupAssetsRequest request =
-        GroupAssetsRequest.newBuilder()
-            .setParent(OrganizationName.of("[ORGANIZATION]").toString())
-            .setFilter("filter-1274492040")
-            .setGroupBy("groupBy293428022")
-            .setCompareDuration(Duration.newBuilder().build())
-            .setReadTime(Timestamp.newBuilder().build())
-            .setPageToken("pageToken873572522")
-            .setPageSize(883849137)
-            .build();
-
-    GroupAssetsPagedResponse pagedListResponse = client.groupAssets(request);
-
-    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+    SecurityHealthAnalyticsCustomModuleName name =
+        SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+            "[ORGANIZATION]", "[CUSTOM_MODULE]");
 
-    Assert.assertEquals(1, resources.size());
-    Assert.assertEquals(expectedResponse.getGroupByResultsList().get(0), resources.get(0));
+    SecurityHealthAnalyticsCustomModule actualResponse =
+        client.getSecurityHealthAnalyticsCustomModule(name);
+    Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
     Assert.assertEquals(1, actualRequests.size());
@@ -2126,24 +2354,17 @@ public void groupAssetsTest() throws Exception {
   }
 
   @Test
-  public void groupAssetsExceptionTest() throws Exception {
+  public void getSecurityHealthAnalyticsCustomModuleExceptionTest() throws Exception {
     ApiException exception =
         ApiExceptionFactory.createException(
             new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
     mockService.addException(exception);
 
     try {
-      GroupAssetsRequest request =
-          GroupAssetsRequest.newBuilder()
-              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
-              .setFilter("filter-1274492040")
-              .setGroupBy("groupBy293428022")
-              .setCompareDuration(Duration.newBuilder().build())
-              .setReadTime(Timestamp.newBuilder().build())
-              .setPageToken("pageToken873572522")
-              .setPageSize(883849137)
-              .build();
-      client.groupAssets(request);
+      SecurityHealthAnalyticsCustomModuleName name =
+          SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+              "[ORGANIZATION]", "[CUSTOM_MODULE]");
+      client.getSecurityHealthAnalyticsCustomModule(name);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception.
@@ -2151,24 +2372,30 @@ public void groupAssetsExceptionTest() throws Exception {
   }
 
   @Test
-  public void groupFindingsTest() throws Exception {
-    GroupResult responsesElement = GroupResult.newBuilder().build();
-    GroupFindingsResponse expectedResponse =
-        GroupFindingsResponse.newBuilder()
-            .setNextPageToken("")
-            .addAllGroupByResults(Arrays.asList(responsesElement))
+  public void getSecurityHealthAnalyticsCustomModuleTest2() throws Exception {
+    SecurityHealthAnalyticsCustomModule expectedResponse =
+        SecurityHealthAnalyticsCustomModule.newBuilder()
+            .setName(
+                SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+                        "[ORGANIZATION]", "[CUSTOM_MODULE]")
+                    .toString())
+            .setDisplayName("displayName1714148973")
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .setLastEditor("lastEditor1523898275")
+            .setAncestorModule(
+                SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+                        "[ORGANIZATION]", "[CUSTOM_MODULE]")
+                    .toString())
+            .setCustomConfig(CustomConfig.newBuilder().build())
             .build();
     mockService.addResponse(expectedResponse);
 
-    SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
-    String groupBy = "groupBy293428022";
-
-    GroupFindingsPagedResponse pagedListResponse = client.groupFindings(parent, groupBy);
-
-    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+    String name =
+        "organizations/organization-3280/securityHealthAnalyticsSettings/customModules/customModule-3280";
 
-    Assert.assertEquals(1, resources.size());
-    Assert.assertEquals(expectedResponse.getGroupByResultsList().get(0), resources.get(0));
+    SecurityHealthAnalyticsCustomModule actualResponse =
+        client.getSecurityHealthAnalyticsCustomModule(name);
+    Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
     Assert.assertEquals(1, actualRequests.size());
@@ -2186,16 +2413,16 @@ public void groupFindingsTest() throws Exception {
   }
 
   @Test
-  public void groupFindingsExceptionTest() throws Exception {
+  public void getSecurityHealthAnalyticsCustomModuleExceptionTest2() throws Exception {
     ApiException exception =
         ApiExceptionFactory.createException(
             new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
     mockService.addException(exception);
 
     try {
-      SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
-      String groupBy = "groupBy293428022";
-      client.groupFindings(parent, groupBy);
+      String name =
+          "organizations/organization-3280/securityHealthAnalyticsSettings/customModules/customModule-3280";
+      client.getSecurityHealthAnalyticsCustomModule(name);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
       // Expected exception.
@@ -2203,19 +2430,233 @@ public void groupFindingsExceptionTest() throws Exception {
   }
 
   @Test
-  public void groupFindingsTest2() throws Exception {
-    GroupResult responsesElement = GroupResult.newBuilder().build();
-    GroupFindingsResponse expectedResponse =
-        GroupFindingsResponse.newBuilder()
-            .setNextPageToken("")
-            .addAllGroupByResults(Arrays.asList(responsesElement))
+  public void getSourceTest() throws Exception {
+    Source expectedResponse =
+        Source.newBuilder()
+            .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+            .setDisplayName("displayName1714148973")
+            .setDescription("description-1724546052")
+            .setCanonicalName("canonicalName2122381727")
             .build();
     mockService.addResponse(expectedResponse);
 
-    String parent = "organizations/organization-8741/sources/source-8741";
-    String groupBy = "groupBy293428022";
-
-    GroupFindingsPagedResponse pagedListResponse = client.groupFindings(parent, groupBy);
+    SourceName name = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+
+    Source actualResponse = client.getSource(name);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void getSourceExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      SourceName name = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+      client.getSource(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getSourceTest2() throws Exception {
+    Source expectedResponse =
+        Source.newBuilder()
+            .setName(SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]").toString())
+            .setDisplayName("displayName1714148973")
+            .setDescription("description-1724546052")
+            .setCanonicalName("canonicalName2122381727")
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String name = "organizations/organization-7292/sources/source-7292";
+
+    Source actualResponse = client.getSource(name);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void getSourceExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String name = "organizations/organization-7292/sources/source-7292";
+      client.getSource(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void groupAssetsTest() throws Exception {
+    GroupResult responsesElement = GroupResult.newBuilder().build();
+    GroupAssetsResponse expectedResponse =
+        GroupAssetsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllGroupByResults(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    GroupAssetsRequest request =
+        GroupAssetsRequest.newBuilder()
+            .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+            .setFilter("filter-1274492040")
+            .setGroupBy("groupBy293428022")
+            .setCompareDuration(Duration.newBuilder().build())
+            .setReadTime(Timestamp.newBuilder().build())
+            .setPageToken("pageToken873572522")
+            .setPageSize(883849137)
+            .build();
+
+    GroupAssetsPagedResponse pagedListResponse = client.groupAssets(request);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getGroupByResultsList().get(0), resources.get(0));
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void groupAssetsExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      GroupAssetsRequest request =
+          GroupAssetsRequest.newBuilder()
+              .setParent(OrganizationName.of("[ORGANIZATION]").toString())
+              .setFilter("filter-1274492040")
+              .setGroupBy("groupBy293428022")
+              .setCompareDuration(Duration.newBuilder().build())
+              .setReadTime(Timestamp.newBuilder().build())
+              .setPageToken("pageToken873572522")
+              .setPageSize(883849137)
+              .build();
+      client.groupAssets(request);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void groupFindingsTest() throws Exception {
+    GroupResult responsesElement = GroupResult.newBuilder().build();
+    GroupFindingsResponse expectedResponse =
+        GroupFindingsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllGroupByResults(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+    String groupBy = "groupBy293428022";
+
+    GroupFindingsPagedResponse pagedListResponse = client.groupFindings(parent, groupBy);
+
+    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(expectedResponse.getGroupByResultsList().get(0), resources.get(0));
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void groupFindingsExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      SourceName parent = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
+      String groupBy = "groupBy293428022";
+      client.groupFindings(parent, groupBy);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void groupFindingsTest2() throws Exception {
+    GroupResult responsesElement = GroupResult.newBuilder().build();
+    GroupFindingsResponse expectedResponse =
+        GroupFindingsResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllGroupByResults(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String parent = "organizations/organization-8741/sources/source-8741";
+    String groupBy = "groupBy293428022";
+
+    GroupFindingsPagedResponse pagedListResponse = client.groupFindings(parent, groupBy);
 
     List resources = Lists.newArrayList(pagedListResponse.iterateAll());
 
@@ -2326,6 +2767,116 @@ public void listAssetsExceptionTest() throws Exception {
     }
   }
 
+  @Test
+  public void listDescendantSecurityHealthAnalyticsCustomModulesTest() throws Exception {
+    SecurityHealthAnalyticsCustomModule responsesElement =
+        SecurityHealthAnalyticsCustomModule.newBuilder().build();
+    ListDescendantSecurityHealthAnalyticsCustomModulesResponse expectedResponse =
+        ListDescendantSecurityHealthAnalyticsCustomModulesResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllSecurityHealthAnalyticsCustomModules(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    SecurityHealthAnalyticsSettingsName parent =
+        SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]");
+
+    ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse pagedListResponse =
+        client.listDescendantSecurityHealthAnalyticsCustomModules(parent);
+
+    List resources =
+        Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(
+        expectedResponse.getSecurityHealthAnalyticsCustomModulesList().get(0), resources.get(0));
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void listDescendantSecurityHealthAnalyticsCustomModulesExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      SecurityHealthAnalyticsSettingsName parent =
+          SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]");
+      client.listDescendantSecurityHealthAnalyticsCustomModules(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listDescendantSecurityHealthAnalyticsCustomModulesTest2() throws Exception {
+    SecurityHealthAnalyticsCustomModule responsesElement =
+        SecurityHealthAnalyticsCustomModule.newBuilder().build();
+    ListDescendantSecurityHealthAnalyticsCustomModulesResponse expectedResponse =
+        ListDescendantSecurityHealthAnalyticsCustomModulesResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllSecurityHealthAnalyticsCustomModules(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String parent = "organizations/organization-7807/securityHealthAnalyticsSettings";
+
+    ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse pagedListResponse =
+        client.listDescendantSecurityHealthAnalyticsCustomModules(parent);
+
+    List resources =
+        Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(
+        expectedResponse.getSecurityHealthAnalyticsCustomModulesList().get(0), resources.get(0));
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void listDescendantSecurityHealthAnalyticsCustomModulesExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String parent = "organizations/organization-7807/securityHealthAnalyticsSettings";
+      client.listDescendantSecurityHealthAnalyticsCustomModules(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
   @Test
   public void listFindingsTest() throws Exception {
     ListFindingsResponse.ListFindingsResult responsesElement =
@@ -2799,6 +3350,228 @@ public void listNotificationConfigsExceptionTest4() throws Exception {
     }
   }
 
+  @Test
+  public void listEffectiveSecurityHealthAnalyticsCustomModulesTest() throws Exception {
+    EffectiveSecurityHealthAnalyticsCustomModule responsesElement =
+        EffectiveSecurityHealthAnalyticsCustomModule.newBuilder().build();
+    ListEffectiveSecurityHealthAnalyticsCustomModulesResponse expectedResponse =
+        ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllEffectiveSecurityHealthAnalyticsCustomModules(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    SecurityHealthAnalyticsSettingsName parent =
+        SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]");
+
+    ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse pagedListResponse =
+        client.listEffectiveSecurityHealthAnalyticsCustomModules(parent);
+
+    List resources =
+        Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(
+        expectedResponse.getEffectiveSecurityHealthAnalyticsCustomModulesList().get(0),
+        resources.get(0));
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void listEffectiveSecurityHealthAnalyticsCustomModulesExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      SecurityHealthAnalyticsSettingsName parent =
+          SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]");
+      client.listEffectiveSecurityHealthAnalyticsCustomModules(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listEffectiveSecurityHealthAnalyticsCustomModulesTest2() throws Exception {
+    EffectiveSecurityHealthAnalyticsCustomModule responsesElement =
+        EffectiveSecurityHealthAnalyticsCustomModule.newBuilder().build();
+    ListEffectiveSecurityHealthAnalyticsCustomModulesResponse expectedResponse =
+        ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllEffectiveSecurityHealthAnalyticsCustomModules(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String parent = "organizations/organization-7807/securityHealthAnalyticsSettings";
+
+    ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse pagedListResponse =
+        client.listEffectiveSecurityHealthAnalyticsCustomModules(parent);
+
+    List resources =
+        Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(
+        expectedResponse.getEffectiveSecurityHealthAnalyticsCustomModulesList().get(0),
+        resources.get(0));
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void listEffectiveSecurityHealthAnalyticsCustomModulesExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String parent = "organizations/organization-7807/securityHealthAnalyticsSettings";
+      client.listEffectiveSecurityHealthAnalyticsCustomModules(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listSecurityHealthAnalyticsCustomModulesTest() throws Exception {
+    SecurityHealthAnalyticsCustomModule responsesElement =
+        SecurityHealthAnalyticsCustomModule.newBuilder().build();
+    ListSecurityHealthAnalyticsCustomModulesResponse expectedResponse =
+        ListSecurityHealthAnalyticsCustomModulesResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllSecurityHealthAnalyticsCustomModules(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    SecurityHealthAnalyticsSettingsName parent =
+        SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]");
+
+    ListSecurityHealthAnalyticsCustomModulesPagedResponse pagedListResponse =
+        client.listSecurityHealthAnalyticsCustomModules(parent);
+
+    List resources =
+        Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(
+        expectedResponse.getSecurityHealthAnalyticsCustomModulesList().get(0), resources.get(0));
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void listSecurityHealthAnalyticsCustomModulesExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      SecurityHealthAnalyticsSettingsName parent =
+          SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]");
+      client.listSecurityHealthAnalyticsCustomModules(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listSecurityHealthAnalyticsCustomModulesTest2() throws Exception {
+    SecurityHealthAnalyticsCustomModule responsesElement =
+        SecurityHealthAnalyticsCustomModule.newBuilder().build();
+    ListSecurityHealthAnalyticsCustomModulesResponse expectedResponse =
+        ListSecurityHealthAnalyticsCustomModulesResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllSecurityHealthAnalyticsCustomModules(Arrays.asList(responsesElement))
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    String parent = "organizations/organization-7807/securityHealthAnalyticsSettings";
+
+    ListSecurityHealthAnalyticsCustomModulesPagedResponse pagedListResponse =
+        client.listSecurityHealthAnalyticsCustomModules(parent);
+
+    List resources =
+        Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(
+        expectedResponse.getSecurityHealthAnalyticsCustomModulesList().get(0), resources.get(0));
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void listSecurityHealthAnalyticsCustomModulesExceptionTest2() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      String parent = "organizations/organization-7807/securityHealthAnalyticsSettings";
+      client.listSecurityHealthAnalyticsCustomModules(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
   @Test
   public void listSourcesTest() throws Exception {
     Source responsesElement = Source.newBuilder().build();
@@ -3126,6 +3899,7 @@ public void setFindingStateTest() throws Exception {
             .setExfiltration(Exfiltration.newBuilder().build())
             .addAllIamBindings(new ArrayList())
             .setNextSteps("nextSteps1206138868")
+            .setModuleName("moduleName-870351081")
             .addAllContainers(new ArrayList())
             .setKubernetes(Kubernetes.newBuilder().build())
             .setDatabase(Database.newBuilder().build())
@@ -3209,6 +3983,7 @@ public void setFindingStateTest2() throws Exception {
             .setExfiltration(Exfiltration.newBuilder().build())
             .addAllIamBindings(new ArrayList())
             .setNextSteps("nextSteps1206138868")
+            .setModuleName("moduleName-870351081")
             .addAllContainers(new ArrayList())
             .setKubernetes(Kubernetes.newBuilder().build())
             .setDatabase(Database.newBuilder().build())
@@ -3290,6 +4065,7 @@ public void setMuteTest() throws Exception {
             .setExfiltration(Exfiltration.newBuilder().build())
             .addAllIamBindings(new ArrayList())
             .setNextSteps("nextSteps1206138868")
+            .setModuleName("moduleName-870351081")
             .addAllContainers(new ArrayList())
             .setKubernetes(Kubernetes.newBuilder().build())
             .setDatabase(Database.newBuilder().build())
@@ -3371,6 +4147,7 @@ public void setMuteTest2() throws Exception {
             .setExfiltration(Exfiltration.newBuilder().build())
             .addAllIamBindings(new ArrayList())
             .setNextSteps("nextSteps1206138868")
+            .setModuleName("moduleName-870351081")
             .addAllContainers(new ArrayList())
             .setKubernetes(Kubernetes.newBuilder().build())
             .setDatabase(Database.newBuilder().build())
@@ -3702,6 +4479,7 @@ public void updateFindingTest() throws Exception {
             .setExfiltration(Exfiltration.newBuilder().build())
             .addAllIamBindings(new ArrayList())
             .setNextSteps("nextSteps1206138868")
+            .setModuleName("moduleName-870351081")
             .addAllContainers(new ArrayList())
             .setKubernetes(Kubernetes.newBuilder().build())
             .setDatabase(Database.newBuilder().build())
@@ -3741,6 +4519,7 @@ public void updateFindingTest() throws Exception {
             .setExfiltration(Exfiltration.newBuilder().build())
             .addAllIamBindings(new ArrayList())
             .setNextSteps("nextSteps1206138868")
+            .setModuleName("moduleName-870351081")
             .addAllContainers(new ArrayList())
             .setKubernetes(Kubernetes.newBuilder().build())
             .setDatabase(Database.newBuilder().build())
@@ -3805,6 +4584,7 @@ public void updateFindingExceptionTest() throws Exception {
               .setExfiltration(Exfiltration.newBuilder().build())
               .addAllIamBindings(new ArrayList())
               .setNextSteps("nextSteps1206138868")
+              .setModuleName("moduleName-870351081")
               .addAllContainers(new ArrayList())
               .setKubernetes(Kubernetes.newBuilder().build())
               .setDatabase(Database.newBuilder().build())
@@ -4090,6 +4870,94 @@ public void updateOrganizationSettingsExceptionTest() throws Exception {
     }
   }
 
+  @Test
+  public void updateSecurityHealthAnalyticsCustomModuleTest() throws Exception {
+    SecurityHealthAnalyticsCustomModule expectedResponse =
+        SecurityHealthAnalyticsCustomModule.newBuilder()
+            .setName(
+                SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+                        "[ORGANIZATION]", "[CUSTOM_MODULE]")
+                    .toString())
+            .setDisplayName("displayName1714148973")
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .setLastEditor("lastEditor1523898275")
+            .setAncestorModule(
+                SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+                        "[ORGANIZATION]", "[CUSTOM_MODULE]")
+                    .toString())
+            .setCustomConfig(CustomConfig.newBuilder().build())
+            .build();
+    mockService.addResponse(expectedResponse);
+
+    SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule =
+        SecurityHealthAnalyticsCustomModule.newBuilder()
+            .setName(
+                SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+                        "[ORGANIZATION]", "[CUSTOM_MODULE]")
+                    .toString())
+            .setDisplayName("displayName1714148973")
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .setLastEditor("lastEditor1523898275")
+            .setAncestorModule(
+                SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+                        "[ORGANIZATION]", "[CUSTOM_MODULE]")
+                    .toString())
+            .setCustomConfig(CustomConfig.newBuilder().build())
+            .build();
+    FieldMask updateMask = FieldMask.newBuilder().build();
+
+    SecurityHealthAnalyticsCustomModule actualResponse =
+        client.updateSecurityHealthAnalyticsCustomModule(
+            securityHealthAnalyticsCustomModule, updateMask);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockService.getRequestPaths();
+    Assert.assertEquals(1, actualRequests.size());
+
+    String apiClientHeaderKey =
+        mockService
+            .getRequestHeaders()
+            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
+            .iterator()
+            .next();
+    Assert.assertTrue(
+        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
+            .matcher(apiClientHeaderKey)
+            .matches());
+  }
+
+  @Test
+  public void updateSecurityHealthAnalyticsCustomModuleExceptionTest() throws Exception {
+    ApiException exception =
+        ApiExceptionFactory.createException(
+            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
+    mockService.addException(exception);
+
+    try {
+      SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule =
+          SecurityHealthAnalyticsCustomModule.newBuilder()
+              .setName(
+                  SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+                          "[ORGANIZATION]", "[CUSTOM_MODULE]")
+                      .toString())
+              .setDisplayName("displayName1714148973")
+              .setUpdateTime(Timestamp.newBuilder().build())
+              .setLastEditor("lastEditor1523898275")
+              .setAncestorModule(
+                  SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+                          "[ORGANIZATION]", "[CUSTOM_MODULE]")
+                      .toString())
+              .setCustomConfig(CustomConfig.newBuilder().build())
+              .build();
+      FieldMask updateMask = FieldMask.newBuilder().build();
+      client.updateSecurityHealthAnalyticsCustomModule(
+          securityHealthAnalyticsCustomModule, updateMask);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
   @Test
   public void updateSourceTest() throws Exception {
     Source expectedResponse =
diff --git a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java
index 0b1fdab200d7..7dc2ecec56d6 100644
--- a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java
+++ b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java
@@ -20,9 +20,12 @@
 import static com.google.cloud.securitycenter.v1.SecurityCenterClient.GroupFindingsPagedResponse;
 import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListAssetsPagedResponse;
 import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListBigQueryExportsPagedResponse;
+import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse;
+import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse;
 import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListFindingsPagedResponse;
 import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListMuteConfigsPagedResponse;
 import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListNotificationConfigsPagedResponse;
+import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse;
 import static com.google.cloud.securitycenter.v1.SecurityCenterClient.ListSourcesPagedResponse;
 
 import com.google.api.gax.core.NoCredentialsProvider;
@@ -191,6 +194,126 @@ public void bulkMuteFindingsExceptionTest2() throws Exception {
     }
   }
 
+  @Test
+  public void createSecurityHealthAnalyticsCustomModuleTest() throws Exception {
+    SecurityHealthAnalyticsCustomModule expectedResponse =
+        SecurityHealthAnalyticsCustomModule.newBuilder()
+            .setName(
+                SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+                        "[ORGANIZATION]", "[CUSTOM_MODULE]")
+                    .toString())
+            .setDisplayName("displayName1714148973")
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .setLastEditor("lastEditor1523898275")
+            .setAncestorModule(
+                SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+                        "[ORGANIZATION]", "[CUSTOM_MODULE]")
+                    .toString())
+            .setCustomConfig(CustomConfig.newBuilder().build())
+            .build();
+    mockSecurityCenter.addResponse(expectedResponse);
+
+    SecurityHealthAnalyticsSettingsName parent =
+        SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]");
+    SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule =
+        SecurityHealthAnalyticsCustomModule.newBuilder().build();
+
+    SecurityHealthAnalyticsCustomModule actualResponse =
+        client.createSecurityHealthAnalyticsCustomModule(
+            parent, securityHealthAnalyticsCustomModule);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockSecurityCenter.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    CreateSecurityHealthAnalyticsCustomModuleRequest actualRequest =
+        ((CreateSecurityHealthAnalyticsCustomModuleRequest) actualRequests.get(0));
+
+    Assert.assertEquals(parent.toString(), actualRequest.getParent());
+    Assert.assertEquals(
+        securityHealthAnalyticsCustomModule,
+        actualRequest.getSecurityHealthAnalyticsCustomModule());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void createSecurityHealthAnalyticsCustomModuleExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockSecurityCenter.addException(exception);
+
+    try {
+      SecurityHealthAnalyticsSettingsName parent =
+          SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]");
+      SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule =
+          SecurityHealthAnalyticsCustomModule.newBuilder().build();
+      client.createSecurityHealthAnalyticsCustomModule(parent, securityHealthAnalyticsCustomModule);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void createSecurityHealthAnalyticsCustomModuleTest2() throws Exception {
+    SecurityHealthAnalyticsCustomModule expectedResponse =
+        SecurityHealthAnalyticsCustomModule.newBuilder()
+            .setName(
+                SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+                        "[ORGANIZATION]", "[CUSTOM_MODULE]")
+                    .toString())
+            .setDisplayName("displayName1714148973")
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .setLastEditor("lastEditor1523898275")
+            .setAncestorModule(
+                SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+                        "[ORGANIZATION]", "[CUSTOM_MODULE]")
+                    .toString())
+            .setCustomConfig(CustomConfig.newBuilder().build())
+            .build();
+    mockSecurityCenter.addResponse(expectedResponse);
+
+    String parent = "parent-995424086";
+    SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule =
+        SecurityHealthAnalyticsCustomModule.newBuilder().build();
+
+    SecurityHealthAnalyticsCustomModule actualResponse =
+        client.createSecurityHealthAnalyticsCustomModule(
+            parent, securityHealthAnalyticsCustomModule);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockSecurityCenter.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    CreateSecurityHealthAnalyticsCustomModuleRequest actualRequest =
+        ((CreateSecurityHealthAnalyticsCustomModuleRequest) actualRequests.get(0));
+
+    Assert.assertEquals(parent, actualRequest.getParent());
+    Assert.assertEquals(
+        securityHealthAnalyticsCustomModule,
+        actualRequest.getSecurityHealthAnalyticsCustomModule());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void createSecurityHealthAnalyticsCustomModuleExceptionTest2() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockSecurityCenter.addException(exception);
+
+    try {
+      String parent = "parent-995424086";
+      SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule =
+          SecurityHealthAnalyticsCustomModule.newBuilder().build();
+      client.createSecurityHealthAnalyticsCustomModule(parent, securityHealthAnalyticsCustomModule);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
   @Test
   public void createSourceTest() throws Exception {
     Source expectedResponse =
@@ -312,6 +435,7 @@ public void createFindingTest() throws Exception {
             .setExfiltration(Exfiltration.newBuilder().build())
             .addAllIamBindings(new ArrayList())
             .setNextSteps("nextSteps1206138868")
+            .setModuleName("moduleName-870351081")
             .addAllContainers(new ArrayList())
             .setKubernetes(Kubernetes.newBuilder().build())
             .setDatabase(Database.newBuilder().build())
@@ -389,6 +513,7 @@ public void createFindingTest2() throws Exception {
             .setExfiltration(Exfiltration.newBuilder().build())
             .addAllIamBindings(new ArrayList())
             .setNextSteps("nextSteps1206138868")
+            .setModuleName("moduleName-870351081")
             .addAllContainers(new ArrayList())
             .setKubernetes(Kubernetes.newBuilder().build())
             .setDatabase(Database.newBuilder().build())
@@ -1381,6 +1506,80 @@ public void deleteNotificationConfigExceptionTest2() throws Exception {
     }
   }
 
+  @Test
+  public void deleteSecurityHealthAnalyticsCustomModuleTest() throws Exception {
+    Empty expectedResponse = Empty.newBuilder().build();
+    mockSecurityCenter.addResponse(expectedResponse);
+
+    SecurityHealthAnalyticsCustomModuleName name =
+        SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+            "[ORGANIZATION]", "[CUSTOM_MODULE]");
+
+    client.deleteSecurityHealthAnalyticsCustomModule(name);
+
+    List actualRequests = mockSecurityCenter.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    DeleteSecurityHealthAnalyticsCustomModuleRequest actualRequest =
+        ((DeleteSecurityHealthAnalyticsCustomModuleRequest) actualRequests.get(0));
+
+    Assert.assertEquals(name.toString(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void deleteSecurityHealthAnalyticsCustomModuleExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockSecurityCenter.addException(exception);
+
+    try {
+      SecurityHealthAnalyticsCustomModuleName name =
+          SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+              "[ORGANIZATION]", "[CUSTOM_MODULE]");
+      client.deleteSecurityHealthAnalyticsCustomModule(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void deleteSecurityHealthAnalyticsCustomModuleTest2() throws Exception {
+    Empty expectedResponse = Empty.newBuilder().build();
+    mockSecurityCenter.addResponse(expectedResponse);
+
+    String name = "name3373707";
+
+    client.deleteSecurityHealthAnalyticsCustomModule(name);
+
+    List actualRequests = mockSecurityCenter.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    DeleteSecurityHealthAnalyticsCustomModuleRequest actualRequest =
+        ((DeleteSecurityHealthAnalyticsCustomModuleRequest) actualRequests.get(0));
+
+    Assert.assertEquals(name, actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void deleteSecurityHealthAnalyticsCustomModuleExceptionTest2() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockSecurityCenter.addException(exception);
+
+    try {
+      String name = "name3373707";
+      client.deleteSecurityHealthAnalyticsCustomModule(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
   @Test
   public void getBigQueryExportTest() throws Exception {
     BigQueryExport expectedResponse =
@@ -1829,6 +2028,208 @@ public void getOrganizationSettingsExceptionTest2() throws Exception {
     }
   }
 
+  @Test
+  public void getEffectiveSecurityHealthAnalyticsCustomModuleTest() throws Exception {
+    EffectiveSecurityHealthAnalyticsCustomModule expectedResponse =
+        EffectiveSecurityHealthAnalyticsCustomModule.newBuilder()
+            .setName(
+                EffectiveSecurityHealthAnalyticsCustomModuleName
+                    .ofOrganizationEffectiveCustomModuleName(
+                        "[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]")
+                    .toString())
+            .setCustomConfig(CustomConfig.newBuilder().build())
+            .setDisplayName("displayName1714148973")
+            .build();
+    mockSecurityCenter.addResponse(expectedResponse);
+
+    EffectiveSecurityHealthAnalyticsCustomModuleName name =
+        EffectiveSecurityHealthAnalyticsCustomModuleName.ofOrganizationEffectiveCustomModuleName(
+            "[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]");
+
+    EffectiveSecurityHealthAnalyticsCustomModule actualResponse =
+        client.getEffectiveSecurityHealthAnalyticsCustomModule(name);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockSecurityCenter.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetEffectiveSecurityHealthAnalyticsCustomModuleRequest actualRequest =
+        ((GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) actualRequests.get(0));
+
+    Assert.assertEquals(name.toString(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getEffectiveSecurityHealthAnalyticsCustomModuleExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockSecurityCenter.addException(exception);
+
+    try {
+      EffectiveSecurityHealthAnalyticsCustomModuleName name =
+          EffectiveSecurityHealthAnalyticsCustomModuleName.ofOrganizationEffectiveCustomModuleName(
+              "[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]");
+      client.getEffectiveSecurityHealthAnalyticsCustomModule(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getEffectiveSecurityHealthAnalyticsCustomModuleTest2() throws Exception {
+    EffectiveSecurityHealthAnalyticsCustomModule expectedResponse =
+        EffectiveSecurityHealthAnalyticsCustomModule.newBuilder()
+            .setName(
+                EffectiveSecurityHealthAnalyticsCustomModuleName
+                    .ofOrganizationEffectiveCustomModuleName(
+                        "[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]")
+                    .toString())
+            .setCustomConfig(CustomConfig.newBuilder().build())
+            .setDisplayName("displayName1714148973")
+            .build();
+    mockSecurityCenter.addResponse(expectedResponse);
+
+    String name = "name3373707";
+
+    EffectiveSecurityHealthAnalyticsCustomModule actualResponse =
+        client.getEffectiveSecurityHealthAnalyticsCustomModule(name);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockSecurityCenter.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetEffectiveSecurityHealthAnalyticsCustomModuleRequest actualRequest =
+        ((GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) actualRequests.get(0));
+
+    Assert.assertEquals(name, actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getEffectiveSecurityHealthAnalyticsCustomModuleExceptionTest2() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockSecurityCenter.addException(exception);
+
+    try {
+      String name = "name3373707";
+      client.getEffectiveSecurityHealthAnalyticsCustomModule(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getSecurityHealthAnalyticsCustomModuleTest() throws Exception {
+    SecurityHealthAnalyticsCustomModule expectedResponse =
+        SecurityHealthAnalyticsCustomModule.newBuilder()
+            .setName(
+                SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+                        "[ORGANIZATION]", "[CUSTOM_MODULE]")
+                    .toString())
+            .setDisplayName("displayName1714148973")
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .setLastEditor("lastEditor1523898275")
+            .setAncestorModule(
+                SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+                        "[ORGANIZATION]", "[CUSTOM_MODULE]")
+                    .toString())
+            .setCustomConfig(CustomConfig.newBuilder().build())
+            .build();
+    mockSecurityCenter.addResponse(expectedResponse);
+
+    SecurityHealthAnalyticsCustomModuleName name =
+        SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+            "[ORGANIZATION]", "[CUSTOM_MODULE]");
+
+    SecurityHealthAnalyticsCustomModule actualResponse =
+        client.getSecurityHealthAnalyticsCustomModule(name);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockSecurityCenter.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetSecurityHealthAnalyticsCustomModuleRequest actualRequest =
+        ((GetSecurityHealthAnalyticsCustomModuleRequest) actualRequests.get(0));
+
+    Assert.assertEquals(name.toString(), actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getSecurityHealthAnalyticsCustomModuleExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockSecurityCenter.addException(exception);
+
+    try {
+      SecurityHealthAnalyticsCustomModuleName name =
+          SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+              "[ORGANIZATION]", "[CUSTOM_MODULE]");
+      client.getSecurityHealthAnalyticsCustomModule(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void getSecurityHealthAnalyticsCustomModuleTest2() throws Exception {
+    SecurityHealthAnalyticsCustomModule expectedResponse =
+        SecurityHealthAnalyticsCustomModule.newBuilder()
+            .setName(
+                SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+                        "[ORGANIZATION]", "[CUSTOM_MODULE]")
+                    .toString())
+            .setDisplayName("displayName1714148973")
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .setLastEditor("lastEditor1523898275")
+            .setAncestorModule(
+                SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+                        "[ORGANIZATION]", "[CUSTOM_MODULE]")
+                    .toString())
+            .setCustomConfig(CustomConfig.newBuilder().build())
+            .build();
+    mockSecurityCenter.addResponse(expectedResponse);
+
+    String name = "name3373707";
+
+    SecurityHealthAnalyticsCustomModule actualResponse =
+        client.getSecurityHealthAnalyticsCustomModule(name);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockSecurityCenter.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    GetSecurityHealthAnalyticsCustomModuleRequest actualRequest =
+        ((GetSecurityHealthAnalyticsCustomModuleRequest) actualRequests.get(0));
+
+    Assert.assertEquals(name, actualRequest.getName());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void getSecurityHealthAnalyticsCustomModuleExceptionTest2() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockSecurityCenter.addException(exception);
+
+    try {
+      String name = "name3373707";
+      client.getSecurityHealthAnalyticsCustomModule(name);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
   @Test
   public void getSourceTest() throws Exception {
     Source expectedResponse =
@@ -2146,6 +2547,106 @@ public void listAssetsExceptionTest() throws Exception {
     }
   }
 
+  @Test
+  public void listDescendantSecurityHealthAnalyticsCustomModulesTest() throws Exception {
+    SecurityHealthAnalyticsCustomModule responsesElement =
+        SecurityHealthAnalyticsCustomModule.newBuilder().build();
+    ListDescendantSecurityHealthAnalyticsCustomModulesResponse expectedResponse =
+        ListDescendantSecurityHealthAnalyticsCustomModulesResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllSecurityHealthAnalyticsCustomModules(Arrays.asList(responsesElement))
+            .build();
+    mockSecurityCenter.addResponse(expectedResponse);
+
+    SecurityHealthAnalyticsSettingsName parent =
+        SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]");
+
+    ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse pagedListResponse =
+        client.listDescendantSecurityHealthAnalyticsCustomModules(parent);
+
+    List resources =
+        Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(
+        expectedResponse.getSecurityHealthAnalyticsCustomModulesList().get(0), resources.get(0));
+
+    List actualRequests = mockSecurityCenter.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListDescendantSecurityHealthAnalyticsCustomModulesRequest actualRequest =
+        ((ListDescendantSecurityHealthAnalyticsCustomModulesRequest) actualRequests.get(0));
+
+    Assert.assertEquals(parent.toString(), actualRequest.getParent());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listDescendantSecurityHealthAnalyticsCustomModulesExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockSecurityCenter.addException(exception);
+
+    try {
+      SecurityHealthAnalyticsSettingsName parent =
+          SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]");
+      client.listDescendantSecurityHealthAnalyticsCustomModules(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listDescendantSecurityHealthAnalyticsCustomModulesTest2() throws Exception {
+    SecurityHealthAnalyticsCustomModule responsesElement =
+        SecurityHealthAnalyticsCustomModule.newBuilder().build();
+    ListDescendantSecurityHealthAnalyticsCustomModulesResponse expectedResponse =
+        ListDescendantSecurityHealthAnalyticsCustomModulesResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllSecurityHealthAnalyticsCustomModules(Arrays.asList(responsesElement))
+            .build();
+    mockSecurityCenter.addResponse(expectedResponse);
+
+    String parent = "parent-995424086";
+
+    ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse pagedListResponse =
+        client.listDescendantSecurityHealthAnalyticsCustomModules(parent);
+
+    List resources =
+        Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(
+        expectedResponse.getSecurityHealthAnalyticsCustomModulesList().get(0), resources.get(0));
+
+    List actualRequests = mockSecurityCenter.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListDescendantSecurityHealthAnalyticsCustomModulesRequest actualRequest =
+        ((ListDescendantSecurityHealthAnalyticsCustomModulesRequest) actualRequests.get(0));
+
+    Assert.assertEquals(parent, actualRequest.getParent());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listDescendantSecurityHealthAnalyticsCustomModulesExceptionTest2() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockSecurityCenter.addException(exception);
+
+    try {
+      String parent = "parent-995424086";
+      client.listDescendantSecurityHealthAnalyticsCustomModules(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
   @Test
   public void listFindingsTest() throws Exception {
     ListFindingsResponse.ListFindingsResult responsesElement =
@@ -2576,6 +3077,208 @@ public void listNotificationConfigsExceptionTest4() throws Exception {
     }
   }
 
+  @Test
+  public void listEffectiveSecurityHealthAnalyticsCustomModulesTest() throws Exception {
+    EffectiveSecurityHealthAnalyticsCustomModule responsesElement =
+        EffectiveSecurityHealthAnalyticsCustomModule.newBuilder().build();
+    ListEffectiveSecurityHealthAnalyticsCustomModulesResponse expectedResponse =
+        ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllEffectiveSecurityHealthAnalyticsCustomModules(Arrays.asList(responsesElement))
+            .build();
+    mockSecurityCenter.addResponse(expectedResponse);
+
+    SecurityHealthAnalyticsSettingsName parent =
+        SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]");
+
+    ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse pagedListResponse =
+        client.listEffectiveSecurityHealthAnalyticsCustomModules(parent);
+
+    List resources =
+        Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(
+        expectedResponse.getEffectiveSecurityHealthAnalyticsCustomModulesList().get(0),
+        resources.get(0));
+
+    List actualRequests = mockSecurityCenter.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListEffectiveSecurityHealthAnalyticsCustomModulesRequest actualRequest =
+        ((ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) actualRequests.get(0));
+
+    Assert.assertEquals(parent.toString(), actualRequest.getParent());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listEffectiveSecurityHealthAnalyticsCustomModulesExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockSecurityCenter.addException(exception);
+
+    try {
+      SecurityHealthAnalyticsSettingsName parent =
+          SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]");
+      client.listEffectiveSecurityHealthAnalyticsCustomModules(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listEffectiveSecurityHealthAnalyticsCustomModulesTest2() throws Exception {
+    EffectiveSecurityHealthAnalyticsCustomModule responsesElement =
+        EffectiveSecurityHealthAnalyticsCustomModule.newBuilder().build();
+    ListEffectiveSecurityHealthAnalyticsCustomModulesResponse expectedResponse =
+        ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllEffectiveSecurityHealthAnalyticsCustomModules(Arrays.asList(responsesElement))
+            .build();
+    mockSecurityCenter.addResponse(expectedResponse);
+
+    String parent = "parent-995424086";
+
+    ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse pagedListResponse =
+        client.listEffectiveSecurityHealthAnalyticsCustomModules(parent);
+
+    List resources =
+        Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(
+        expectedResponse.getEffectiveSecurityHealthAnalyticsCustomModulesList().get(0),
+        resources.get(0));
+
+    List actualRequests = mockSecurityCenter.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListEffectiveSecurityHealthAnalyticsCustomModulesRequest actualRequest =
+        ((ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) actualRequests.get(0));
+
+    Assert.assertEquals(parent, actualRequest.getParent());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listEffectiveSecurityHealthAnalyticsCustomModulesExceptionTest2() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockSecurityCenter.addException(exception);
+
+    try {
+      String parent = "parent-995424086";
+      client.listEffectiveSecurityHealthAnalyticsCustomModules(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listSecurityHealthAnalyticsCustomModulesTest() throws Exception {
+    SecurityHealthAnalyticsCustomModule responsesElement =
+        SecurityHealthAnalyticsCustomModule.newBuilder().build();
+    ListSecurityHealthAnalyticsCustomModulesResponse expectedResponse =
+        ListSecurityHealthAnalyticsCustomModulesResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllSecurityHealthAnalyticsCustomModules(Arrays.asList(responsesElement))
+            .build();
+    mockSecurityCenter.addResponse(expectedResponse);
+
+    SecurityHealthAnalyticsSettingsName parent =
+        SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]");
+
+    ListSecurityHealthAnalyticsCustomModulesPagedResponse pagedListResponse =
+        client.listSecurityHealthAnalyticsCustomModules(parent);
+
+    List resources =
+        Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(
+        expectedResponse.getSecurityHealthAnalyticsCustomModulesList().get(0), resources.get(0));
+
+    List actualRequests = mockSecurityCenter.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListSecurityHealthAnalyticsCustomModulesRequest actualRequest =
+        ((ListSecurityHealthAnalyticsCustomModulesRequest) actualRequests.get(0));
+
+    Assert.assertEquals(parent.toString(), actualRequest.getParent());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listSecurityHealthAnalyticsCustomModulesExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockSecurityCenter.addException(exception);
+
+    try {
+      SecurityHealthAnalyticsSettingsName parent =
+          SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]");
+      client.listSecurityHealthAnalyticsCustomModules(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
+  @Test
+  public void listSecurityHealthAnalyticsCustomModulesTest2() throws Exception {
+    SecurityHealthAnalyticsCustomModule responsesElement =
+        SecurityHealthAnalyticsCustomModule.newBuilder().build();
+    ListSecurityHealthAnalyticsCustomModulesResponse expectedResponse =
+        ListSecurityHealthAnalyticsCustomModulesResponse.newBuilder()
+            .setNextPageToken("")
+            .addAllSecurityHealthAnalyticsCustomModules(Arrays.asList(responsesElement))
+            .build();
+    mockSecurityCenter.addResponse(expectedResponse);
+
+    String parent = "parent-995424086";
+
+    ListSecurityHealthAnalyticsCustomModulesPagedResponse pagedListResponse =
+        client.listSecurityHealthAnalyticsCustomModules(parent);
+
+    List resources =
+        Lists.newArrayList(pagedListResponse.iterateAll());
+
+    Assert.assertEquals(1, resources.size());
+    Assert.assertEquals(
+        expectedResponse.getSecurityHealthAnalyticsCustomModulesList().get(0), resources.get(0));
+
+    List actualRequests = mockSecurityCenter.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    ListSecurityHealthAnalyticsCustomModulesRequest actualRequest =
+        ((ListSecurityHealthAnalyticsCustomModulesRequest) actualRequests.get(0));
+
+    Assert.assertEquals(parent, actualRequest.getParent());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void listSecurityHealthAnalyticsCustomModulesExceptionTest2() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockSecurityCenter.addException(exception);
+
+    try {
+      String parent = "parent-995424086";
+      client.listSecurityHealthAnalyticsCustomModules(parent);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
   @Test
   public void listSourcesTest() throws Exception {
     Source responsesElement = Source.newBuilder().build();
@@ -2873,6 +3576,7 @@ public void setFindingStateTest() throws Exception {
             .setExfiltration(Exfiltration.newBuilder().build())
             .addAllIamBindings(new ArrayList())
             .setNextSteps("nextSteps1206138868")
+            .setModuleName("moduleName-870351081")
             .addAllContainers(new ArrayList())
             .setKubernetes(Kubernetes.newBuilder().build())
             .setDatabase(Database.newBuilder().build())
@@ -2952,6 +3656,7 @@ public void setFindingStateTest2() throws Exception {
             .setExfiltration(Exfiltration.newBuilder().build())
             .addAllIamBindings(new ArrayList())
             .setNextSteps("nextSteps1206138868")
+            .setModuleName("moduleName-870351081")
             .addAllContainers(new ArrayList())
             .setKubernetes(Kubernetes.newBuilder().build())
             .setDatabase(Database.newBuilder().build())
@@ -3029,6 +3734,7 @@ public void setMuteTest() throws Exception {
             .setExfiltration(Exfiltration.newBuilder().build())
             .addAllIamBindings(new ArrayList())
             .setNextSteps("nextSteps1206138868")
+            .setModuleName("moduleName-870351081")
             .addAllContainers(new ArrayList())
             .setKubernetes(Kubernetes.newBuilder().build())
             .setDatabase(Database.newBuilder().build())
@@ -3105,6 +3811,7 @@ public void setMuteTest2() throws Exception {
             .setExfiltration(Exfiltration.newBuilder().build())
             .addAllIamBindings(new ArrayList())
             .setNextSteps("nextSteps1206138868")
+            .setModuleName("moduleName-870351081")
             .addAllContainers(new ArrayList())
             .setKubernetes(Kubernetes.newBuilder().build())
             .setDatabase(Database.newBuilder().build())
@@ -3391,6 +4098,7 @@ public void updateFindingTest() throws Exception {
             .setExfiltration(Exfiltration.newBuilder().build())
             .addAllIamBindings(new ArrayList())
             .setNextSteps("nextSteps1206138868")
+            .setModuleName("moduleName-870351081")
             .addAllContainers(new ArrayList())
             .setKubernetes(Kubernetes.newBuilder().build())
             .setDatabase(Database.newBuilder().build())
@@ -3613,6 +4321,66 @@ public void updateOrganizationSettingsExceptionTest() throws Exception {
     }
   }
 
+  @Test
+  public void updateSecurityHealthAnalyticsCustomModuleTest() throws Exception {
+    SecurityHealthAnalyticsCustomModule expectedResponse =
+        SecurityHealthAnalyticsCustomModule.newBuilder()
+            .setName(
+                SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+                        "[ORGANIZATION]", "[CUSTOM_MODULE]")
+                    .toString())
+            .setDisplayName("displayName1714148973")
+            .setUpdateTime(Timestamp.newBuilder().build())
+            .setLastEditor("lastEditor1523898275")
+            .setAncestorModule(
+                SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName(
+                        "[ORGANIZATION]", "[CUSTOM_MODULE]")
+                    .toString())
+            .setCustomConfig(CustomConfig.newBuilder().build())
+            .build();
+    mockSecurityCenter.addResponse(expectedResponse);
+
+    SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule =
+        SecurityHealthAnalyticsCustomModule.newBuilder().build();
+    FieldMask updateMask = FieldMask.newBuilder().build();
+
+    SecurityHealthAnalyticsCustomModule actualResponse =
+        client.updateSecurityHealthAnalyticsCustomModule(
+            securityHealthAnalyticsCustomModule, updateMask);
+    Assert.assertEquals(expectedResponse, actualResponse);
+
+    List actualRequests = mockSecurityCenter.getRequests();
+    Assert.assertEquals(1, actualRequests.size());
+    UpdateSecurityHealthAnalyticsCustomModuleRequest actualRequest =
+        ((UpdateSecurityHealthAnalyticsCustomModuleRequest) actualRequests.get(0));
+
+    Assert.assertEquals(
+        securityHealthAnalyticsCustomModule,
+        actualRequest.getSecurityHealthAnalyticsCustomModule());
+    Assert.assertEquals(updateMask, actualRequest.getUpdateMask());
+    Assert.assertTrue(
+        channelProvider.isHeaderSent(
+            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+  }
+
+  @Test
+  public void updateSecurityHealthAnalyticsCustomModuleExceptionTest() throws Exception {
+    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
+    mockSecurityCenter.addException(exception);
+
+    try {
+      SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule =
+          SecurityHealthAnalyticsCustomModule.newBuilder().build();
+      FieldMask updateMask = FieldMask.newBuilder().build();
+      client.updateSecurityHealthAnalyticsCustomModule(
+          securityHealthAnalyticsCustomModule, updateMask);
+      Assert.fail("No exception raised");
+    } catch (InvalidArgumentException e) {
+      // Expected exception.
+    }
+  }
+
   @Test
   public void updateSourceTest() throws Exception {
     Source expectedResponse =
diff --git a/java-securitycenter/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java b/java-securitycenter/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java
index 7559a9334d97..4696721c1cd8 100644
--- a/java-securitycenter/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java
+++ b/java-securitycenter/grpc-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityCenterGrpc.java
@@ -81,6 +81,63 @@ private SecurityCenterGrpc() {}
     return getBulkMuteFindingsMethod;
   }
 
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest,
+          com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule>
+      getCreateSecurityHealthAnalyticsCustomModuleMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "CreateSecurityHealthAnalyticsCustomModule",
+      requestType =
+          com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.class,
+      responseType = com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest,
+          com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule>
+      getCreateSecurityHealthAnalyticsCustomModuleMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest,
+            com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule>
+        getCreateSecurityHealthAnalyticsCustomModuleMethod;
+    if ((getCreateSecurityHealthAnalyticsCustomModuleMethod =
+            SecurityCenterGrpc.getCreateSecurityHealthAnalyticsCustomModuleMethod)
+        == null) {
+      synchronized (SecurityCenterGrpc.class) {
+        if ((getCreateSecurityHealthAnalyticsCustomModuleMethod =
+                SecurityCenterGrpc.getCreateSecurityHealthAnalyticsCustomModuleMethod)
+            == null) {
+          SecurityCenterGrpc.getCreateSecurityHealthAnalyticsCustomModuleMethod =
+              getCreateSecurityHealthAnalyticsCustomModuleMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(
+                              SERVICE_NAME, "CreateSecurityHealthAnalyticsCustomModule"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.securitycenter.v1
+                                  .CreateSecurityHealthAnalyticsCustomModuleRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new SecurityCenterMethodDescriptorSupplier(
+                              "CreateSecurityHealthAnalyticsCustomModule"))
+                      .build();
+        }
+      }
+    }
+    return getCreateSecurityHealthAnalyticsCustomModuleMethod;
+  }
+
   private static volatile io.grpc.MethodDescriptor<
           com.google.cloud.securitycenter.v1.CreateSourceRequest,
           com.google.cloud.securitycenter.v1.Source>
@@ -363,6 +420,62 @@ private SecurityCenterGrpc() {}
     return getDeleteNotificationConfigMethod;
   }
 
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest,
+          com.google.protobuf.Empty>
+      getDeleteSecurityHealthAnalyticsCustomModuleMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "DeleteSecurityHealthAnalyticsCustomModule",
+      requestType =
+          com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.class,
+      responseType = com.google.protobuf.Empty.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest,
+          com.google.protobuf.Empty>
+      getDeleteSecurityHealthAnalyticsCustomModuleMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest,
+            com.google.protobuf.Empty>
+        getDeleteSecurityHealthAnalyticsCustomModuleMethod;
+    if ((getDeleteSecurityHealthAnalyticsCustomModuleMethod =
+            SecurityCenterGrpc.getDeleteSecurityHealthAnalyticsCustomModuleMethod)
+        == null) {
+      synchronized (SecurityCenterGrpc.class) {
+        if ((getDeleteSecurityHealthAnalyticsCustomModuleMethod =
+                SecurityCenterGrpc.getDeleteSecurityHealthAnalyticsCustomModuleMethod)
+            == null) {
+          SecurityCenterGrpc.getDeleteSecurityHealthAnalyticsCustomModuleMethod =
+              getDeleteSecurityHealthAnalyticsCustomModuleMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(
+                              SERVICE_NAME, "DeleteSecurityHealthAnalyticsCustomModule"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.securitycenter.v1
+                                  .DeleteSecurityHealthAnalyticsCustomModuleRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new SecurityCenterMethodDescriptorSupplier(
+                              "DeleteSecurityHealthAnalyticsCustomModule"))
+                      .build();
+        }
+      }
+    }
+    return getDeleteSecurityHealthAnalyticsCustomModuleMethod;
+  }
+
   private static volatile io.grpc.MethodDescriptor<
           com.google.cloud.securitycenter.v1.GetBigQueryExportRequest,
           com.google.cloud.securitycenter.v1.BigQueryExport>
@@ -595,6 +708,125 @@ private SecurityCenterGrpc() {}
     return getGetOrganizationSettingsMethod;
   }
 
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest,
+          com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule>
+      getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "GetEffectiveSecurityHealthAnalyticsCustomModule",
+      requestType =
+          com.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest
+              .class,
+      responseType =
+          com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest,
+          com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule>
+      getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.securitycenter.v1
+                .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest,
+            com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule>
+        getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod;
+    if ((getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod =
+            SecurityCenterGrpc.getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod)
+        == null) {
+      synchronized (SecurityCenterGrpc.class) {
+        if ((getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod =
+                SecurityCenterGrpc.getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod)
+            == null) {
+          SecurityCenterGrpc.getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod =
+              getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(
+                              SERVICE_NAME, "GetEffectiveSecurityHealthAnalyticsCustomModule"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.securitycenter.v1
+                                  .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.securitycenter.v1
+                                  .EffectiveSecurityHealthAnalyticsCustomModule
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new SecurityCenterMethodDescriptorSupplier(
+                              "GetEffectiveSecurityHealthAnalyticsCustomModule"))
+                      .build();
+        }
+      }
+    }
+    return getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod;
+  }
+
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest,
+          com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule>
+      getGetSecurityHealthAnalyticsCustomModuleMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "GetSecurityHealthAnalyticsCustomModule",
+      requestType =
+          com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest.class,
+      responseType = com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest,
+          com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule>
+      getGetSecurityHealthAnalyticsCustomModuleMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest,
+            com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule>
+        getGetSecurityHealthAnalyticsCustomModuleMethod;
+    if ((getGetSecurityHealthAnalyticsCustomModuleMethod =
+            SecurityCenterGrpc.getGetSecurityHealthAnalyticsCustomModuleMethod)
+        == null) {
+      synchronized (SecurityCenterGrpc.class) {
+        if ((getGetSecurityHealthAnalyticsCustomModuleMethod =
+                SecurityCenterGrpc.getGetSecurityHealthAnalyticsCustomModuleMethod)
+            == null) {
+          SecurityCenterGrpc.getGetSecurityHealthAnalyticsCustomModuleMethod =
+              getGetSecurityHealthAnalyticsCustomModuleMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(
+                              SERVICE_NAME, "GetSecurityHealthAnalyticsCustomModule"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.securitycenter.v1
+                                  .GetSecurityHealthAnalyticsCustomModuleRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new SecurityCenterMethodDescriptorSupplier(
+                              "GetSecurityHealthAnalyticsCustomModule"))
+                      .build();
+        }
+      }
+    }
+    return getGetSecurityHealthAnalyticsCustomModuleMethod;
+  }
+
   private static volatile io.grpc.MethodDescriptor<
           com.google.cloud.securitycenter.v1.GetSourceRequest,
           com.google.cloud.securitycenter.v1.Source>
@@ -780,6 +1012,74 @@ private SecurityCenterGrpc() {}
     return getListAssetsMethod;
   }
 
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.securitycenter.v1
+              .ListDescendantSecurityHealthAnalyticsCustomModulesRequest,
+          com.google.cloud.securitycenter.v1
+              .ListDescendantSecurityHealthAnalyticsCustomModulesResponse>
+      getListDescendantSecurityHealthAnalyticsCustomModulesMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "ListDescendantSecurityHealthAnalyticsCustomModules",
+      requestType =
+          com.google.cloud.securitycenter.v1
+              .ListDescendantSecurityHealthAnalyticsCustomModulesRequest.class,
+      responseType =
+          com.google.cloud.securitycenter.v1
+              .ListDescendantSecurityHealthAnalyticsCustomModulesResponse.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.securitycenter.v1
+              .ListDescendantSecurityHealthAnalyticsCustomModulesRequest,
+          com.google.cloud.securitycenter.v1
+              .ListDescendantSecurityHealthAnalyticsCustomModulesResponse>
+      getListDescendantSecurityHealthAnalyticsCustomModulesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.securitycenter.v1
+                .ListDescendantSecurityHealthAnalyticsCustomModulesRequest,
+            com.google.cloud.securitycenter.v1
+                .ListDescendantSecurityHealthAnalyticsCustomModulesResponse>
+        getListDescendantSecurityHealthAnalyticsCustomModulesMethod;
+    if ((getListDescendantSecurityHealthAnalyticsCustomModulesMethod =
+            SecurityCenterGrpc.getListDescendantSecurityHealthAnalyticsCustomModulesMethod)
+        == null) {
+      synchronized (SecurityCenterGrpc.class) {
+        if ((getListDescendantSecurityHealthAnalyticsCustomModulesMethod =
+                SecurityCenterGrpc.getListDescendantSecurityHealthAnalyticsCustomModulesMethod)
+            == null) {
+          SecurityCenterGrpc.getListDescendantSecurityHealthAnalyticsCustomModulesMethod =
+              getListDescendantSecurityHealthAnalyticsCustomModulesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(
+                              SERVICE_NAME, "ListDescendantSecurityHealthAnalyticsCustomModules"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.securitycenter.v1
+                                  .ListDescendantSecurityHealthAnalyticsCustomModulesRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.securitycenter.v1
+                                  .ListDescendantSecurityHealthAnalyticsCustomModulesResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new SecurityCenterMethodDescriptorSupplier(
+                              "ListDescendantSecurityHealthAnalyticsCustomModules"))
+                      .build();
+        }
+      }
+    }
+    return getListDescendantSecurityHealthAnalyticsCustomModulesMethod;
+  }
+
   private static volatile io.grpc.MethodDescriptor<
           com.google.cloud.securitycenter.v1.ListFindingsRequest,
           com.google.cloud.securitycenter.v1.ListFindingsResponse>
@@ -924,6 +1224,134 @@ private SecurityCenterGrpc() {}
     return getListNotificationConfigsMethod;
   }
 
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.securitycenter.v1
+              .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest,
+          com.google.cloud.securitycenter.v1
+              .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse>
+      getListEffectiveSecurityHealthAnalyticsCustomModulesMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "ListEffectiveSecurityHealthAnalyticsCustomModules",
+      requestType =
+          com.google.cloud.securitycenter.v1
+              .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.class,
+      responseType =
+          com.google.cloud.securitycenter.v1
+              .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.securitycenter.v1
+              .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest,
+          com.google.cloud.securitycenter.v1
+              .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse>
+      getListEffectiveSecurityHealthAnalyticsCustomModulesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.securitycenter.v1
+                .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest,
+            com.google.cloud.securitycenter.v1
+                .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse>
+        getListEffectiveSecurityHealthAnalyticsCustomModulesMethod;
+    if ((getListEffectiveSecurityHealthAnalyticsCustomModulesMethod =
+            SecurityCenterGrpc.getListEffectiveSecurityHealthAnalyticsCustomModulesMethod)
+        == null) {
+      synchronized (SecurityCenterGrpc.class) {
+        if ((getListEffectiveSecurityHealthAnalyticsCustomModulesMethod =
+                SecurityCenterGrpc.getListEffectiveSecurityHealthAnalyticsCustomModulesMethod)
+            == null) {
+          SecurityCenterGrpc.getListEffectiveSecurityHealthAnalyticsCustomModulesMethod =
+              getListEffectiveSecurityHealthAnalyticsCustomModulesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(
+                              SERVICE_NAME, "ListEffectiveSecurityHealthAnalyticsCustomModules"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.securitycenter.v1
+                                  .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.securitycenter.v1
+                                  .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new SecurityCenterMethodDescriptorSupplier(
+                              "ListEffectiveSecurityHealthAnalyticsCustomModules"))
+                      .build();
+        }
+      }
+    }
+    return getListEffectiveSecurityHealthAnalyticsCustomModulesMethod;
+  }
+
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest,
+          com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse>
+      getListSecurityHealthAnalyticsCustomModulesMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "ListSecurityHealthAnalyticsCustomModules",
+      requestType =
+          com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest.class,
+      responseType =
+          com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest,
+          com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse>
+      getListSecurityHealthAnalyticsCustomModulesMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest,
+            com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse>
+        getListSecurityHealthAnalyticsCustomModulesMethod;
+    if ((getListSecurityHealthAnalyticsCustomModulesMethod =
+            SecurityCenterGrpc.getListSecurityHealthAnalyticsCustomModulesMethod)
+        == null) {
+      synchronized (SecurityCenterGrpc.class) {
+        if ((getListSecurityHealthAnalyticsCustomModulesMethod =
+                SecurityCenterGrpc.getListSecurityHealthAnalyticsCustomModulesMethod)
+            == null) {
+          SecurityCenterGrpc.getListSecurityHealthAnalyticsCustomModulesMethod =
+              getListSecurityHealthAnalyticsCustomModulesMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(
+                              SERVICE_NAME, "ListSecurityHealthAnalyticsCustomModules"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.securitycenter.v1
+                                  .ListSecurityHealthAnalyticsCustomModulesRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.securitycenter.v1
+                                  .ListSecurityHealthAnalyticsCustomModulesResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new SecurityCenterMethodDescriptorSupplier(
+                              "ListSecurityHealthAnalyticsCustomModules"))
+                      .build();
+        }
+      }
+    }
+    return getListSecurityHealthAnalyticsCustomModulesMethod;
+  }
+
   private static volatile io.grpc.MethodDescriptor<
           com.google.cloud.securitycenter.v1.ListSourcesRequest,
           com.google.cloud.securitycenter.v1.ListSourcesResponse>
@@ -1436,6 +1864,63 @@ private SecurityCenterGrpc() {}
     return getUpdateOrganizationSettingsMethod;
   }
 
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest,
+          com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule>
+      getUpdateSecurityHealthAnalyticsCustomModuleMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "UpdateSecurityHealthAnalyticsCustomModule",
+      requestType =
+          com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.class,
+      responseType = com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest,
+          com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule>
+      getUpdateSecurityHealthAnalyticsCustomModuleMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest,
+            com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule>
+        getUpdateSecurityHealthAnalyticsCustomModuleMethod;
+    if ((getUpdateSecurityHealthAnalyticsCustomModuleMethod =
+            SecurityCenterGrpc.getUpdateSecurityHealthAnalyticsCustomModuleMethod)
+        == null) {
+      synchronized (SecurityCenterGrpc.class) {
+        if ((getUpdateSecurityHealthAnalyticsCustomModuleMethod =
+                SecurityCenterGrpc.getUpdateSecurityHealthAnalyticsCustomModuleMethod)
+            == null) {
+          SecurityCenterGrpc.getUpdateSecurityHealthAnalyticsCustomModuleMethod =
+              getUpdateSecurityHealthAnalyticsCustomModuleMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(
+                              SERVICE_NAME, "UpdateSecurityHealthAnalyticsCustomModule"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.securitycenter.v1
+                                  .UpdateSecurityHealthAnalyticsCustomModuleRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new SecurityCenterMethodDescriptorSupplier(
+                              "UpdateSecurityHealthAnalyticsCustomModule"))
+                      .build();
+        }
+      }
+    }
+    return getUpdateSecurityHealthAnalyticsCustomModuleMethod;
+  }
+
   private static volatile io.grpc.MethodDescriptor<
           com.google.cloud.securitycenter.v1.UpdateSourceRequest,
           com.google.cloud.securitycenter.v1.Source>
@@ -1793,6 +2278,25 @@ default void bulkMuteFindings(
           getBulkMuteFindingsMethod(), responseObserver);
     }
 
+    /**
+     *
+     *
+     * 
+     * Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the
+     * given CRM parent, and also creates inherited
+     * SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
+     * parent. These modules are enabled by default.
+     * 
+ */ + default void createSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); + } + /** * * @@ -1880,6 +2384,22 @@ default void deleteNotificationConfig( getDeleteNotificationConfigMethod(), responseObserver); } + /** + * + * + *
+     * Deletes the specified SecurityHealthAnalyticsCustomModule and all of its
+     * descendants in the CRM hierarchy. This method is only supported for
+     * resident custom modules.
+     * 
+ */ + default void deleteSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); + } + /** * * @@ -1954,6 +2474,39 @@ default void getOrganizationSettings( getGetOrganizationSettingsMethod(), responseObserver); } + /** + * + * + *
+     * Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.
+     * 
+ */ + default void getEffectiveSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves a SecurityHealthAnalyticsCustomModule.
+     * 
+ */ + default void getSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); + } + /** * * @@ -2017,6 +2570,25 @@ default void listAssets( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAssetsMethod(), responseObserver); } + /** + * + * + *
+     * Returns a list of all resident SecurityHealthAnalyticsCustomModules under
+     * the given CRM parent and all of the parent’s CRM descendants.
+     * 
+ */ + default void listDescendantSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), responseObserver); + } + /** * * @@ -2065,6 +2637,44 @@ default void listNotificationConfigs( getListNotificationConfigsMethod(), responseObserver); } + /** + * + * + *
+     * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the
+     * given parent. This includes resident modules defined at the scope of the
+     * parent, and inherited modules, inherited from CRM ancestors.
+     * 
+ */ + default void listEffectiveSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a list of all SecurityHealthAnalyticsCustomModules for the given
+     * parent. This includes resident modules defined at the scope of the parent,
+     * and inherited modules, inherited from CRM ancestors.
+     * 
+ */ + default void listSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSecurityHealthAnalyticsCustomModulesMethod(), responseObserver); + } + /** * * @@ -2230,6 +2840,26 @@ default void updateOrganizationSettings( getUpdateOrganizationSettingsMethod(), responseObserver); } + /** + * + * + *
+     * Updates the SecurityHealthAnalyticsCustomModule under the given name based
+     * on the given update mask. Updating the enablement state is supported on
+     * both resident and inherited modules (though resident modules cannot have an
+     * enablement state of “inherited”). Updating the display name and custom
+     * config of a module is supported on resident modules only.
+     * 
+ */ + default void updateSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSecurityHealthAnalyticsCustomModuleMethod(), responseObserver); + } + /** * * @@ -2375,6 +3005,28 @@ public void bulkMuteFindings( responseObserver); } + /** + * + * + *
+     * Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the
+     * given CRM parent, and also creates inherited
+     * SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
+     * parent. These modules are enabled by default.
+     * 
+ */ + public void createSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getCreateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2474,6 +3126,25 @@ public void deleteNotificationConfig( responseObserver); } + /** + * + * + *
+     * Deletes the specified SecurityHealthAnalyticsCustomModule and all of its
+     * descendants in the CRM hierarchy. This method is only supported for
+     * resident custom modules.
+     * 
+ */ + public void deleteSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getDeleteSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2548,12 +3219,51 @@ public void getNotificationConfig( * Gets the settings for an organization. *
*/ - public void getOrganizationSettings( - com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest request, - io.grpc.stub.StreamObserver + public void getOrganizationSettings( + com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.
+     * 
+ */ + public void getEffectiveSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall( + getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves a SecurityHealthAnalyticsCustomModule.
+     * 
+ */ + public void getSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), + getChannel().newCall(getGetSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), request, responseObserver); } @@ -2627,6 +3337,29 @@ public void listAssets( getChannel().newCall(getListAssetsMethod(), getCallOptions()), request, responseObserver); } + /** + * + * + *
+     * Returns a list of all resident SecurityHealthAnalyticsCustomModules under
+     * the given CRM parent and all of the parent’s CRM descendants.
+     * 
+ */ + public void listDescendantSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall( + getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2681,6 +3414,51 @@ public void listNotificationConfigs( responseObserver); } + /** + * + * + *
+     * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the
+     * given parent. This includes resident modules defined at the scope of the
+     * parent, and inherited modules, inherited from CRM ancestors.
+     * 
+ */ + public void listEffectiveSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall( + getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a list of all SecurityHealthAnalyticsCustomModules for the given
+     * parent. This includes resident modules defined at the scope of the parent,
+     * and inherited modules, inherited from CRM ancestors.
+     * 
+ */ + public void listSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getListSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2867,6 +3645,29 @@ public void updateOrganizationSettings( responseObserver); } + /** + * + * + *
+     * Updates the SecurityHealthAnalyticsCustomModule under the given name based
+     * on the given update mask. Updating the enablement state is supported on
+     * both resident and inherited modules (though resident modules cannot have an
+     * enablement state of “inherited”). Updating the display name and custom
+     * config of a module is supported on resident modules only.
+     * 
+ */ + public void updateSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getUpdateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -3006,6 +3807,27 @@ public com.google.longrunning.Operation bulkMuteFindings( getChannel(), getBulkMuteFindingsMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the
+     * given CRM parent, and also creates inherited
+     * SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
+     * parent. These modules are enabled by default.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + createSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getCreateSecurityHealthAnalyticsCustomModuleMethod(), + getCallOptions(), + request); + } + /** * * @@ -3085,6 +3907,25 @@ public com.google.protobuf.Empty deleteNotificationConfig( getChannel(), getDeleteNotificationConfigMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Deletes the specified SecurityHealthAnalyticsCustomModule and all of its
+     * descendants in the CRM hierarchy. This method is only supported for
+     * resident custom modules.
+     * 
+ */ + public com.google.protobuf.Empty deleteSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getDeleteSecurityHealthAnalyticsCustomModuleMethod(), + getCallOptions(), + request); + } + /** * * @@ -3149,6 +3990,43 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings getOrganizationSe getChannel(), getGetOrganizationSettingsMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + getEffectiveSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Retrieves a SecurityHealthAnalyticsCustomModule.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getGetSecurityHealthAnalyticsCustomModuleMethod(), + getCallOptions(), + request); + } + /** * * @@ -3207,6 +4085,27 @@ public com.google.cloud.securitycenter.v1.ListAssetsResponse listAssets( getChannel(), getListAssetsMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Returns a list of all resident SecurityHealthAnalyticsCustomModules under
+     * the given CRM parent and all of the parent’s CRM descendants.
+     * 
+ */ + public com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + listDescendantSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), + getCallOptions(), + request); + } + /** * * @@ -3249,6 +4148,48 @@ public com.google.cloud.securitycenter.v1.ListMuteConfigsResponse listMuteConfig getChannel(), getListNotificationConfigsMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the
+     * given parent. This includes resident modules defined at the scope of the
+     * parent, and inherited modules, inherited from CRM ancestors.
+     * 
+ */ + public com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + listEffectiveSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Returns a list of all SecurityHealthAnalyticsCustomModules for the given
+     * parent. This includes resident modules defined at the scope of the parent,
+     * and inherited modules, inherited from CRM ancestors.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse + listSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getListSecurityHealthAnalyticsCustomModulesMethod(), + getCallOptions(), + request); + } + /** * * @@ -3397,6 +4338,28 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings updateOrganizatio getChannel(), getUpdateOrganizationSettingsMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Updates the SecurityHealthAnalyticsCustomModule under the given name based
+     * on the given update mask. Updating the enablement state is supported on
+     * both resident and inherited modules (though resident modules cannot have an
+     * enablement state of “inherited”). Updating the display name and custom
+     * config of a module is supported on resident modules only.
+     * 
+ */ + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + updateSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getUpdateSecurityHealthAnalyticsCustomModuleMethod(), + getCallOptions(), + request); + } + /** * * @@ -3514,6 +4477,27 @@ protected SecurityCenterFutureStub build( getChannel().newCall(getBulkMuteFindingsMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the
+     * given CRM parent, and also creates inherited
+     * SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
+     * parent. These modules are enabled by default.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule> + createSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getCreateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), + request); + } + /** * * @@ -3599,6 +4583,25 @@ protected SecurityCenterFutureStub build( getChannel().newCall(getDeleteNotificationConfigMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Deletes the specified SecurityHealthAnalyticsCustomModule and all of its
+     * descendants in the CRM hierarchy. This method is only supported for
+     * resident custom modules.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getDeleteSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), + request); + } + /** * * @@ -3670,6 +4673,43 @@ protected SecurityCenterFutureStub build( getChannel().newCall(getGetOrganizationSettingsMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule> + getEffectiveSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall( + getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Retrieves a SecurityHealthAnalyticsCustomModule.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule> + getSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), + request); + } + /** * * @@ -3732,6 +4772,28 @@ protected SecurityCenterFutureStub build( getChannel().newCall(getListAssetsMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Returns a list of all resident SecurityHealthAnalyticsCustomModules under
+     * the given CRM parent and all of the parent’s CRM descendants.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse> + listDescendantSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall( + getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), + request); + } + /** * * @@ -3777,6 +4839,49 @@ protected SecurityCenterFutureStub build( getChannel().newCall(getListNotificationConfigsMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the
+     * given parent. This includes resident modules defined at the scope of the
+     * parent, and inherited modules, inherited from CRM ancestors.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> + listEffectiveSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall( + getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Returns a list of all SecurityHealthAnalyticsCustomModules for the given
+     * parent. This includes resident modules defined at the scope of the parent,
+     * and inherited modules, inherited from CRM ancestors.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse> + listSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getListSecurityHealthAnalyticsCustomModulesMethod(), getCallOptions()), + request); + } + /** * * @@ -3938,6 +5043,28 @@ protected SecurityCenterFutureStub build( getChannel().newCall(getUpdateOrganizationSettingsMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Updates the SecurityHealthAnalyticsCustomModule under the given name based
+     * on the given update mask. Updating the enablement state is supported on
+     * both resident and inherited modules (though resident modules cannot have an
+     * enablement state of “inherited”). Updating the display name and custom
+     * config of a module is supported on resident modules only.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule> + updateSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getUpdateSecurityHealthAnalyticsCustomModuleMethod(), getCallOptions()), + request); + } + /** * * @@ -4030,41 +5157,49 @@ protected SecurityCenterFutureStub build( } private static final int METHODID_BULK_MUTE_FINDINGS = 0; - private static final int METHODID_CREATE_SOURCE = 1; - private static final int METHODID_CREATE_FINDING = 2; - private static final int METHODID_CREATE_MUTE_CONFIG = 3; - private static final int METHODID_CREATE_NOTIFICATION_CONFIG = 4; - private static final int METHODID_DELETE_MUTE_CONFIG = 5; - private static final int METHODID_DELETE_NOTIFICATION_CONFIG = 6; - private static final int METHODID_GET_BIG_QUERY_EXPORT = 7; - private static final int METHODID_GET_IAM_POLICY = 8; - private static final int METHODID_GET_MUTE_CONFIG = 9; - private static final int METHODID_GET_NOTIFICATION_CONFIG = 10; - private static final int METHODID_GET_ORGANIZATION_SETTINGS = 11; - private static final int METHODID_GET_SOURCE = 12; - private static final int METHODID_GROUP_ASSETS = 13; - private static final int METHODID_GROUP_FINDINGS = 14; - private static final int METHODID_LIST_ASSETS = 15; - private static final int METHODID_LIST_FINDINGS = 16; - private static final int METHODID_LIST_MUTE_CONFIGS = 17; - private static final int METHODID_LIST_NOTIFICATION_CONFIGS = 18; - private static final int METHODID_LIST_SOURCES = 19; - private static final int METHODID_RUN_ASSET_DISCOVERY = 20; - private static final int METHODID_SET_FINDING_STATE = 21; - private static final int METHODID_SET_MUTE = 22; - private static final int METHODID_SET_IAM_POLICY = 23; - private static final int METHODID_TEST_IAM_PERMISSIONS = 24; - private static final int METHODID_UPDATE_EXTERNAL_SYSTEM = 25; - private static final int METHODID_UPDATE_FINDING = 26; - private static final int METHODID_UPDATE_MUTE_CONFIG = 27; - private static final int METHODID_UPDATE_NOTIFICATION_CONFIG = 28; - private static final int METHODID_UPDATE_ORGANIZATION_SETTINGS = 29; - private static final int METHODID_UPDATE_SOURCE = 30; - private static final int METHODID_UPDATE_SECURITY_MARKS = 31; - private static final int METHODID_CREATE_BIG_QUERY_EXPORT = 32; - private static final int METHODID_DELETE_BIG_QUERY_EXPORT = 33; - private static final int METHODID_UPDATE_BIG_QUERY_EXPORT = 34; - private static final int METHODID_LIST_BIG_QUERY_EXPORTS = 35; + private static final int METHODID_CREATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 1; + private static final int METHODID_CREATE_SOURCE = 2; + private static final int METHODID_CREATE_FINDING = 3; + private static final int METHODID_CREATE_MUTE_CONFIG = 4; + private static final int METHODID_CREATE_NOTIFICATION_CONFIG = 5; + private static final int METHODID_DELETE_MUTE_CONFIG = 6; + private static final int METHODID_DELETE_NOTIFICATION_CONFIG = 7; + private static final int METHODID_DELETE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 8; + private static final int METHODID_GET_BIG_QUERY_EXPORT = 9; + private static final int METHODID_GET_IAM_POLICY = 10; + private static final int METHODID_GET_MUTE_CONFIG = 11; + private static final int METHODID_GET_NOTIFICATION_CONFIG = 12; + private static final int METHODID_GET_ORGANIZATION_SETTINGS = 13; + private static final int METHODID_GET_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 14; + private static final int METHODID_GET_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE = 15; + private static final int METHODID_GET_SOURCE = 16; + private static final int METHODID_GROUP_ASSETS = 17; + private static final int METHODID_GROUP_FINDINGS = 18; + private static final int METHODID_LIST_ASSETS = 19; + private static final int METHODID_LIST_DESCENDANT_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES = 20; + private static final int METHODID_LIST_FINDINGS = 21; + private static final int METHODID_LIST_MUTE_CONFIGS = 22; + private static final int METHODID_LIST_NOTIFICATION_CONFIGS = 23; + private static final int METHODID_LIST_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES = 24; + private static final int METHODID_LIST_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES = 25; + private static final int METHODID_LIST_SOURCES = 26; + private static final int METHODID_RUN_ASSET_DISCOVERY = 27; + private static final int METHODID_SET_FINDING_STATE = 28; + 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 class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -4088,6 +5223,14 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: + serviceImpl.createSecurityHealthAnalyticsCustomModule( + (com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule>) + responseObserver); + break; case METHODID_CREATE_SOURCE: serviceImpl.createSource( (com.google.cloud.securitycenter.v1.CreateSourceRequest) request, @@ -4122,6 +5265,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_DELETE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: + serviceImpl.deleteSecurityHealthAnalyticsCustomModule( + (com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_GET_BIG_QUERY_EXPORT: serviceImpl.getBigQueryExport( (com.google.cloud.securitycenter.v1.GetBigQueryExportRequest) request, @@ -4151,6 +5300,24 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: + serviceImpl.getEffectiveSecurityHealthAnalyticsCustomModule( + (com.google.cloud.securitycenter.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1 + .EffectiveSecurityHealthAnalyticsCustomModule>) + responseObserver); + break; + case METHODID_GET_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: + serviceImpl.getSecurityHealthAnalyticsCustomModule( + (com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule>) + responseObserver); + break; case METHODID_GET_SOURCE: serviceImpl.getSource( (com.google.cloud.securitycenter.v1.GetSourceRequest) request, @@ -4176,6 +5343,16 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_DESCENDANT_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES: + serviceImpl.listDescendantSecurityHealthAnalyticsCustomModules( + (com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse>) + responseObserver); + break; case METHODID_LIST_FINDINGS: serviceImpl.listFindings( (com.google.cloud.securitycenter.v1.ListFindingsRequest) request, @@ -4196,6 +5373,25 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse>) responseObserver); break; + case METHODID_LIST_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES: + serviceImpl.listEffectiveSecurityHealthAnalyticsCustomModules( + (com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse>) + responseObserver); + break; + case METHODID_LIST_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES: + serviceImpl.listSecurityHealthAnalyticsCustomModules( + (com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse>) + responseObserver); + break; case METHODID_LIST_SOURCES: serviceImpl.listSources( (com.google.cloud.securitycenter.v1.ListSourcesRequest) request, @@ -4260,6 +5456,14 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPDATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE: + serviceImpl.updateSecurityHealthAnalyticsCustomModule( + (com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule>) + responseObserver); + break; case METHODID_UPDATE_SOURCE: serviceImpl.updateSource( (com.google.cloud.securitycenter.v1.UpdateSourceRequest) request, @@ -4320,6 +5524,14 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.securitycenter.v1.BulkMuteFindingsRequest, com.google.longrunning.Operation>(service, METHODID_BULK_MUTE_FINDINGS))) + .addMethod( + getCreateSecurityHealthAnalyticsCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule>( + service, METHODID_CREATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) .addMethod( getCreateSourceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4358,6 +5570,14 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest, com.google.protobuf.Empty>(service, METHODID_DELETE_NOTIFICATION_CONFIG))) + .addMethod( + getDeleteSecurityHealthAnalyticsCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) .addMethod( getGetBigQueryExportMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4391,6 +5611,23 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest, com.google.cloud.securitycenter.v1.OrganizationSettings>( service, METHODID_GET_ORGANIZATION_SETTINGS))) + .addMethod( + getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycenter.v1 + .EffectiveSecurityHealthAnalyticsCustomModule>( + service, METHODID_GET_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) + .addMethod( + getGetSecurityHealthAnalyticsCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule>( + service, METHODID_GET_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) .addMethod( getGetSourceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4418,6 +5655,15 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.securitycenter.v1.ListAssetsRequest, com.google.cloud.securitycenter.v1.ListAssetsResponse>( service, METHODID_LIST_ASSETS))) + .addMethod( + getListDescendantSecurityHealthAnalyticsCustomModulesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest, + com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse>( + service, METHODID_LIST_DESCENDANT_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES))) .addMethod( getListFindingsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4439,6 +5685,24 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.securitycenter.v1.ListNotificationConfigsRequest, com.google.cloud.securitycenter.v1.ListNotificationConfigsResponse>( service, METHODID_LIST_NOTIFICATION_CONFIGS))) + .addMethod( + getListEffectiveSecurityHealthAnalyticsCustomModulesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, + com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse>( + service, METHODID_LIST_EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES))) + .addMethod( + getListSecurityHealthAnalyticsCustomModulesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest, + com.google.cloud.securitycenter.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse>( + service, METHODID_LIST_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES))) .addMethod( getListSourcesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4511,6 +5775,14 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest, com.google.cloud.securitycenter.v1.OrganizationSettings>( service, METHODID_UPDATE_ORGANIZATION_SETTINGS))) + .addMethod( + getUpdateSecurityHealthAnalyticsCustomModuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.securitycenter.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule>( + service, METHODID_UPDATE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE))) .addMethod( getUpdateSourceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4603,24 +5875,31 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new SecurityCenterFileDescriptorSupplier()) .addMethod(getBulkMuteFindingsMethod()) + .addMethod(getCreateSecurityHealthAnalyticsCustomModuleMethod()) .addMethod(getCreateSourceMethod()) .addMethod(getCreateFindingMethod()) .addMethod(getCreateMuteConfigMethod()) .addMethod(getCreateNotificationConfigMethod()) .addMethod(getDeleteMuteConfigMethod()) .addMethod(getDeleteNotificationConfigMethod()) + .addMethod(getDeleteSecurityHealthAnalyticsCustomModuleMethod()) .addMethod(getGetBigQueryExportMethod()) .addMethod(getGetIamPolicyMethod()) .addMethod(getGetMuteConfigMethod()) .addMethod(getGetNotificationConfigMethod()) .addMethod(getGetOrganizationSettingsMethod()) + .addMethod(getGetEffectiveSecurityHealthAnalyticsCustomModuleMethod()) + .addMethod(getGetSecurityHealthAnalyticsCustomModuleMethod()) .addMethod(getGetSourceMethod()) .addMethod(getGroupAssetsMethod()) .addMethod(getGroupFindingsMethod()) .addMethod(getListAssetsMethod()) + .addMethod(getListDescendantSecurityHealthAnalyticsCustomModulesMethod()) .addMethod(getListFindingsMethod()) .addMethod(getListMuteConfigsMethod()) .addMethod(getListNotificationConfigsMethod()) + .addMethod(getListEffectiveSecurityHealthAnalyticsCustomModulesMethod()) + .addMethod(getListSecurityHealthAnalyticsCustomModulesMethod()) .addMethod(getListSourcesMethod()) .addMethod(getRunAssetDiscoveryMethod()) .addMethod(getSetFindingStateMethod()) @@ -4632,6 +5911,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateMuteConfigMethod()) .addMethod(getUpdateNotificationConfigMethod()) .addMethod(getUpdateOrganizationSettingsMethod()) + .addMethod(getUpdateSecurityHealthAnalyticsCustomModuleMethod()) .addMethod(getUpdateSourceMethod()) .addMethod(getUpdateSecurityMarksMethod()) .addMethod(getCreateBigQueryExportMethod()) diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExport.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExport.java index bdd5f2596032..a5774600a471 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExport.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExport.java @@ -330,7 +330,7 @@ public com.google.protobuf.ByteString getDatasetBytes() { * * *
-   * Output only. The time at which the big query export was created.
+   * Output only. The time at which the BigQuery export was created.
    * This field is set by the server and will be ignored if provided on export
    * on creation.
    * 
@@ -348,7 +348,7 @@ public boolean hasCreateTime() { * * *
-   * Output only. The time at which the big query export was created.
+   * Output only. The time at which the BigQuery export was created.
    * This field is set by the server and will be ignored if provided on export
    * on creation.
    * 
@@ -366,7 +366,7 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-   * Output only. The time at which the big query export was created.
+   * Output only. The time at which the BigQuery export was created.
    * This field is set by the server and will be ignored if provided on export
    * on creation.
    * 
@@ -385,7 +385,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-   * Output only. The most recent time at which the big export was updated.
+   * Output only. The most recent time at which the BigQuery export was updated.
    * This field is set by the server and will be ignored if provided on export
    * creation or update.
    * 
@@ -403,7 +403,7 @@ public boolean hasUpdateTime() { * * *
-   * Output only. The most recent time at which the big export was updated.
+   * Output only. The most recent time at which the BigQuery export was updated.
    * This field is set by the server and will be ignored if provided on export
    * creation or update.
    * 
@@ -421,7 +421,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { * * *
-   * Output only. The most recent time at which the big export was updated.
+   * Output only. The most recent time at which the BigQuery export was updated.
    * This field is set by the server and will be ignored if provided on export
    * creation or update.
    * 
@@ -442,7 +442,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-   * Output only. Email address of the user who last edited the big query export.
+   * Output only. Email address of the user who last edited the BigQuery export.
    * This field is set by the server and will be ignored if provided on export
    * creation or update.
    * 
@@ -467,7 +467,7 @@ public java.lang.String getMostRecentEditor() { * * *
-   * Output only. Email address of the user who last edited the big query export.
+   * Output only. Email address of the user who last edited the BigQuery export.
    * This field is set by the server and will be ignored if provided on export
    * creation or update.
    * 
@@ -497,8 +497,8 @@ public com.google.protobuf.ByteString getMostRecentEditorBytes() { * * *
-   * Output only. The service account that needs permission to create table, upload data to
-   * the big query dataset.
+   * Output only. The service account that needs permission to create table and
+   * upload data to the BigQuery dataset.
    * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -521,8 +521,8 @@ public java.lang.String getPrincipal() { * * *
-   * Output only. The service account that needs permission to create table, upload data to
-   * the big query dataset.
+   * Output only. The service account that needs permission to create table and
+   * upload data to the BigQuery dataset.
    * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1620,7 +1620,7 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. The time at which the big query export was created.
+     * Output only. The time at which the BigQuery export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
@@ -1638,7 +1638,7 @@ public boolean hasCreateTime() { * * *
-     * Output only. The time at which the big query export was created.
+     * Output only. The time at which the BigQuery export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
@@ -1662,7 +1662,7 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-     * Output only. The time at which the big query export was created.
+     * Output only. The time at which the BigQuery export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
@@ -1688,7 +1688,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The time at which the big query export was created.
+     * Output only. The time at which the BigQuery export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
@@ -1711,7 +1711,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. The time at which the big query export was created.
+     * Output only. The time at which the BigQuery export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
@@ -1740,7 +1740,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The time at which the big query export was created.
+     * Output only. The time at which the BigQuery export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
@@ -1763,7 +1763,7 @@ public Builder clearCreateTime() { * * *
-     * Output only. The time at which the big query export was created.
+     * Output only. The time at which the BigQuery export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
@@ -1781,7 +1781,7 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * * *
-     * Output only. The time at which the big query export was created.
+     * Output only. The time at which the BigQuery export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
@@ -1803,7 +1803,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * Output only. The time at which the big query export was created.
+     * Output only. The time at which the BigQuery export was created.
      * This field is set by the server and will be ignored if provided on export
      * on creation.
      * 
@@ -1839,7 +1839,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * Output only. The most recent time at which the big export was updated.
+     * Output only. The most recent time at which the BigQuery export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
@@ -1857,7 +1857,7 @@ public boolean hasUpdateTime() { * * *
-     * Output only. The most recent time at which the big export was updated.
+     * Output only. The most recent time at which the BigQuery export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
@@ -1881,7 +1881,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { * * *
-     * Output only. The most recent time at which the big export was updated.
+     * Output only. The most recent time at which the BigQuery export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
@@ -1907,7 +1907,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The most recent time at which the big export was updated.
+     * Output only. The most recent time at which the BigQuery export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
@@ -1930,7 +1930,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. The most recent time at which the big export was updated.
+     * Output only. The most recent time at which the BigQuery export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
@@ -1959,7 +1959,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The most recent time at which the big export was updated.
+     * Output only. The most recent time at which the BigQuery export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
@@ -1982,7 +1982,7 @@ public Builder clearUpdateTime() { * * *
-     * Output only. The most recent time at which the big export was updated.
+     * Output only. The most recent time at which the BigQuery export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
@@ -2000,7 +2000,7 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { * * *
-     * Output only. The most recent time at which the big export was updated.
+     * Output only. The most recent time at which the BigQuery export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
@@ -2022,7 +2022,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-     * Output only. The most recent time at which the big export was updated.
+     * Output only. The most recent time at which the BigQuery export was updated.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
@@ -2053,7 +2053,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-     * Output only. Email address of the user who last edited the big query export.
+     * Output only. Email address of the user who last edited the BigQuery export.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
@@ -2077,7 +2077,7 @@ public java.lang.String getMostRecentEditor() { * * *
-     * Output only. Email address of the user who last edited the big query export.
+     * Output only. Email address of the user who last edited the BigQuery export.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
@@ -2101,7 +2101,7 @@ public com.google.protobuf.ByteString getMostRecentEditorBytes() { * * *
-     * Output only. Email address of the user who last edited the big query export.
+     * Output only. Email address of the user who last edited the BigQuery export.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
@@ -2124,7 +2124,7 @@ public Builder setMostRecentEditor(java.lang.String value) { * * *
-     * Output only. Email address of the user who last edited the big query export.
+     * Output only. Email address of the user who last edited the BigQuery export.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
@@ -2143,7 +2143,7 @@ public Builder clearMostRecentEditor() { * * *
-     * Output only. Email address of the user who last edited the big query export.
+     * Output only. Email address of the user who last edited the BigQuery export.
      * This field is set by the server and will be ignored if provided on export
      * creation or update.
      * 
@@ -2169,8 +2169,8 @@ public Builder setMostRecentEditorBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. The service account that needs permission to create table, upload data to
-     * the big query dataset.
+     * Output only. The service account that needs permission to create table and
+     * upload data to the BigQuery dataset.
      * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2192,8 +2192,8 @@ public java.lang.String getPrincipal() { * * *
-     * Output only. The service account that needs permission to create table, upload data to
-     * the big query dataset.
+     * Output only. The service account that needs permission to create table and
+     * upload data to the BigQuery dataset.
      * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2215,8 +2215,8 @@ public com.google.protobuf.ByteString getPrincipalBytes() { * * *
-     * Output only. The service account that needs permission to create table, upload data to
-     * the big query dataset.
+     * Output only. The service account that needs permission to create table and
+     * upload data to the BigQuery dataset.
      * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2237,8 +2237,8 @@ public Builder setPrincipal(java.lang.String value) { * * *
-     * Output only. The service account that needs permission to create table, upload data to
-     * the big query dataset.
+     * Output only. The service account that needs permission to create table and
+     * upload data to the BigQuery dataset.
      * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2255,8 +2255,8 @@ public Builder clearPrincipal() { * * *
-     * Output only. The service account that needs permission to create table, upload data to
-     * the big query dataset.
+     * Output only. The service account that needs permission to create table and
+     * upload data to the BigQuery dataset.
      * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportOrBuilder.java index 913eaddea7a9..6d8b55021de8 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportOrBuilder.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BigQueryExportOrBuilder.java @@ -175,7 +175,7 @@ public interface BigQueryExportOrBuilder * * *
-   * Output only. The time at which the big query export was created.
+   * Output only. The time at which the BigQuery export was created.
    * This field is set by the server and will be ignored if provided on export
    * on creation.
    * 
@@ -190,7 +190,7 @@ public interface BigQueryExportOrBuilder * * *
-   * Output only. The time at which the big query export was created.
+   * Output only. The time at which the BigQuery export was created.
    * This field is set by the server and will be ignored if provided on export
    * on creation.
    * 
@@ -205,7 +205,7 @@ public interface BigQueryExportOrBuilder * * *
-   * Output only. The time at which the big query export was created.
+   * Output only. The time at which the BigQuery export was created.
    * This field is set by the server and will be ignored if provided on export
    * on creation.
    * 
@@ -219,7 +219,7 @@ public interface BigQueryExportOrBuilder * * *
-   * Output only. The most recent time at which the big export was updated.
+   * Output only. The most recent time at which the BigQuery export was updated.
    * This field is set by the server and will be ignored if provided on export
    * creation or update.
    * 
@@ -234,7 +234,7 @@ public interface BigQueryExportOrBuilder * * *
-   * Output only. The most recent time at which the big export was updated.
+   * Output only. The most recent time at which the BigQuery export was updated.
    * This field is set by the server and will be ignored if provided on export
    * creation or update.
    * 
@@ -249,7 +249,7 @@ public interface BigQueryExportOrBuilder * * *
-   * Output only. The most recent time at which the big export was updated.
+   * Output only. The most recent time at which the BigQuery export was updated.
    * This field is set by the server and will be ignored if provided on export
    * creation or update.
    * 
@@ -263,7 +263,7 @@ public interface BigQueryExportOrBuilder * * *
-   * Output only. Email address of the user who last edited the big query export.
+   * Output only. Email address of the user who last edited the BigQuery export.
    * This field is set by the server and will be ignored if provided on export
    * creation or update.
    * 
@@ -277,7 +277,7 @@ public interface BigQueryExportOrBuilder * * *
-   * Output only. Email address of the user who last edited the big query export.
+   * Output only. Email address of the user who last edited the BigQuery export.
    * This field is set by the server and will be ignored if provided on export
    * creation or update.
    * 
@@ -292,8 +292,8 @@ public interface BigQueryExportOrBuilder * * *
-   * Output only. The service account that needs permission to create table, upload data to
-   * the big query dataset.
+   * Output only. The service account that needs permission to create table and
+   * upload data to the BigQuery dataset.
    * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -305,8 +305,8 @@ public interface BigQueryExportOrBuilder * * *
-   * Output only. The service account that needs permission to create table, upload data to
-   * the big query dataset.
+   * Output only. The service account that needs permission to create table and
+   * upload data to the BigQuery dataset.
    * 
* * string principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequest.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequest.java index 4bfaa73e0839..2088d7f7d960 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequest.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/BulkMuteFindingsRequest.java @@ -226,7 +226,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * 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=612 + * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=763 * @return The muteAnnotation. */ @java.lang.Override @@ -253,7 +253,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=612 + * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=763 * @return The bytes for muteAnnotation. */ @java.lang.Override @@ -979,7 +979,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=612 + * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=763 * @return The muteAnnotation. */ @java.lang.Deprecated @@ -1005,7 +1005,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=612 + * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=763 * @return The bytes for muteAnnotation. */ @java.lang.Deprecated @@ -1031,7 +1031,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=612 + * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=763 * @param value The muteAnnotation to set. * @return This builder for chaining. */ @@ -1056,7 +1056,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=612 + * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=763 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1077,7 +1077,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=612 + * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=763 * @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 7e24e17d5b6d..344b169ee421 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 @@ -120,7 +120,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=612 + * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=763 * @return The muteAnnotation. */ @java.lang.Deprecated @@ -136,7 +136,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=612 + * deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=763 * @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/Contact.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Contact.java index 9651beec4ba9..fa84376f430b 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Contact.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Contact.java @@ -22,7 +22,7 @@ * * *
- * Representa a single contact's email address
+ * The email address of a contact.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Contact} @@ -75,7 +75,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * An email address e.g. "person123@company.com"
+   * An email address. For example, "`person123@company.com`".
    * 
* * string email = 1; @@ -98,7 +98,7 @@ public java.lang.String getEmail() { * * *
-   * An email address e.g. "person123@company.com"
+   * An email address. For example, "`person123@company.com`".
    * 
* * string email = 1; @@ -281,7 +281,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Representa a single contact's email address
+   * The email address of a contact.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Contact} @@ -464,7 +464,7 @@ public Builder mergeFrom( * * *
-     * An email address e.g. "person123@company.com"
+     * An email address. For example, "`person123@company.com`".
      * 
* * string email = 1; @@ -486,7 +486,7 @@ public java.lang.String getEmail() { * * *
-     * An email address e.g. "person123@company.com"
+     * An email address. For example, "`person123@company.com`".
      * 
* * string email = 1; @@ -508,7 +508,7 @@ public com.google.protobuf.ByteString getEmailBytes() { * * *
-     * An email address e.g. "person123@company.com"
+     * An email address. For example, "`person123@company.com`".
      * 
* * string email = 1; @@ -529,7 +529,7 @@ public Builder setEmail(java.lang.String value) { * * *
-     * An email address e.g. "person123@company.com"
+     * An email address. For example, "`person123@company.com`".
      * 
* * string email = 1; @@ -546,7 +546,7 @@ public Builder clearEmail() { * * *
-     * An email address e.g. "person123@company.com"
+     * An email address. For example, "`person123@company.com`".
      * 
* * string email = 1; diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ContactOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ContactOrBuilder.java index 32deb13cdae5..e5a5edd31d54 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ContactOrBuilder.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ContactOrBuilder.java @@ -27,7 +27,7 @@ public interface ContactOrBuilder * * *
-   * An email address e.g. "person123@company.com"
+   * An email address. For example, "`person123@company.com`".
    * 
* * string email = 1; @@ -39,7 +39,7 @@ public interface ContactOrBuilder * * *
-   * An email address e.g. "person123@company.com"
+   * An email address. For example, "`person123@company.com`".
    * 
* * string email = 1; diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSecurityHealthAnalyticsCustomModuleRequest.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSecurityHealthAnalyticsCustomModuleRequest.java new file mode 100644 index 000000000000..8fd2f07ae6f6 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSecurityHealthAnalyticsCustomModuleRequest.java @@ -0,0 +1,1045 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Request message for creating security health analytics custom modules.
+ * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest} + */ +public final class CreateSecurityHealthAnalyticsCustomModuleRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest) + CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() to construct. + private CreateSecurityHealthAnalyticsCustomModuleRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateSecurityHealthAnalyticsCustomModuleRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateSecurityHealthAnalyticsCustomModuleRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + .class, + com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + .Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Resource name of the new custom module's parent. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings",
+   * "folders/{folder}/securityHealthAnalyticsSettings", or
+   * "projects/{project}/securityHealthAnalyticsSettings"
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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. Resource name of the new custom module's parent. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings",
+   * "folders/{folder}/securityHealthAnalyticsSettings", or
+   * "projects/{project}/securityHealthAnalyticsSettings"
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE_FIELD_NUMBER = 2; + private com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + securityHealthAnalyticsCustomModule_; + /** + * + * + *
+   * Required. SecurityHealthAnalytics custom module to create. The provided
+   * name is ignored and reset with provided parent information and
+   * server-generated ID.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityHealthAnalyticsCustomModule field is set. + */ + @java.lang.Override + public boolean hasSecurityHealthAnalyticsCustomModule() { + return securityHealthAnalyticsCustomModule_ != null; + } + /** + * + * + *
+   * Required. SecurityHealthAnalytics custom module to create. The provided
+   * name is ignored and reset with provided parent information and
+   * server-generated ID.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityHealthAnalyticsCustomModule. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModule() { + return securityHealthAnalyticsCustomModule_ == null + ? com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance() + : securityHealthAnalyticsCustomModule_; + } + /** + * + * + *
+   * Required. SecurityHealthAnalytics custom module to create. The provided
+   * name is ignored and reset with provided parent information and
+   * server-generated ID.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder + getSecurityHealthAnalyticsCustomModuleOrBuilder() { + return securityHealthAnalyticsCustomModule_ == null + ? com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance() + : securityHealthAnalyticsCustomModule_; + } + + 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 (securityHealthAnalyticsCustomModule_ != null) { + output.writeMessage(2, getSecurityHealthAnalyticsCustomModule()); + } + 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 (securityHealthAnalyticsCustomModule_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getSecurityHealthAnalyticsCustomModule()); + } + 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.CreateSecurityHealthAnalyticsCustomModuleRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest other = + (com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasSecurityHealthAnalyticsCustomModule() != other.hasSecurityHealthAnalyticsCustomModule()) + return false; + if (hasSecurityHealthAnalyticsCustomModule()) { + if (!getSecurityHealthAnalyticsCustomModule() + .equals(other.getSecurityHealthAnalyticsCustomModule())) 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 (hasSecurityHealthAnalyticsCustomModule()) { + hash = (37 * hash) + SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE_FIELD_NUMBER; + hash = (53 * hash) + getSecurityHealthAnalyticsCustomModule().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + 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.CreateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + 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.CreateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + 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.CreateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + 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.CreateSecurityHealthAnalyticsCustomModuleRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + 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.CreateSecurityHealthAnalyticsCustomModuleRequest + 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.CreateSecurityHealthAnalyticsCustomModuleRequest + 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.CreateSecurityHealthAnalyticsCustomModuleRequest + 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 for creating security health analytics custom modules.
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest) + com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + .class, + com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + securityHealthAnalyticsCustomModule_ = null; + if (securityHealthAnalyticsCustomModuleBuilder_ != null) { + securityHealthAnalyticsCustomModuleBuilder_.dispose(); + securityHealthAnalyticsCustomModuleBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + build() { + com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + buildPartial() { + com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest result = + new com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.securityHealthAnalyticsCustomModule_ = + securityHealthAnalyticsCustomModuleBuilder_ == null + ? securityHealthAnalyticsCustomModule_ + : securityHealthAnalyticsCustomModuleBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest) { + return mergeFrom( + (com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest other) { + if (other + == com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSecurityHealthAnalyticsCustomModule()) { + mergeSecurityHealthAnalyticsCustomModule(other.getSecurityHealthAnalyticsCustomModule()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getSecurityHealthAnalyticsCustomModuleFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Resource name of the new custom module's parent. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings",
+     * "folders/{folder}/securityHealthAnalyticsSettings", or
+     * "projects/{project}/securityHealthAnalyticsSettings"
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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. Resource name of the new custom module's parent. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings",
+     * "folders/{folder}/securityHealthAnalyticsSettings", or
+     * "projects/{project}/securityHealthAnalyticsSettings"
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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. Resource name of the new custom module's parent. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings",
+     * "folders/{folder}/securityHealthAnalyticsSettings", or
+     * "projects/{project}/securityHealthAnalyticsSettings"
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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. Resource name of the new custom module's parent. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings",
+     * "folders/{folder}/securityHealthAnalyticsSettings", or
+     * "projects/{project}/securityHealthAnalyticsSettings"
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the new custom module's parent. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings",
+     * "folders/{folder}/securityHealthAnalyticsSettings", or
+     * "projects/{project}/securityHealthAnalyticsSettings"
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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.SecurityHealthAnalyticsCustomModule + securityHealthAnalyticsCustomModule_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> + securityHealthAnalyticsCustomModuleBuilder_; + /** + * + * + *
+     * Required. SecurityHealthAnalytics custom module to create. The provided
+     * name is ignored and reset with provided parent information and
+     * server-generated ID.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityHealthAnalyticsCustomModule field is set. + */ + public boolean hasSecurityHealthAnalyticsCustomModule() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. SecurityHealthAnalytics custom module to create. The provided
+     * name is ignored and reset with provided parent information and
+     * server-generated ID.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityHealthAnalyticsCustomModule. + */ + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModule() { + if (securityHealthAnalyticsCustomModuleBuilder_ == null) { + return securityHealthAnalyticsCustomModule_ == null + ? com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance() + : securityHealthAnalyticsCustomModule_; + } else { + return securityHealthAnalyticsCustomModuleBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. SecurityHealthAnalytics custom module to create. The provided
+     * name is ignored and reset with provided parent information and
+     * server-generated ID.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule value) { + if (securityHealthAnalyticsCustomModuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityHealthAnalyticsCustomModule_ = value; + } else { + securityHealthAnalyticsCustomModuleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. SecurityHealthAnalytics custom module to create. The provided
+     * name is ignored and reset with provided parent information and
+     * server-generated ID.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder + builderForValue) { + if (securityHealthAnalyticsCustomModuleBuilder_ == null) { + securityHealthAnalyticsCustomModule_ = builderForValue.build(); + } else { + securityHealthAnalyticsCustomModuleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. SecurityHealthAnalytics custom module to create. The provided
+     * name is ignored and reset with provided parent information and
+     * server-generated ID.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule value) { + if (securityHealthAnalyticsCustomModuleBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && securityHealthAnalyticsCustomModule_ != null + && securityHealthAnalyticsCustomModule_ + != com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance()) { + getSecurityHealthAnalyticsCustomModuleBuilder().mergeFrom(value); + } else { + securityHealthAnalyticsCustomModule_ = value; + } + } else { + securityHealthAnalyticsCustomModuleBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. SecurityHealthAnalytics custom module to create. The provided
+     * name is ignored and reset with provided parent information and
+     * server-generated ID.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSecurityHealthAnalyticsCustomModule() { + bitField0_ = (bitField0_ & ~0x00000002); + securityHealthAnalyticsCustomModule_ = null; + if (securityHealthAnalyticsCustomModuleBuilder_ != null) { + securityHealthAnalyticsCustomModuleBuilder_.dispose(); + securityHealthAnalyticsCustomModuleBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. SecurityHealthAnalytics custom module to create. The provided
+     * name is ignored and reset with provided parent information and
+     * server-generated ID.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder + getSecurityHealthAnalyticsCustomModuleBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSecurityHealthAnalyticsCustomModuleFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. SecurityHealthAnalytics custom module to create. The provided
+     * name is ignored and reset with provided parent information and
+     * server-generated ID.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder + getSecurityHealthAnalyticsCustomModuleOrBuilder() { + if (securityHealthAnalyticsCustomModuleBuilder_ != null) { + return securityHealthAnalyticsCustomModuleBuilder_.getMessageOrBuilder(); + } else { + return securityHealthAnalyticsCustomModule_ == null + ? com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance() + : securityHealthAnalyticsCustomModule_; + } + } + /** + * + * + *
+     * Required. SecurityHealthAnalytics custom module to create. The provided
+     * name is ignored and reset with provided parent information and
+     * server-generated ID.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> + getSecurityHealthAnalyticsCustomModuleFieldBuilder() { + if (securityHealthAnalyticsCustomModuleBuilder_ == null) { + securityHealthAnalyticsCustomModuleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder>( + getSecurityHealthAnalyticsCustomModule(), getParentForChildren(), isClean()); + securityHealthAnalyticsCustomModule_ = null; + } + return securityHealthAnalyticsCustomModuleBuilder_; + } + + @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.CreateSecurityHealthAnalyticsCustomModuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest) + private static final com.google.cloud.securitycenter.v1 + .CreateSecurityHealthAnalyticsCustomModuleRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest(); + } + + public static com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser< + CreateSecurityHealthAnalyticsCustomModuleRequest>() { + @java.lang.Override + public CreateSecurityHealthAnalyticsCustomModuleRequest 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 + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java new file mode 100644 index 000000000000..b3f5429d5057 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface CreateSecurityHealthAnalyticsCustomModuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the new custom module's parent. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings",
+   * "folders/{folder}/securityHealthAnalyticsSettings", or
+   * "projects/{project}/securityHealthAnalyticsSettings"
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Resource name of the new custom module's parent. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings",
+   * "folders/{folder}/securityHealthAnalyticsSettings", or
+   * "projects/{project}/securityHealthAnalyticsSettings"
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. SecurityHealthAnalytics custom module to create. The provided
+   * name is ignored and reset with provided parent information and
+   * server-generated ID.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityHealthAnalyticsCustomModule field is set. + */ + boolean hasSecurityHealthAnalyticsCustomModule(); + /** + * + * + *
+   * Required. SecurityHealthAnalytics custom module to create. The provided
+   * name is ignored and reset with provided parent information and
+   * server-generated ID.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityHealthAnalyticsCustomModule. + */ + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModule(); + /** + * + * + *
+   * Required. SecurityHealthAnalytics custom module to create. The provided
+   * name is ignored and reset with provided parent information and
+   * server-generated ID.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder + getSecurityHealthAnalyticsCustomModuleOrBuilder(); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CustomConfig.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CustomConfig.java new file mode 100644 index 000000000000..fff03156bd2c --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CustomConfig.java @@ -0,0 +1,4928 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/security_health_analytics_custom_config.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Defines the properties in a custom module configuration for Security
+ * Health Analytics. Use the custom module configuration to create custom
+ * detectors that generate custom findings for resources that you specify.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.CustomConfig} + */ +public final class CustomConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.CustomConfig) + CustomConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomConfig.newBuilder() to construct. + private CustomConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomConfig() { + severity_ = 0; + description_ = ""; + recommendation_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomConfigProto + .internal_static_google_cloud_securitycenter_v1_CustomConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomConfigProto + .internal_static_google_cloud_securitycenter_v1_CustomConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.CustomConfig.class, + com.google.cloud.securitycenter.v1.CustomConfig.Builder.class); + } + + /** + * + * + *
+   * Defines the valid value options for the severity of a finding.
+   * 
+ * + * Protobuf enum {@code google.cloud.securitycenter.v1.CustomConfig.Severity} + */ + public enum Severity implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified severity.
+     * 
+ * + * SEVERITY_UNSPECIFIED = 0; + */ + SEVERITY_UNSPECIFIED(0), + /** + * + * + *
+     * Critical severity.
+     * 
+ * + * CRITICAL = 1; + */ + CRITICAL(1), + /** + * + * + *
+     * High severity.
+     * 
+ * + * HIGH = 2; + */ + HIGH(2), + /** + * + * + *
+     * Medium severity.
+     * 
+ * + * MEDIUM = 3; + */ + MEDIUM(3), + /** + * + * + *
+     * Low severity.
+     * 
+ * + * LOW = 4; + */ + LOW(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified severity.
+     * 
+ * + * SEVERITY_UNSPECIFIED = 0; + */ + public static final int SEVERITY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Critical severity.
+     * 
+ * + * CRITICAL = 1; + */ + public static final int CRITICAL_VALUE = 1; + /** + * + * + *
+     * High severity.
+     * 
+ * + * HIGH = 2; + */ + public static final int HIGH_VALUE = 2; + /** + * + * + *
+     * Medium severity.
+     * 
+ * + * MEDIUM = 3; + */ + public static final int MEDIUM_VALUE = 3; + /** + * + * + *
+     * Low severity.
+     * 
+ * + * LOW = 4; + */ + public static final int LOW_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Severity valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Severity forNumber(int value) { + switch (value) { + case 0: + return SEVERITY_UNSPECIFIED; + case 1: + return CRITICAL; + case 2: + return HIGH; + case 3: + return MEDIUM; + case 4: + return LOW; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Severity findValueByNumber(int number) { + return Severity.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.CustomConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Severity[] VALUES = values(); + + public static Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Severity(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v1.CustomConfig.Severity) + } + + public interface CustomOutputSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A list of custom output properties to add to the finding.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + java.util.List + getPropertiesList(); + /** + * + * + *
+     * A list of custom output properties to add to the finding.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property getProperties( + int index); + /** + * + * + *
+     * A list of custom output properties to add to the finding.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + int getPropertiesCount(); + /** + * + * + *
+     * A list of custom output properties to add to the finding.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.PropertyOrBuilder> + getPropertiesOrBuilderList(); + /** + * + * + *
+     * A list of custom output properties to add to the finding.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.PropertyOrBuilder + getPropertiesOrBuilder(int index); + } + /** + * + * + *
+   * A set of optional name-value pairs that define custom source properties to
+   * return with each finding that is generated by the custom module. The custom
+   * source properties that are defined here are included in the finding JSON
+   * under `sourceProperties`.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec} + */ + public static final class CustomOutputSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec) + CustomOutputSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomOutputSpec.newBuilder() to construct. + private CustomOutputSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomOutputSpec() { + properties_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomOutputSpec(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomConfigProto + .internal_static_google_cloud_securitycenter_v1_CustomConfig_CustomOutputSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomConfigProto + .internal_static_google_cloud_securitycenter_v1_CustomConfig_CustomOutputSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.class, + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Builder.class); + } + + public interface PropertyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Name of the property for the custom output.
+       * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+       * Name of the property for the custom output.
+       * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+       * The CEL expression for the custom output. A resource property can be
+       * specified to return the value of the property or a text string enclosed
+       * in quotation marks.
+       * 
+ * + * .google.type.Expr value_expression = 2; + * + * @return Whether the valueExpression field is set. + */ + boolean hasValueExpression(); + /** + * + * + *
+       * The CEL expression for the custom output. A resource property can be
+       * specified to return the value of the property or a text string enclosed
+       * in quotation marks.
+       * 
+ * + * .google.type.Expr value_expression = 2; + * + * @return The valueExpression. + */ + com.google.type.Expr getValueExpression(); + /** + * + * + *
+       * The CEL expression for the custom output. A resource property can be
+       * specified to return the value of the property or a text string enclosed
+       * in quotation marks.
+       * 
+ * + * .google.type.Expr value_expression = 2; + */ + com.google.type.ExprOrBuilder getValueExpressionOrBuilder(); + } + /** + * + * + *
+     * An individual name-value pair that defines a custom source property.
+     * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property} + */ + public static final class Property extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property) + PropertyOrBuilder { + private static final long serialVersionUID = 0L; + // Use Property.newBuilder() to construct. + private Property(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Property() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Property(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomConfigProto + .internal_static_google_cloud_securitycenter_v1_CustomConfig_CustomOutputSpec_Property_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomConfigProto + .internal_static_google_cloud_securitycenter_v1_CustomConfig_CustomOutputSpec_Property_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.class, + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+       * Name of the property for the custom output.
+       * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+       * Name of the property for the custom output.
+       * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_EXPRESSION_FIELD_NUMBER = 2; + private com.google.type.Expr valueExpression_; + /** + * + * + *
+       * The CEL expression for the custom output. A resource property can be
+       * specified to return the value of the property or a text string enclosed
+       * in quotation marks.
+       * 
+ * + * .google.type.Expr value_expression = 2; + * + * @return Whether the valueExpression field is set. + */ + @java.lang.Override + public boolean hasValueExpression() { + return valueExpression_ != null; + } + /** + * + * + *
+       * The CEL expression for the custom output. A resource property can be
+       * specified to return the value of the property or a text string enclosed
+       * in quotation marks.
+       * 
+ * + * .google.type.Expr value_expression = 2; + * + * @return The valueExpression. + */ + @java.lang.Override + public com.google.type.Expr getValueExpression() { + return valueExpression_ == null + ? com.google.type.Expr.getDefaultInstance() + : valueExpression_; + } + /** + * + * + *
+       * The CEL expression for the custom output. A resource property can be
+       * specified to return the value of the property or a text string enclosed
+       * in quotation marks.
+       * 
+ * + * .google.type.Expr value_expression = 2; + */ + @java.lang.Override + public com.google.type.ExprOrBuilder getValueExpressionOrBuilder() { + return valueExpression_ == null + ? com.google.type.Expr.getDefaultInstance() + : valueExpression_; + } + + 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (valueExpression_ != null) { + output.writeMessage(2, getValueExpression()); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (valueExpression_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValueExpression()); + } + 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.CustomConfig.CustomOutputSpec.Property)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property other = + (com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property) obj; + + if (!getName().equals(other.getName())) return false; + if (hasValueExpression() != other.hasValueExpression()) return false; + if (hasValueExpression()) { + if (!getValueExpression().equals(other.getValueExpression())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasValueExpression()) { + hash = (37 * hash) + VALUE_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getValueExpression().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + 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.CustomConfig.CustomOutputSpec.Property + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + 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.CustomConfig.CustomOutputSpec.Property + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + 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.CustomConfig.CustomOutputSpec.Property + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + 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.CustomConfig.CustomOutputSpec.Property + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + 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.CustomConfig.CustomOutputSpec.Property + 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.CustomConfig.CustomOutputSpec.Property + 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.CustomConfig.CustomOutputSpec.Property 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; + } + /** + * + * + *
+       * An individual name-value pair that defines a custom source property.
+       * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property) + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.PropertyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomConfigProto + .internal_static_google_cloud_securitycenter_v1_CustomConfig_CustomOutputSpec_Property_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomConfigProto + .internal_static_google_cloud_securitycenter_v1_CustomConfig_CustomOutputSpec_Property_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.class, + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.Builder + .class); + } + + // Construct using + // com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + valueExpression_ = null; + if (valueExpressionBuilder_ != null) { + valueExpressionBuilder_.dispose(); + valueExpressionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomConfigProto + .internal_static_google_cloud_securitycenter_v1_CustomConfig_CustomOutputSpec_Property_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property build() { + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + buildPartial() { + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property result = + new com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.valueExpression_ = + valueExpressionBuilder_ == null + ? valueExpression_ + : valueExpressionBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property) { + return mergeFrom( + (com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property other) { + if (other + == com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasValueExpression()) { + mergeValueExpression(other.getValueExpression()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getValueExpressionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+         * Name of the property for the custom output.
+         * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * Name of the property for the custom output.
+         * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Name of the property for the custom output.
+         * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * Name of the property for the custom output.
+         * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+         * Name of the property for the custom output.
+         * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.type.Expr valueExpression_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> + valueExpressionBuilder_; + /** + * + * + *
+         * The CEL expression for the custom output. A resource property can be
+         * specified to return the value of the property or a text string enclosed
+         * in quotation marks.
+         * 
+ * + * .google.type.Expr value_expression = 2; + * + * @return Whether the valueExpression field is set. + */ + public boolean hasValueExpression() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+         * The CEL expression for the custom output. A resource property can be
+         * specified to return the value of the property or a text string enclosed
+         * in quotation marks.
+         * 
+ * + * .google.type.Expr value_expression = 2; + * + * @return The valueExpression. + */ + public com.google.type.Expr getValueExpression() { + if (valueExpressionBuilder_ == null) { + return valueExpression_ == null + ? com.google.type.Expr.getDefaultInstance() + : valueExpression_; + } else { + return valueExpressionBuilder_.getMessage(); + } + } + /** + * + * + *
+         * The CEL expression for the custom output. A resource property can be
+         * specified to return the value of the property or a text string enclosed
+         * in quotation marks.
+         * 
+ * + * .google.type.Expr value_expression = 2; + */ + public Builder setValueExpression(com.google.type.Expr value) { + if (valueExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + valueExpression_ = value; + } else { + valueExpressionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * The CEL expression for the custom output. A resource property can be
+         * specified to return the value of the property or a text string enclosed
+         * in quotation marks.
+         * 
+ * + * .google.type.Expr value_expression = 2; + */ + public Builder setValueExpression(com.google.type.Expr.Builder builderForValue) { + if (valueExpressionBuilder_ == null) { + valueExpression_ = builderForValue.build(); + } else { + valueExpressionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * The CEL expression for the custom output. A resource property can be
+         * specified to return the value of the property or a text string enclosed
+         * in quotation marks.
+         * 
+ * + * .google.type.Expr value_expression = 2; + */ + public Builder mergeValueExpression(com.google.type.Expr value) { + if (valueExpressionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && valueExpression_ != null + && valueExpression_ != com.google.type.Expr.getDefaultInstance()) { + getValueExpressionBuilder().mergeFrom(value); + } else { + valueExpression_ = value; + } + } else { + valueExpressionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * The CEL expression for the custom output. A resource property can be
+         * specified to return the value of the property or a text string enclosed
+         * in quotation marks.
+         * 
+ * + * .google.type.Expr value_expression = 2; + */ + public Builder clearValueExpression() { + bitField0_ = (bitField0_ & ~0x00000002); + valueExpression_ = null; + if (valueExpressionBuilder_ != null) { + valueExpressionBuilder_.dispose(); + valueExpressionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+         * The CEL expression for the custom output. A resource property can be
+         * specified to return the value of the property or a text string enclosed
+         * in quotation marks.
+         * 
+ * + * .google.type.Expr value_expression = 2; + */ + public com.google.type.Expr.Builder getValueExpressionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getValueExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * The CEL expression for the custom output. A resource property can be
+         * specified to return the value of the property or a text string enclosed
+         * in quotation marks.
+         * 
+ * + * .google.type.Expr value_expression = 2; + */ + public com.google.type.ExprOrBuilder getValueExpressionOrBuilder() { + if (valueExpressionBuilder_ != null) { + return valueExpressionBuilder_.getMessageOrBuilder(); + } else { + return valueExpression_ == null + ? com.google.type.Expr.getDefaultInstance() + : valueExpression_; + } + } + /** + * + * + *
+         * The CEL expression for the custom output. A resource property can be
+         * specified to return the value of the property or a text string enclosed
+         * in quotation marks.
+         * 
+ * + * .google.type.Expr value_expression = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> + getValueExpressionFieldBuilder() { + if (valueExpressionBuilder_ == null) { + valueExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Expr, + com.google.type.Expr.Builder, + com.google.type.ExprOrBuilder>( + getValueExpression(), getParentForChildren(), isClean()); + valueExpression_ = null; + } + return valueExpressionBuilder_; + } + + @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.CustomConfig.CustomOutputSpec.Property) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property) + private static final com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property(); + } + + public static com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Property 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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int PROPERTIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property> + properties_; + /** + * + * + *
+     * A list of custom output properties to add to the finding.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + @java.lang.Override + public java.util.List + getPropertiesList() { + return properties_; + } + /** + * + * + *
+     * A list of custom output properties to add to the finding.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.PropertyOrBuilder> + getPropertiesOrBuilderList() { + return properties_; + } + /** + * + * + *
+     * A list of custom output properties to add to the finding.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + @java.lang.Override + public int getPropertiesCount() { + return properties_.size(); + } + /** + * + * + *
+     * A list of custom output properties to add to the finding.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property getProperties( + int index) { + return properties_.get(index); + } + /** + * + * + *
+     * A list of custom output properties to add to the finding.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.PropertyOrBuilder + getPropertiesOrBuilder(int index) { + return properties_.get(index); + } + + 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 { + for (int i = 0; i < properties_.size(); i++) { + output.writeMessage(1, properties_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < properties_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, properties_.get(i)); + } + 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.CustomConfig.CustomOutputSpec)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec other = + (com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec) obj; + + if (!getPropertiesList().equals(other.getPropertiesList())) 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 (getPropertiesCount() > 0) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getPropertiesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec 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.CustomConfig.CustomOutputSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec 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.CustomConfig.CustomOutputSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec 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.CustomConfig.CustomOutputSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec 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.CustomConfig.CustomOutputSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec + 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.CustomConfig.CustomOutputSpec 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.CustomConfig.CustomOutputSpec 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.CustomConfig.CustomOutputSpec 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; + } + /** + * + * + *
+     * A set of optional name-value pairs that define custom source properties to
+     * return with each finding that is generated by the custom module. The custom
+     * source properties that are defined here are included in the finding JSON
+     * under `sourceProperties`.
+     * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec) + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomConfigProto + .internal_static_google_cloud_securitycenter_v1_CustomConfig_CustomOutputSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomConfigProto + .internal_static_google_cloud_securitycenter_v1_CustomConfig_CustomOutputSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.class, + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Builder.class); + } + + // Construct using + // com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (propertiesBuilder_ == null) { + properties_ = java.util.Collections.emptyList(); + } else { + properties_ = null; + propertiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomConfigProto + .internal_static_google_cloud_securitycenter_v1_CustomConfig_CustomOutputSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec build() { + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec buildPartial() { + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec result = + new com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec result) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + properties_ = java.util.Collections.unmodifiableList(properties_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.properties_ = properties_; + } else { + result.properties_ = propertiesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec) { + return mergeFrom( + (com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec other) { + if (other + == com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec + .getDefaultInstance()) return this; + if (propertiesBuilder_ == null) { + if (!other.properties_.isEmpty()) { + if (properties_.isEmpty()) { + properties_ = other.properties_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePropertiesIsMutable(); + properties_.addAll(other.properties_); + } + onChanged(); + } + } else { + if (!other.properties_.isEmpty()) { + if (propertiesBuilder_.isEmpty()) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + properties_ = other.properties_; + bitField0_ = (bitField0_ & ~0x00000001); + propertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPropertiesFieldBuilder() + : null; + } else { + propertiesBuilder_.addAllMessages(other.properties_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property m = + input.readMessage( + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + .parser(), + extensionRegistry); + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.add(m); + } else { + propertiesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property> + properties_ = java.util.Collections.emptyList(); + + private void ensurePropertiesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + properties_ = + new java.util.ArrayList< + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property>( + properties_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property, + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.Builder, + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.PropertyOrBuilder> + propertiesBuilder_; + + /** + * + * + *
+       * A list of custom output properties to add to the finding.
+       * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + public java.util.List< + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property> + getPropertiesList() { + if (propertiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(properties_); + } else { + return propertiesBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * A list of custom output properties to add to the finding.
+       * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + public int getPropertiesCount() { + if (propertiesBuilder_ == null) { + return properties_.size(); + } else { + return propertiesBuilder_.getCount(); + } + } + /** + * + * + *
+       * A list of custom output properties to add to the finding.
+       * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + public com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + getProperties(int index) { + if (propertiesBuilder_ == null) { + return properties_.get(index); + } else { + return propertiesBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * A list of custom output properties to add to the finding.
+       * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + public Builder setProperties( + int index, + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertiesIsMutable(); + properties_.set(index, value); + onChanged(); + } else { + propertiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * A list of custom output properties to add to the finding.
+       * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + public Builder setProperties( + int index, + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.Builder + builderForValue) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.set(index, builderForValue.build()); + onChanged(); + } else { + propertiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * A list of custom output properties to add to the finding.
+       * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + public Builder addProperties( + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertiesIsMutable(); + properties_.add(value); + onChanged(); + } else { + propertiesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * A list of custom output properties to add to the finding.
+       * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + public Builder addProperties( + int index, + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertiesIsMutable(); + properties_.add(index, value); + onChanged(); + } else { + propertiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * A list of custom output properties to add to the finding.
+       * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + public Builder addProperties( + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.Builder + builderForValue) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.add(builderForValue.build()); + onChanged(); + } else { + propertiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * A list of custom output properties to add to the finding.
+       * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + public Builder addProperties( + int index, + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.Builder + builderForValue) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.add(index, builderForValue.build()); + onChanged(); + } else { + propertiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * A list of custom output properties to add to the finding.
+       * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + public Builder addAllProperties( + java.lang.Iterable< + ? extends + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property> + values) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, properties_); + onChanged(); + } else { + propertiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * A list of custom output properties to add to the finding.
+       * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + public Builder clearProperties() { + if (propertiesBuilder_ == null) { + properties_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + propertiesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A list of custom output properties to add to the finding.
+       * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + public Builder removeProperties(int index) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.remove(index); + onChanged(); + } else { + propertiesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * A list of custom output properties to add to the finding.
+       * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + public com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.Builder + getPropertiesBuilder(int index) { + return getPropertiesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * A list of custom output properties to add to the finding.
+       * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + public com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.PropertyOrBuilder + getPropertiesOrBuilder(int index) { + if (propertiesBuilder_ == null) { + return properties_.get(index); + } else { + return propertiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * A list of custom output properties to add to the finding.
+       * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec + .PropertyOrBuilder> + getPropertiesOrBuilderList() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(properties_); + } + } + /** + * + * + *
+       * A list of custom output properties to add to the finding.
+       * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + public com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.Builder + addPropertiesBuilder() { + return getPropertiesFieldBuilder() + .addBuilder( + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + .getDefaultInstance()); + } + /** + * + * + *
+       * A list of custom output properties to add to the finding.
+       * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + public com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.Builder + addPropertiesBuilder(int index) { + return getPropertiesFieldBuilder() + .addBuilder( + index, + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property + .getDefaultInstance()); + } + /** + * + * + *
+       * A list of custom output properties to add to the finding.
+       * 
+ * + * + * repeated .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property properties = 1; + * + */ + public java.util.List< + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.Builder> + getPropertiesBuilderList() { + return getPropertiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property, + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.Builder, + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.PropertyOrBuilder> + getPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property, + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Property.Builder, + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec + .PropertyOrBuilder>( + properties_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + @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.CustomConfig.CustomOutputSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec) + private static final com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec(); + } + + public static com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomOutputSpec 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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ResourceSelectorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.CustomConfig.ResourceSelector) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The resource types to run the detector on.
+     * 
+ * + * repeated string resource_types = 1; + * + * @return A list containing the resourceTypes. + */ + java.util.List getResourceTypesList(); + /** + * + * + *
+     * The resource types to run the detector on.
+     * 
+ * + * repeated string resource_types = 1; + * + * @return The count of resourceTypes. + */ + int getResourceTypesCount(); + /** + * + * + *
+     * The resource types to run the detector on.
+     * 
+ * + * repeated string resource_types = 1; + * + * @param index The index of the element to return. + * @return The resourceTypes at the given index. + */ + java.lang.String getResourceTypes(int index); + /** + * + * + *
+     * The resource types to run the detector on.
+     * 
+ * + * repeated string resource_types = 1; + * + * @param index The index of the value to return. + * @return The bytes of the resourceTypes at the given index. + */ + com.google.protobuf.ByteString getResourceTypesBytes(int index); + } + /** + * + * + *
+   * Resource for selecting resource type.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.CustomConfig.ResourceSelector} + */ + public static final class ResourceSelector extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.CustomConfig.ResourceSelector) + ResourceSelectorOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceSelector.newBuilder() to construct. + private ResourceSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResourceSelector() { + resourceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ResourceSelector(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomConfigProto + .internal_static_google_cloud_securitycenter_v1_CustomConfig_ResourceSelector_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomConfigProto + .internal_static_google_cloud_securitycenter_v1_CustomConfig_ResourceSelector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector.class, + com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector.Builder.class); + } + + public static final int RESOURCE_TYPES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList resourceTypes_; + /** + * + * + *
+     * The resource types to run the detector on.
+     * 
+ * + * repeated string resource_types = 1; + * + * @return A list containing the resourceTypes. + */ + public com.google.protobuf.ProtocolStringList getResourceTypesList() { + return resourceTypes_; + } + /** + * + * + *
+     * The resource types to run the detector on.
+     * 
+ * + * repeated string resource_types = 1; + * + * @return The count of resourceTypes. + */ + public int getResourceTypesCount() { + return resourceTypes_.size(); + } + /** + * + * + *
+     * The resource types to run the detector on.
+     * 
+ * + * repeated string resource_types = 1; + * + * @param index The index of the element to return. + * @return The resourceTypes at the given index. + */ + public java.lang.String getResourceTypes(int index) { + return resourceTypes_.get(index); + } + /** + * + * + *
+     * The resource types to run the detector on.
+     * 
+ * + * repeated string resource_types = 1; + * + * @param index The index of the value to return. + * @return The bytes of the resourceTypes at the given index. + */ + public com.google.protobuf.ByteString getResourceTypesBytes(int index) { + return resourceTypes_.getByteString(index); + } + + 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 { + for (int i = 0; i < resourceTypes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceTypes_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < resourceTypes_.size(); i++) { + dataSize += computeStringSizeNoTag(resourceTypes_.getRaw(i)); + } + size += dataSize; + size += 1 * getResourceTypesList().size(); + } + 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.CustomConfig.ResourceSelector)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector other = + (com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector) obj; + + if (!getResourceTypesList().equals(other.getResourceTypesList())) 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 (getResourceTypesCount() > 0) { + hash = (37 * hash) + RESOURCE_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getResourceTypesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector 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.CustomConfig.ResourceSelector parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector 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.CustomConfig.ResourceSelector parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector 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.CustomConfig.ResourceSelector parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector 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.CustomConfig.ResourceSelector + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector + 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.CustomConfig.ResourceSelector 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.CustomConfig.ResourceSelector 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.CustomConfig.ResourceSelector 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; + } + /** + * + * + *
+     * Resource for selecting resource type.
+     * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.CustomConfig.ResourceSelector} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.CustomConfig.ResourceSelector) + com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelectorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomConfigProto + .internal_static_google_cloud_securitycenter_v1_CustomConfig_ResourceSelector_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomConfigProto + .internal_static_google_cloud_securitycenter_v1_CustomConfig_ResourceSelector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector.class, + com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector.Builder.class); + } + + // Construct using + // com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + resourceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomConfigProto + .internal_static_google_cloud_securitycenter_v1_CustomConfig_ResourceSelector_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector build() { + com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector buildPartial() { + com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector result = + new com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector result) { + if (((bitField0_ & 0x00000001) != 0)) { + resourceTypes_ = resourceTypes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.resourceTypes_ = resourceTypes_; + } + + private void buildPartial0( + com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector) { + return mergeFrom( + (com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector other) { + if (other + == com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector + .getDefaultInstance()) return this; + if (!other.resourceTypes_.isEmpty()) { + if (resourceTypes_.isEmpty()) { + resourceTypes_ = other.resourceTypes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResourceTypesIsMutable(); + resourceTypes_.addAll(other.resourceTypes_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureResourceTypesIsMutable(); + resourceTypes_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList resourceTypes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureResourceTypesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + resourceTypes_ = new com.google.protobuf.LazyStringArrayList(resourceTypes_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+       * The resource types to run the detector on.
+       * 
+ * + * repeated string resource_types = 1; + * + * @return A list containing the resourceTypes. + */ + public com.google.protobuf.ProtocolStringList getResourceTypesList() { + return resourceTypes_.getUnmodifiableView(); + } + /** + * + * + *
+       * The resource types to run the detector on.
+       * 
+ * + * repeated string resource_types = 1; + * + * @return The count of resourceTypes. + */ + public int getResourceTypesCount() { + return resourceTypes_.size(); + } + /** + * + * + *
+       * The resource types to run the detector on.
+       * 
+ * + * repeated string resource_types = 1; + * + * @param index The index of the element to return. + * @return The resourceTypes at the given index. + */ + public java.lang.String getResourceTypes(int index) { + return resourceTypes_.get(index); + } + /** + * + * + *
+       * The resource types to run the detector on.
+       * 
+ * + * repeated string resource_types = 1; + * + * @param index The index of the value to return. + * @return The bytes of the resourceTypes at the given index. + */ + public com.google.protobuf.ByteString getResourceTypesBytes(int index) { + return resourceTypes_.getByteString(index); + } + /** + * + * + *
+       * The resource types to run the detector on.
+       * 
+ * + * repeated string resource_types = 1; + * + * @param index The index to set the value at. + * @param value The resourceTypes to set. + * @return This builder for chaining. + */ + public Builder setResourceTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceTypesIsMutable(); + resourceTypes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * The resource types to run the detector on.
+       * 
+ * + * repeated string resource_types = 1; + * + * @param value The resourceTypes to add. + * @return This builder for chaining. + */ + public Builder addResourceTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceTypesIsMutable(); + resourceTypes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * The resource types to run the detector on.
+       * 
+ * + * repeated string resource_types = 1; + * + * @param values The resourceTypes to add. + * @return This builder for chaining. + */ + public Builder addAllResourceTypes(java.lang.Iterable values) { + ensureResourceTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceTypes_); + onChanged(); + return this; + } + /** + * + * + *
+       * The resource types to run the detector on.
+       * 
+ * + * repeated string resource_types = 1; + * + * @return This builder for chaining. + */ + public Builder clearResourceTypes() { + resourceTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * The resource types to run the detector on.
+       * 
+ * + * repeated string resource_types = 1; + * + * @param value The bytes of the resourceTypes to add. + * @return This builder for chaining. + */ + public Builder addResourceTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureResourceTypesIsMutable(); + resourceTypes_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.CustomConfig.ResourceSelector) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.CustomConfig.ResourceSelector) + private static final com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector(); + } + + public static com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceSelector 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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int PREDICATE_FIELD_NUMBER = 1; + private com.google.type.Expr predicate_; + /** + * + * + *
+   * The CEL expression to evaluate to produce findings. When the expression
+   * evaluates to true against a resource, a finding is generated.
+   * 
+ * + * .google.type.Expr predicate = 1; + * + * @return Whether the predicate field is set. + */ + @java.lang.Override + public boolean hasPredicate() { + return predicate_ != null; + } + /** + * + * + *
+   * The CEL expression to evaluate to produce findings. When the expression
+   * evaluates to true against a resource, a finding is generated.
+   * 
+ * + * .google.type.Expr predicate = 1; + * + * @return The predicate. + */ + @java.lang.Override + public com.google.type.Expr getPredicate() { + return predicate_ == null ? com.google.type.Expr.getDefaultInstance() : predicate_; + } + /** + * + * + *
+   * The CEL expression to evaluate to produce findings. When the expression
+   * evaluates to true against a resource, a finding is generated.
+   * 
+ * + * .google.type.Expr predicate = 1; + */ + @java.lang.Override + public com.google.type.ExprOrBuilder getPredicateOrBuilder() { + return predicate_ == null ? com.google.type.Expr.getDefaultInstance() : predicate_; + } + + public static final int CUSTOM_OUTPUT_FIELD_NUMBER = 2; + private com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec customOutput_; + /** + * + * + *
+   * Custom output properties.
+   * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2; + * + * @return Whether the customOutput field is set. + */ + @java.lang.Override + public boolean hasCustomOutput() { + return customOutput_ != null; + } + /** + * + * + *
+   * Custom output properties.
+   * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2; + * + * @return The customOutput. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec getCustomOutput() { + return customOutput_ == null + ? com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.getDefaultInstance() + : customOutput_; + } + /** + * + * + *
+   * Custom output properties.
+   * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpecOrBuilder + getCustomOutputOrBuilder() { + return customOutput_ == null + ? com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.getDefaultInstance() + : customOutput_; + } + + public static final int RESOURCE_SELECTOR_FIELD_NUMBER = 3; + private com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resourceSelector_; + /** + * + * + *
+   * The resource types that the custom module operates on. Each custom module
+   * can specify up to 5 resource types.
+   * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3; + * + * + * @return Whether the resourceSelector field is set. + */ + @java.lang.Override + public boolean hasResourceSelector() { + return resourceSelector_ != null; + } + /** + * + * + *
+   * The resource types that the custom module operates on. Each custom module
+   * can specify up to 5 resource types.
+   * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3; + * + * + * @return The resourceSelector. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector getResourceSelector() { + return resourceSelector_ == null + ? com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector.getDefaultInstance() + : resourceSelector_; + } + /** + * + * + *
+   * The resource types that the custom module operates on. Each custom module
+   * can specify up to 5 resource types.
+   * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3; + * + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelectorOrBuilder + getResourceSelectorOrBuilder() { + return resourceSelector_ == null + ? com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector.getDefaultInstance() + : resourceSelector_; + } + + public static final int SEVERITY_FIELD_NUMBER = 4; + private int severity_ = 0; + /** + * + * + *
+   * The severity to assign to findings generated by the module.
+   * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.Severity severity = 4; + * + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override + public int getSeverityValue() { + return severity_; + } + /** + * + * + *
+   * The severity to assign to findings generated by the module.
+   * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.Severity severity = 4; + * + * @return The severity. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.CustomConfig.Severity getSeverity() { + com.google.cloud.securitycenter.v1.CustomConfig.Severity result = + com.google.cloud.securitycenter.v1.CustomConfig.Severity.forNumber(severity_); + return result == null + ? com.google.cloud.securitycenter.v1.CustomConfig.Severity.UNRECOGNIZED + : result; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
+   * Text that describes the vulnerability or misconfiguration that the custom
+   * module detects. This explanation is returned with each finding instance to
+   * help investigators understand the detected issue. The text must be enclosed
+   * in quotation marks.
+   * 
+ * + * string description = 5; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Text that describes the vulnerability or misconfiguration that the custom
+   * module detects. This explanation is returned with each finding instance to
+   * help investigators understand the detected issue. The text must be enclosed
+   * in quotation marks.
+   * 
+ * + * string description = 5; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RECOMMENDATION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object recommendation_ = ""; + /** + * + * + *
+   * An explanation of the recommended steps that security teams can take to
+   * resolve the detected issue. This explanation is returned with each finding
+   * generated by this module in the `nextSteps` property of the finding JSON.
+   * 
+ * + * string recommendation = 6; + * + * @return The recommendation. + */ + @java.lang.Override + public java.lang.String getRecommendation() { + java.lang.Object ref = recommendation_; + 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(); + recommendation_ = s; + return s; + } + } + /** + * + * + *
+   * An explanation of the recommended steps that security teams can take to
+   * resolve the detected issue. This explanation is returned with each finding
+   * generated by this module in the `nextSteps` property of the finding JSON.
+   * 
+ * + * string recommendation = 6; + * + * @return The bytes for recommendation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRecommendationBytes() { + java.lang.Object ref = recommendation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + recommendation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (predicate_ != null) { + output.writeMessage(1, getPredicate()); + } + if (customOutput_ != null) { + output.writeMessage(2, getCustomOutput()); + } + if (resourceSelector_ != null) { + output.writeMessage(3, getResourceSelector()); + } + if (severity_ + != com.google.cloud.securitycenter.v1.CustomConfig.Severity.SEVERITY_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, severity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recommendation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, recommendation_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (predicate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPredicate()); + } + if (customOutput_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomOutput()); + } + if (resourceSelector_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResourceSelector()); + } + if (severity_ + != com.google.cloud.securitycenter.v1.CustomConfig.Severity.SEVERITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, severity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recommendation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, recommendation_); + } + 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.CustomConfig)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.CustomConfig other = + (com.google.cloud.securitycenter.v1.CustomConfig) obj; + + if (hasPredicate() != other.hasPredicate()) return false; + if (hasPredicate()) { + if (!getPredicate().equals(other.getPredicate())) return false; + } + if (hasCustomOutput() != other.hasCustomOutput()) return false; + if (hasCustomOutput()) { + if (!getCustomOutput().equals(other.getCustomOutput())) return false; + } + if (hasResourceSelector() != other.hasResourceSelector()) return false; + if (hasResourceSelector()) { + if (!getResourceSelector().equals(other.getResourceSelector())) return false; + } + if (severity_ != other.severity_) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getRecommendation().equals(other.getRecommendation())) 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 (hasPredicate()) { + hash = (37 * hash) + PREDICATE_FIELD_NUMBER; + hash = (53 * hash) + getPredicate().hashCode(); + } + if (hasCustomOutput()) { + hash = (37 * hash) + CUSTOM_OUTPUT_FIELD_NUMBER; + hash = (53 * hash) + getCustomOutput().hashCode(); + } + if (hasResourceSelector()) { + hash = (37 * hash) + RESOURCE_SELECTOR_FIELD_NUMBER; + hash = (53 * hash) + getResourceSelector().hashCode(); + } + hash = (37 * hash) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + severity_; + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + RECOMMENDATION_FIELD_NUMBER; + hash = (53 * hash) + getRecommendation().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.CustomConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.CustomConfig 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.CustomConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.CustomConfig 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.CustomConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.CustomConfig 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.CustomConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.CustomConfig 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.CustomConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.CustomConfig 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.CustomConfig 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.CustomConfig 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.CustomConfig 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; + } + /** + * + * + *
+   * Defines the properties in a custom module configuration for Security
+   * Health Analytics. Use the custom module configuration to create custom
+   * detectors that generate custom findings for resources that you specify.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.CustomConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.CustomConfig) + com.google.cloud.securitycenter.v1.CustomConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomConfigProto + .internal_static_google_cloud_securitycenter_v1_CustomConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomConfigProto + .internal_static_google_cloud_securitycenter_v1_CustomConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.CustomConfig.class, + com.google.cloud.securitycenter.v1.CustomConfig.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.CustomConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + predicate_ = null; + if (predicateBuilder_ != null) { + predicateBuilder_.dispose(); + predicateBuilder_ = null; + } + customOutput_ = null; + if (customOutputBuilder_ != null) { + customOutputBuilder_.dispose(); + customOutputBuilder_ = null; + } + resourceSelector_ = null; + if (resourceSelectorBuilder_ != null) { + resourceSelectorBuilder_.dispose(); + resourceSelectorBuilder_ = null; + } + severity_ = 0; + description_ = ""; + recommendation_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomConfigProto + .internal_static_google_cloud_securitycenter_v1_CustomConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CustomConfig getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.CustomConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CustomConfig build() { + com.google.cloud.securitycenter.v1.CustomConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CustomConfig buildPartial() { + com.google.cloud.securitycenter.v1.CustomConfig result = + new com.google.cloud.securitycenter.v1.CustomConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.securitycenter.v1.CustomConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.predicate_ = predicateBuilder_ == null ? predicate_ : predicateBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customOutput_ = + customOutputBuilder_ == null ? customOutput_ : customOutputBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.resourceSelector_ = + resourceSelectorBuilder_ == null ? resourceSelector_ : resourceSelectorBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.severity_ = severity_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.recommendation_ = recommendation_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.CustomConfig) { + return mergeFrom((com.google.cloud.securitycenter.v1.CustomConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.CustomConfig other) { + if (other == com.google.cloud.securitycenter.v1.CustomConfig.getDefaultInstance()) + return this; + if (other.hasPredicate()) { + mergePredicate(other.getPredicate()); + } + if (other.hasCustomOutput()) { + mergeCustomOutput(other.getCustomOutput()); + } + if (other.hasResourceSelector()) { + mergeResourceSelector(other.getResourceSelector()); + } + if (other.severity_ != 0) { + setSeverityValue(other.getSeverityValue()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getRecommendation().isEmpty()) { + recommendation_ = other.recommendation_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getPredicateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCustomOutputFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getResourceSelectorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + severity_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + recommendation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.type.Expr predicate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> + predicateBuilder_; + /** + * + * + *
+     * The CEL expression to evaluate to produce findings. When the expression
+     * evaluates to true against a resource, a finding is generated.
+     * 
+ * + * .google.type.Expr predicate = 1; + * + * @return Whether the predicate field is set. + */ + public boolean hasPredicate() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The CEL expression to evaluate to produce findings. When the expression
+     * evaluates to true against a resource, a finding is generated.
+     * 
+ * + * .google.type.Expr predicate = 1; + * + * @return The predicate. + */ + public com.google.type.Expr getPredicate() { + if (predicateBuilder_ == null) { + return predicate_ == null ? com.google.type.Expr.getDefaultInstance() : predicate_; + } else { + return predicateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The CEL expression to evaluate to produce findings. When the expression
+     * evaluates to true against a resource, a finding is generated.
+     * 
+ * + * .google.type.Expr predicate = 1; + */ + public Builder setPredicate(com.google.type.Expr value) { + if (predicateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predicate_ = value; + } else { + predicateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The CEL expression to evaluate to produce findings. When the expression
+     * evaluates to true against a resource, a finding is generated.
+     * 
+ * + * .google.type.Expr predicate = 1; + */ + public Builder setPredicate(com.google.type.Expr.Builder builderForValue) { + if (predicateBuilder_ == null) { + predicate_ = builderForValue.build(); + } else { + predicateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The CEL expression to evaluate to produce findings. When the expression
+     * evaluates to true against a resource, a finding is generated.
+     * 
+ * + * .google.type.Expr predicate = 1; + */ + public Builder mergePredicate(com.google.type.Expr value) { + if (predicateBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && predicate_ != null + && predicate_ != com.google.type.Expr.getDefaultInstance()) { + getPredicateBuilder().mergeFrom(value); + } else { + predicate_ = value; + } + } else { + predicateBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The CEL expression to evaluate to produce findings. When the expression
+     * evaluates to true against a resource, a finding is generated.
+     * 
+ * + * .google.type.Expr predicate = 1; + */ + public Builder clearPredicate() { + bitField0_ = (bitField0_ & ~0x00000001); + predicate_ = null; + if (predicateBuilder_ != null) { + predicateBuilder_.dispose(); + predicateBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The CEL expression to evaluate to produce findings. When the expression
+     * evaluates to true against a resource, a finding is generated.
+     * 
+ * + * .google.type.Expr predicate = 1; + */ + public com.google.type.Expr.Builder getPredicateBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPredicateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The CEL expression to evaluate to produce findings. When the expression
+     * evaluates to true against a resource, a finding is generated.
+     * 
+ * + * .google.type.Expr predicate = 1; + */ + public com.google.type.ExprOrBuilder getPredicateOrBuilder() { + if (predicateBuilder_ != null) { + return predicateBuilder_.getMessageOrBuilder(); + } else { + return predicate_ == null ? com.google.type.Expr.getDefaultInstance() : predicate_; + } + } + /** + * + * + *
+     * The CEL expression to evaluate to produce findings. When the expression
+     * evaluates to true against a resource, a finding is generated.
+     * 
+ * + * .google.type.Expr predicate = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> + getPredicateFieldBuilder() { + if (predicateBuilder_ == null) { + predicateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>( + getPredicate(), getParentForChildren(), isClean()); + predicate_ = null; + } + return predicateBuilder_; + } + + private com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec customOutput_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec, + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Builder, + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpecOrBuilder> + customOutputBuilder_; + /** + * + * + *
+     * Custom output properties.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2; + * + * @return Whether the customOutput field is set. + */ + public boolean hasCustomOutput() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Custom output properties.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2; + * + * @return The customOutput. + */ + public com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec getCustomOutput() { + if (customOutputBuilder_ == null) { + return customOutput_ == null + ? com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.getDefaultInstance() + : customOutput_; + } else { + return customOutputBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Custom output properties.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2; + */ + public Builder setCustomOutput( + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec value) { + if (customOutputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customOutput_ = value; + } else { + customOutputBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom output properties.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2; + */ + public Builder setCustomOutput( + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Builder builderForValue) { + if (customOutputBuilder_ == null) { + customOutput_ = builderForValue.build(); + } else { + customOutputBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom output properties.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2; + */ + public Builder mergeCustomOutput( + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec value) { + if (customOutputBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && customOutput_ != null + && customOutput_ + != com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec + .getDefaultInstance()) { + getCustomOutputBuilder().mergeFrom(value); + } else { + customOutput_ = value; + } + } else { + customOutputBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Custom output properties.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2; + */ + public Builder clearCustomOutput() { + bitField0_ = (bitField0_ & ~0x00000002); + customOutput_ = null; + if (customOutputBuilder_ != null) { + customOutputBuilder_.dispose(); + customOutputBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Custom output properties.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2; + */ + public com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Builder + getCustomOutputBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCustomOutputFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Custom output properties.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2; + */ + public com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpecOrBuilder + getCustomOutputOrBuilder() { + if (customOutputBuilder_ != null) { + return customOutputBuilder_.getMessageOrBuilder(); + } else { + return customOutput_ == null + ? com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.getDefaultInstance() + : customOutput_; + } + } + /** + * + * + *
+     * Custom output properties.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec, + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Builder, + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpecOrBuilder> + getCustomOutputFieldBuilder() { + if (customOutputBuilder_ == null) { + customOutputBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec, + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec.Builder, + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpecOrBuilder>( + getCustomOutput(), getParentForChildren(), isClean()); + customOutput_ = null; + } + return customOutputBuilder_; + } + + private com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resourceSelector_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector, + com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector.Builder, + com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelectorOrBuilder> + resourceSelectorBuilder_; + /** + * + * + *
+     * The resource types that the custom module operates on. Each custom module
+     * can specify up to 5 resource types.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3; + * + * + * @return Whether the resourceSelector field is set. + */ + public boolean hasResourceSelector() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * The resource types that the custom module operates on. Each custom module
+     * can specify up to 5 resource types.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3; + * + * + * @return The resourceSelector. + */ + public com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector getResourceSelector() { + if (resourceSelectorBuilder_ == null) { + return resourceSelector_ == null + ? com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector.getDefaultInstance() + : resourceSelector_; + } else { + return resourceSelectorBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The resource types that the custom module operates on. Each custom module
+     * can specify up to 5 resource types.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3; + * + */ + public Builder setResourceSelector( + com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector value) { + if (resourceSelectorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceSelector_ = value; + } else { + resourceSelectorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource types that the custom module operates on. Each custom module
+     * can specify up to 5 resource types.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3; + * + */ + public Builder setResourceSelector( + com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector.Builder builderForValue) { + if (resourceSelectorBuilder_ == null) { + resourceSelector_ = builderForValue.build(); + } else { + resourceSelectorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource types that the custom module operates on. Each custom module
+     * can specify up to 5 resource types.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3; + * + */ + public Builder mergeResourceSelector( + com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector value) { + if (resourceSelectorBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && resourceSelector_ != null + && resourceSelector_ + != com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector + .getDefaultInstance()) { + getResourceSelectorBuilder().mergeFrom(value); + } else { + resourceSelector_ = value; + } + } else { + resourceSelectorBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource types that the custom module operates on. Each custom module
+     * can specify up to 5 resource types.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3; + * + */ + public Builder clearResourceSelector() { + bitField0_ = (bitField0_ & ~0x00000004); + resourceSelector_ = null; + if (resourceSelectorBuilder_ != null) { + resourceSelectorBuilder_.dispose(); + resourceSelectorBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The resource types that the custom module operates on. Each custom module
+     * can specify up to 5 resource types.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3; + * + */ + public com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector.Builder + getResourceSelectorBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getResourceSelectorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The resource types that the custom module operates on. Each custom module
+     * can specify up to 5 resource types.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3; + * + */ + public com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelectorOrBuilder + getResourceSelectorOrBuilder() { + if (resourceSelectorBuilder_ != null) { + return resourceSelectorBuilder_.getMessageOrBuilder(); + } else { + return resourceSelector_ == null + ? com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector.getDefaultInstance() + : resourceSelector_; + } + } + /** + * + * + *
+     * The resource types that the custom module operates on. Each custom module
+     * can specify up to 5 resource types.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector, + com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector.Builder, + com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelectorOrBuilder> + getResourceSelectorFieldBuilder() { + if (resourceSelectorBuilder_ == null) { + resourceSelectorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector, + com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector.Builder, + com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelectorOrBuilder>( + getResourceSelector(), getParentForChildren(), isClean()); + resourceSelector_ = null; + } + return resourceSelectorBuilder_; + } + + private int severity_ = 0; + /** + * + * + *
+     * The severity to assign to findings generated by the module.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.Severity severity = 4; + * + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override + public int getSeverityValue() { + return severity_; + } + /** + * + * + *
+     * The severity to assign to findings generated by the module.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.Severity severity = 4; + * + * @param value The enum numeric value on the wire for severity to set. + * @return This builder for chaining. + */ + public Builder setSeverityValue(int value) { + severity_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The severity to assign to findings generated by the module.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.Severity severity = 4; + * + * @return The severity. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.CustomConfig.Severity getSeverity() { + com.google.cloud.securitycenter.v1.CustomConfig.Severity result = + com.google.cloud.securitycenter.v1.CustomConfig.Severity.forNumber(severity_); + return result == null + ? com.google.cloud.securitycenter.v1.CustomConfig.Severity.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The severity to assign to findings generated by the module.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.Severity severity = 4; + * + * @param value The severity to set. + * @return This builder for chaining. + */ + public Builder setSeverity(com.google.cloud.securitycenter.v1.CustomConfig.Severity value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + severity_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The severity to assign to findings generated by the module.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.Severity severity = 4; + * + * @return This builder for chaining. + */ + public Builder clearSeverity() { + bitField0_ = (bitField0_ & ~0x00000008); + severity_ = 0; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Text that describes the vulnerability or misconfiguration that the custom
+     * module detects. This explanation is returned with each finding instance to
+     * help investigators understand the detected issue. The text must be enclosed
+     * in quotation marks.
+     * 
+ * + * string description = 5; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Text that describes the vulnerability or misconfiguration that the custom
+     * module detects. This explanation is returned with each finding instance to
+     * help investigators understand the detected issue. The text must be enclosed
+     * in quotation marks.
+     * 
+ * + * string description = 5; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Text that describes the vulnerability or misconfiguration that the custom
+     * module detects. This explanation is returned with each finding instance to
+     * help investigators understand the detected issue. The text must be enclosed
+     * in quotation marks.
+     * 
+ * + * string description = 5; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Text that describes the vulnerability or misconfiguration that the custom
+     * module detects. This explanation is returned with each finding instance to
+     * help investigators understand the detected issue. The text must be enclosed
+     * in quotation marks.
+     * 
+ * + * string description = 5; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Text that describes the vulnerability or misconfiguration that the custom
+     * module detects. This explanation is returned with each finding instance to
+     * help investigators understand the detected issue. The text must be enclosed
+     * in quotation marks.
+     * 
+ * + * string description = 5; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object recommendation_ = ""; + /** + * + * + *
+     * An explanation of the recommended steps that security teams can take to
+     * resolve the detected issue. This explanation is returned with each finding
+     * generated by this module in the `nextSteps` property of the finding JSON.
+     * 
+ * + * string recommendation = 6; + * + * @return The recommendation. + */ + public java.lang.String getRecommendation() { + java.lang.Object ref = recommendation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + recommendation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * An explanation of the recommended steps that security teams can take to
+     * resolve the detected issue. This explanation is returned with each finding
+     * generated by this module in the `nextSteps` property of the finding JSON.
+     * 
+ * + * string recommendation = 6; + * + * @return The bytes for recommendation. + */ + public com.google.protobuf.ByteString getRecommendationBytes() { + java.lang.Object ref = recommendation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + recommendation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * An explanation of the recommended steps that security teams can take to
+     * resolve the detected issue. This explanation is returned with each finding
+     * generated by this module in the `nextSteps` property of the finding JSON.
+     * 
+ * + * string recommendation = 6; + * + * @param value The recommendation to set. + * @return This builder for chaining. + */ + public Builder setRecommendation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + recommendation_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * An explanation of the recommended steps that security teams can take to
+     * resolve the detected issue. This explanation is returned with each finding
+     * generated by this module in the `nextSteps` property of the finding JSON.
+     * 
+ * + * string recommendation = 6; + * + * @return This builder for chaining. + */ + public Builder clearRecommendation() { + recommendation_ = getDefaultInstance().getRecommendation(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * An explanation of the recommended steps that security teams can take to
+     * resolve the detected issue. This explanation is returned with each finding
+     * generated by this module in the `nextSteps` property of the finding JSON.
+     * 
+ * + * string recommendation = 6; + * + * @param value The bytes for recommendation to set. + * @return This builder for chaining. + */ + public Builder setRecommendationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + recommendation_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.CustomConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.CustomConfig) + private static final com.google.cloud.securitycenter.v1.CustomConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.CustomConfig(); + } + + public static com.google.cloud.securitycenter.v1.CustomConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomConfig 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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.CustomConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CustomConfigOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CustomConfigOrBuilder.java new file mode 100644 index 000000000000..f165ceb8a5a3 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CustomConfigOrBuilder.java @@ -0,0 +1,226 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/security_health_analytics_custom_config.proto + +package com.google.cloud.securitycenter.v1; + +public interface CustomConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.CustomConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The CEL expression to evaluate to produce findings. When the expression
+   * evaluates to true against a resource, a finding is generated.
+   * 
+ * + * .google.type.Expr predicate = 1; + * + * @return Whether the predicate field is set. + */ + boolean hasPredicate(); + /** + * + * + *
+   * The CEL expression to evaluate to produce findings. When the expression
+   * evaluates to true against a resource, a finding is generated.
+   * 
+ * + * .google.type.Expr predicate = 1; + * + * @return The predicate. + */ + com.google.type.Expr getPredicate(); + /** + * + * + *
+   * The CEL expression to evaluate to produce findings. When the expression
+   * evaluates to true against a resource, a finding is generated.
+   * 
+ * + * .google.type.Expr predicate = 1; + */ + com.google.type.ExprOrBuilder getPredicateOrBuilder(); + + /** + * + * + *
+   * Custom output properties.
+   * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2; + * + * @return Whether the customOutput field is set. + */ + boolean hasCustomOutput(); + /** + * + * + *
+   * Custom output properties.
+   * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2; + * + * @return The customOutput. + */ + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec getCustomOutput(); + /** + * + * + *
+   * Custom output properties.
+   * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2; + */ + com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpecOrBuilder + getCustomOutputOrBuilder(); + + /** + * + * + *
+   * The resource types that the custom module operates on. Each custom module
+   * can specify up to 5 resource types.
+   * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3; + * + * + * @return Whether the resourceSelector field is set. + */ + boolean hasResourceSelector(); + /** + * + * + *
+   * The resource types that the custom module operates on. Each custom module
+   * can specify up to 5 resource types.
+   * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3; + * + * + * @return The resourceSelector. + */ + com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector getResourceSelector(); + /** + * + * + *
+   * The resource types that the custom module operates on. Each custom module
+   * can specify up to 5 resource types.
+   * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3; + * + */ + com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelectorOrBuilder + getResourceSelectorOrBuilder(); + + /** + * + * + *
+   * The severity to assign to findings generated by the module.
+   * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.Severity severity = 4; + * + * @return The enum numeric value on the wire for severity. + */ + int getSeverityValue(); + /** + * + * + *
+   * The severity to assign to findings generated by the module.
+   * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig.Severity severity = 4; + * + * @return The severity. + */ + com.google.cloud.securitycenter.v1.CustomConfig.Severity getSeverity(); + + /** + * + * + *
+   * Text that describes the vulnerability or misconfiguration that the custom
+   * module detects. This explanation is returned with each finding instance to
+   * help investigators understand the detected issue. The text must be enclosed
+   * in quotation marks.
+   * 
+ * + * string description = 5; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Text that describes the vulnerability or misconfiguration that the custom
+   * module detects. This explanation is returned with each finding instance to
+   * help investigators understand the detected issue. The text must be enclosed
+   * in quotation marks.
+   * 
+ * + * string description = 5; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * An explanation of the recommended steps that security teams can take to
+   * resolve the detected issue. This explanation is returned with each finding
+   * generated by this module in the `nextSteps` property of the finding JSON.
+   * 
+ * + * string recommendation = 6; + * + * @return The recommendation. + */ + java.lang.String getRecommendation(); + /** + * + * + *
+   * An explanation of the recommended steps that security teams can take to
+   * resolve the detected issue. This explanation is returned with each finding
+   * generated by this module in the `nextSteps` property of the finding JSON.
+   * 
+ * + * string recommendation = 6; + * + * @return The bytes for recommendation. + */ + com.google.protobuf.ByteString getRecommendationBytes(); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Database.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Database.java index c86f41b20363..392f50a537c3 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Database.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Database.java @@ -27,7 +27,7 @@ * instances or Cloud Spanner instances), or the database instance itself. * Some database resources may not have the full resource name populated * because these resource types are not yet supported by Cloud Asset Inventory - * (e.g. CloudSQL databases). In these cases only the display name will be + * (e.g. CloudSQL databases). In these cases only the display name will be * provided. * * @@ -563,7 +563,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * instances or Cloud Spanner instances), or the database instance itself. * Some database resources may not have the full resource name populated * because these resource types are not yet supported by Cloud Asset Inventory - * (e.g. CloudSQL databases). In these cases only the display name will be + * (e.g. CloudSQL databases). In these cases only the display name will be * provided. * * diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteSecurityHealthAnalyticsCustomModuleRequest.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteSecurityHealthAnalyticsCustomModuleRequest.java new file mode 100644 index 000000000000..2300d0d47ccf --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteSecurityHealthAnalyticsCustomModuleRequest.java @@ -0,0 +1,714 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Request message for deleting security health analytics custom modules.
+ * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest} + */ +public final class DeleteSecurityHealthAnalyticsCustomModuleRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) + DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteSecurityHealthAnalyticsCustomModuleRequest.newBuilder() to construct. + private DeleteSecurityHealthAnalyticsCustomModuleRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteSecurityHealthAnalyticsCustomModuleRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteSecurityHealthAnalyticsCustomModuleRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + .class, + com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + .Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Name of the custom module to delete. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+   * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+   * or
+   * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the custom module to delete. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+   * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+   * or
+   * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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.DeleteSecurityHealthAnalyticsCustomModuleRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest other = + (com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + 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.DeleteSecurityHealthAnalyticsCustomModuleRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + 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.DeleteSecurityHealthAnalyticsCustomModuleRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + 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.DeleteSecurityHealthAnalyticsCustomModuleRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + 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.DeleteSecurityHealthAnalyticsCustomModuleRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + 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.DeleteSecurityHealthAnalyticsCustomModuleRequest + 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.DeleteSecurityHealthAnalyticsCustomModuleRequest + 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.DeleteSecurityHealthAnalyticsCustomModuleRequest + 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 for deleting security health analytics custom modules.
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) + com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + .class, + com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + build() { + com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + buildPartial() { + com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest result = + new com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) { + return mergeFrom( + (com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest other) { + if (other + == com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Name of the custom module to delete. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * or
+     * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the custom module to delete. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * or
+     * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the custom module to delete. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * or
+     * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the custom module to delete. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * or
+     * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the custom module to delete. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * or
+     * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) + private static final com.google.cloud.securitycenter.v1 + .DeleteSecurityHealthAnalyticsCustomModuleRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest(); + } + + public static com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser< + DeleteSecurityHealthAnalyticsCustomModuleRequest>() { + @java.lang.Override + public DeleteSecurityHealthAnalyticsCustomModuleRequest 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 + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java new file mode 100644 index 000000000000..692d8386096f --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface DeleteSecurityHealthAnalyticsCustomModuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the custom module to delete. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+   * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+   * or
+   * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the custom module to delete. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+   * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+   * or
+   * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EffectiveSecurityHealthAnalyticsCustomModule.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EffectiveSecurityHealthAnalyticsCustomModule.java new file mode 100644 index 000000000000..754b408f64da --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EffectiveSecurityHealthAnalyticsCustomModule.java @@ -0,0 +1,1564 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * An EffectiveSecurityHealthAnalyticsCustomModule is the representation of
+ * a Security Health Analytics custom module at a specified level of the
+ * resource hierarchy: organization, folder, or project. If a custom module is
+ * inherited from a parent organization or folder, the value of the
+ * `enablementState` property in EffectiveSecurityHealthAnalyticsCustomModule is
+ * set to the value that is effective in the parent, instead of  `INHERITED`.
+ * For example, if the module is enabled in a parent organization or folder, the
+ * effective enablement_state for the module in all child folders or projects is
+ * also `enabled`. EffectiveSecurityHealthAnalyticsCustomModule is read-only.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule} + */ +public final class EffectiveSecurityHealthAnalyticsCustomModule + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule) + EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder { + private static final long serialVersionUID = 0L; + // Use EffectiveSecurityHealthAnalyticsCustomModule.newBuilder() to construct. + private EffectiveSecurityHealthAnalyticsCustomModule( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EffectiveSecurityHealthAnalyticsCustomModule() { + name_ = ""; + enablementState_ = 0; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EffectiveSecurityHealthAnalyticsCustomModule(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModuleProto + .internal_static_google_cloud_securitycenter_v1_EffectiveSecurityHealthAnalyticsCustomModule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModuleProto + .internal_static_google_cloud_securitycenter_v1_EffectiveSecurityHealthAnalyticsCustomModule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.class, + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder + .class); + } + + /** + * + * + *
+   * The enablement state of the module.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState} + */ + public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified enablement state.
+     * 
+ * + * ENABLEMENT_STATE_UNSPECIFIED = 0; + */ + ENABLEMENT_STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The module is enabled at the given level.
+     * 
+ * + * ENABLED = 1; + */ + ENABLED(1), + /** + * + * + *
+     * The module is disabled at the given level.
+     * 
+ * + * DISABLED = 2; + */ + DISABLED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified enablement state.
+     * 
+ * + * ENABLEMENT_STATE_UNSPECIFIED = 0; + */ + public static final int ENABLEMENT_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The module is enabled at the given level.
+     * 
+ * + * ENABLED = 1; + */ + public static final int ENABLED_VALUE = 1; + /** + * + * + *
+     * The module is disabled at the given level.
+     * 
+ * + * DISABLED = 2; + */ + public static final int DISABLED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EnablementState valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static EnablementState forNumber(int value) { + switch (value) { + case 0: + return ENABLEMENT_STATE_UNSPECIFIED; + case 1: + return ENABLED; + case 2: + return DISABLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EnablementState findValueByNumber(int number) { + return EnablementState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final EnablementState[] VALUES = values(); + + public static EnablementState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private EnablementState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. The resource name of the custom module.
+   * Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+   * or
+   * "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+   * or
+   * "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name of the custom module.
+   * Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+   * or
+   * "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+   * or
+   * "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.securitycenter.v1.CustomConfig customConfig_; + /** + * + * + *
+   * Output only. The user-specified configuration for the module.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the customConfig field is set. + */ + @java.lang.Override + public boolean hasCustomConfig() { + return customConfig_ != null; + } + /** + * + * + *
+   * Output only. The user-specified configuration for the module.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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_; + } + /** + * + * + *
+   * Output only. The user-specified configuration for the module.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @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 ENABLEMENT_STATE_FIELD_NUMBER = 3; + private int enablementState_ = 0; + /** + * + * + *
+   * Output only. The effective state of enablement for the module at the given
+   * level of the hierarchy.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for enablementState. + */ + @java.lang.Override + public int getEnablementStateValue() { + return enablementState_; + } + /** + * + * + *
+   * Output only. The effective state of enablement for the module at the given
+   * level of the hierarchy.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enablementState. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + .EnablementState + getEnablementState() { + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState + result = + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + .EnablementState.forNumber(enablementState_); + return result == null + ? com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + .EnablementState.UNRECOGNIZED + : result; + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Output only. The display name for the custom module. The name must be
+   * between 1 and 128 characters, start with a lowercase letter, and contain
+   * alphanumeric characters or underscores only.
+   * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The display name for the custom module. The name must be
+   * between 1 and 128 characters, start with a lowercase letter, and contain
+   * alphanumeric characters or underscores only.
+   * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (customConfig_ != null) { + output.writeMessage(2, getCustomConfig()); + } + if (enablementState_ + != com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + .EnablementState.ENABLEMENT_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, enablementState_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, displayName_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (customConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomConfig()); + } + if (enablementState_ + != com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + .EnablementState.ENABLEMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, enablementState_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_); + } + 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.EffectiveSecurityHealthAnalyticsCustomModule)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule other = + (com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCustomConfig() != other.hasCustomConfig()) return false; + if (hasCustomConfig()) { + if (!getCustomConfig().equals(other.getCustomConfig())) return false; + } + if (enablementState_ != other.enablementState_) return false; + if (!getDisplayName().equals(other.getDisplayName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCustomConfig()) { + hash = (37 * hash) + CUSTOM_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCustomConfig().hashCode(); + } + hash = (37 * hash) + ENABLEMENT_STATE_FIELD_NUMBER; + hash = (53 * hash) + enablementState_; + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + 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.EffectiveSecurityHealthAnalyticsCustomModule + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + 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.EffectiveSecurityHealthAnalyticsCustomModule + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + 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.EffectiveSecurityHealthAnalyticsCustomModule + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + 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.EffectiveSecurityHealthAnalyticsCustomModule + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + 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.EffectiveSecurityHealthAnalyticsCustomModule + 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.EffectiveSecurityHealthAnalyticsCustomModule + 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.EffectiveSecurityHealthAnalyticsCustomModule 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; + } + /** + * + * + *
+   * An EffectiveSecurityHealthAnalyticsCustomModule is the representation of
+   * a Security Health Analytics custom module at a specified level of the
+   * resource hierarchy: organization, folder, or project. If a custom module is
+   * inherited from a parent organization or folder, the value of the
+   * `enablementState` property in EffectiveSecurityHealthAnalyticsCustomModule is
+   * set to the value that is effective in the parent, instead of  `INHERITED`.
+   * For example, if the module is enabled in a parent organization or folder, the
+   * effective enablement_state for the module in all child folders or projects is
+   * also `enabled`. EffectiveSecurityHealthAnalyticsCustomModule is read-only.
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule) + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModuleProto + .internal_static_google_cloud_securitycenter_v1_EffectiveSecurityHealthAnalyticsCustomModule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModuleProto + .internal_static_google_cloud_securitycenter_v1_EffectiveSecurityHealthAnalyticsCustomModule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.class, + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + .Builder.class); + } + + // Construct using + // com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + customConfig_ = null; + if (customConfigBuilder_ != null) { + customConfigBuilder_.dispose(); + customConfigBuilder_ = null; + } + enablementState_ = 0; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModuleProto + .internal_static_google_cloud_securitycenter_v1_EffectiveSecurityHealthAnalyticsCustomModule_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule build() { + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + buildPartial() { + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule result = + new com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customConfig_ = + customConfigBuilder_ == null ? customConfig_ : customConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enablementState_ = enablementState_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule) { + return mergeFrom( + (com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule other) { + if (other + == com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCustomConfig()) { + mergeCustomConfig(other.getCustomConfig()); + } + if (other.enablementState_ != 0) { + setEnablementStateValue(other.getEnablementStateValue()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCustomConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + enablementState_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of the custom module.
+     * Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+     * or
+     * "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+     * or
+     * "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the custom module.
+     * Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+     * or
+     * "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+     * or
+     * "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the custom module.
+     * Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+     * or
+     * "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+     * or
+     * "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the custom module.
+     * Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+     * or
+     * "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+     * or
+     * "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the custom module.
+     * Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+     * or
+     * "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+     * or
+     * "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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_; + /** + * + * + *
+     * Output only. The user-specified configuration for the module.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the customConfig field is set. + */ + public boolean hasCustomConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Output only. The user-specified configuration for the module.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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(); + } + } + /** + * + * + *
+     * Output only. The user-specified configuration for the module.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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; + } + /** + * + * + *
+     * Output only. The user-specified configuration for the module.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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; + } + /** + * + * + *
+     * Output only. The user-specified configuration for the module.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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; + } + /** + * + * + *
+     * Output only. The user-specified configuration for the module.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCustomConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + customConfig_ = null; + if (customConfigBuilder_ != null) { + customConfigBuilder_.dispose(); + customConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The user-specified configuration for the module.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.securitycenter.v1.CustomConfig.Builder getCustomConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCustomConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The user-specified configuration for the module.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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_; + } + } + /** + * + * + *
+     * Output only. The user-specified configuration for the module.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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 int enablementState_ = 0; + /** + * + * + *
+     * Output only. The effective state of enablement for the module at the given
+     * level of the hierarchy.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for enablementState. + */ + @java.lang.Override + public int getEnablementStateValue() { + return enablementState_; + } + /** + * + * + *
+     * Output only. The effective state of enablement for the module at the given
+     * level of the hierarchy.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for enablementState to set. + * @return This builder for chaining. + */ + public Builder setEnablementStateValue(int value) { + enablementState_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The effective state of enablement for the module at the given
+     * level of the hierarchy.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enablementState. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + .EnablementState + getEnablementState() { + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + .EnablementState + result = + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + .EnablementState.forNumber(enablementState_); + return result == null + ? com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + .EnablementState.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The effective state of enablement for the module at the given
+     * level of the hierarchy.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enablementState to set. + * @return This builder for chaining. + */ + public Builder setEnablementState( + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + .EnablementState + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + enablementState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The effective state of enablement for the module at the given
+     * level of the hierarchy.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnablementState() { + bitField0_ = (bitField0_ & ~0x00000004); + enablementState_ = 0; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Output only. The display name for the custom module. The name must be
+     * between 1 and 128 characters, start with a lowercase letter, and contain
+     * alphanumeric characters or underscores only.
+     * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The display name for the custom module. The name must be
+     * between 1 and 128 characters, start with a lowercase letter, and contain
+     * alphanumeric characters or underscores only.
+     * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The display name for the custom module. The name must be
+     * between 1 and 128 characters, start with a lowercase letter, and contain
+     * alphanumeric characters or underscores only.
+     * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The display name for the custom module. The name must be
+     * between 1 and 128 characters, start with a lowercase letter, and contain
+     * alphanumeric characters or underscores only.
+     * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The display name for the custom module. The name must be
+     * between 1 and 128 characters, start with a lowercase letter, and contain
+     * alphanumeric characters or underscores only.
+     * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule) + private static final com.google.cloud.securitycenter.v1 + .EffectiveSecurityHealthAnalyticsCustomModule + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule(); + } + + public static com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EffectiveSecurityHealthAnalyticsCustomModule 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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EffectiveSecurityHealthAnalyticsCustomModuleName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EffectiveSecurityHealthAnalyticsCustomModuleName.java new file mode 100644 index 000000000000..bc9c1743b8c5 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EffectiveSecurityHealthAnalyticsCustomModuleName.java @@ -0,0 +1,428 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1; + +import com.google.api.core.BetaApi; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class EffectiveSecurityHealthAnalyticsCustomModuleName implements ResourceName { + private static final PathTemplate ORGANIZATION_EFFECTIVE_CUSTOM_MODULE = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}"); + private static final PathTemplate FOLDER_EFFECTIVE_CUSTOM_MODULE = + PathTemplate.createWithoutUrlEncoding( + "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}"); + private static final PathTemplate PROJECT_EFFECTIVE_CUSTOM_MODULE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String organization; + private final String effectiveCustomModule; + private final String folder; + private final String project; + + @Deprecated + protected EffectiveSecurityHealthAnalyticsCustomModuleName() { + organization = null; + effectiveCustomModule = null; + folder = null; + project = null; + } + + private EffectiveSecurityHealthAnalyticsCustomModuleName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + effectiveCustomModule = Preconditions.checkNotNull(builder.getEffectiveCustomModule()); + folder = null; + project = null; + pathTemplate = ORGANIZATION_EFFECTIVE_CUSTOM_MODULE; + } + + private EffectiveSecurityHealthAnalyticsCustomModuleName( + FolderEffectiveCustomModuleBuilder builder) { + folder = Preconditions.checkNotNull(builder.getFolder()); + effectiveCustomModule = Preconditions.checkNotNull(builder.getEffectiveCustomModule()); + organization = null; + project = null; + pathTemplate = FOLDER_EFFECTIVE_CUSTOM_MODULE; + } + + private EffectiveSecurityHealthAnalyticsCustomModuleName( + ProjectEffectiveCustomModuleBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + effectiveCustomModule = Preconditions.checkNotNull(builder.getEffectiveCustomModule()); + organization = null; + folder = null; + pathTemplate = PROJECT_EFFECTIVE_CUSTOM_MODULE; + } + + public String getOrganization() { + return organization; + } + + public String getEffectiveCustomModule() { + return effectiveCustomModule; + } + + public String getFolder() { + return folder; + } + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static Builder newOrganizationEffectiveCustomModuleBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static FolderEffectiveCustomModuleBuilder newFolderEffectiveCustomModuleBuilder() { + return new FolderEffectiveCustomModuleBuilder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static ProjectEffectiveCustomModuleBuilder newProjectEffectiveCustomModuleBuilder() { + return new ProjectEffectiveCustomModuleBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static EffectiveSecurityHealthAnalyticsCustomModuleName of( + String organization, String effectiveCustomModule) { + return newBuilder() + .setOrganization(organization) + .setEffectiveCustomModule(effectiveCustomModule) + .build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static EffectiveSecurityHealthAnalyticsCustomModuleName + ofOrganizationEffectiveCustomModuleName(String organization, String effectiveCustomModule) { + return newBuilder() + .setOrganization(organization) + .setEffectiveCustomModule(effectiveCustomModule) + .build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static EffectiveSecurityHealthAnalyticsCustomModuleName ofFolderEffectiveCustomModuleName( + String folder, String effectiveCustomModule) { + return newFolderEffectiveCustomModuleBuilder() + .setFolder(folder) + .setEffectiveCustomModule(effectiveCustomModule) + .build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static EffectiveSecurityHealthAnalyticsCustomModuleName ofProjectEffectiveCustomModuleName( + String project, String effectiveCustomModule) { + return newProjectEffectiveCustomModuleBuilder() + .setProject(project) + .setEffectiveCustomModule(effectiveCustomModule) + .build(); + } + + public static String format(String organization, String effectiveCustomModule) { + return newBuilder() + .setOrganization(organization) + .setEffectiveCustomModule(effectiveCustomModule) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatOrganizationEffectiveCustomModuleName( + String organization, String effectiveCustomModule) { + return newBuilder() + .setOrganization(organization) + .setEffectiveCustomModule(effectiveCustomModule) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatFolderEffectiveCustomModuleName( + String folder, String effectiveCustomModule) { + return newFolderEffectiveCustomModuleBuilder() + .setFolder(folder) + .setEffectiveCustomModule(effectiveCustomModule) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectEffectiveCustomModuleName( + String project, String effectiveCustomModule) { + return newProjectEffectiveCustomModuleBuilder() + .setProject(project) + .setEffectiveCustomModule(effectiveCustomModule) + .build() + .toString(); + } + + public static EffectiveSecurityHealthAnalyticsCustomModuleName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (ORGANIZATION_EFFECTIVE_CUSTOM_MODULE.matches(formattedString)) { + Map matchMap = ORGANIZATION_EFFECTIVE_CUSTOM_MODULE.match(formattedString); + return ofOrganizationEffectiveCustomModuleName( + matchMap.get("organization"), matchMap.get("effective_custom_module")); + } else if (FOLDER_EFFECTIVE_CUSTOM_MODULE.matches(formattedString)) { + Map matchMap = FOLDER_EFFECTIVE_CUSTOM_MODULE.match(formattedString); + return ofFolderEffectiveCustomModuleName( + matchMap.get("folder"), matchMap.get("effective_custom_module")); + } else if (PROJECT_EFFECTIVE_CUSTOM_MODULE.matches(formattedString)) { + Map matchMap = PROJECT_EFFECTIVE_CUSTOM_MODULE.match(formattedString); + return ofProjectEffectiveCustomModuleName( + matchMap.get("project"), matchMap.get("effective_custom_module")); + } + throw new ValidationException( + "EffectiveSecurityHealthAnalyticsCustomModuleName.parse: formattedString not in valid format"); + } + + public static List parseList( + List formattedStrings) { + List list = + new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList( + List values) { + List list = new ArrayList<>(values.size()); + for (EffectiveSecurityHealthAnalyticsCustomModuleName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return ORGANIZATION_EFFECTIVE_CUSTOM_MODULE.matches(formattedString) + || FOLDER_EFFECTIVE_CUSTOM_MODULE.matches(formattedString) + || PROJECT_EFFECTIVE_CUSTOM_MODULE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + if (effectiveCustomModule != null) { + fieldMapBuilder.put("effective_custom_module", effectiveCustomModule); + } + if (folder != null) { + fieldMapBuilder.put("folder", folder); + } + if (project != null) { + fieldMapBuilder.put("project", project); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + EffectiveSecurityHealthAnalyticsCustomModuleName that = + ((EffectiveSecurityHealthAnalyticsCustomModuleName) o); + return Objects.equals(this.organization, that.organization) + && Objects.equals(this.effectiveCustomModule, that.effectiveCustomModule) + && Objects.equals(this.folder, that.folder) + && Objects.equals(this.project, that.project); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(organization); + h *= 1000003; + h ^= Objects.hashCode(effectiveCustomModule); + h *= 1000003; + h ^= Objects.hashCode(folder); + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** + * Builder for + * organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}. + */ + public static class Builder { + private String organization; + private String effectiveCustomModule; + + protected Builder() {} + + public String getOrganization() { + return organization; + } + + public String getEffectiveCustomModule() { + return effectiveCustomModule; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public Builder setEffectiveCustomModule(String effectiveCustomModule) { + this.effectiveCustomModule = effectiveCustomModule; + return this; + } + + private Builder( + EffectiveSecurityHealthAnalyticsCustomModuleName + effectiveSecurityHealthAnalyticsCustomModuleName) { + Preconditions.checkArgument( + Objects.equals( + effectiveSecurityHealthAnalyticsCustomModuleName.pathTemplate, + ORGANIZATION_EFFECTIVE_CUSTOM_MODULE), + "toBuilder is only supported when EffectiveSecurityHealthAnalyticsCustomModuleName has the pattern of organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}"); + this.organization = effectiveSecurityHealthAnalyticsCustomModuleName.organization; + this.effectiveCustomModule = + effectiveSecurityHealthAnalyticsCustomModuleName.effectiveCustomModule; + } + + public EffectiveSecurityHealthAnalyticsCustomModuleName build() { + return new EffectiveSecurityHealthAnalyticsCustomModuleName(this); + } + } + + /** + * Builder for + * folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}. + */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class FolderEffectiveCustomModuleBuilder { + private String folder; + private String effectiveCustomModule; + + protected FolderEffectiveCustomModuleBuilder() {} + + public String getFolder() { + return folder; + } + + public String getEffectiveCustomModule() { + return effectiveCustomModule; + } + + public FolderEffectiveCustomModuleBuilder setFolder(String folder) { + this.folder = folder; + return this; + } + + public FolderEffectiveCustomModuleBuilder setEffectiveCustomModule( + String effectiveCustomModule) { + this.effectiveCustomModule = effectiveCustomModule; + return this; + } + + public EffectiveSecurityHealthAnalyticsCustomModuleName build() { + return new EffectiveSecurityHealthAnalyticsCustomModuleName(this); + } + } + + /** + * Builder for + * projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}. + */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class ProjectEffectiveCustomModuleBuilder { + private String project; + private String effectiveCustomModule; + + protected ProjectEffectiveCustomModuleBuilder() {} + + public String getProject() { + return project; + } + + public String getEffectiveCustomModule() { + return effectiveCustomModule; + } + + public ProjectEffectiveCustomModuleBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectEffectiveCustomModuleBuilder setEffectiveCustomModule( + String effectiveCustomModule) { + this.effectiveCustomModule = effectiveCustomModule; + return this; + } + + public EffectiveSecurityHealthAnalyticsCustomModuleName build() { + return new EffectiveSecurityHealthAnalyticsCustomModuleName(this); + } + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder.java new file mode 100644 index 000000000000..4bae9fe77ecb --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder.java @@ -0,0 +1,164 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module.proto + +package com.google.cloud.securitycenter.v1; + +public interface EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of the custom module.
+   * Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+   * or
+   * "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+   * or
+   * "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of the custom module.
+   * Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+   * or
+   * "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+   * or
+   * "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The user-specified configuration for the module.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the customConfig field is set. + */ + boolean hasCustomConfig(); + /** + * + * + *
+   * Output only. The user-specified configuration for the module.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The customConfig. + */ + com.google.cloud.securitycenter.v1.CustomConfig getCustomConfig(); + /** + * + * + *
+   * Output only. The user-specified configuration for the module.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.securitycenter.v1.CustomConfigOrBuilder getCustomConfigOrBuilder(); + + /** + * + * + *
+   * Output only. The effective state of enablement for the module at the given
+   * level of the hierarchy.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for enablementState. + */ + int getEnablementStateValue(); + /** + * + * + *
+   * Output only. The effective state of enablement for the module at the given
+   * level of the hierarchy.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enablementState. + */ + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState + getEnablementState(); + + /** + * + * + *
+   * Output only. The display name for the custom module. The name must be
+   * between 1 and 128 characters, start with a lowercase letter, and contain
+   * alphanumeric characters or underscores only.
+   * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Output only. The display name for the custom module. The name must be
+   * between 1 and 128 characters, start with a lowercase letter, and contain
+   * alphanumeric characters or underscores only.
+   * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EffectiveSecurityHealthAnalyticsCustomModuleProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EffectiveSecurityHealthAnalyticsCustomModuleProto.java new file mode 100644 index 000000000000..c70ff297ea3d --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/EffectiveSecurityHealthAnalyticsCustomModuleProto.java @@ -0,0 +1,106 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module.proto + +package com.google.cloud.securitycenter.v1; + +public final class EffectiveSecurityHealthAnalyticsCustomModuleProto { + private EffectiveSecurityHealthAnalyticsCustomModuleProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_EffectiveSecurityHealthAnalyticsCustomModule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_EffectiveSecurityHealthAnalyticsCustomModule_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nVgoogle/cloud/securitycenter/v1/effecti" + + "ve_security_health_analytics_custom_modu" + + "le.proto\022\036google.cloud.securitycenter.v1" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\032Lgoogle/cloud/secur" + + "itycenter/v1/security_health_analytics_c" + + "ustom_config.proto\"\375\005\n,EffectiveSecurity" + + "HealthAnalyticsCustomModule\022\021\n\004name\030\001 \001(" + + "\tB\003\340A\003\022H\n\rcustom_config\030\002 \001(\0132,.google.c" + + "loud.securitycenter.v1.CustomConfigB\003\340A\003" + + "\022{\n\020enablement_state\030\003 \001(\0162\\.google.clou" + + "d.securitycenter.v1.EffectiveSecurityHea" + + "lthAnalyticsCustomModule.EnablementState" + + "B\003\340A\003\022\031\n\014display_name\030\004 \001(\tB\003\340A\003\"N\n\017Enab" + + "lementState\022 \n\034ENABLEMENT_STATE_UNSPECIF" + + "IED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002:\207\003\352A\203\003\n" + + "Jsecuritycenter.googleapis.com/Effective" + + "SecurityHealthAnalyticsCustomModule\022morg" + + "anizations/{organization}/securityHealth" + + "AnalyticsSettings/effectiveCustomModules" + + "/{effective_custom_module}\022afolders/{fol" + + "der}/securityHealthAnalyticsSettings/eff" + + "ectiveCustomModules/{effective_custom_mo" + + "dule}\022cprojects/{project}/securityHealth" + + "AnalyticsSettings/effectiveCustomModules" + + "/{effective_custom_module}B\213\002\n\"com.googl" + + "e.cloud.securitycenter.v1B1EffectiveSecu" + + "rityHealthAnalyticsCustomModuleProtoP\001ZJ" + + "cloud.google.com/go/securitycenter/apiv1" + + "/securitycenterpb;securitycenterpb\252\002\036Goo" + + "gle.Cloud.SecurityCenter.V1\312\002\036Google\\Clo" + + "ud\\SecurityCenter\\V1\352\002!Google::Cloud::Se" + + "curityCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomConfigProto + .getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_EffectiveSecurityHealthAnalyticsCustomModule_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_EffectiveSecurityHealthAnalyticsCustomModule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_EffectiveSecurityHealthAnalyticsCustomModule_descriptor, + new java.lang.String[] { + "Name", "CustomConfig", "EnablementState", "DisplayName", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomConfigProto.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/Exfiltration.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Exfiltration.java index 2286c5e906fd..ae303d2fe1a1 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Exfiltration.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Exfiltration.java @@ -23,7 +23,7 @@ * *
  * Exfiltration represents a data exfiltration attempt of one or more
- * sources to one or more targets.  Sources represent the source
+ * sources to one or more targets. Sources represent the source
  * of data that is exfiltrated, and Targets represents the destination the
  * data was copied to.
  * 
@@ -405,7 +405,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Exfiltration represents a data exfiltration attempt of one or more
-   * sources to one or more targets.  Sources represent the source
+   * sources to one or more targets. Sources represent the source
    * of data that is exfiltrated, and Targets represents the destination the
    * data was copied to.
    * 
diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java index fac582ef54c1..d161611f6548 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java @@ -61,6 +61,7 @@ private Finding() { description_ = ""; iamBindings_ = java.util.Collections.emptyList(); nextSteps_ = ""; + moduleName_ = ""; containers_ = java.util.Collections.emptyList(); files_ = java.util.Collections.emptyList(); } @@ -1805,7 +1806,7 @@ public com.google.cloud.securitycenter.v1.IndicatorOrBuilder getIndicatorOrBuild * * *
-   * Represents vulnerability-specific fields like CVE and CVS scores.
+   * Represents vulnerability-specific fields like CVE and CVSS scores.
    * CVE stands for Common Vulnerabilities and Exposures
    * (https://cve.mitre.org/about/)
    * 
@@ -1822,7 +1823,7 @@ public boolean hasVulnerability() { * * *
-   * Represents vulnerability-specific fields like CVE and CVS scores.
+   * Represents vulnerability-specific fields like CVE and CVSS scores.
    * CVE stands for Common Vulnerabilities and Exposures
    * (https://cve.mitre.org/about/)
    * 
@@ -1841,7 +1842,7 @@ public com.google.cloud.securitycenter.v1.Vulnerability getVulnerability() { * * *
-   * Represents vulnerability-specific fields like CVE and CVS scores.
+   * Represents vulnerability-specific fields like CVE and CVSS scores.
    * CVE stands for Common Vulnerabilities and Exposures
    * (https://cve.mitre.org/about/)
    * 
@@ -1950,8 +1951,8 @@ public int getExternalSystemsCount() { * * *
-   * Output only. Third party SIEM/SOAR fields within SCC, contains external system
-   * information and external system finding fields.
+   * Output only. Third party SIEM/SOAR fields within SCC, contains external
+   * system information and external system finding fields.
    * 
* * @@ -1976,8 +1977,8 @@ public boolean containsExternalSystems(java.lang.String key) { * * *
-   * Output only. Third party SIEM/SOAR fields within SCC, contains external system
-   * information and external system finding fields.
+   * Output only. Third party SIEM/SOAR fields within SCC, contains external
+   * system information and external system finding fields.
    * 
* * @@ -1993,8 +1994,8 @@ public boolean containsExternalSystems(java.lang.String key) { * * *
-   * Output only. Third party SIEM/SOAR fields within SCC, contains external system
-   * information and external system finding fields.
+   * Output only. Third party SIEM/SOAR fields within SCC, contains external
+   * system information and external system finding fields.
    * 
* * @@ -2018,8 +2019,8 @@ public boolean containsExternalSystems(java.lang.String key) { * * *
-   * Output only. Third party SIEM/SOAR fields within SCC, contains external system
-   * information and external system finding fields.
+   * Output only. Third party SIEM/SOAR fields within SCC, contains external
+   * system information and external system finding fields.
    * 
* * @@ -2383,9 +2384,9 @@ public int getContactsCount() { * * *
-   * Output only. Map containing the points of contact for the given finding. The key
-   * represents the type of contact, while the value contains a list of all the
-   * contacts that pertain. Please refer to:
+   * Output only. Map containing the points of contact for the given finding.
+   * The key represents the type of contact, while the value contains a list of
+   * all the contacts that pertain. Please refer to:
    * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
    *     {
    *       "security": {
@@ -2423,9 +2424,9 @@ public boolean containsContacts(java.lang.String key) {
    *
    *
    * 
-   * Output only. Map containing the points of contact for the given finding. The key
-   * represents the type of contact, while the value contains a list of all the
-   * contacts that pertain. Please refer to:
+   * Output only. Map containing the points of contact for the given finding.
+   * The key represents the type of contact, while the value contains a list of
+   * all the contacts that pertain. Please refer to:
    * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
    *     {
    *       "security": {
@@ -2454,9 +2455,9 @@ public boolean containsContacts(java.lang.String key) {
    *
    *
    * 
-   * Output only. Map containing the points of contact for the given finding. The key
-   * represents the type of contact, while the value contains a list of all the
-   * contacts that pertain. Please refer to:
+   * Output only. Map containing the points of contact for the given finding.
+   * The key represents the type of contact, while the value contains a list of
+   * all the contacts that pertain. Please refer to:
    * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
    *     {
    *       "security": {
@@ -2492,9 +2493,9 @@ public boolean containsContacts(java.lang.String key) {
    *
    *
    * 
-   * Output only. Map containing the points of contact for the given finding. The key
-   * represents the type of contact, while the value contains a list of all the
-   * contacts that pertain. Please refer to:
+   * Output only. Map containing the points of contact for the given finding.
+   * The key represents the type of contact, while the value contains a list of
+   * all the contacts that pertain. Please refer to:
    * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
    *     {
    *       "security": {
@@ -2880,6 +2881,61 @@ public com.google.protobuf.ByteString getNextStepsBytes() {
     }
   }
 
+  public static final int MODULE_NAME_FIELD_NUMBER = 41;
+
+  @SuppressWarnings("serial")
+  private volatile java.lang.Object moduleName_ = "";
+  /**
+   *
+   *
+   * 
+   * Unique identifier of the module which generated the finding.
+   * Example:
+   * folders/598186756061/securityHealthAnalyticsSettings/customModules/56799441161885
+   * 
+ * + * string module_name = 41; + * + * @return The moduleName. + */ + @java.lang.Override + public java.lang.String getModuleName() { + java.lang.Object ref = moduleName_; + 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(); + moduleName_ = s; + return s; + } + } + /** + * + * + *
+   * Unique identifier of the module which generated the finding.
+   * Example:
+   * folders/598186756061/securityHealthAnalyticsSettings/customModules/56799441161885
+   * 
+ * + * string module_name = 41; + * + * @return The bytes for moduleName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModuleNameBytes() { + java.lang.Object ref = moduleName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + moduleName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int CONTAINERS_FIELD_NUMBER = 42; @SuppressWarnings("serial") @@ -3281,6 +3337,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextSteps_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 40, nextSteps_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(moduleName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 41, moduleName_); + } for (int i = 0; i < containers_.size(); i++) { output.writeMessage(42, containers_.get(i)); } @@ -3423,6 +3482,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextSteps_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(40, nextSteps_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(moduleName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(41, moduleName_); + } for (int i = 0; i < containers_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(42, containers_.get(i)); } @@ -3511,6 +3573,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getIamBindingsList().equals(other.getIamBindingsList())) return false; if (!getNextSteps().equals(other.getNextSteps())) return false; + if (!getModuleName().equals(other.getModuleName())) return false; if (!getContainersList().equals(other.getContainersList())) return false; if (hasKubernetes() != other.hasKubernetes()) return false; if (hasKubernetes()) { @@ -3628,6 +3691,8 @@ public int hashCode() { } hash = (37 * hash) + NEXT_STEPS_FIELD_NUMBER; hash = (53 * hash) + getNextSteps().hashCode(); + hash = (37 * hash) + MODULE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getModuleName().hashCode(); if (getContainersCount() > 0) { hash = (37 * hash) + CONTAINERS_FIELD_NUMBER; hash = (53 * hash) + getContainersList().hashCode(); @@ -3911,13 +3976,14 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x10000000); nextSteps_ = ""; + moduleName_ = ""; if (containersBuilder_ == null) { containers_ = java.util.Collections.emptyList(); } else { containers_ = null; containersBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x40000000); + bitField0_ = (bitField0_ & ~0x80000000); kubernetes_ = null; if (kubernetesBuilder_ != null) { kubernetesBuilder_.dispose(); @@ -3934,7 +4000,7 @@ public Builder clear() { files_ = null; filesBuilder_.clear(); } - bitField1_ = (bitField1_ & ~0x00000002); + bitField1_ = (bitField1_ & ~0x00000004); kernelRootkit_ = null; if (kernelRootkitBuilder_ != null) { kernelRootkitBuilder_.dispose(); @@ -4016,18 +4082,18 @@ private void buildPartialRepeatedFields(com.google.cloud.securitycenter.v1.Findi result.iamBindings_ = iamBindingsBuilder_.build(); } if (containersBuilder_ == null) { - if (((bitField0_ & 0x40000000) != 0)) { + if (((bitField0_ & 0x80000000) != 0)) { containers_ = java.util.Collections.unmodifiableList(containers_); - bitField0_ = (bitField0_ & ~0x40000000); + bitField0_ = (bitField0_ & ~0x80000000); } result.containers_ = containers_; } else { result.containers_ = containersBuilder_.build(); } if (filesBuilder_ == null) { - if (((bitField1_ & 0x00000002) != 0)) { + if (((bitField1_ & 0x00000004) != 0)) { files_ = java.util.Collections.unmodifiableList(files_); - bitField1_ = (bitField1_ & ~0x00000002); + bitField1_ = (bitField1_ & ~0x00000004); } result.files_ = files_; } else { @@ -4123,17 +4189,20 @@ private void buildPartial0(com.google.cloud.securitycenter.v1.Finding result) { if (((from_bitField0_ & 0x20000000) != 0)) { result.nextSteps_ = nextSteps_; } - if (((from_bitField0_ & 0x80000000) != 0)) { - result.kubernetes_ = kubernetesBuilder_ == null ? kubernetes_ : kubernetesBuilder_.build(); + if (((from_bitField0_ & 0x40000000) != 0)) { + result.moduleName_ = moduleName_; } } private void buildPartial1(com.google.cloud.securitycenter.v1.Finding result) { int from_bitField1_ = bitField1_; if (((from_bitField1_ & 0x00000001) != 0)) { + result.kubernetes_ = kubernetesBuilder_ == null ? kubernetes_ : kubernetesBuilder_.build(); + } + if (((from_bitField1_ & 0x00000002) != 0)) { result.database_ = databaseBuilder_ == null ? database_ : databaseBuilder_.build(); } - if (((from_bitField1_ & 0x00000004) != 0)) { + if (((from_bitField1_ & 0x00000008) != 0)) { result.kernelRootkit_ = kernelRootkitBuilder_ == null ? kernelRootkit_ : kernelRootkitBuilder_.build(); } @@ -4387,11 +4456,16 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) { bitField0_ |= 0x20000000; onChanged(); } + if (!other.getModuleName().isEmpty()) { + moduleName_ = other.moduleName_; + bitField0_ |= 0x40000000; + onChanged(); + } if (containersBuilder_ == null) { if (!other.containers_.isEmpty()) { if (containers_.isEmpty()) { containers_ = other.containers_; - bitField0_ = (bitField0_ & ~0x40000000); + bitField0_ = (bitField0_ & ~0x80000000); } else { ensureContainersIsMutable(); containers_.addAll(other.containers_); @@ -4404,7 +4478,7 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) { containersBuilder_.dispose(); containersBuilder_ = null; containers_ = other.containers_; - bitField0_ = (bitField0_ & ~0x40000000); + bitField0_ = (bitField0_ & ~0x80000000); containersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getContainersFieldBuilder() @@ -4424,7 +4498,7 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) { if (!other.files_.isEmpty()) { if (files_.isEmpty()) { files_ = other.files_; - bitField1_ = (bitField1_ & ~0x00000002); + bitField1_ = (bitField1_ & ~0x00000004); } else { ensureFilesIsMutable(); files_.addAll(other.files_); @@ -4437,7 +4511,7 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) { filesBuilder_.dispose(); filesBuilder_ = null; files_ = other.files_; - bitField1_ = (bitField1_ & ~0x00000002); + bitField1_ = (bitField1_ & ~0x00000004); filesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFilesFieldBuilder() @@ -4707,6 +4781,12 @@ public Builder mergeFrom( bitField0_ |= 0x20000000; break; } // case 322 + case 330: + { + moduleName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x40000000; + break; + } // case 330 case 338: { com.google.cloud.securitycenter.v1.Container m = @@ -4723,13 +4803,13 @@ public Builder mergeFrom( case 346: { input.readMessage(getKubernetesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000001; break; } // case 346 case 354: { input.readMessage(getDatabaseFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; break; } // case 354 case 370: @@ -4748,7 +4828,7 @@ public Builder mergeFrom( case 402: { input.readMessage(getKernelRootkitFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000008; break; } // case 402 default: @@ -6952,7 +7032,7 @@ public com.google.cloud.securitycenter.v1.IndicatorOrBuilder getIndicatorOrBuild * * *
-     * Represents vulnerability-specific fields like CVE and CVS scores.
+     * Represents vulnerability-specific fields like CVE and CVSS scores.
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
      * 
@@ -6968,7 +7048,7 @@ public boolean hasVulnerability() { * * *
-     * Represents vulnerability-specific fields like CVE and CVS scores.
+     * Represents vulnerability-specific fields like CVE and CVSS scores.
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
      * 
@@ -6990,7 +7070,7 @@ public com.google.cloud.securitycenter.v1.Vulnerability getVulnerability() { * * *
-     * Represents vulnerability-specific fields like CVE and CVS scores.
+     * Represents vulnerability-specific fields like CVE and CVSS scores.
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
      * 
@@ -7014,7 +7094,7 @@ public Builder setVulnerability(com.google.cloud.securitycenter.v1.Vulnerability * * *
-     * Represents vulnerability-specific fields like CVE and CVS scores.
+     * Represents vulnerability-specific fields like CVE and CVSS scores.
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
      * 
@@ -7036,7 +7116,7 @@ public Builder setVulnerability( * * *
-     * Represents vulnerability-specific fields like CVE and CVS scores.
+     * Represents vulnerability-specific fields like CVE and CVSS scores.
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
      * 
@@ -7064,7 +7144,7 @@ public Builder mergeVulnerability(com.google.cloud.securitycenter.v1.Vulnerabili * * *
-     * Represents vulnerability-specific fields like CVE and CVS scores.
+     * Represents vulnerability-specific fields like CVE and CVSS scores.
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
      * 
@@ -7085,7 +7165,7 @@ public Builder clearVulnerability() { * * *
-     * Represents vulnerability-specific fields like CVE and CVS scores.
+     * Represents vulnerability-specific fields like CVE and CVSS scores.
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
      * 
@@ -7101,7 +7181,7 @@ public com.google.cloud.securitycenter.v1.Vulnerability.Builder getVulnerability * * *
-     * Represents vulnerability-specific fields like CVE and CVS scores.
+     * Represents vulnerability-specific fields like CVE and CVSS scores.
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
      * 
@@ -7121,7 +7201,7 @@ public com.google.cloud.securitycenter.v1.VulnerabilityOrBuilder getVulnerabilit * * *
-     * Represents vulnerability-specific fields like CVE and CVS scores.
+     * Represents vulnerability-specific fields like CVE and CVSS scores.
      * CVE stands for Common Vulnerabilities and Exposures
      * (https://cve.mitre.org/about/)
      * 
@@ -7383,8 +7463,8 @@ public int getExternalSystemsCount() { * * *
-     * Output only. Third party SIEM/SOAR fields within SCC, contains external system
-     * information and external system finding fields.
+     * Output only. Third party SIEM/SOAR fields within SCC, contains external
+     * system information and external system finding fields.
      * 
* * @@ -7409,8 +7489,8 @@ public boolean containsExternalSystems(java.lang.String key) { * * *
-     * Output only. Third party SIEM/SOAR fields within SCC, contains external system
-     * information and external system finding fields.
+     * Output only. Third party SIEM/SOAR fields within SCC, contains external
+     * system information and external system finding fields.
      * 
* * @@ -7426,8 +7506,8 @@ public boolean containsExternalSystems(java.lang.String key) { * * *
-     * Output only. Third party SIEM/SOAR fields within SCC, contains external system
-     * information and external system finding fields.
+     * Output only. Third party SIEM/SOAR fields within SCC, contains external
+     * system information and external system finding fields.
      * 
* * @@ -7451,8 +7531,8 @@ public boolean containsExternalSystems(java.lang.String key) { * * *
-     * Output only. Third party SIEM/SOAR fields within SCC, contains external system
-     * information and external system finding fields.
+     * Output only. Third party SIEM/SOAR fields within SCC, contains external
+     * system information and external system finding fields.
      * 
* * @@ -7482,8 +7562,8 @@ public Builder clearExternalSystems() { * * *
-     * Output only. Third party SIEM/SOAR fields within SCC, contains external system
-     * information and external system finding fields.
+     * Output only. Third party SIEM/SOAR fields within SCC, contains external
+     * system information and external system finding fields.
      * 
* * @@ -7508,8 +7588,8 @@ public Builder removeExternalSystems(java.lang.String key) { * * *
-     * Output only. Third party SIEM/SOAR fields within SCC, contains external system
-     * information and external system finding fields.
+     * Output only. Third party SIEM/SOAR fields within SCC, contains external
+     * system information and external system finding fields.
      * 
* * @@ -7532,8 +7612,8 @@ public Builder putExternalSystems( * * *
-     * Output only. Third party SIEM/SOAR fields within SCC, contains external system
-     * information and external system finding fields.
+     * Output only. Third party SIEM/SOAR fields within SCC, contains external
+     * system information and external system finding fields.
      * 
* * @@ -8792,9 +8872,9 @@ public int getContactsCount() { * * *
-     * Output only. Map containing the points of contact for the given finding. The key
-     * represents the type of contact, while the value contains a list of all the
-     * contacts that pertain. Please refer to:
+     * Output only. Map containing the points of contact for the given finding.
+     * The key represents the type of contact, while the value contains a list of
+     * all the contacts that pertain. Please refer to:
      * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
      *     {
      *       "security": {
@@ -8832,9 +8912,9 @@ public boolean containsContacts(java.lang.String key) {
      *
      *
      * 
-     * Output only. Map containing the points of contact for the given finding. The key
-     * represents the type of contact, while the value contains a list of all the
-     * contacts that pertain. Please refer to:
+     * Output only. Map containing the points of contact for the given finding.
+     * The key represents the type of contact, while the value contains a list of
+     * all the contacts that pertain. Please refer to:
      * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
      *     {
      *       "security": {
@@ -8863,9 +8943,9 @@ public boolean containsContacts(java.lang.String key) {
      *
      *
      * 
-     * Output only. Map containing the points of contact for the given finding. The key
-     * represents the type of contact, while the value contains a list of all the
-     * contacts that pertain. Please refer to:
+     * Output only. Map containing the points of contact for the given finding.
+     * The key represents the type of contact, while the value contains a list of
+     * all the contacts that pertain. Please refer to:
      * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
      *     {
      *       "security": {
@@ -8901,9 +8981,9 @@ public boolean containsContacts(java.lang.String key) {
      *
      *
      * 
-     * Output only. Map containing the points of contact for the given finding. The key
-     * represents the type of contact, while the value contains a list of all the
-     * contacts that pertain. Please refer to:
+     * Output only. Map containing the points of contact for the given finding.
+     * The key represents the type of contact, while the value contains a list of
+     * all the contacts that pertain. Please refer to:
      * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
      *     {
      *       "security": {
@@ -8946,9 +9026,9 @@ public Builder clearContacts() {
      *
      *
      * 
-     * Output only. Map containing the points of contact for the given finding. The key
-     * represents the type of contact, while the value contains a list of all the
-     * contacts that pertain. Please refer to:
+     * Output only. Map containing the points of contact for the given finding.
+     * The key represents the type of contact, while the value contains a list of
+     * all the contacts that pertain. Please refer to:
      * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
      *     {
      *       "security": {
@@ -8986,9 +9066,9 @@ public Builder removeContacts(java.lang.String key) {
      *
      *
      * 
-     * Output only. Map containing the points of contact for the given finding. The key
-     * represents the type of contact, while the value contains a list of all the
-     * contacts that pertain. Please refer to:
+     * Output only. Map containing the points of contact for the given finding.
+     * The key represents the type of contact, while the value contains a list of
+     * all the contacts that pertain. Please refer to:
      * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
      *     {
      *       "security": {
@@ -9024,9 +9104,9 @@ public Builder putContacts(
      *
      *
      * 
-     * Output only. Map containing the points of contact for the given finding. The key
-     * represents the type of contact, while the value contains a list of all the
-     * contacts that pertain. Please refer to:
+     * Output only. Map containing the points of contact for the given finding.
+     * The key represents the type of contact, while the value contains a list of
+     * all the contacts that pertain. Please refer to:
      * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
      *     {
      *       "security": {
@@ -10283,14 +10363,130 @@ public Builder setNextStepsBytes(com.google.protobuf.ByteString value) {
       return this;
     }
 
+    private java.lang.Object moduleName_ = "";
+    /**
+     *
+     *
+     * 
+     * Unique identifier of the module which generated the finding.
+     * Example:
+     * folders/598186756061/securityHealthAnalyticsSettings/customModules/56799441161885
+     * 
+ * + * string module_name = 41; + * + * @return The moduleName. + */ + public java.lang.String getModuleName() { + java.lang.Object ref = moduleName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + moduleName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Unique identifier of the module which generated the finding.
+     * Example:
+     * folders/598186756061/securityHealthAnalyticsSettings/customModules/56799441161885
+     * 
+ * + * string module_name = 41; + * + * @return The bytes for moduleName. + */ + public com.google.protobuf.ByteString getModuleNameBytes() { + java.lang.Object ref = moduleName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + moduleName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Unique identifier of the module which generated the finding.
+     * Example:
+     * folders/598186756061/securityHealthAnalyticsSettings/customModules/56799441161885
+     * 
+ * + * string module_name = 41; + * + * @param value The moduleName to set. + * @return This builder for chaining. + */ + public Builder setModuleName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + moduleName_ = value; + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Unique identifier of the module which generated the finding.
+     * Example:
+     * folders/598186756061/securityHealthAnalyticsSettings/customModules/56799441161885
+     * 
+ * + * string module_name = 41; + * + * @return This builder for chaining. + */ + public Builder clearModuleName() { + moduleName_ = getDefaultInstance().getModuleName(); + bitField0_ = (bitField0_ & ~0x40000000); + onChanged(); + return this; + } + /** + * + * + *
+     * Unique identifier of the module which generated the finding.
+     * Example:
+     * folders/598186756061/securityHealthAnalyticsSettings/customModules/56799441161885
+     * 
+ * + * string module_name = 41; + * + * @param value The bytes for moduleName to set. + * @return This builder for chaining. + */ + public Builder setModuleNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + moduleName_ = value; + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + private java.util.List containers_ = java.util.Collections.emptyList(); private void ensureContainersIsMutable() { - if (!((bitField0_ & 0x40000000) != 0)) { + if (!((bitField0_ & 0x80000000) != 0)) { containers_ = new java.util.ArrayList(containers_); - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; } } @@ -10517,7 +10713,7 @@ public Builder addAllContainers( public Builder clearContainers() { if (containersBuilder_ == null) { containers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x40000000); + bitField0_ = (bitField0_ & ~0x80000000); onChanged(); } else { containersBuilder_.clear(); @@ -10646,7 +10842,7 @@ public com.google.cloud.securitycenter.v1.Container.Builder addContainersBuilder com.google.cloud.securitycenter.v1.Container, com.google.cloud.securitycenter.v1.Container.Builder, com.google.cloud.securitycenter.v1.ContainerOrBuilder>( - containers_, ((bitField0_ & 0x40000000) != 0), getParentForChildren(), isClean()); + containers_, ((bitField0_ & 0x80000000) != 0), getParentForChildren(), isClean()); containers_ = null; } return containersBuilder_; @@ -10670,7 +10866,7 @@ public com.google.cloud.securitycenter.v1.Container.Builder addContainersBuilder * @return Whether the kubernetes field is set. */ public boolean hasKubernetes() { - return ((bitField0_ & 0x80000000) != 0); + return ((bitField1_ & 0x00000001) != 0); } /** * @@ -10710,7 +10906,7 @@ public Builder setKubernetes(com.google.cloud.securitycenter.v1.Kubernetes value } else { kubernetesBuilder_.setMessage(value); } - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000001; onChanged(); return this; } @@ -10730,7 +10926,7 @@ public Builder setKubernetes( } else { kubernetesBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000001; onChanged(); return this; } @@ -10745,7 +10941,7 @@ public Builder setKubernetes( */ public Builder mergeKubernetes(com.google.cloud.securitycenter.v1.Kubernetes value) { if (kubernetesBuilder_ == null) { - if (((bitField0_ & 0x80000000) != 0) + if (((bitField1_ & 0x00000001) != 0) && kubernetes_ != null && kubernetes_ != com.google.cloud.securitycenter.v1.Kubernetes.getDefaultInstance()) { getKubernetesBuilder().mergeFrom(value); @@ -10755,7 +10951,7 @@ public Builder mergeKubernetes(com.google.cloud.securitycenter.v1.Kubernetes val } else { kubernetesBuilder_.mergeFrom(value); } - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000001; onChanged(); return this; } @@ -10769,7 +10965,7 @@ public Builder mergeKubernetes(com.google.cloud.securitycenter.v1.Kubernetes val * .google.cloud.securitycenter.v1.Kubernetes kubernetes = 43; */ public Builder clearKubernetes() { - bitField0_ = (bitField0_ & ~0x80000000); + bitField1_ = (bitField1_ & ~0x00000001); kubernetes_ = null; if (kubernetesBuilder_ != null) { kubernetesBuilder_.dispose(); @@ -10788,7 +10984,7 @@ public Builder clearKubernetes() { * .google.cloud.securitycenter.v1.Kubernetes kubernetes = 43; */ public com.google.cloud.securitycenter.v1.Kubernetes.Builder getKubernetesBuilder() { - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000001; onChanged(); return getKubernetesFieldBuilder().getBuilder(); } @@ -10854,7 +11050,7 @@ public com.google.cloud.securitycenter.v1.KubernetesOrBuilder getKubernetesOrBui * @return Whether the database field is set. */ public boolean hasDatabase() { - return ((bitField1_ & 0x00000001) != 0); + return ((bitField1_ & 0x00000002) != 0); } /** * @@ -10894,7 +11090,7 @@ public Builder setDatabase(com.google.cloud.securitycenter.v1.Database value) { } else { databaseBuilder_.setMessage(value); } - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; onChanged(); return this; } @@ -10914,7 +11110,7 @@ public Builder setDatabase( } else { databaseBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; onChanged(); return this; } @@ -10929,7 +11125,7 @@ public Builder setDatabase( */ public Builder mergeDatabase(com.google.cloud.securitycenter.v1.Database value) { if (databaseBuilder_ == null) { - if (((bitField1_ & 0x00000001) != 0) + if (((bitField1_ & 0x00000002) != 0) && database_ != null && database_ != com.google.cloud.securitycenter.v1.Database.getDefaultInstance()) { getDatabaseBuilder().mergeFrom(value); @@ -10939,7 +11135,7 @@ public Builder mergeDatabase(com.google.cloud.securitycenter.v1.Database value) } else { databaseBuilder_.mergeFrom(value); } - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; onChanged(); return this; } @@ -10953,7 +11149,7 @@ public Builder mergeDatabase(com.google.cloud.securitycenter.v1.Database value) * .google.cloud.securitycenter.v1.Database database = 44; */ public Builder clearDatabase() { - bitField1_ = (bitField1_ & ~0x00000001); + bitField1_ = (bitField1_ & ~0x00000002); database_ = null; if (databaseBuilder_ != null) { databaseBuilder_.dispose(); @@ -10972,7 +11168,7 @@ public Builder clearDatabase() { * .google.cloud.securitycenter.v1.Database database = 44; */ public com.google.cloud.securitycenter.v1.Database.Builder getDatabaseBuilder() { - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; onChanged(); return getDatabaseFieldBuilder().getBuilder(); } @@ -11024,9 +11220,9 @@ public com.google.cloud.securitycenter.v1.DatabaseOrBuilder getDatabaseOrBuilder java.util.Collections.emptyList(); private void ensureFilesIsMutable() { - if (!((bitField1_ & 0x00000002) != 0)) { + if (!((bitField1_ & 0x00000004) != 0)) { files_ = new java.util.ArrayList(files_); - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000004; } } @@ -11241,7 +11437,7 @@ public Builder addAllFiles( public Builder clearFiles() { if (filesBuilder_ == null) { files_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00000002); + bitField1_ = (bitField1_ & ~0x00000004); onChanged(); } else { filesBuilder_.clear(); @@ -11362,7 +11558,7 @@ public java.util.List getFilesB com.google.cloud.securitycenter.v1.File, com.google.cloud.securitycenter.v1.File.Builder, com.google.cloud.securitycenter.v1.FileOrBuilder>( - files_, ((bitField1_ & 0x00000002) != 0), getParentForChildren(), isClean()); + files_, ((bitField1_ & 0x00000004) != 0), getParentForChildren(), isClean()); files_ = null; } return filesBuilder_; @@ -11386,7 +11582,7 @@ public java.util.List getFilesB * @return Whether the kernelRootkit field is set. */ public boolean hasKernelRootkit() { - return ((bitField1_ & 0x00000004) != 0); + return ((bitField1_ & 0x00000008) != 0); } /** * @@ -11426,7 +11622,7 @@ public Builder setKernelRootkit(com.google.cloud.securitycenter.v1.KernelRootkit } else { kernelRootkitBuilder_.setMessage(value); } - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000008; onChanged(); return this; } @@ -11446,7 +11642,7 @@ public Builder setKernelRootkit( } else { kernelRootkitBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000008; onChanged(); return this; } @@ -11461,7 +11657,7 @@ public Builder setKernelRootkit( */ public Builder mergeKernelRootkit(com.google.cloud.securitycenter.v1.KernelRootkit value) { if (kernelRootkitBuilder_ == null) { - if (((bitField1_ & 0x00000004) != 0) + if (((bitField1_ & 0x00000008) != 0) && kernelRootkit_ != null && kernelRootkit_ != com.google.cloud.securitycenter.v1.KernelRootkit.getDefaultInstance()) { @@ -11472,7 +11668,7 @@ public Builder mergeKernelRootkit(com.google.cloud.securitycenter.v1.KernelRootk } else { kernelRootkitBuilder_.mergeFrom(value); } - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000008; onChanged(); return this; } @@ -11486,7 +11682,7 @@ public Builder mergeKernelRootkit(com.google.cloud.securitycenter.v1.KernelRootk * .google.cloud.securitycenter.v1.KernelRootkit kernel_rootkit = 50; */ public Builder clearKernelRootkit() { - bitField1_ = (bitField1_ & ~0x00000004); + bitField1_ = (bitField1_ & ~0x00000008); kernelRootkit_ = null; if (kernelRootkitBuilder_ != null) { kernelRootkitBuilder_.dispose(); @@ -11505,7 +11701,7 @@ public Builder clearKernelRootkit() { * .google.cloud.securitycenter.v1.KernelRootkit kernel_rootkit = 50; */ public com.google.cloud.securitycenter.v1.KernelRootkit.Builder getKernelRootkitBuilder() { - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000008; onChanged(); return getKernelRootkitFieldBuilder().getBuilder(); } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java index 1d9a5fe91e79..1e375f777388 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java @@ -580,7 +580,7 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * * *
-   * Represents vulnerability-specific fields like CVE and CVS scores.
+   * Represents vulnerability-specific fields like CVE and CVSS scores.
    * CVE stands for Common Vulnerabilities and Exposures
    * (https://cve.mitre.org/about/)
    * 
@@ -594,7 +594,7 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * * *
-   * Represents vulnerability-specific fields like CVE and CVS scores.
+   * Represents vulnerability-specific fields like CVE and CVSS scores.
    * CVE stands for Common Vulnerabilities and Exposures
    * (https://cve.mitre.org/about/)
    * 
@@ -608,7 +608,7 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * * *
-   * Represents vulnerability-specific fields like CVE and CVS scores.
+   * Represents vulnerability-specific fields like CVE and CVSS scores.
    * CVE stands for Common Vulnerabilities and Exposures
    * (https://cve.mitre.org/about/)
    * 
@@ -662,8 +662,8 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * * *
-   * Output only. Third party SIEM/SOAR fields within SCC, contains external system
-   * information and external system finding fields.
+   * Output only. Third party SIEM/SOAR fields within SCC, contains external
+   * system information and external system finding fields.
    * 
* * @@ -675,8 +675,8 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * * *
-   * Output only. Third party SIEM/SOAR fields within SCC, contains external system
-   * information and external system finding fields.
+   * Output only. Third party SIEM/SOAR fields within SCC, contains external
+   * system information and external system finding fields.
    * 
* * @@ -692,8 +692,8 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * * *
-   * Output only. Third party SIEM/SOAR fields within SCC, contains external system
-   * information and external system finding fields.
+   * Output only. Third party SIEM/SOAR fields within SCC, contains external
+   * system information and external system finding fields.
    * 
* * @@ -706,8 +706,8 @@ com.google.protobuf.Value getSourcePropertiesOrDefault( * * *
-   * Output only. Third party SIEM/SOAR fields within SCC, contains external system
-   * information and external system finding fields.
+   * Output only. Third party SIEM/SOAR fields within SCC, contains external
+   * system information and external system finding fields.
    * 
* * @@ -723,8 +723,8 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault( * * *
-   * Output only. Third party SIEM/SOAR fields within SCC, contains external system
-   * information and external system finding fields.
+   * Output only. Third party SIEM/SOAR fields within SCC, contains external
+   * system information and external system finding fields.
    * 
* * @@ -948,9 +948,9 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault( * * *
-   * Output only. Map containing the points of contact for the given finding. The key
-   * represents the type of contact, while the value contains a list of all the
-   * contacts that pertain. Please refer to:
+   * Output only. Map containing the points of contact for the given finding.
+   * The key represents the type of contact, while the value contains a list of
+   * all the contacts that pertain. Please refer to:
    * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
    *     {
    *       "security": {
@@ -975,9 +975,9 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault(
    *
    *
    * 
-   * Output only. Map containing the points of contact for the given finding. The key
-   * represents the type of contact, while the value contains a list of all the
-   * contacts that pertain. Please refer to:
+   * Output only. Map containing the points of contact for the given finding.
+   * The key represents the type of contact, while the value contains a list of
+   * all the contacts that pertain. Please refer to:
    * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
    *     {
    *       "security": {
@@ -1005,9 +1005,9 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault(
    *
    *
    * 
-   * Output only. Map containing the points of contact for the given finding. The key
-   * represents the type of contact, while the value contains a list of all the
-   * contacts that pertain. Please refer to:
+   * Output only. Map containing the points of contact for the given finding.
+   * The key represents the type of contact, while the value contains a list of
+   * all the contacts that pertain. Please refer to:
    * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
    *     {
    *       "security": {
@@ -1033,9 +1033,9 @@ com.google.cloud.securitycenter.v1.ExternalSystem getExternalSystemsOrDefault(
    *
    *
    * 
-   * Output only. Map containing the points of contact for the given finding. The key
-   * represents the type of contact, while the value contains a list of all the
-   * contacts that pertain. Please refer to:
+   * Output only. Map containing the points of contact for the given finding.
+   * The key represents the type of contact, while the value contains a list of
+   * all the contacts that pertain. Please refer to:
    * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
    *     {
    *       "security": {
@@ -1064,9 +1064,9 @@ com.google.cloud.securitycenter.v1.ContactDetails getContactsOrDefault(
    *
    *
    * 
-   * Output only. Map containing the points of contact for the given finding. The key
-   * represents the type of contact, while the value contains a list of all the
-   * contacts that pertain. Please refer to:
+   * Output only. Map containing the points of contact for the given finding.
+   * The key represents the type of contact, while the value contains a list of
+   * all the contacts that pertain. Please refer to:
    * https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories
    *     {
    *       "security": {
@@ -1309,6 +1309,35 @@ com.google.cloud.securitycenter.v1.ContactDetails getContactsOrDefault(
    */
   com.google.protobuf.ByteString getNextStepsBytes();
 
+  /**
+   *
+   *
+   * 
+   * Unique identifier of the module which generated the finding.
+   * Example:
+   * folders/598186756061/securityHealthAnalyticsSettings/customModules/56799441161885
+   * 
+ * + * string module_name = 41; + * + * @return The moduleName. + */ + java.lang.String getModuleName(); + /** + * + * + *
+   * Unique identifier of the module which generated the finding.
+   * Example:
+   * folders/598186756061/securityHealthAnalyticsSettings/customModules/56799441161885
+   * 
+ * + * string module_name = 41; + * + * @return The bytes for moduleName. + */ + com.google.protobuf.ByteString getModuleNameBytes(); + /** * * diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java index d897068a6026..83940f04d6df 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java @@ -78,7 +78,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ks.proto\0322google/cloud/securitycenter/v1" + "/vulnerability.proto\032\034google/protobuf/st" + "ruct.proto\032\037google/protobuf/timestamp.pr" - + "oto\"\242\025\n\007Finding\022\014\n\004name\030\001 \001(\t\022\016\n\006parent\030" + + "oto\"\267\025\n\007Finding\022\014\n\004name\030\001 \001(\t\022\016\n\006parent\030" + "\002 \001(\t\022\025\n\rresource_name\030\003 \001(\t\022<\n\005state\030\004 " + "\001(\0162-.google.cloud.securitycenter.v1.Fin" + "ding.State\022\020\n\010category\030\005 \001(\t\022\024\n\014external" @@ -117,41 +117,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".google.cloud.securitycenter.v1.Exfiltra" + "tion\022@\n\014iam_bindings\030\' \003(\0132*.google.clou" + "d.securitycenter.v1.IamBinding\022\022\n\nnext_s" - + "teps\030( \001(\t\022=\n\ncontainers\030* \003(\0132).google." - + "cloud.securitycenter.v1.Container\022>\n\nkub" - + "ernetes\030+ \001(\0132*.google.cloud.securitycen" - + "ter.v1.Kubernetes\022:\n\010database\030, \001(\0132(.go" - + "ogle.cloud.securitycenter.v1.Database\0223\n" - + "\005files\030. \003(\0132$.google.cloud.securitycent" - + "er.v1.File\022E\n\016kernel_rootkit\0302 \001(\0132-.goo" - + "gle.cloud.securitycenter.v1.KernelRootki" - + "t\032O\n\025SourcePropertiesEntry\022\013\n\003key\030\001 \001(\t\022" - + "%\n\005value\030\002 \001(\0132\026.google.protobuf.Value:\002" - + "8\001\032f\n\024ExternalSystemsEntry\022\013\n\003key\030\001 \001(\t\022" - + "=\n\005value\030\002 \001(\0132..google.cloud.securityce" - + "nter.v1.ExternalSystem:\0028\001\032_\n\rContactsEn" - + "try\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..google" - + ".cloud.securitycenter.v1.ContactDetails:" - + "\0028\001\"8\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006A" - + "CTIVE\020\001\022\014\n\010INACTIVE\020\002\"Q\n\010Severity\022\030\n\024SEV" - + "ERITY_UNSPECIFIED\020\000\022\014\n\010CRITICAL\020\001\022\010\n\004HIG" - + "H\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LOW\020\004\"C\n\004Mute\022\024\n\020MUTE" - + "_UNSPECIFIED\020\000\022\t\n\005MUTED\020\001\022\013\n\007UNMUTED\020\002\022\r" - + "\n\tUNDEFINED\020\004\"\202\001\n\014FindingClass\022\035\n\031FINDIN" - + "G_CLASS_UNSPECIFIED\020\000\022\n\n\006THREAT\020\001\022\021\n\rVUL" - + "NERABILITY\020\002\022\024\n\020MISCONFIGURATION\020\003\022\017\n\013OB" - + "SERVATION\020\004\022\r\n\tSCC_ERROR\020\005:\333\001\352A\327\001\n%secur" - + "itycenter.googleapis.com/Finding\022@organi" - + "zations/{organization}/sources/{source}/" - + "findings/{finding}\0224folders/{folder}/sou" - + "rces/{source}/findings/{finding}\0226projec" - + "ts/{project}/sources/{source}/findings/{" - + "finding}B\330\001\n\"com.google.cloud.securityce" - + "nter.v1P\001ZJcloud.google.com/go/securityc" - + "enter/apiv1/securitycenterpb;securitycen" - + "terpb\252\002\036Google.Cloud.SecurityCenter.V1\312\002" - + "\036Google\\Cloud\\SecurityCenter\\V1\352\002!Google" - + "::Cloud::SecurityCenter::V1b\006proto3" + + "teps\030( \001(\t\022\023\n\013module_name\030) \001(\t\022=\n\nconta" + + "iners\030* \003(\0132).google.cloud.securitycente" + + "r.v1.Container\022>\n\nkubernetes\030+ \001(\0132*.goo" + + "gle.cloud.securitycenter.v1.Kubernetes\022:" + + "\n\010database\030, \001(\0132(.google.cloud.security" + + "center.v1.Database\0223\n\005files\030. \003(\0132$.goog" + + "le.cloud.securitycenter.v1.File\022E\n\016kerne" + + "l_rootkit\0302 \001(\0132-.google.cloud.securityc" + + "enter.v1.KernelRootkit\032O\n\025SourceProperti" + + "esEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.go" + + "ogle.protobuf.Value:\0028\001\032f\n\024ExternalSyste" + + "msEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..go" + + "ogle.cloud.securitycenter.v1.ExternalSys" + + "tem:\0028\001\032_\n\rContactsEntry\022\013\n\003key\030\001 \001(\t\022=\n" + + "\005value\030\002 \001(\0132..google.cloud.securitycent" + + "er.v1.ContactDetails:\0028\001\"8\n\005State\022\025\n\021STA" + + "TE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE" + + "\020\002\"Q\n\010Severity\022\030\n\024SEVERITY_UNSPECIFIED\020\000" + + "\022\014\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003" + + "LOW\020\004\"C\n\004Mute\022\024\n\020MUTE_UNSPECIFIED\020\000\022\t\n\005M" + + "UTED\020\001\022\013\n\007UNMUTED\020\002\022\r\n\tUNDEFINED\020\004\"\202\001\n\014F" + + "indingClass\022\035\n\031FINDING_CLASS_UNSPECIFIED" + + "\020\000\022\n\n\006THREAT\020\001\022\021\n\rVULNERABILITY\020\002\022\024\n\020MIS" + + "CONFIGURATION\020\003\022\017\n\013OBSERVATION\020\004\022\r\n\tSCC_" + + "ERROR\020\005:\333\001\352A\327\001\n%securitycenter.googleapi" + + "s.com/Finding\022@organizations/{organizati" + + "on}/sources/{source}/findings/{finding}\022" + + "4folders/{folder}/sources/{source}/findi" + + "ngs/{finding}\0226projects/{project}/source" + + "s/{source}/findings/{finding}B\330\001\n\"com.go" + + "ogle.cloud.securitycenter.v1P\001ZJcloud.go" + + "ogle.com/go/securitycenter/apiv1/securit" + + "ycenterpb;securitycenterpb\252\002\036Google.Clou" + + "d.SecurityCenter.V1\312\002\036Google\\Cloud\\Secur" + + "ityCenter\\V1\352\002!Google::Cloud::SecurityCe" + + "nter::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -215,6 +216,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Exfiltration", "IamBindings", "NextSteps", + "ModuleName", "Containers", "Kubernetes", "Database", diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.java new file mode 100644 index 000000000000..6daa507634b1 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.java @@ -0,0 +1,741 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Request message for getting effective security health analytics custom
+ * modules.
+ * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest} + */ +public final class GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) + GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.newBuilder() to construct. + private GetEffectiveSecurityHealthAnalyticsCustomModuleRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetEffectiveSecurityHealthAnalyticsCustomModuleRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetEffectiveSecurityHealthAnalyticsCustomModuleRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.class, + com.google.cloud.securitycenter.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Name of the effective custom module to get. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+   * "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+   * or
+   * "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the effective custom module to get. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+   * "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+   * or
+   * "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + other = + (com.google.cloud.securitycenter.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) + obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + 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 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + 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 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + 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 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + 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 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + 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 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + 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 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + 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.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + 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 for getting effective security health analytics custom
+   * modules.
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) + com.google.cloud.securitycenter.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.class, + com.google.cloud.securitycenter.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.Builder.class); + } + + // Construct using + // com.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + build() { + com.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + buildPartial() { + com.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + result = + new com.google.cloud.securitycenter.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycenter.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) { + return mergeFrom( + (com.google.cloud.securitycenter.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + other) { + if (other + == com.google.cloud.securitycenter.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Name of the effective custom module to get. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+     * "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+     * or
+     * "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the effective custom module to get. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+     * "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+     * or
+     * "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the effective custom module to get. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+     * "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+     * or
+     * "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the effective custom module to get. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+     * "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+     * or
+     * "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the effective custom module to get. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+     * "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+     * or
+     * "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) + private static final com.google.cloud.securitycenter.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest(); + } + + public static com.google.cloud.securitycenter.v1 + .GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest> + PARSER = + new com.google.protobuf.AbstractParser< + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest>() { + @java.lang.Override + public GetEffectiveSecurityHealthAnalyticsCustomModuleRequest 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 + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java new file mode 100644 index 000000000000..26282c7a312f --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface GetEffectiveSecurityHealthAnalyticsCustomModuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the effective custom module to get. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+   * "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+   * or
+   * "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the effective custom module to get. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+   * "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}",
+   * or
+   * "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSecurityHealthAnalyticsCustomModuleRequest.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSecurityHealthAnalyticsCustomModuleRequest.java new file mode 100644 index 000000000000..126880d764a8 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSecurityHealthAnalyticsCustomModuleRequest.java @@ -0,0 +1,709 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Request message for getting security health analytics custom modules.
+ * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest} + */ +public final class GetSecurityHealthAnalyticsCustomModuleRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest) + GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetSecurityHealthAnalyticsCustomModuleRequest.newBuilder() to construct. + private GetSecurityHealthAnalyticsCustomModuleRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetSecurityHealthAnalyticsCustomModuleRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetSecurityHealthAnalyticsCustomModuleRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest.class, + com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Name of the custom module to get. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+   * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+   * or
+   * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the custom module to get. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+   * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+   * or
+   * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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.GetSecurityHealthAnalyticsCustomModuleRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest other = + (com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest + 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.GetSecurityHealthAnalyticsCustomModuleRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest + 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.GetSecurityHealthAnalyticsCustomModuleRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest + 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.GetSecurityHealthAnalyticsCustomModuleRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest + 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.GetSecurityHealthAnalyticsCustomModuleRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest + 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.GetSecurityHealthAnalyticsCustomModuleRequest + 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.GetSecurityHealthAnalyticsCustomModuleRequest + 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.GetSecurityHealthAnalyticsCustomModuleRequest 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 for getting security health analytics custom modules.
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest) + com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest + .class, + com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_GetSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest + build() { + com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest + buildPartial() { + com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest result = + new com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest) { + return mergeFrom( + (com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest other) { + if (other + == com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Name of the custom module to get. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * or
+     * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the custom module to get. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * or
+     * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the custom module to get. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * or
+     * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the custom module to get. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * or
+     * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the custom module to get. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * or
+     * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest) + private static final com.google.cloud.securitycenter.v1 + .GetSecurityHealthAnalyticsCustomModuleRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest(); + } + + public static com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSecurityHealthAnalyticsCustomModuleRequest 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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java new file mode 100644 index 000000000000..7c72bde4ecc2 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface GetSecurityHealthAnalyticsCustomModuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the custom module to get. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+   * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+   * or
+   * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the custom module to get. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+   * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+   * or
+   * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Indicator.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Indicator.java index ae9b1127edd6..9d85784c1520 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Indicator.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Indicator.java @@ -22,10 +22,11 @@ * * *
- * Represents what's commonly known as an Indicator of compromise (IoC) in
+ * Represents what's commonly known as an _indicator of compromise_ (IoC) in
  * computer forensics. This is an artifact observed on a network or in an
  * operating system that, with high confidence, indicates a computer intrusion.
- * Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise
+ * For more information, see [Indicator of
+ * compromise](https://en.wikipedia.org/wiki/Indicator_of_compromise).
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Indicator} @@ -4362,7 +4363,7 @@ public com.google.protobuf.Parser getParserForType() { * * *
-   * List of ip addresses associated to the Finding.
+   * The list of IP addresses that are associated with the finding.
    * 
* * repeated string ip_addresses = 1; @@ -4376,7 +4377,7 @@ public com.google.protobuf.ProtocolStringList getIpAddressesList() { * * *
-   * List of ip addresses associated to the Finding.
+   * The list of IP addresses that are associated with the finding.
    * 
* * repeated string ip_addresses = 1; @@ -4390,7 +4391,7 @@ public int getIpAddressesCount() { * * *
-   * List of ip addresses associated to the Finding.
+   * The list of IP addresses that are associated with the finding.
    * 
* * repeated string ip_addresses = 1; @@ -4405,7 +4406,7 @@ public java.lang.String getIpAddresses(int index) { * * *
-   * List of ip addresses associated to the Finding.
+   * The list of IP addresses that are associated with the finding.
    * 
* * repeated string ip_addresses = 1; @@ -4840,10 +4841,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Represents what's commonly known as an Indicator of compromise (IoC) in
+   * Represents what's commonly known as an _indicator of compromise_ (IoC) in
    * computer forensics. This is an artifact observed on a network or in an
    * operating system that, with high confidence, indicates a computer intrusion.
-   * Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise
+   * For more information, see [Indicator of
+   * compromise](https://en.wikipedia.org/wiki/Indicator_of_compromise).
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Indicator} @@ -5152,7 +5154,7 @@ private void ensureIpAddressesIsMutable() { * * *
-     * List of ip addresses associated to the Finding.
+     * The list of IP addresses that are associated with the finding.
      * 
* * repeated string ip_addresses = 1; @@ -5166,7 +5168,7 @@ public com.google.protobuf.ProtocolStringList getIpAddressesList() { * * *
-     * List of ip addresses associated to the Finding.
+     * The list of IP addresses that are associated with the finding.
      * 
* * repeated string ip_addresses = 1; @@ -5180,7 +5182,7 @@ public int getIpAddressesCount() { * * *
-     * List of ip addresses associated to the Finding.
+     * The list of IP addresses that are associated with the finding.
      * 
* * repeated string ip_addresses = 1; @@ -5195,7 +5197,7 @@ public java.lang.String getIpAddresses(int index) { * * *
-     * List of ip addresses associated to the Finding.
+     * The list of IP addresses that are associated with the finding.
      * 
* * repeated string ip_addresses = 1; @@ -5210,7 +5212,7 @@ public com.google.protobuf.ByteString getIpAddressesBytes(int index) { * * *
-     * List of ip addresses associated to the Finding.
+     * The list of IP addresses that are associated with the finding.
      * 
* * repeated string ip_addresses = 1; @@ -5232,7 +5234,7 @@ public Builder setIpAddresses(int index, java.lang.String value) { * * *
-     * List of ip addresses associated to the Finding.
+     * The list of IP addresses that are associated with the finding.
      * 
* * repeated string ip_addresses = 1; @@ -5253,7 +5255,7 @@ public Builder addIpAddresses(java.lang.String value) { * * *
-     * List of ip addresses associated to the Finding.
+     * The list of IP addresses that are associated with the finding.
      * 
* * repeated string ip_addresses = 1; @@ -5271,7 +5273,7 @@ public Builder addAllIpAddresses(java.lang.Iterable values) { * * *
-     * List of ip addresses associated to the Finding.
+     * The list of IP addresses that are associated with the finding.
      * 
* * repeated string ip_addresses = 1; @@ -5288,7 +5290,7 @@ public Builder clearIpAddresses() { * * *
-     * List of ip addresses associated to the Finding.
+     * The list of IP addresses that are associated with the finding.
      * 
* * repeated string ip_addresses = 1; diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorOrBuilder.java index 6f1809dba728..afda9ae35d4d 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorOrBuilder.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/IndicatorOrBuilder.java @@ -27,7 +27,7 @@ public interface IndicatorOrBuilder * * *
-   * List of ip addresses associated to the Finding.
+   * The list of IP addresses that are associated with the finding.
    * 
* * repeated string ip_addresses = 1; @@ -39,7 +39,7 @@ public interface IndicatorOrBuilder * * *
-   * List of ip addresses associated to the Finding.
+   * The list of IP addresses that are associated with the finding.
    * 
* * repeated string ip_addresses = 1; @@ -51,7 +51,7 @@ public interface IndicatorOrBuilder * * *
-   * List of ip addresses associated to the Finding.
+   * The list of IP addresses that are associated with the finding.
    * 
* * repeated string ip_addresses = 1; @@ -64,7 +64,7 @@ public interface IndicatorOrBuilder * * *
-   * List of ip addresses associated to the Finding.
+   * The list of IP addresses that are associated with the finding.
    * 
* * repeated string ip_addresses = 1; diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/KernelRootkit.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/KernelRootkit.java index 61bc33ea8ecb..c11992c7efc9 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/KernelRootkit.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/KernelRootkit.java @@ -124,7 +124,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * True if unexpected modifications of kernel code memory are present.
+   * True when unexpected modifications of kernel code memory are present.
    * 
* * bool unexpected_code_modification = 2; @@ -142,7 +142,7 @@ public boolean getUnexpectedCodeModification() { * * *
-   * True if unexpected modifications of kernel read-only data memory are
+   * True when unexpected modifications of kernel read-only data memory are
    * present.
    * 
* @@ -161,7 +161,7 @@ public boolean getUnexpectedReadOnlyDataModification() { * * *
-   * True if `ftrace` points are present with callbacks pointing to regions
+   * True when `ftrace` points are present with callbacks pointing to regions
    * that are not in the expected kernel or module code range.
    * 
* @@ -180,7 +180,7 @@ public boolean getUnexpectedFtraceHandler() { * * *
-   * True if `kprobe` points are present with callbacks pointing to regions
+   * True when `kprobe` points are present with callbacks pointing to regions
    * that are not in the expected kernel or module code range.
    * 
* @@ -199,7 +199,7 @@ public boolean getUnexpectedKprobeHandler() { * * *
-   * True if kernel code pages that are not in the expected kernel or module
+   * True when kernel code pages that are not in the expected kernel or module
    * code regions are present.
    * 
* @@ -218,7 +218,7 @@ public boolean getUnexpectedKernelCodePages() { * * *
-   * True if system call handlers that are are not in the expected kernel or
+   * True when system call handlers that are are not in the expected kernel or
    * module code regions are present.
    * 
* @@ -237,7 +237,7 @@ public boolean getUnexpectedSystemCallHandler() { * * *
-   * True if interrupt handlers that are are not in the expected kernel or
+   * True when interrupt handlers that are are not in the expected kernel or
    * module code regions are present.
    * 
* @@ -256,7 +256,7 @@ public boolean getUnexpectedInterruptHandler() { * * *
-   * True if unexpected processes in the scheduler run queue are present. Such
+   * True when unexpected processes in the scheduler run queue are present. Such
    * processes are in the run queue, but not in the process task list.
    * 
* @@ -907,7 +907,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * True if unexpected modifications of kernel code memory are present.
+     * True when unexpected modifications of kernel code memory are present.
      * 
* * bool unexpected_code_modification = 2; @@ -922,7 +922,7 @@ public boolean getUnexpectedCodeModification() { * * *
-     * True if unexpected modifications of kernel code memory are present.
+     * True when unexpected modifications of kernel code memory are present.
      * 
* * bool unexpected_code_modification = 2; @@ -941,7 +941,7 @@ public Builder setUnexpectedCodeModification(boolean value) { * * *
-     * True if unexpected modifications of kernel code memory are present.
+     * True when unexpected modifications of kernel code memory are present.
      * 
* * bool unexpected_code_modification = 2; @@ -960,7 +960,7 @@ public Builder clearUnexpectedCodeModification() { * * *
-     * True if unexpected modifications of kernel read-only data memory are
+     * True when unexpected modifications of kernel read-only data memory are
      * present.
      * 
* @@ -976,7 +976,7 @@ public boolean getUnexpectedReadOnlyDataModification() { * * *
-     * True if unexpected modifications of kernel read-only data memory are
+     * True when unexpected modifications of kernel read-only data memory are
      * present.
      * 
* @@ -996,7 +996,7 @@ public Builder setUnexpectedReadOnlyDataModification(boolean value) { * * *
-     * True if unexpected modifications of kernel read-only data memory are
+     * True when unexpected modifications of kernel read-only data memory are
      * present.
      * 
* @@ -1016,7 +1016,7 @@ public Builder clearUnexpectedReadOnlyDataModification() { * * *
-     * True if `ftrace` points are present with callbacks pointing to regions
+     * True when `ftrace` points are present with callbacks pointing to regions
      * that are not in the expected kernel or module code range.
      * 
* @@ -1032,7 +1032,7 @@ public boolean getUnexpectedFtraceHandler() { * * *
-     * True if `ftrace` points are present with callbacks pointing to regions
+     * True when `ftrace` points are present with callbacks pointing to regions
      * that are not in the expected kernel or module code range.
      * 
* @@ -1052,7 +1052,7 @@ public Builder setUnexpectedFtraceHandler(boolean value) { * * *
-     * True if `ftrace` points are present with callbacks pointing to regions
+     * True when `ftrace` points are present with callbacks pointing to regions
      * that are not in the expected kernel or module code range.
      * 
* @@ -1072,7 +1072,7 @@ public Builder clearUnexpectedFtraceHandler() { * * *
-     * True if `kprobe` points are present with callbacks pointing to regions
+     * True when `kprobe` points are present with callbacks pointing to regions
      * that are not in the expected kernel or module code range.
      * 
* @@ -1088,7 +1088,7 @@ public boolean getUnexpectedKprobeHandler() { * * *
-     * True if `kprobe` points are present with callbacks pointing to regions
+     * True when `kprobe` points are present with callbacks pointing to regions
      * that are not in the expected kernel or module code range.
      * 
* @@ -1108,7 +1108,7 @@ public Builder setUnexpectedKprobeHandler(boolean value) { * * *
-     * True if `kprobe` points are present with callbacks pointing to regions
+     * True when `kprobe` points are present with callbacks pointing to regions
      * that are not in the expected kernel or module code range.
      * 
* @@ -1128,7 +1128,7 @@ public Builder clearUnexpectedKprobeHandler() { * * *
-     * True if kernel code pages that are not in the expected kernel or module
+     * True when kernel code pages that are not in the expected kernel or module
      * code regions are present.
      * 
* @@ -1144,7 +1144,7 @@ public boolean getUnexpectedKernelCodePages() { * * *
-     * True if kernel code pages that are not in the expected kernel or module
+     * True when kernel code pages that are not in the expected kernel or module
      * code regions are present.
      * 
* @@ -1164,7 +1164,7 @@ public Builder setUnexpectedKernelCodePages(boolean value) { * * *
-     * True if kernel code pages that are not in the expected kernel or module
+     * True when kernel code pages that are not in the expected kernel or module
      * code regions are present.
      * 
* @@ -1184,7 +1184,7 @@ public Builder clearUnexpectedKernelCodePages() { * * *
-     * True if system call handlers that are are not in the expected kernel or
+     * True when system call handlers that are are not in the expected kernel or
      * module code regions are present.
      * 
* @@ -1200,7 +1200,7 @@ public boolean getUnexpectedSystemCallHandler() { * * *
-     * True if system call handlers that are are not in the expected kernel or
+     * True when system call handlers that are are not in the expected kernel or
      * module code regions are present.
      * 
* @@ -1220,7 +1220,7 @@ public Builder setUnexpectedSystemCallHandler(boolean value) { * * *
-     * True if system call handlers that are are not in the expected kernel or
+     * True when system call handlers that are are not in the expected kernel or
      * module code regions are present.
      * 
* @@ -1240,7 +1240,7 @@ public Builder clearUnexpectedSystemCallHandler() { * * *
-     * True if interrupt handlers that are are not in the expected kernel or
+     * True when interrupt handlers that are are not in the expected kernel or
      * module code regions are present.
      * 
* @@ -1256,7 +1256,7 @@ public boolean getUnexpectedInterruptHandler() { * * *
-     * True if interrupt handlers that are are not in the expected kernel or
+     * True when interrupt handlers that are are not in the expected kernel or
      * module code regions are present.
      * 
* @@ -1276,7 +1276,7 @@ public Builder setUnexpectedInterruptHandler(boolean value) { * * *
-     * True if interrupt handlers that are are not in the expected kernel or
+     * True when interrupt handlers that are are not in the expected kernel or
      * module code regions are present.
      * 
* @@ -1296,7 +1296,7 @@ public Builder clearUnexpectedInterruptHandler() { * * *
-     * True if unexpected processes in the scheduler run queue are present. Such
+     * True when unexpected processes in the scheduler run queue are present. Such
      * processes are in the run queue, but not in the process task list.
      * 
* @@ -1312,7 +1312,7 @@ public boolean getUnexpectedProcessesInRunqueue() { * * *
-     * True if unexpected processes in the scheduler run queue are present. Such
+     * True when unexpected processes in the scheduler run queue are present. Such
      * processes are in the run queue, but not in the process task list.
      * 
* @@ -1332,7 +1332,7 @@ public Builder setUnexpectedProcessesInRunqueue(boolean value) { * * *
-     * True if unexpected processes in the scheduler run queue are present. Such
+     * True when unexpected processes in the scheduler run queue are present. Such
      * processes are in the run queue, but not in the process task list.
      * 
* diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/KernelRootkitOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/KernelRootkitOrBuilder.java index 78ce2c57380b..3dc464666cb7 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/KernelRootkitOrBuilder.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/KernelRootkitOrBuilder.java @@ -52,7 +52,7 @@ public interface KernelRootkitOrBuilder * * *
-   * True if unexpected modifications of kernel code memory are present.
+   * True when unexpected modifications of kernel code memory are present.
    * 
* * bool unexpected_code_modification = 2; @@ -65,7 +65,7 @@ public interface KernelRootkitOrBuilder * * *
-   * True if unexpected modifications of kernel read-only data memory are
+   * True when unexpected modifications of kernel read-only data memory are
    * present.
    * 
* @@ -79,7 +79,7 @@ public interface KernelRootkitOrBuilder * * *
-   * True if `ftrace` points are present with callbacks pointing to regions
+   * True when `ftrace` points are present with callbacks pointing to regions
    * that are not in the expected kernel or module code range.
    * 
* @@ -93,7 +93,7 @@ public interface KernelRootkitOrBuilder * * *
-   * True if `kprobe` points are present with callbacks pointing to regions
+   * True when `kprobe` points are present with callbacks pointing to regions
    * that are not in the expected kernel or module code range.
    * 
* @@ -107,7 +107,7 @@ public interface KernelRootkitOrBuilder * * *
-   * True if kernel code pages that are not in the expected kernel or module
+   * True when kernel code pages that are not in the expected kernel or module
    * code regions are present.
    * 
* @@ -121,7 +121,7 @@ public interface KernelRootkitOrBuilder * * *
-   * True if system call handlers that are are not in the expected kernel or
+   * True when system call handlers that are are not in the expected kernel or
    * module code regions are present.
    * 
* @@ -135,7 +135,7 @@ public interface KernelRootkitOrBuilder * * *
-   * True if interrupt handlers that are are not in the expected kernel or
+   * True when interrupt handlers that are are not in the expected kernel or
    * module code regions are present.
    * 
* @@ -149,7 +149,7 @@ public interface KernelRootkitOrBuilder * * *
-   * True if unexpected processes in the scheduler run queue are present. Such
+   * True when unexpected processes in the scheduler run queue are present. Such
    * processes are in the run queue, but not in the process task list.
    * 
* diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Kubernetes.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Kubernetes.java index ded85468d52c..eb615a3f5bc7 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Kubernetes.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Kubernetes.java @@ -22,7 +22,7 @@ * * *
- * Kubernetes related attributes.
+ * Kubernetes-related attributes.
  * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Kubernetes} @@ -5179,8 +5179,8 @@ public interface BindingOrBuilder * * *
-     * Represents the subjects(s) bound to the role. Not always available
-     * for PATCH requests.
+     * Represents one or more subjects that are bound to the role. Not always
+     * available for PATCH requests.
      * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -5190,8 +5190,8 @@ public interface BindingOrBuilder * * *
-     * Represents the subjects(s) bound to the role. Not always available
-     * for PATCH requests.
+     * Represents one or more subjects that are bound to the role. Not always
+     * available for PATCH requests.
      * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -5201,8 +5201,8 @@ public interface BindingOrBuilder * * *
-     * Represents the subjects(s) bound to the role. Not always available
-     * for PATCH requests.
+     * Represents one or more subjects that are bound to the role. Not always
+     * available for PATCH requests.
      * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -5212,8 +5212,8 @@ public interface BindingOrBuilder * * *
-     * Represents the subjects(s) bound to the role. Not always available
-     * for PATCH requests.
+     * Represents one or more subjects that are bound to the role. Not always
+     * available for PATCH requests.
      * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -5224,8 +5224,8 @@ public interface BindingOrBuilder * * *
-     * Represents the subjects(s) bound to the role. Not always available
-     * for PATCH requests.
+     * Represents one or more subjects that are bound to the role. Not always
+     * available for PATCH requests.
      * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -5443,8 +5443,8 @@ public com.google.cloud.securitycenter.v1.Kubernetes.RoleOrBuilder getRoleOrBuil * * *
-     * Represents the subjects(s) bound to the role. Not always available
-     * for PATCH requests.
+     * Represents one or more subjects that are bound to the role. Not always
+     * available for PATCH requests.
      * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -5457,8 +5457,8 @@ public java.util.List get * * *
-     * Represents the subjects(s) bound to the role. Not always available
-     * for PATCH requests.
+     * Represents one or more subjects that are bound to the role. Not always
+     * available for PATCH requests.
      * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -5472,8 +5472,8 @@ public java.util.List get * * *
-     * Represents the subjects(s) bound to the role. Not always available
-     * for PATCH requests.
+     * Represents one or more subjects that are bound to the role. Not always
+     * available for PATCH requests.
      * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -5486,8 +5486,8 @@ public int getSubjectsCount() { * * *
-     * Represents the subjects(s) bound to the role. Not always available
-     * for PATCH requests.
+     * Represents one or more subjects that are bound to the role. Not always
+     * available for PATCH requests.
      * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -5500,8 +5500,8 @@ public com.google.cloud.securitycenter.v1.Kubernetes.Subject getSubjects(int ind * * *
-     * Represents the subjects(s) bound to the role. Not always available
-     * for PATCH requests.
+     * Represents one or more subjects that are bound to the role. Not always
+     * available for PATCH requests.
      * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -6405,8 +6405,8 @@ private void ensureSubjectsIsMutable() { * * *
-       * Represents the subjects(s) bound to the role. Not always available
-       * for PATCH requests.
+       * Represents one or more subjects that are bound to the role. Not always
+       * available for PATCH requests.
        * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -6423,8 +6423,8 @@ private void ensureSubjectsIsMutable() { * * *
-       * Represents the subjects(s) bound to the role. Not always available
-       * for PATCH requests.
+       * Represents one or more subjects that are bound to the role. Not always
+       * available for PATCH requests.
        * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -6440,8 +6440,8 @@ public int getSubjectsCount() { * * *
-       * Represents the subjects(s) bound to the role. Not always available
-       * for PATCH requests.
+       * Represents one or more subjects that are bound to the role. Not always
+       * available for PATCH requests.
        * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -6457,8 +6457,8 @@ public com.google.cloud.securitycenter.v1.Kubernetes.Subject getSubjects(int ind * * *
-       * Represents the subjects(s) bound to the role. Not always available
-       * for PATCH requests.
+       * Represents one or more subjects that are bound to the role. Not always
+       * available for PATCH requests.
        * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -6481,8 +6481,8 @@ public Builder setSubjects( * * *
-       * Represents the subjects(s) bound to the role. Not always available
-       * for PATCH requests.
+       * Represents one or more subjects that are bound to the role. Not always
+       * available for PATCH requests.
        * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -6503,8 +6503,8 @@ public Builder setSubjects( * * *
-       * Represents the subjects(s) bound to the role. Not always available
-       * for PATCH requests.
+       * Represents one or more subjects that are bound to the role. Not always
+       * available for PATCH requests.
        * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -6526,8 +6526,8 @@ public Builder addSubjects(com.google.cloud.securitycenter.v1.Kubernetes.Subject * * *
-       * Represents the subjects(s) bound to the role. Not always available
-       * for PATCH requests.
+       * Represents one or more subjects that are bound to the role. Not always
+       * available for PATCH requests.
        * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -6550,8 +6550,8 @@ public Builder addSubjects( * * *
-       * Represents the subjects(s) bound to the role. Not always available
-       * for PATCH requests.
+       * Represents one or more subjects that are bound to the role. Not always
+       * available for PATCH requests.
        * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -6571,8 +6571,8 @@ public Builder addSubjects( * * *
-       * Represents the subjects(s) bound to the role. Not always available
-       * for PATCH requests.
+       * Represents one or more subjects that are bound to the role. Not always
+       * available for PATCH requests.
        * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -6593,8 +6593,8 @@ public Builder addSubjects( * * *
-       * Represents the subjects(s) bound to the role. Not always available
-       * for PATCH requests.
+       * Represents one or more subjects that are bound to the role. Not always
+       * available for PATCH requests.
        * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -6615,8 +6615,8 @@ public Builder addAllSubjects( * * *
-       * Represents the subjects(s) bound to the role. Not always available
-       * for PATCH requests.
+       * Represents one or more subjects that are bound to the role. Not always
+       * available for PATCH requests.
        * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -6635,8 +6635,8 @@ public Builder clearSubjects() { * * *
-       * Represents the subjects(s) bound to the role. Not always available
-       * for PATCH requests.
+       * Represents one or more subjects that are bound to the role. Not always
+       * available for PATCH requests.
        * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -6655,8 +6655,8 @@ public Builder removeSubjects(int index) { * * *
-       * Represents the subjects(s) bound to the role. Not always available
-       * for PATCH requests.
+       * Represents one or more subjects that are bound to the role. Not always
+       * available for PATCH requests.
        * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -6669,8 +6669,8 @@ public com.google.cloud.securitycenter.v1.Kubernetes.Subject.Builder getSubjects * * *
-       * Represents the subjects(s) bound to the role. Not always available
-       * for PATCH requests.
+       * Represents one or more subjects that are bound to the role. Not always
+       * available for PATCH requests.
        * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -6687,8 +6687,8 @@ public com.google.cloud.securitycenter.v1.Kubernetes.SubjectOrBuilder getSubject * * *
-       * Represents the subjects(s) bound to the role. Not always available
-       * for PATCH requests.
+       * Represents one or more subjects that are bound to the role. Not always
+       * available for PATCH requests.
        * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -6706,8 +6706,8 @@ public com.google.cloud.securitycenter.v1.Kubernetes.SubjectOrBuilder getSubject * * *
-       * Represents the subjects(s) bound to the role. Not always available
-       * for PATCH requests.
+       * Represents one or more subjects that are bound to the role. Not always
+       * available for PATCH requests.
        * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -6720,8 +6720,8 @@ public com.google.cloud.securitycenter.v1.Kubernetes.Subject.Builder addSubjects * * *
-       * Represents the subjects(s) bound to the role. Not always available
-       * for PATCH requests.
+       * Represents one or more subjects that are bound to the role. Not always
+       * available for PATCH requests.
        * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -6736,8 +6736,8 @@ public com.google.cloud.securitycenter.v1.Kubernetes.Subject.Builder addSubjects * * *
-       * Represents the subjects(s) bound to the role. Not always available
-       * for PATCH requests.
+       * Represents one or more subjects that are bound to the role. Not always
+       * available for PATCH requests.
        * 
* * repeated .google.cloud.securitycenter.v1.Kubernetes.Subject subjects = 4; @@ -10647,7 +10647,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Kubernetes related attributes.
+   * Kubernetes-related attributes.
    * 
* * Protobuf type {@code google.cloud.securitycenter.v1.Kubernetes} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequest.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequest.java new file mode 100644 index 000000000000..72a24393625d --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequest.java @@ -0,0 +1,1018 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Request message for listing descendant security health analytics custom
+ * modules.
+ * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest} + */ +public final class ListDescendantSecurityHealthAnalyticsCustomModulesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest) + ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDescendantSecurityHealthAnalyticsCustomModulesRequest.newBuilder() to construct. + private ListDescendantSecurityHealthAnalyticsCustomModulesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDescendantSecurityHealthAnalyticsCustomModulesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDescendantSecurityHealthAnalyticsCustomModulesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest.class, + com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Name of parent to list descendant custom modules. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings",
+   * "folders/{folder}/securityHealthAnalyticsSettings", or
+   * "projects/{project}/securityHealthAnalyticsSettings"
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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. Name of parent to list descendant custom modules. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings",
+   * "folders/{folder}/securityHealthAnalyticsSettings", or
+   * "projects/{project}/securityHealthAnalyticsSettings"
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of results to return in a single response. Default is
+   * 10, minimum is 1, maximum is 1000.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * The value returned by the last call indicating a continuation
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The value returned by the last call indicating a continuation
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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 (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + 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 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest + other = + (com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest) + obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + 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 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + 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 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + 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 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + 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 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + 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 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + 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 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + 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.ListDescendantSecurityHealthAnalyticsCustomModulesRequest + 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 for listing descendant security health analytics custom
+   * modules.
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest) + com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest.class, + com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + build() { + com.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + buildPartial() { + com.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest + result = + new com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest) { + return mergeFrom( + (com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest + other) { + if (other + == com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Name of parent to list descendant custom modules. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings",
+     * "folders/{folder}/securityHealthAnalyticsSettings", or
+     * "projects/{project}/securityHealthAnalyticsSettings"
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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. Name of parent to list descendant custom modules. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings",
+     * "folders/{folder}/securityHealthAnalyticsSettings", or
+     * "projects/{project}/securityHealthAnalyticsSettings"
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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. Name of parent to list descendant custom modules. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings",
+     * "folders/{folder}/securityHealthAnalyticsSettings", or
+     * "projects/{project}/securityHealthAnalyticsSettings"
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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. Name of parent to list descendant custom modules. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings",
+     * "folders/{folder}/securityHealthAnalyticsSettings", or
+     * "projects/{project}/securityHealthAnalyticsSettings"
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of parent to list descendant custom modules. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings",
+     * "folders/{folder}/securityHealthAnalyticsSettings", or
+     * "projects/{project}/securityHealthAnalyticsSettings"
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 int pageSize_; + /** + * + * + *
+     * The maximum number of results to return in a single response. Default is
+     * 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of results to return in a single response. Default is
+     * 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of results to return in a single response. Default is
+     * 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * The value returned by the last call indicating a continuation
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The value returned by the last call indicating a continuation
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The value returned by the last call indicating a continuation
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The value returned by the last call indicating a continuation
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * The value returned by the last call indicating a continuation
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest) + private static final com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest(); + } + + public static com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest> + PARSER = + new com.google.protobuf.AbstractParser< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest>() { + @java.lang.Override + public ListDescendantSecurityHealthAnalyticsCustomModulesRequest 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< + ListDescendantSecurityHealthAnalyticsCustomModulesRequest> + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java new file mode 100644 index 000000000000..4d2a9adf1ece --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface ListDescendantSecurityHealthAnalyticsCustomModulesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of parent to list descendant custom modules. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings",
+   * "folders/{folder}/securityHealthAnalyticsSettings", or
+   * "projects/{project}/securityHealthAnalyticsSettings"
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Name of parent to list descendant custom modules. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings",
+   * "folders/{folder}/securityHealthAnalyticsSettings", or
+   * "projects/{project}/securityHealthAnalyticsSettings"
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of results to return in a single response. Default is
+   * 10, minimum is 1, maximum is 1000.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The value returned by the last call indicating a continuation
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The value returned by the last call indicating a continuation
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponse.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponse.java new file mode 100644 index 000000000000..73ab26378e80 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponse.java @@ -0,0 +1,1300 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Response message for listing descendant security health analytics custom
+ * modules.
+ * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse} + */ +public final class ListDescendantSecurityHealthAnalyticsCustomModulesResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) + ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDescendantSecurityHealthAnalyticsCustomModulesResponse.newBuilder() to construct. + private ListDescendantSecurityHealthAnalyticsCustomModulesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDescendantSecurityHealthAnalyticsCustomModulesResponse() { + securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDescendantSecurityHealthAnalyticsCustomModulesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse.class, + com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse.Builder.class); + } + + public static final int SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + securityHealthAnalyticsCustomModules_; + /** + * + * + *
+   * Custom modules belonging to the requested parent and its descendants.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + @java.lang.Override + public java.util.List + getSecurityHealthAnalyticsCustomModulesList() { + return securityHealthAnalyticsCustomModules_; + } + /** + * + * + *
+   * Custom modules belonging to the requested parent and its descendants.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> + getSecurityHealthAnalyticsCustomModulesOrBuilderList() { + return securityHealthAnalyticsCustomModules_; + } + /** + * + * + *
+   * Custom modules belonging to the requested parent and its descendants.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + @java.lang.Override + public int getSecurityHealthAnalyticsCustomModulesCount() { + return securityHealthAnalyticsCustomModules_.size(); + } + /** + * + * + *
+   * Custom modules belonging to the requested parent and its descendants.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModules(int index) { + return securityHealthAnalyticsCustomModules_.get(index); + } + /** + * + * + *
+   * Custom modules belonging to the requested parent and its descendants.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder + getSecurityHealthAnalyticsCustomModulesOrBuilder(int index) { + return securityHealthAnalyticsCustomModules_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * If not empty, indicates that there may be more custom modules to be
+   * returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * If not empty, indicates that there may be more custom modules to be
+   * returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < securityHealthAnalyticsCustomModules_.size(); i++) { + output.writeMessage(1, securityHealthAnalyticsCustomModules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < securityHealthAnalyticsCustomModules_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, securityHealthAnalyticsCustomModules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse + other = + (com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse) + obj; + + if (!getSecurityHealthAnalyticsCustomModulesList() + .equals(other.getSecurityHealthAnalyticsCustomModulesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getSecurityHealthAnalyticsCustomModulesCount() > 0) { + hash = (37 * hash) + SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_FIELD_NUMBER; + hash = (53 * hash) + getSecurityHealthAnalyticsCustomModulesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + 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 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + 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 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + 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 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + 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 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + 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 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + 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 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + 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.ListDescendantSecurityHealthAnalyticsCustomModulesResponse + 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 listing descendant security health analytics custom
+   * modules.
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) + com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse.class, + com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse.Builder.class); + } + + // Construct using + // com.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + } else { + securityHealthAnalyticsCustomModules_ = null; + securityHealthAnalyticsCustomModulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + build() { + com.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + buildPartial() { + com.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse + result = + new com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + result) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + securityHealthAnalyticsCustomModules_ = + java.util.Collections.unmodifiableList(securityHealthAnalyticsCustomModules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.securityHealthAnalyticsCustomModules_ = securityHealthAnalyticsCustomModules_; + } else { + result.securityHealthAnalyticsCustomModules_ = + securityHealthAnalyticsCustomModulesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse) { + return mergeFrom( + (com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + other) { + if (other + == com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance()) + return this; + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + if (!other.securityHealthAnalyticsCustomModules_.isEmpty()) { + if (securityHealthAnalyticsCustomModules_.isEmpty()) { + securityHealthAnalyticsCustomModules_ = other.securityHealthAnalyticsCustomModules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.addAll( + other.securityHealthAnalyticsCustomModules_); + } + onChanged(); + } + } else { + if (!other.securityHealthAnalyticsCustomModules_.isEmpty()) { + if (securityHealthAnalyticsCustomModulesBuilder_.isEmpty()) { + securityHealthAnalyticsCustomModulesBuilder_.dispose(); + securityHealthAnalyticsCustomModulesBuilder_ = null; + securityHealthAnalyticsCustomModules_ = other.securityHealthAnalyticsCustomModules_; + bitField0_ = (bitField0_ & ~0x00000001); + securityHealthAnalyticsCustomModulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSecurityHealthAnalyticsCustomModulesFieldBuilder() + : null; + } else { + securityHealthAnalyticsCustomModulesBuilder_.addAllMessages( + other.securityHealthAnalyticsCustomModules_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule m = + input.readMessage( + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + .parser(), + extensionRegistry); + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.add(m); + } else { + securityHealthAnalyticsCustomModulesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + + private void ensureSecurityHealthAnalyticsCustomModulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + securityHealthAnalyticsCustomModules_ = + new java.util.ArrayList< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule>( + securityHealthAnalyticsCustomModules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> + securityHealthAnalyticsCustomModulesBuilder_; + + /** + * + * + *
+     * Custom modules belonging to the requested parent and its descendants.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public java.util.List + getSecurityHealthAnalyticsCustomModulesList() { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(securityHealthAnalyticsCustomModules_); + } else { + return securityHealthAnalyticsCustomModulesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Custom modules belonging to the requested parent and its descendants.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public int getSecurityHealthAnalyticsCustomModulesCount() { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + return securityHealthAnalyticsCustomModules_.size(); + } else { + return securityHealthAnalyticsCustomModulesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Custom modules belonging to the requested parent and its descendants.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModules(int index) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + return securityHealthAnalyticsCustomModules_.get(index); + } else { + return securityHealthAnalyticsCustomModulesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Custom modules belonging to the requested parent and its descendants.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder setSecurityHealthAnalyticsCustomModules( + int index, com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule value) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.set(index, value); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Custom modules belonging to the requested parent and its descendants.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder setSecurityHealthAnalyticsCustomModules( + int index, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder + builderForValue) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.set(index, builderForValue.build()); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Custom modules belonging to the requested parent and its descendants.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder addSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule value) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.add(value); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Custom modules belonging to the requested parent and its descendants.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder addSecurityHealthAnalyticsCustomModules( + int index, com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule value) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.add(index, value); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Custom modules belonging to the requested parent and its descendants.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder addSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder + builderForValue) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.add(builderForValue.build()); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Custom modules belonging to the requested parent and its descendants.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder addSecurityHealthAnalyticsCustomModules( + int index, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder + builderForValue) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.add(index, builderForValue.build()); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Custom modules belonging to the requested parent and its descendants.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder addAllSecurityHealthAnalyticsCustomModules( + java.lang.Iterable< + ? extends com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule> + values) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, securityHealthAnalyticsCustomModules_); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Custom modules belonging to the requested parent and its descendants.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder clearSecurityHealthAnalyticsCustomModules() { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Custom modules belonging to the requested parent and its descendants.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder removeSecurityHealthAnalyticsCustomModules(int index) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.remove(index); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Custom modules belonging to the requested parent and its descendants.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder + getSecurityHealthAnalyticsCustomModulesBuilder(int index) { + return getSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Custom modules belonging to the requested parent and its descendants.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder + getSecurityHealthAnalyticsCustomModulesOrBuilder(int index) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + return securityHealthAnalyticsCustomModules_.get(index); + } else { + return securityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Custom modules belonging to the requested parent and its descendants.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> + getSecurityHealthAnalyticsCustomModulesOrBuilderList() { + if (securityHealthAnalyticsCustomModulesBuilder_ != null) { + return securityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(securityHealthAnalyticsCustomModules_); + } + } + /** + * + * + *
+     * Custom modules belonging to the requested parent and its descendants.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder + addSecurityHealthAnalyticsCustomModulesBuilder() { + return getSecurityHealthAnalyticsCustomModulesFieldBuilder() + .addBuilder( + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance()); + } + /** + * + * + *
+     * Custom modules belonging to the requested parent and its descendants.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder + addSecurityHealthAnalyticsCustomModulesBuilder(int index) { + return getSecurityHealthAnalyticsCustomModulesFieldBuilder() + .addBuilder( + index, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance()); + } + /** + * + * + *
+     * Custom modules belonging to the requested parent and its descendants.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public java.util.List< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder> + getSecurityHealthAnalyticsCustomModulesBuilderList() { + return getSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> + getSecurityHealthAnalyticsCustomModulesFieldBuilder() { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + securityHealthAnalyticsCustomModulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder>( + securityHealthAnalyticsCustomModules_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + securityHealthAnalyticsCustomModules_ = null; + } + return securityHealthAnalyticsCustomModulesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * If not empty, indicates that there may be more custom modules to be
+     * returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * If not empty, indicates that there may be more custom modules to be
+     * returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * If not empty, indicates that there may be more custom modules to be
+     * returned.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * If not empty, indicates that there may be more custom modules to be
+     * returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * If not empty, indicates that there may be more custom modules to be
+     * returned.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) + private static final com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse(); + } + + public static com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + ListDescendantSecurityHealthAnalyticsCustomModulesResponse> + PARSER = + new com.google.protobuf.AbstractParser< + ListDescendantSecurityHealthAnalyticsCustomModulesResponse>() { + @java.lang.Override + public ListDescendantSecurityHealthAnalyticsCustomModulesResponse 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< + ListDescendantSecurityHealthAnalyticsCustomModulesResponse> + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1 + .ListDescendantSecurityHealthAnalyticsCustomModulesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java new file mode 100644 index 000000000000..c52b6b621bb1 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java @@ -0,0 +1,118 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface ListDescendantSecurityHealthAnalyticsCustomModulesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Custom modules belonging to the requested parent and its descendants.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + java.util.List + getSecurityHealthAnalyticsCustomModulesList(); + /** + * + * + *
+   * Custom modules belonging to the requested parent and its descendants.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModules(int index); + /** + * + * + *
+   * Custom modules belonging to the requested parent and its descendants.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + int getSecurityHealthAnalyticsCustomModulesCount(); + /** + * + * + *
+   * Custom modules belonging to the requested parent and its descendants.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + java.util.List< + ? extends com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> + getSecurityHealthAnalyticsCustomModulesOrBuilderList(); + /** + * + * + *
+   * Custom modules belonging to the requested parent and its descendants.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder + getSecurityHealthAnalyticsCustomModulesOrBuilder(int index); + + /** + * + * + *
+   * If not empty, indicates that there may be more custom modules to be
+   * returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * If not empty, indicates that there may be more custom modules to be
+   * returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.java new file mode 100644 index 000000000000..058640d07c65 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.java @@ -0,0 +1,1016 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Request message for listing effective security health analytics custom
+ * modules.
+ * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest} + */ +public final class ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) + ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.newBuilder() to construct. + private ListEffectiveSecurityHealthAnalyticsCustomModulesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEffectiveSecurityHealthAnalyticsCustomModulesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEffectiveSecurityHealthAnalyticsCustomModulesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.class, + com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Name of parent to list effective custom modules. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings",
+   * "folders/{folder}/securityHealthAnalyticsSettings", or
+   * "projects/{project}/securityHealthAnalyticsSettings"
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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. Name of parent to list effective custom modules. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings",
+   * "folders/{folder}/securityHealthAnalyticsSettings", or
+   * "projects/{project}/securityHealthAnalyticsSettings"
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of results to return in a single response. Default is
+   * 10, minimum is 1, maximum is 1000.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * The value returned by the last call indicating a continuation
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The value returned by the last call indicating a continuation
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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 (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + 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 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + other = + (com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) + obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + 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 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + 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 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + 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 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + 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 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + 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 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + 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 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + 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.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + 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 for listing effective security health analytics custom
+   * modules.
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) + com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.class, + com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + build() { + com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + buildPartial() { + com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + result = + new com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) { + return mergeFrom( + (com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + other) { + if (other + == com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Name of parent to list effective custom modules. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings",
+     * "folders/{folder}/securityHealthAnalyticsSettings", or
+     * "projects/{project}/securityHealthAnalyticsSettings"
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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. Name of parent to list effective custom modules. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings",
+     * "folders/{folder}/securityHealthAnalyticsSettings", or
+     * "projects/{project}/securityHealthAnalyticsSettings"
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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. Name of parent to list effective custom modules. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings",
+     * "folders/{folder}/securityHealthAnalyticsSettings", or
+     * "projects/{project}/securityHealthAnalyticsSettings"
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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. Name of parent to list effective custom modules. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings",
+     * "folders/{folder}/securityHealthAnalyticsSettings", or
+     * "projects/{project}/securityHealthAnalyticsSettings"
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of parent to list effective custom modules. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings",
+     * "folders/{folder}/securityHealthAnalyticsSettings", or
+     * "projects/{project}/securityHealthAnalyticsSettings"
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 int pageSize_; + /** + * + * + *
+     * The maximum number of results to return in a single response. Default is
+     * 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of results to return in a single response. Default is
+     * 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of results to return in a single response. Default is
+     * 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * The value returned by the last call indicating a continuation
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The value returned by the last call indicating a continuation
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The value returned by the last call indicating a continuation
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The value returned by the last call indicating a continuation
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * The value returned by the last call indicating a continuation
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) + private static final com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest(); + } + + public static com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest> + PARSER = + new com.google.protobuf.AbstractParser< + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest>() { + @java.lang.Override + public ListEffectiveSecurityHealthAnalyticsCustomModulesRequest 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 + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java new file mode 100644 index 000000000000..86a0fd42890e --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface ListEffectiveSecurityHealthAnalyticsCustomModulesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of parent to list effective custom modules. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings",
+   * "folders/{folder}/securityHealthAnalyticsSettings", or
+   * "projects/{project}/securityHealthAnalyticsSettings"
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Name of parent to list effective custom modules. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings",
+   * "folders/{folder}/securityHealthAnalyticsSettings", or
+   * "projects/{project}/securityHealthAnalyticsSettings"
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of results to return in a single response. Default is
+   * 10, minimum is 1, maximum is 1000.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The value returned by the last call indicating a continuation
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The value returned by the last call indicating a continuation
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.java new file mode 100644 index 000000000000..b98df74243c6 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.java @@ -0,0 +1,1319 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Response message for listing effective security health analytics custom
+ * modules.
+ * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse} + */ +public final class ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) + ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.newBuilder() to construct. + private ListEffectiveSecurityHealthAnalyticsCustomModulesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEffectiveSecurityHealthAnalyticsCustomModulesResponse() { + effectiveSecurityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEffectiveSecurityHealthAnalyticsCustomModulesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.class, + com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.Builder.class); + } + + public static final int EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule> + effectiveSecurityHealthAnalyticsCustomModules_; + /** + * + * + *
+   * Effective custom modules belonging to the requested parent.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule> + getEffectiveSecurityHealthAnalyticsCustomModulesList() { + return effectiveSecurityHealthAnalyticsCustomModules_; + } + /** + * + * + *
+   * Effective custom modules belonging to the requested parent.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.securitycenter.v1 + .EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder> + getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilderList() { + return effectiveSecurityHealthAnalyticsCustomModules_; + } + /** + * + * + *
+   * Effective custom modules belonging to the requested parent.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + @java.lang.Override + public int getEffectiveSecurityHealthAnalyticsCustomModulesCount() { + return effectiveSecurityHealthAnalyticsCustomModules_.size(); + } + /** + * + * + *
+   * Effective custom modules belonging to the requested parent.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + getEffectiveSecurityHealthAnalyticsCustomModules(int index) { + return effectiveSecurityHealthAnalyticsCustomModules_.get(index); + } + /** + * + * + *
+   * Effective custom modules belonging to the requested parent.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder + getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilder(int index) { + return effectiveSecurityHealthAnalyticsCustomModules_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * If not empty, indicates that there may be more effective custom modules to
+   * be returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * If not empty, indicates that there may be more effective custom modules to
+   * be returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < effectiveSecurityHealthAnalyticsCustomModules_.size(); i++) { + output.writeMessage(1, effectiveSecurityHealthAnalyticsCustomModules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < effectiveSecurityHealthAnalyticsCustomModules_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, effectiveSecurityHealthAnalyticsCustomModules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + other = + (com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) + obj; + + if (!getEffectiveSecurityHealthAnalyticsCustomModulesList() + .equals(other.getEffectiveSecurityHealthAnalyticsCustomModulesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getEffectiveSecurityHealthAnalyticsCustomModulesCount() > 0) { + hash = (37 * hash) + EFFECTIVE_SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_FIELD_NUMBER; + hash = (53 * hash) + getEffectiveSecurityHealthAnalyticsCustomModulesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + 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 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + 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 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + 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 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + 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 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + 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 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + 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 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + 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.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + 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 listing effective security health analytics custom
+   * modules.
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) + com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.class, + com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.Builder.class); + } + + // Construct using + // com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + effectiveSecurityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + } else { + effectiveSecurityHealthAnalyticsCustomModules_ = null; + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + build() { + com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + buildPartial() { + com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + result = + new com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + result) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + effectiveSecurityHealthAnalyticsCustomModules_ = + java.util.Collections.unmodifiableList( + effectiveSecurityHealthAnalyticsCustomModules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.effectiveSecurityHealthAnalyticsCustomModules_ = + effectiveSecurityHealthAnalyticsCustomModules_; + } else { + result.effectiveSecurityHealthAnalyticsCustomModules_ = + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) { + return mergeFrom( + (com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + other) { + if (other + == com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse.getDefaultInstance()) + return this; + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + if (!other.effectiveSecurityHealthAnalyticsCustomModules_.isEmpty()) { + if (effectiveSecurityHealthAnalyticsCustomModules_.isEmpty()) { + effectiveSecurityHealthAnalyticsCustomModules_ = + other.effectiveSecurityHealthAnalyticsCustomModules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.addAll( + other.effectiveSecurityHealthAnalyticsCustomModules_); + } + onChanged(); + } + } else { + if (!other.effectiveSecurityHealthAnalyticsCustomModules_.isEmpty()) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_.isEmpty()) { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.dispose(); + effectiveSecurityHealthAnalyticsCustomModulesBuilder_ = null; + effectiveSecurityHealthAnalyticsCustomModules_ = + other.effectiveSecurityHealthAnalyticsCustomModules_; + bitField0_ = (bitField0_ & ~0x00000001); + effectiveSecurityHealthAnalyticsCustomModulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder() + : null; + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addAllMessages( + other.effectiveSecurityHealthAnalyticsCustomModules_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule m = + input.readMessage( + com.google.cloud.securitycenter.v1 + .EffectiveSecurityHealthAnalyticsCustomModule.parser(), + extensionRegistry); + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.add(m); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule> + effectiveSecurityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + + private void ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + effectiveSecurityHealthAnalyticsCustomModules_ = + new java.util.ArrayList< + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule>( + effectiveSecurityHealthAnalyticsCustomModules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder, + com.google.cloud.securitycenter.v1 + .EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder> + effectiveSecurityHealthAnalyticsCustomModulesBuilder_; + + /** + * + * + *
+     * Effective custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public java.util.List< + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule> + getEffectiveSecurityHealthAnalyticsCustomModulesList() { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + return java.util.Collections.unmodifiableList( + effectiveSecurityHealthAnalyticsCustomModules_); + } else { + return effectiveSecurityHealthAnalyticsCustomModulesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Effective custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public int getEffectiveSecurityHealthAnalyticsCustomModulesCount() { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + return effectiveSecurityHealthAnalyticsCustomModules_.size(); + } else { + return effectiveSecurityHealthAnalyticsCustomModulesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Effective custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + getEffectiveSecurityHealthAnalyticsCustomModules(int index) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + return effectiveSecurityHealthAnalyticsCustomModules_.get(index); + } else { + return effectiveSecurityHealthAnalyticsCustomModulesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Effective custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public Builder setEffectiveSecurityHealthAnalyticsCustomModules( + int index, + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule value) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.set(index, value); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Effective custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public Builder setEffectiveSecurityHealthAnalyticsCustomModules( + int index, + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder + builderForValue) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.set(index, builderForValue.build()); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.setMessage( + index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Effective custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public Builder addEffectiveSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule value) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.add(value); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Effective custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public Builder addEffectiveSecurityHealthAnalyticsCustomModules( + int index, + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule value) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.add(index, value); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Effective custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public Builder addEffectiveSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder + builderForValue) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.add(builderForValue.build()); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Effective custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public Builder addEffectiveSecurityHealthAnalyticsCustomModules( + int index, + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder + builderForValue) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.add(index, builderForValue.build()); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addMessage( + index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Effective custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public Builder addAllEffectiveSecurityHealthAnalyticsCustomModules( + java.lang.Iterable< + ? extends + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule> + values) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, effectiveSecurityHealthAnalyticsCustomModules_); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Effective custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public Builder clearEffectiveSecurityHealthAnalyticsCustomModules() { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + effectiveSecurityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Effective custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public Builder removeEffectiveSecurityHealthAnalyticsCustomModules(int index) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureEffectiveSecurityHealthAnalyticsCustomModulesIsMutable(); + effectiveSecurityHealthAnalyticsCustomModules_.remove(index); + onChanged(); + } else { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Effective custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder + getEffectiveSecurityHealthAnalyticsCustomModulesBuilder(int index) { + return getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Effective custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder + getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilder(int index) { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + return effectiveSecurityHealthAnalyticsCustomModules_.get(index); + } else { + return effectiveSecurityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Effective custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.securitycenter.v1 + .EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder> + getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilderList() { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ != null) { + return effectiveSecurityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList( + effectiveSecurityHealthAnalyticsCustomModules_); + } + } + /** + * + * + *
+     * Effective custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder + addEffectiveSecurityHealthAnalyticsCustomModulesBuilder() { + return getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder() + .addBuilder( + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + .getDefaultInstance()); + } + /** + * + * + *
+     * Effective custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder + addEffectiveSecurityHealthAnalyticsCustomModulesBuilder(int index) { + return getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder() + .addBuilder( + index, + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + .getDefaultInstance()); + } + /** + * + * + *
+     * Effective custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + public java.util.List< + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder> + getEffectiveSecurityHealthAnalyticsCustomModulesBuilderList() { + return getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.Builder, + com.google.cloud.securitycenter.v1 + .EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder> + getEffectiveSecurityHealthAnalyticsCustomModulesFieldBuilder() { + if (effectiveSecurityHealthAnalyticsCustomModulesBuilder_ == null) { + effectiveSecurityHealthAnalyticsCustomModulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + .Builder, + com.google.cloud.securitycenter.v1 + .EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder>( + effectiveSecurityHealthAnalyticsCustomModules_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + effectiveSecurityHealthAnalyticsCustomModules_ = null; + } + return effectiveSecurityHealthAnalyticsCustomModulesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * If not empty, indicates that there may be more effective custom modules to
+     * be returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * If not empty, indicates that there may be more effective custom modules to
+     * be returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * If not empty, indicates that there may be more effective custom modules to
+     * be returned.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * If not empty, indicates that there may be more effective custom modules to
+     * be returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * If not empty, indicates that there may be more effective custom modules to
+     * be returned.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) + private static final com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse(); + } + + public static com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> + PARSER = + new com.google.protobuf.AbstractParser< + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse>() { + @java.lang.Override + public ListEffectiveSecurityHealthAnalyticsCustomModulesResponse 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< + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse> + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1 + .ListEffectiveSecurityHealthAnalyticsCustomModulesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java new file mode 100644 index 000000000000..20c38cca799f --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface ListEffectiveSecurityHealthAnalyticsCustomModulesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Effective custom modules belonging to the requested parent.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + java.util.List + getEffectiveSecurityHealthAnalyticsCustomModulesList(); + /** + * + * + *
+   * Effective custom modules belonging to the requested parent.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule + getEffectiveSecurityHealthAnalyticsCustomModules(int index); + /** + * + * + *
+   * Effective custom modules belonging to the requested parent.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + int getEffectiveSecurityHealthAnalyticsCustomModulesCount(); + /** + * + * + *
+   * Effective custom modules belonging to the requested parent.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.securitycenter.v1 + .EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder> + getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilderList(); + /** + * + * + *
+   * Effective custom modules belonging to the requested parent.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule effective_security_health_analytics_custom_modules = 1; + * + */ + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder + getEffectiveSecurityHealthAnalyticsCustomModulesOrBuilder(int index); + + /** + * + * + *
+   * If not empty, indicates that there may be more effective custom modules to
+   * be returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * If not empty, indicates that there may be more effective custom modules to
+   * be returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSecurityHealthAnalyticsCustomModulesRequest.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSecurityHealthAnalyticsCustomModulesRequest.java new file mode 100644 index 000000000000..171f03463060 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSecurityHealthAnalyticsCustomModulesRequest.java @@ -0,0 +1,985 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Request message for listing security health analytics custom modules.
+ * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest} + */ +public final class ListSecurityHealthAnalyticsCustomModulesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest) + ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSecurityHealthAnalyticsCustomModulesRequest.newBuilder() to construct. + private ListSecurityHealthAnalyticsCustomModulesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSecurityHealthAnalyticsCustomModulesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSecurityHealthAnalyticsCustomModulesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSecurityHealthAnalyticsCustomModulesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest + .class, + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest + .Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Name of parent to list custom modules. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings",
+   * "folders/{folder}/securityHealthAnalyticsSettings", or
+   * "projects/{project}/securityHealthAnalyticsSettings"
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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. Name of parent to list custom modules. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings",
+   * "folders/{folder}/securityHealthAnalyticsSettings", or
+   * "projects/{project}/securityHealthAnalyticsSettings"
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of results to return in a single response. Default is
+   * 10, minimum is 1, maximum is 1000.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * The value returned by the last call indicating a continuation
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The value returned by the last call indicating a continuation
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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 (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + 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.ListSecurityHealthAnalyticsCustomModulesRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest other = + (com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest + 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.ListSecurityHealthAnalyticsCustomModulesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest + 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.ListSecurityHealthAnalyticsCustomModulesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest + 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.ListSecurityHealthAnalyticsCustomModulesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest + 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.ListSecurityHealthAnalyticsCustomModulesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest + 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.ListSecurityHealthAnalyticsCustomModulesRequest + 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.ListSecurityHealthAnalyticsCustomModulesRequest + 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.ListSecurityHealthAnalyticsCustomModulesRequest + 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 for listing security health analytics custom modules.
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest) + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSecurityHealthAnalyticsCustomModulesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest + .class, + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSecurityHealthAnalyticsCustomModulesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest + build() { + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest + buildPartial() { + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest result = + new com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest) { + return mergeFrom( + (com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest other) { + if (other + == com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Name of parent to list custom modules. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings",
+     * "folders/{folder}/securityHealthAnalyticsSettings", or
+     * "projects/{project}/securityHealthAnalyticsSettings"
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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. Name of parent to list custom modules. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings",
+     * "folders/{folder}/securityHealthAnalyticsSettings", or
+     * "projects/{project}/securityHealthAnalyticsSettings"
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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. Name of parent to list custom modules. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings",
+     * "folders/{folder}/securityHealthAnalyticsSettings", or
+     * "projects/{project}/securityHealthAnalyticsSettings"
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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. Name of parent to list custom modules. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings",
+     * "folders/{folder}/securityHealthAnalyticsSettings", or
+     * "projects/{project}/securityHealthAnalyticsSettings"
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of parent to list custom modules. Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings",
+     * "folders/{folder}/securityHealthAnalyticsSettings", or
+     * "projects/{project}/securityHealthAnalyticsSettings"
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 int pageSize_; + /** + * + * + *
+     * The maximum number of results to return in a single response. Default is
+     * 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of results to return in a single response. Default is
+     * 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of results to return in a single response. Default is
+     * 10, minimum is 1, maximum is 1000.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * The value returned by the last call indicating a continuation
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The value returned by the last call indicating a continuation
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The value returned by the last call indicating a continuation
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The value returned by the last call indicating a continuation
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * The value returned by the last call indicating a continuation
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest) + private static final com.google.cloud.securitycenter.v1 + .ListSecurityHealthAnalyticsCustomModulesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest(); + } + + public static com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser< + ListSecurityHealthAnalyticsCustomModulesRequest>() { + @java.lang.Override + public ListSecurityHealthAnalyticsCustomModulesRequest 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 + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java new file mode 100644 index 000000000000..f4a0a5bca440 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface ListSecurityHealthAnalyticsCustomModulesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of parent to list custom modules. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings",
+   * "folders/{folder}/securityHealthAnalyticsSettings", or
+   * "projects/{project}/securityHealthAnalyticsSettings"
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Name of parent to list custom modules. Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings",
+   * "folders/{folder}/securityHealthAnalyticsSettings", or
+   * "projects/{project}/securityHealthAnalyticsSettings"
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of results to return in a single response. Default is
+   * 10, minimum is 1, maximum is 1000.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The value returned by the last call indicating a continuation
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The value returned by the last call indicating a continuation
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSecurityHealthAnalyticsCustomModulesResponse.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSecurityHealthAnalyticsCustomModulesResponse.java new file mode 100644 index 000000000000..92e6bfd720bb --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSecurityHealthAnalyticsCustomModulesResponse.java @@ -0,0 +1,1265 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Response message for listing security health analytics custom modules.
+ * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse} + */ +public final class ListSecurityHealthAnalyticsCustomModulesResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse) + ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSecurityHealthAnalyticsCustomModulesResponse.newBuilder() to construct. + private ListSecurityHealthAnalyticsCustomModulesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSecurityHealthAnalyticsCustomModulesResponse() { + securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSecurityHealthAnalyticsCustomModulesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSecurityHealthAnalyticsCustomModulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse + .class, + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse + .Builder.class); + } + + public static final int SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + securityHealthAnalyticsCustomModules_; + /** + * + * + *
+   * Custom modules belonging to the requested parent.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + @java.lang.Override + public java.util.List + getSecurityHealthAnalyticsCustomModulesList() { + return securityHealthAnalyticsCustomModules_; + } + /** + * + * + *
+   * Custom modules belonging to the requested parent.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> + getSecurityHealthAnalyticsCustomModulesOrBuilderList() { + return securityHealthAnalyticsCustomModules_; + } + /** + * + * + *
+   * Custom modules belonging to the requested parent.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + @java.lang.Override + public int getSecurityHealthAnalyticsCustomModulesCount() { + return securityHealthAnalyticsCustomModules_.size(); + } + /** + * + * + *
+   * Custom modules belonging to the requested parent.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModules(int index) { + return securityHealthAnalyticsCustomModules_.get(index); + } + /** + * + * + *
+   * Custom modules belonging to the requested parent.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder + getSecurityHealthAnalyticsCustomModulesOrBuilder(int index) { + return securityHealthAnalyticsCustomModules_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * If not empty, indicates that there may be more custom modules to be
+   * returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * If not empty, indicates that there may be more custom modules to be
+   * returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < securityHealthAnalyticsCustomModules_.size(); i++) { + output.writeMessage(1, securityHealthAnalyticsCustomModules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < securityHealthAnalyticsCustomModules_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, securityHealthAnalyticsCustomModules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.ListSecurityHealthAnalyticsCustomModulesResponse)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse other = + (com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse) obj; + + if (!getSecurityHealthAnalyticsCustomModulesList() + .equals(other.getSecurityHealthAnalyticsCustomModulesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getSecurityHealthAnalyticsCustomModulesCount() > 0) { + hash = (37 * hash) + SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULES_FIELD_NUMBER; + hash = (53 * hash) + getSecurityHealthAnalyticsCustomModulesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse + 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.ListSecurityHealthAnalyticsCustomModulesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse + 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.ListSecurityHealthAnalyticsCustomModulesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse + 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.ListSecurityHealthAnalyticsCustomModulesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse + 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.ListSecurityHealthAnalyticsCustomModulesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse + 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.ListSecurityHealthAnalyticsCustomModulesResponse + 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.ListSecurityHealthAnalyticsCustomModulesResponse + 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.ListSecurityHealthAnalyticsCustomModulesResponse + 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 listing security health analytics custom modules.
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse) + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSecurityHealthAnalyticsCustomModulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse + .class, + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse + .Builder.class); + } + + // Construct using + // com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + } else { + securityHealthAnalyticsCustomModules_ = null; + securityHealthAnalyticsCustomModulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_ListSecurityHealthAnalyticsCustomModulesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse + build() { + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse + buildPartial() { + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse result = + new com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse + result) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + securityHealthAnalyticsCustomModules_ = + java.util.Collections.unmodifiableList(securityHealthAnalyticsCustomModules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.securityHealthAnalyticsCustomModules_ = securityHealthAnalyticsCustomModules_; + } else { + result.securityHealthAnalyticsCustomModules_ = + securityHealthAnalyticsCustomModulesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse) { + return mergeFrom( + (com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse other) { + if (other + == com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse + .getDefaultInstance()) return this; + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + if (!other.securityHealthAnalyticsCustomModules_.isEmpty()) { + if (securityHealthAnalyticsCustomModules_.isEmpty()) { + securityHealthAnalyticsCustomModules_ = other.securityHealthAnalyticsCustomModules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.addAll( + other.securityHealthAnalyticsCustomModules_); + } + onChanged(); + } + } else { + if (!other.securityHealthAnalyticsCustomModules_.isEmpty()) { + if (securityHealthAnalyticsCustomModulesBuilder_.isEmpty()) { + securityHealthAnalyticsCustomModulesBuilder_.dispose(); + securityHealthAnalyticsCustomModulesBuilder_ = null; + securityHealthAnalyticsCustomModules_ = other.securityHealthAnalyticsCustomModules_; + bitField0_ = (bitField0_ & ~0x00000001); + securityHealthAnalyticsCustomModulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSecurityHealthAnalyticsCustomModulesFieldBuilder() + : null; + } else { + securityHealthAnalyticsCustomModulesBuilder_.addAllMessages( + other.securityHealthAnalyticsCustomModules_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule m = + input.readMessage( + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + .parser(), + extensionRegistry); + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.add(m); + } else { + securityHealthAnalyticsCustomModulesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + + private void ensureSecurityHealthAnalyticsCustomModulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + securityHealthAnalyticsCustomModules_ = + new java.util.ArrayList< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule>( + securityHealthAnalyticsCustomModules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> + securityHealthAnalyticsCustomModulesBuilder_; + + /** + * + * + *
+     * Custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public java.util.List + getSecurityHealthAnalyticsCustomModulesList() { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(securityHealthAnalyticsCustomModules_); + } else { + return securityHealthAnalyticsCustomModulesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public int getSecurityHealthAnalyticsCustomModulesCount() { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + return securityHealthAnalyticsCustomModules_.size(); + } else { + return securityHealthAnalyticsCustomModulesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModules(int index) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + return securityHealthAnalyticsCustomModules_.get(index); + } else { + return securityHealthAnalyticsCustomModulesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder setSecurityHealthAnalyticsCustomModules( + int index, com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule value) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.set(index, value); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder setSecurityHealthAnalyticsCustomModules( + int index, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder + builderForValue) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.set(index, builderForValue.build()); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder addSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule value) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.add(value); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder addSecurityHealthAnalyticsCustomModules( + int index, com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule value) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.add(index, value); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder addSecurityHealthAnalyticsCustomModules( + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder + builderForValue) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.add(builderForValue.build()); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder addSecurityHealthAnalyticsCustomModules( + int index, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder + builderForValue) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.add(index, builderForValue.build()); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder addAllSecurityHealthAnalyticsCustomModules( + java.lang.Iterable< + ? extends com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule> + values) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, securityHealthAnalyticsCustomModules_); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder clearSecurityHealthAnalyticsCustomModules() { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + securityHealthAnalyticsCustomModules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public Builder removeSecurityHealthAnalyticsCustomModules(int index) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + ensureSecurityHealthAnalyticsCustomModulesIsMutable(); + securityHealthAnalyticsCustomModules_.remove(index); + onChanged(); + } else { + securityHealthAnalyticsCustomModulesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder + getSecurityHealthAnalyticsCustomModulesBuilder(int index) { + return getSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder + getSecurityHealthAnalyticsCustomModulesOrBuilder(int index) { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + return securityHealthAnalyticsCustomModules_.get(index); + } else { + return securityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> + getSecurityHealthAnalyticsCustomModulesOrBuilderList() { + if (securityHealthAnalyticsCustomModulesBuilder_ != null) { + return securityHealthAnalyticsCustomModulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(securityHealthAnalyticsCustomModules_); + } + } + /** + * + * + *
+     * Custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder + addSecurityHealthAnalyticsCustomModulesBuilder() { + return getSecurityHealthAnalyticsCustomModulesFieldBuilder() + .addBuilder( + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance()); + } + /** + * + * + *
+     * Custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder + addSecurityHealthAnalyticsCustomModulesBuilder(int index) { + return getSecurityHealthAnalyticsCustomModulesFieldBuilder() + .addBuilder( + index, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance()); + } + /** + * + * + *
+     * Custom modules belonging to the requested parent.
+     * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + public java.util.List< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder> + getSecurityHealthAnalyticsCustomModulesBuilderList() { + return getSecurityHealthAnalyticsCustomModulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> + getSecurityHealthAnalyticsCustomModulesFieldBuilder() { + if (securityHealthAnalyticsCustomModulesBuilder_ == null) { + securityHealthAnalyticsCustomModulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder>( + securityHealthAnalyticsCustomModules_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + securityHealthAnalyticsCustomModules_ = null; + } + return securityHealthAnalyticsCustomModulesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * If not empty, indicates that there may be more custom modules to be
+     * returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * If not empty, indicates that there may be more custom modules to be
+     * returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * If not empty, indicates that there may be more custom modules to be
+     * returned.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * If not empty, indicates that there may be more custom modules to be
+     * returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * If not empty, indicates that there may be more custom modules to be
+     * returned.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse) + private static final com.google.cloud.securitycenter.v1 + .ListSecurityHealthAnalyticsCustomModulesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse(); + } + + public static com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser< + ListSecurityHealthAnalyticsCustomModulesResponse>() { + @java.lang.Override + public ListSecurityHealthAnalyticsCustomModulesResponse 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 + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java new file mode 100644 index 000000000000..1e84e44c0a99 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder.java @@ -0,0 +1,118 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface ListSecurityHealthAnalyticsCustomModulesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Custom modules belonging to the requested parent.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + java.util.List + getSecurityHealthAnalyticsCustomModulesList(); + /** + * + * + *
+   * Custom modules belonging to the requested parent.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModules(int index); + /** + * + * + *
+   * Custom modules belonging to the requested parent.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + int getSecurityHealthAnalyticsCustomModulesCount(); + /** + * + * + *
+   * Custom modules belonging to the requested parent.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + java.util.List< + ? extends com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> + getSecurityHealthAnalyticsCustomModulesOrBuilderList(); + /** + * + * + *
+   * Custom modules belonging to the requested parent.
+   * 
+ * + * + * repeated .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_modules = 1; + * + */ + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder + getSecurityHealthAnalyticsCustomModulesOrBuilder(int index); + + /** + * + * + *
+   * If not empty, indicates that there may be more custom modules to be
+   * returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * If not empty, indicates that there may be more custom modules to be
+   * returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfig.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfig.java index 3db3dbf3abbd..e362289842cc 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfig.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfig.java @@ -245,11 +245,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-   * Required. An expression that defines the filter to apply across create/update events
-   * of findings. While creating a filter string, be mindful of the
-   * scope in which the mute configuration is being created. E.g., If a filter
-   * contains project = X but is created under the project = Y scope, it might
-   * not match any findings.
+   * Required. An expression that defines the filter to apply across
+   * create/update events of findings. While creating a filter string, be
+   * mindful of the scope in which the mute configuration is being created.
+   * E.g., If a filter contains project = X but is created under the project = Y
+   * scope, it might not match any findings.
    * The following field and operator combinations are supported:
    * * severity: `=`, `:`
    * * category: `=`, `:`
@@ -285,11 +285,11 @@ public java.lang.String getFilter() {
    *
    *
    * 
-   * Required. An expression that defines the filter to apply across create/update events
-   * of findings. While creating a filter string, be mindful of the
-   * scope in which the mute configuration is being created. E.g., If a filter
-   * contains project = X but is created under the project = Y scope, it might
-   * not match any findings.
+   * Required. An expression that defines the filter to apply across
+   * create/update events of findings. While creating a filter string, be
+   * mindful of the scope in which the mute configuration is being created.
+   * E.g., If a filter contains project = X but is created under the project = Y
+   * scope, it might not match any findings.
    * The following field and operator combinations are supported:
    * * severity: `=`, `:`
    * * category: `=`, `:`
@@ -1340,11 +1340,11 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Required. An expression that defines the filter to apply across create/update events
-     * of findings. While creating a filter string, be mindful of the
-     * scope in which the mute configuration is being created. E.g., If a filter
-     * contains project = X but is created under the project = Y scope, it might
-     * not match any findings.
+     * Required. An expression that defines the filter to apply across
+     * create/update events of findings. While creating a filter string, be
+     * mindful of the scope in which the mute configuration is being created.
+     * E.g., If a filter contains project = X but is created under the project = Y
+     * scope, it might not match any findings.
      * The following field and operator combinations are supported:
      * * severity: `=`, `:`
      * * category: `=`, `:`
@@ -1379,11 +1379,11 @@ public java.lang.String getFilter() {
      *
      *
      * 
-     * Required. An expression that defines the filter to apply across create/update events
-     * of findings. While creating a filter string, be mindful of the
-     * scope in which the mute configuration is being created. E.g., If a filter
-     * contains project = X but is created under the project = Y scope, it might
-     * not match any findings.
+     * Required. An expression that defines the filter to apply across
+     * create/update events of findings. While creating a filter string, be
+     * mindful of the scope in which the mute configuration is being created.
+     * E.g., If a filter contains project = X but is created under the project = Y
+     * scope, it might not match any findings.
      * The following field and operator combinations are supported:
      * * severity: `=`, `:`
      * * category: `=`, `:`
@@ -1418,11 +1418,11 @@ public com.google.protobuf.ByteString getFilterBytes() {
      *
      *
      * 
-     * Required. An expression that defines the filter to apply across create/update events
-     * of findings. While creating a filter string, be mindful of the
-     * scope in which the mute configuration is being created. E.g., If a filter
-     * contains project = X but is created under the project = Y scope, it might
-     * not match any findings.
+     * Required. An expression that defines the filter to apply across
+     * create/update events of findings. While creating a filter string, be
+     * mindful of the scope in which the mute configuration is being created.
+     * E.g., If a filter contains project = X but is created under the project = Y
+     * scope, it might not match any findings.
      * The following field and operator combinations are supported:
      * * severity: `=`, `:`
      * * category: `=`, `:`
@@ -1456,11 +1456,11 @@ public Builder setFilter(java.lang.String value) {
      *
      *
      * 
-     * Required. An expression that defines the filter to apply across create/update events
-     * of findings. While creating a filter string, be mindful of the
-     * scope in which the mute configuration is being created. E.g., If a filter
-     * contains project = X but is created under the project = Y scope, it might
-     * not match any findings.
+     * Required. An expression that defines the filter to apply across
+     * create/update events of findings. While creating a filter string, be
+     * mindful of the scope in which the mute configuration is being created.
+     * E.g., If a filter contains project = X but is created under the project = Y
+     * scope, it might not match any findings.
      * The following field and operator combinations are supported:
      * * severity: `=`, `:`
      * * category: `=`, `:`
@@ -1490,11 +1490,11 @@ public Builder clearFilter() {
      *
      *
      * 
-     * Required. An expression that defines the filter to apply across create/update events
-     * of findings. While creating a filter string, be mindful of the
-     * scope in which the mute configuration is being created. E.g., If a filter
-     * contains project = X but is created under the project = Y scope, it might
-     * not match any findings.
+     * Required. An expression that defines the filter to apply across
+     * create/update events of findings. While creating a filter string, be
+     * mindful of the scope in which the mute configuration is being created.
+     * E.g., If a filter contains project = X but is created under the project = Y
+     * scope, it might not match any findings.
      * The following field and operator combinations are supported:
      * * severity: `=`, `:`
      * * category: `=`, `:`
diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigOrBuilder.java
index 45775163fbc5..4d9d2dc76448 100644
--- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigOrBuilder.java
+++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/MuteConfigOrBuilder.java
@@ -114,11 +114,11 @@ public interface MuteConfigOrBuilder
    *
    *
    * 
-   * Required. An expression that defines the filter to apply across create/update events
-   * of findings. While creating a filter string, be mindful of the
-   * scope in which the mute configuration is being created. E.g., If a filter
-   * contains project = X but is created under the project = Y scope, it might
-   * not match any findings.
+   * Required. An expression that defines the filter to apply across
+   * create/update events of findings. While creating a filter string, be
+   * mindful of the scope in which the mute configuration is being created.
+   * E.g., If a filter contains project = X but is created under the project = Y
+   * scope, it might not match any findings.
    * The following field and operator combinations are supported:
    * * severity: `=`, `:`
    * * category: `=`, `:`
@@ -143,11 +143,11 @@ public interface MuteConfigOrBuilder
    *
    *
    * 
-   * Required. An expression that defines the filter to apply across create/update events
-   * of findings. While creating a filter string, be mindful of the
-   * scope in which the mute configuration is being created. E.g., If a filter
-   * contains project = X but is created under the project = Y scope, it might
-   * not match any findings.
+   * Required. An expression that defines the filter to apply across
+   * create/update events of findings. While creating a filter string, be
+   * mindful of the scope in which the mute configuration is being created.
+   * E.g., If a filter contains project = X but is created under the project = Y
+   * scope, it might not match any findings.
    * The following field and operator combinations are supported:
    * * severity: `=`, `:`
    * * category: `=`, `:`
diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Resource.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Resource.java
index 65e354323733..e93acaa608e7 100644
--- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Resource.java
+++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Resource.java
@@ -441,9 +441,9 @@ public com.google.protobuf.ByteString getParentDisplayNameBytes() {
    *
    *
    * 
-   * Output only. Contains a Folder message for each folder in the assets ancestry.
-   * The first folder is the deepest nested folder, and the last folder is the
-   * folder directly under the Organization.
+   * Output only. Contains a Folder message for each folder in the assets
+   * ancestry. The first folder is the deepest nested folder, and the last
+   * folder is the folder directly under the Organization.
    * 
* * @@ -458,9 +458,9 @@ public java.util.List getFoldersList( * * *
-   * Output only. Contains a Folder message for each folder in the assets ancestry.
-   * The first folder is the deepest nested folder, and the last folder is the
-   * folder directly under the Organization.
+   * Output only. Contains a Folder message for each folder in the assets
+   * ancestry. The first folder is the deepest nested folder, and the last
+   * folder is the folder directly under the Organization.
    * 
* * @@ -476,9 +476,9 @@ public java.util.List getFoldersList( * * *
-   * Output only. Contains a Folder message for each folder in the assets ancestry.
-   * The first folder is the deepest nested folder, and the last folder is the
-   * folder directly under the Organization.
+   * Output only. Contains a Folder message for each folder in the assets
+   * ancestry. The first folder is the deepest nested folder, and the last
+   * folder is the folder directly under the Organization.
    * 
* * @@ -493,9 +493,9 @@ public int getFoldersCount() { * * *
-   * Output only. Contains a Folder message for each folder in the assets ancestry.
-   * The first folder is the deepest nested folder, and the last folder is the
-   * folder directly under the Organization.
+   * Output only. Contains a Folder message for each folder in the assets
+   * ancestry. The first folder is the deepest nested folder, and the last
+   * folder is the folder directly under the Organization.
    * 
* * @@ -510,9 +510,9 @@ public com.google.cloud.securitycenter.v1.Folder getFolders(int index) { * * *
-   * Output only. Contains a Folder message for each folder in the assets ancestry.
-   * The first folder is the deepest nested folder, and the last folder is the
-   * folder directly under the Organization.
+   * Output only. Contains a Folder message for each folder in the assets
+   * ancestry. The first folder is the deepest nested folder, and the last
+   * folder is the folder directly under the Organization.
    * 
* * @@ -1847,9 +1847,9 @@ private void ensureFoldersIsMutable() { * * *
-     * Output only. Contains a Folder message for each folder in the assets ancestry.
-     * The first folder is the deepest nested folder, and the last folder is the
-     * folder directly under the Organization.
+     * Output only. Contains a Folder message for each folder in the assets
+     * ancestry. The first folder is the deepest nested folder, and the last
+     * folder is the folder directly under the Organization.
      * 
* * @@ -1867,9 +1867,9 @@ public java.util.List getFoldersList( * * *
-     * Output only. Contains a Folder message for each folder in the assets ancestry.
-     * The first folder is the deepest nested folder, and the last folder is the
-     * folder directly under the Organization.
+     * Output only. Contains a Folder message for each folder in the assets
+     * ancestry. The first folder is the deepest nested folder, and the last
+     * folder is the folder directly under the Organization.
      * 
* * @@ -1887,9 +1887,9 @@ public int getFoldersCount() { * * *
-     * Output only. Contains a Folder message for each folder in the assets ancestry.
-     * The first folder is the deepest nested folder, and the last folder is the
-     * folder directly under the Organization.
+     * Output only. Contains a Folder message for each folder in the assets
+     * ancestry. The first folder is the deepest nested folder, and the last
+     * folder is the folder directly under the Organization.
      * 
* * @@ -1907,9 +1907,9 @@ public com.google.cloud.securitycenter.v1.Folder getFolders(int index) { * * *
-     * Output only. Contains a Folder message for each folder in the assets ancestry.
-     * The first folder is the deepest nested folder, and the last folder is the
-     * folder directly under the Organization.
+     * Output only. Contains a Folder message for each folder in the assets
+     * ancestry. The first folder is the deepest nested folder, and the last
+     * folder is the folder directly under the Organization.
      * 
* * @@ -1933,9 +1933,9 @@ public Builder setFolders(int index, com.google.cloud.securitycenter.v1.Folder v * * *
-     * Output only. Contains a Folder message for each folder in the assets ancestry.
-     * The first folder is the deepest nested folder, and the last folder is the
-     * folder directly under the Organization.
+     * Output only. Contains a Folder message for each folder in the assets
+     * ancestry. The first folder is the deepest nested folder, and the last
+     * folder is the folder directly under the Organization.
      * 
* * @@ -1957,9 +1957,9 @@ public Builder setFolders( * * *
-     * Output only. Contains a Folder message for each folder in the assets ancestry.
-     * The first folder is the deepest nested folder, and the last folder is the
-     * folder directly under the Organization.
+     * Output only. Contains a Folder message for each folder in the assets
+     * ancestry. The first folder is the deepest nested folder, and the last
+     * folder is the folder directly under the Organization.
      * 
* * @@ -1983,9 +1983,9 @@ public Builder addFolders(com.google.cloud.securitycenter.v1.Folder value) { * * *
-     * Output only. Contains a Folder message for each folder in the assets ancestry.
-     * The first folder is the deepest nested folder, and the last folder is the
-     * folder directly under the Organization.
+     * Output only. Contains a Folder message for each folder in the assets
+     * ancestry. The first folder is the deepest nested folder, and the last
+     * folder is the folder directly under the Organization.
      * 
* * @@ -2009,9 +2009,9 @@ public Builder addFolders(int index, com.google.cloud.securitycenter.v1.Folder v * * *
-     * Output only. Contains a Folder message for each folder in the assets ancestry.
-     * The first folder is the deepest nested folder, and the last folder is the
-     * folder directly under the Organization.
+     * Output only. Contains a Folder message for each folder in the assets
+     * ancestry. The first folder is the deepest nested folder, and the last
+     * folder is the folder directly under the Organization.
      * 
* * @@ -2032,9 +2032,9 @@ public Builder addFolders(com.google.cloud.securitycenter.v1.Folder.Builder buil * * *
-     * Output only. Contains a Folder message for each folder in the assets ancestry.
-     * The first folder is the deepest nested folder, and the last folder is the
-     * folder directly under the Organization.
+     * Output only. Contains a Folder message for each folder in the assets
+     * ancestry. The first folder is the deepest nested folder, and the last
+     * folder is the folder directly under the Organization.
      * 
* * @@ -2056,9 +2056,9 @@ public Builder addFolders( * * *
-     * Output only. Contains a Folder message for each folder in the assets ancestry.
-     * The first folder is the deepest nested folder, and the last folder is the
-     * folder directly under the Organization.
+     * Output only. Contains a Folder message for each folder in the assets
+     * ancestry. The first folder is the deepest nested folder, and the last
+     * folder is the folder directly under the Organization.
      * 
* * @@ -2080,9 +2080,9 @@ public Builder addAllFolders( * * *
-     * Output only. Contains a Folder message for each folder in the assets ancestry.
-     * The first folder is the deepest nested folder, and the last folder is the
-     * folder directly under the Organization.
+     * Output only. Contains a Folder message for each folder in the assets
+     * ancestry. The first folder is the deepest nested folder, and the last
+     * folder is the folder directly under the Organization.
      * 
* * @@ -2103,9 +2103,9 @@ public Builder clearFolders() { * * *
-     * Output only. Contains a Folder message for each folder in the assets ancestry.
-     * The first folder is the deepest nested folder, and the last folder is the
-     * folder directly under the Organization.
+     * Output only. Contains a Folder message for each folder in the assets
+     * ancestry. The first folder is the deepest nested folder, and the last
+     * folder is the folder directly under the Organization.
      * 
* * @@ -2126,9 +2126,9 @@ public Builder removeFolders(int index) { * * *
-     * Output only. Contains a Folder message for each folder in the assets ancestry.
-     * The first folder is the deepest nested folder, and the last folder is the
-     * folder directly under the Organization.
+     * Output only. Contains a Folder message for each folder in the assets
+     * ancestry. The first folder is the deepest nested folder, and the last
+     * folder is the folder directly under the Organization.
      * 
* * @@ -2142,9 +2142,9 @@ public com.google.cloud.securitycenter.v1.Folder.Builder getFoldersBuilder(int i * * *
-     * Output only. Contains a Folder message for each folder in the assets ancestry.
-     * The first folder is the deepest nested folder, and the last folder is the
-     * folder directly under the Organization.
+     * Output only. Contains a Folder message for each folder in the assets
+     * ancestry. The first folder is the deepest nested folder, and the last
+     * folder is the folder directly under the Organization.
      * 
* * @@ -2162,9 +2162,9 @@ public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(in * * *
-     * Output only. Contains a Folder message for each folder in the assets ancestry.
-     * The first folder is the deepest nested folder, and the last folder is the
-     * folder directly under the Organization.
+     * Output only. Contains a Folder message for each folder in the assets
+     * ancestry. The first folder is the deepest nested folder, and the last
+     * folder is the folder directly under the Organization.
      * 
* * @@ -2183,9 +2183,9 @@ public com.google.cloud.securitycenter.v1.FolderOrBuilder getFoldersOrBuilder(in * * *
-     * Output only. Contains a Folder message for each folder in the assets ancestry.
-     * The first folder is the deepest nested folder, and the last folder is the
-     * folder directly under the Organization.
+     * Output only. Contains a Folder message for each folder in the assets
+     * ancestry. The first folder is the deepest nested folder, and the last
+     * folder is the folder directly under the Organization.
      * 
* * @@ -2200,9 +2200,9 @@ public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder() { * * *
-     * Output only. Contains a Folder message for each folder in the assets ancestry.
-     * The first folder is the deepest nested folder, and the last folder is the
-     * folder directly under the Organization.
+     * Output only. Contains a Folder message for each folder in the assets
+     * ancestry. The first folder is the deepest nested folder, and the last
+     * folder is the folder directly under the Organization.
      * 
* * @@ -2217,9 +2217,9 @@ public com.google.cloud.securitycenter.v1.Folder.Builder addFoldersBuilder(int i * * *
-     * Output only. Contains a Folder message for each folder in the assets ancestry.
-     * The first folder is the deepest nested folder, and the last folder is the
-     * folder directly under the Organization.
+     * Output only. Contains a Folder message for each folder in the assets
+     * ancestry. The first folder is the deepest nested folder, and the last
+     * folder is the folder directly under the Organization.
      * 
* * diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceOrBuilder.java index 012396ecfae9..55785a01cc89 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceOrBuilder.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ResourceOrBuilder.java @@ -204,9 +204,9 @@ public interface ResourceOrBuilder * * *
-   * Output only. Contains a Folder message for each folder in the assets ancestry.
-   * The first folder is the deepest nested folder, and the last folder is the
-   * folder directly under the Organization.
+   * Output only. Contains a Folder message for each folder in the assets
+   * ancestry. The first folder is the deepest nested folder, and the last
+   * folder is the folder directly under the Organization.
    * 
* * @@ -218,9 +218,9 @@ public interface ResourceOrBuilder * * *
-   * Output only. Contains a Folder message for each folder in the assets ancestry.
-   * The first folder is the deepest nested folder, and the last folder is the
-   * folder directly under the Organization.
+   * Output only. Contains a Folder message for each folder in the assets
+   * ancestry. The first folder is the deepest nested folder, and the last
+   * folder is the folder directly under the Organization.
    * 
* * @@ -232,9 +232,9 @@ public interface ResourceOrBuilder * * *
-   * Output only. Contains a Folder message for each folder in the assets ancestry.
-   * The first folder is the deepest nested folder, and the last folder is the
-   * folder directly under the Organization.
+   * Output only. Contains a Folder message for each folder in the assets
+   * ancestry. The first folder is the deepest nested folder, and the last
+   * folder is the folder directly under the Organization.
    * 
* * @@ -246,9 +246,9 @@ public interface ResourceOrBuilder * * *
-   * Output only. Contains a Folder message for each folder in the assets ancestry.
-   * The first folder is the deepest nested folder, and the last folder is the
-   * folder directly under the Organization.
+   * Output only. Contains a Folder message for each folder in the assets
+   * ancestry. The first folder is the deepest nested folder, and the last
+   * folder is the folder directly under the Organization.
    * 
* * @@ -261,9 +261,9 @@ public interface ResourceOrBuilder * * *
-   * Output only. Contains a Folder message for each folder in the assets ancestry.
-   * The first folder is the deepest nested folder, and the last folder is the
-   * folder directly under the Organization.
+   * Output only. Contains a Folder message for each folder in the assets
+   * ancestry. The first folder is the deepest nested folder, and the last
+   * folder is the folder directly under the Organization.
    * 
* * diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityHealthAnalyticsCustomConfigProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityHealthAnalyticsCustomConfigProto.java new file mode 100644 index 000000000000..3c156e038fc1 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityHealthAnalyticsCustomConfigProto.java @@ -0,0 +1,136 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/security_health_analytics_custom_config.proto + +package com.google.cloud.securitycenter.v1; + +public final class SecurityHealthAnalyticsCustomConfigProto { + private SecurityHealthAnalyticsCustomConfigProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_CustomConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_CustomConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_CustomConfig_CustomOutputSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_CustomConfig_CustomOutputSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_CustomConfig_CustomOutputSpec_Property_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_CustomConfig_CustomOutputSpec_Property_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_CustomConfig_ResourceSelector_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_CustomConfig_ResourceSelector_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nLgoogle/cloud/securitycenter/v1/securit" + + "y_health_analytics_custom_config.proto\022\036" + + "google.cloud.securitycenter.v1\032\026google/t" + + "ype/expr.proto\"\221\005\n\014CustomConfig\022$\n\tpredi" + + "cate\030\001 \001(\0132\021.google.type.Expr\022T\n\rcustom_" + + "output\030\002 \001(\0132=.google.cloud.securitycent" + + "er.v1.CustomConfig.CustomOutputSpec\022X\n\021r" + + "esource_selector\030\003 \001(\0132=.google.cloud.se" + + "curitycenter.v1.CustomConfig.ResourceSel" + + "ector\022G\n\010severity\030\004 \001(\01625.google.cloud.s" + + "ecuritycenter.v1.CustomConfig.Severity\022\023" + + "\n\013description\030\005 \001(\t\022\026\n\016recommendation\030\006 " + + "\001(\t\032\265\001\n\020CustomOutputSpec\022Z\n\nproperties\030\001" + + " \003(\0132F.google.cloud.securitycenter.v1.Cu" + + "stomConfig.CustomOutputSpec.Property\032E\n\010" + + "Property\022\014\n\004name\030\001 \001(\t\022+\n\020value_expressi" + + "on\030\002 \001(\0132\021.google.type.Expr\032*\n\020ResourceS" + + "elector\022\026\n\016resource_types\030\001 \003(\t\"Q\n\010Sever" + + "ity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010CRITICA" + + "L\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LOW\020\004B\202\002\n\"c" + + "om.google.cloud.securitycenter.v1B(Secur" + + "ityHealthAnalyticsCustomConfigProtoP\001ZJc" + + "loud.google.com/go/securitycenter/apiv1/" + + "securitycenterpb;securitycenterpb\252\002\036Goog" + + "le.Cloud.SecurityCenter.V1\312\002\036Google\\Clou" + + "d\\SecurityCenter\\V1\352\002!Google::Cloud::Sec" + + "urityCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.type.ExprProto.getDescriptor(), + }); + internal_static_google_cloud_securitycenter_v1_CustomConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_CustomConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_CustomConfig_descriptor, + new java.lang.String[] { + "Predicate", + "CustomOutput", + "ResourceSelector", + "Severity", + "Description", + "Recommendation", + }); + internal_static_google_cloud_securitycenter_v1_CustomConfig_CustomOutputSpec_descriptor = + internal_static_google_cloud_securitycenter_v1_CustomConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1_CustomConfig_CustomOutputSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_CustomConfig_CustomOutputSpec_descriptor, + new java.lang.String[] { + "Properties", + }); + internal_static_google_cloud_securitycenter_v1_CustomConfig_CustomOutputSpec_Property_descriptor = + internal_static_google_cloud_securitycenter_v1_CustomConfig_CustomOutputSpec_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1_CustomConfig_CustomOutputSpec_Property_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_CustomConfig_CustomOutputSpec_Property_descriptor, + new java.lang.String[] { + "Name", "ValueExpression", + }); + internal_static_google_cloud_securitycenter_v1_CustomConfig_ResourceSelector_descriptor = + internal_static_google_cloud_securitycenter_v1_CustomConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_securitycenter_v1_CustomConfig_ResourceSelector_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_CustomConfig_ResourceSelector_descriptor, + new java.lang.String[] { + "ResourceTypes", + }); + com.google.type.ExprProto.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/SecurityHealthAnalyticsCustomModule.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityHealthAnalyticsCustomModule.java new file mode 100644 index 000000000000..b053966a5956 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityHealthAnalyticsCustomModule.java @@ -0,0 +1,2234 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/security_health_analytics_custom_module.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Represents an instance of a Security Health Analytics custom module,
+ * including its full module name, display name, enablement state, and last
+ * updated time. You can create a custom module at the organization, folder, or
+ * project level. Custom modules that you create at the organization or folder
+ * level are inherited by the child folders and projects.
+ * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule} + */ +public final class SecurityHealthAnalyticsCustomModule + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule) + SecurityHealthAnalyticsCustomModuleOrBuilder { + private static final long serialVersionUID = 0L; + // Use SecurityHealthAnalyticsCustomModule.newBuilder() to construct. + private SecurityHealthAnalyticsCustomModule( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SecurityHealthAnalyticsCustomModule() { + name_ = ""; + displayName_ = ""; + enablementState_ = 0; + lastEditor_ = ""; + ancestorModule_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SecurityHealthAnalyticsCustomModule(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleProto + .internal_static_google_cloud_securitycenter_v1_SecurityHealthAnalyticsCustomModule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleProto + .internal_static_google_cloud_securitycenter_v1_SecurityHealthAnalyticsCustomModule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.class, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder.class); + } + + /** + * + * + *
+   * Possible enablement states of a custom module.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState} + */ + public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified enablement state.
+     * 
+ * + * ENABLEMENT_STATE_UNSPECIFIED = 0; + */ + ENABLEMENT_STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The module is enabled at the given CRM resource.
+     * 
+ * + * ENABLED = 1; + */ + ENABLED(1), + /** + * + * + *
+     * The module is disabled at the given CRM resource.
+     * 
+ * + * DISABLED = 2; + */ + DISABLED(2), + /** + * + * + *
+     * State is inherited from an ancestor module. The module will either
+     * be effectively ENABLED or DISABLED based on its closest non-inherited
+     * ancestor module in the CRM hierarchy.
+     * 
+ * + * INHERITED = 3; + */ + INHERITED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified enablement state.
+     * 
+ * + * ENABLEMENT_STATE_UNSPECIFIED = 0; + */ + public static final int ENABLEMENT_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The module is enabled at the given CRM resource.
+     * 
+ * + * ENABLED = 1; + */ + public static final int ENABLED_VALUE = 1; + /** + * + * + *
+     * The module is disabled at the given CRM resource.
+     * 
+ * + * DISABLED = 2; + */ + public static final int DISABLED_VALUE = 2; + /** + * + * + *
+     * State is inherited from an ancestor module. The module will either
+     * be effectively ENABLED or DISABLED based on its closest non-inherited
+     * ancestor module in the CRM hierarchy.
+     * 
+ * + * INHERITED = 3; + */ + public static final int INHERITED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EnablementState valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static EnablementState forNumber(int value) { + switch (value) { + case 0: + return ENABLEMENT_STATE_UNSPECIFIED; + case 1: + return ENABLED; + case 2: + return DISABLED; + case 3: + return INHERITED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EnablementState findValueByNumber(int number) { + return EnablementState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final EnablementState[] VALUES = values(); + + public static EnablementState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private EnablementState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Immutable. The resource name of the custom module.
+   * Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+   * or
+   * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+   * or
+   * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+   * The id {customModule} is server-generated and is not user settable.
+   * It will be a numeric id containing 1-20 digits.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. The resource name of the custom module.
+   * Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+   * or
+   * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+   * or
+   * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+   * The id {customModule} is server-generated and is not user settable.
+   * It will be a numeric id containing 1-20 digits.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * The display name of the Security Health Analytics custom module. This
+   * display name becomes the finding category for all findings that are
+   * returned by this custom module. The display name must be between 1 and
+   * 128 characters, start with a lowercase letter, and contain alphanumeric
+   * characters or underscores only.
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * The display name of the Security Health Analytics custom module. This
+   * display name becomes the finding category for all findings that are
+   * returned by this custom module. The display name must be between 1 and
+   * 128 characters, start with a lowercase letter, and contain alphanumeric
+   * characters or underscores only.
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLEMENT_STATE_FIELD_NUMBER = 4; + private int enablementState_ = 0; + /** + * + * + *
+   * The enablement state of the custom module.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 4; + * + * + * @return The enum numeric value on the wire for enablementState. + */ + @java.lang.Override + public int getEnablementStateValue() { + return enablementState_; + } + /** + * + * + *
+   * The enablement state of the custom module.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 4; + * + * + * @return The enablementState. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState + getEnablementState() { + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState result = + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState + .forNumber(enablementState_); + return result == null + ? com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState + .UNRECOGNIZED + : result; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. The time at which the custom module was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. The time at which the custom module was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. The time at which the custom module was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LAST_EDITOR_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object lastEditor_ = ""; + /** + * + * + *
+   * Output only. The editor that last updated the custom module.
+   * 
+ * + * string last_editor = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The lastEditor. + */ + @java.lang.Override + public java.lang.String getLastEditor() { + java.lang.Object ref = lastEditor_; + 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(); + lastEditor_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The editor that last updated the custom module.
+   * 
+ * + * string last_editor = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for lastEditor. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLastEditorBytes() { + java.lang.Object ref = lastEditor_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lastEditor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANCESTOR_MODULE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object ancestorModule_ = ""; + /** + * + * + *
+   * Output only. If empty, indicates that the custom module was created in the
+   * organization, folder, or project in which you are viewing the custom
+   * module. Otherwise, `ancestor_module` specifies the organization or folder
+   * from which the custom module is inherited.
+   * 
+ * + * + * string ancestor_module = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The ancestorModule. + */ + @java.lang.Override + public java.lang.String getAncestorModule() { + java.lang.Object ref = ancestorModule_; + 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(); + ancestorModule_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. If empty, indicates that the custom module was created in the
+   * organization, folder, or project in which you are viewing the custom
+   * module. Otherwise, `ancestor_module` specifies the organization or folder
+   * from which the custom module is inherited.
+   * 
+ * + * + * string ancestor_module = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for ancestorModule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAncestorModuleBytes() { + java.lang.Object ref = ancestorModule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ancestorModule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_CONFIG_FIELD_NUMBER = 8; + private com.google.cloud.securitycenter.v1.CustomConfig customConfig_; + /** + * + * + *
+   * The user specified custom configuration for the module.
+   * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 8; + * + * @return Whether the customConfig field is set. + */ + @java.lang.Override + public boolean hasCustomConfig() { + return customConfig_ != null; + } + /** + * + * + *
+   * The user specified custom configuration for the module.
+   * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 8; + * + * @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_; + } + /** + * + * + *
+   * The user specified custom configuration for the module.
+   * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 8; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.CustomConfigOrBuilder getCustomConfigOrBuilder() { + return customConfig_ == null + ? com.google.cloud.securitycenter.v1.CustomConfig.getDefaultInstance() + : customConfig_; + } + + 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (enablementState_ + != com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState + .ENABLEMENT_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, enablementState_); + } + if (updateTime_ != null) { + output.writeMessage(5, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastEditor_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, lastEditor_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ancestorModule_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, ancestorModule_); + } + if (customConfig_ != null) { + output.writeMessage(8, getCustomConfig()); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (enablementState_ + != com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState + .ENABLEMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, enablementState_); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastEditor_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, lastEditor_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ancestorModule_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, ancestorModule_); + } + if (customConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCustomConfig()); + } + 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.SecurityHealthAnalyticsCustomModule)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule other = + (com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (enablementState_ != other.enablementState_) return false; + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getLastEditor().equals(other.getLastEditor())) return false; + if (!getAncestorModule().equals(other.getAncestorModule())) return false; + if (hasCustomConfig() != other.hasCustomConfig()) return false; + if (hasCustomConfig()) { + if (!getCustomConfig().equals(other.getCustomConfig())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + ENABLEMENT_STATE_FIELD_NUMBER; + hash = (53 * hash) + enablementState_; + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + LAST_EDITOR_FIELD_NUMBER; + hash = (53 * hash) + getLastEditor().hashCode(); + hash = (37 * hash) + ANCESTOR_MODULE_FIELD_NUMBER; + hash = (53 * hash) + getAncestorModule().hashCode(); + if (hasCustomConfig()) { + hash = (37 * hash) + CUSTOM_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCustomConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule 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.SecurityHealthAnalyticsCustomModule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule 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.SecurityHealthAnalyticsCustomModule parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule 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.SecurityHealthAnalyticsCustomModule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule 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.SecurityHealthAnalyticsCustomModule + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + 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.SecurityHealthAnalyticsCustomModule 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.SecurityHealthAnalyticsCustomModule 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.SecurityHealthAnalyticsCustomModule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents an instance of a Security Health Analytics custom module,
+   * including its full module name, display name, enablement state, and last
+   * updated time. You can create a custom module at the organization, folder, or
+   * project level. Custom modules that you create at the organization or folder
+   * level are inherited by the child folders and projects.
+   * 
+ * + * Protobuf type {@code google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule) + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleProto + .internal_static_google_cloud_securitycenter_v1_SecurityHealthAnalyticsCustomModule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleProto + .internal_static_google_cloud_securitycenter_v1_SecurityHealthAnalyticsCustomModule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.class, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder.class); + } + + // Construct using + // com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + enablementState_ = 0; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + lastEditor_ = ""; + ancestorModule_ = ""; + customConfig_ = null; + if (customConfigBuilder_ != null) { + customConfigBuilder_.dispose(); + customConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleProto + .internal_static_google_cloud_securitycenter_v1_SecurityHealthAnalyticsCustomModule_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule build() { + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule buildPartial() { + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule result = + new com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enablementState_ = enablementState_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.lastEditor_ = lastEditor_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.ancestorModule_ = ancestorModule_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.customConfig_ = + customConfigBuilder_ == null ? customConfig_ : customConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule) { + return mergeFrom( + (com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule other) { + if (other + == com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.enablementState_ != 0) { + setEnablementStateValue(other.getEnablementStateValue()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getLastEditor().isEmpty()) { + lastEditor_ = other.lastEditor_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getAncestorModule().isEmpty()) { + ancestorModule_ = other.ancestorModule_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasCustomConfig()) { + mergeCustomConfig(other.getCustomConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 32: + { + enablementState_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 42: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + lastEditor_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: + { + ancestorModule_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + input.readMessage(getCustomConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Immutable. The resource name of the custom module.
+     * Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * or
+     * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * or
+     * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+     * The id {customModule} is server-generated and is not user settable.
+     * It will be a numeric id containing 1-20 digits.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. The resource name of the custom module.
+     * Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * or
+     * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * or
+     * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+     * The id {customModule} is server-generated and is not user settable.
+     * It will be a numeric id containing 1-20 digits.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. The resource name of the custom module.
+     * Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * or
+     * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * or
+     * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+     * The id {customModule} is server-generated and is not user settable.
+     * It will be a numeric id containing 1-20 digits.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The resource name of the custom module.
+     * Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * or
+     * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * or
+     * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+     * The id {customModule} is server-generated and is not user settable.
+     * It will be a numeric id containing 1-20 digits.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The resource name of the custom module.
+     * Its format is
+     * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * or
+     * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+     * or
+     * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+     * The id {customModule} is server-generated and is not user settable.
+     * It will be a numeric id containing 1-20 digits.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * The display name of the Security Health Analytics custom module. This
+     * display name becomes the finding category for all findings that are
+     * returned by this custom module. The display name must be between 1 and
+     * 128 characters, start with a lowercase letter, and contain alphanumeric
+     * characters or underscores only.
+     * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The display name of the Security Health Analytics custom module. This
+     * display name becomes the finding category for all findings that are
+     * returned by this custom module. The display name must be between 1 and
+     * 128 characters, start with a lowercase letter, and contain alphanumeric
+     * characters or underscores only.
+     * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The display name of the Security Health Analytics custom module. This
+     * display name becomes the finding category for all findings that are
+     * returned by this custom module. The display name must be between 1 and
+     * 128 characters, start with a lowercase letter, and contain alphanumeric
+     * characters or underscores only.
+     * 
+ * + * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The display name of the Security Health Analytics custom module. This
+     * display name becomes the finding category for all findings that are
+     * returned by this custom module. The display name must be between 1 and
+     * 128 characters, start with a lowercase letter, and contain alphanumeric
+     * characters or underscores only.
+     * 
+ * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The display name of the Security Health Analytics custom module. This
+     * display name becomes the finding category for all findings that are
+     * returned by this custom module. The display name must be between 1 and
+     * 128 characters, start with a lowercase letter, and contain alphanumeric
+     * characters or underscores only.
+     * 
+ * + * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int enablementState_ = 0; + /** + * + * + *
+     * The enablement state of the custom module.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 4; + * + * + * @return The enum numeric value on the wire for enablementState. + */ + @java.lang.Override + public int getEnablementStateValue() { + return enablementState_; + } + /** + * + * + *
+     * The enablement state of the custom module.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 4; + * + * + * @param value The enum numeric value on the wire for enablementState to set. + * @return This builder for chaining. + */ + public Builder setEnablementStateValue(int value) { + enablementState_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The enablement state of the custom module.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 4; + * + * + * @return The enablementState. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState + getEnablementState() { + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState + result = + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState + .forNumber(enablementState_); + return result == null + ? com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The enablement state of the custom module.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 4; + * + * + * @param value The enablementState to set. + * @return This builder for chaining. + */ + public Builder setEnablementState( + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + enablementState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The enablement state of the custom module.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 4; + * + * + * @return This builder for chaining. + */ + public Builder clearEnablementState() { + bitField0_ = (bitField0_ & ~0x00000004); + enablementState_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. The time at which the custom module was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Output only. The time at which the custom module was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The time at which the custom module was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time at which the custom module was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time at which the custom module was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time at which the custom module was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time at which the custom module was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time at which the custom module was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. The time at which the custom module was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object lastEditor_ = ""; + /** + * + * + *
+     * Output only. The editor that last updated the custom module.
+     * 
+ * + * string last_editor = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The lastEditor. + */ + public java.lang.String getLastEditor() { + java.lang.Object ref = lastEditor_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastEditor_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The editor that last updated the custom module.
+     * 
+ * + * string last_editor = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for lastEditor. + */ + public com.google.protobuf.ByteString getLastEditorBytes() { + java.lang.Object ref = lastEditor_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lastEditor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The editor that last updated the custom module.
+     * 
+ * + * string last_editor = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The lastEditor to set. + * @return This builder for chaining. + */ + public Builder setLastEditor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + lastEditor_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The editor that last updated the custom module.
+     * 
+ * + * string last_editor = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLastEditor() { + lastEditor_ = getDefaultInstance().getLastEditor(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The editor that last updated the custom module.
+     * 
+ * + * string last_editor = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for lastEditor to set. + * @return This builder for chaining. + */ + public Builder setLastEditorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lastEditor_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object ancestorModule_ = ""; + /** + * + * + *
+     * Output only. If empty, indicates that the custom module was created in the
+     * organization, folder, or project in which you are viewing the custom
+     * module. Otherwise, `ancestor_module` specifies the organization or folder
+     * from which the custom module is inherited.
+     * 
+ * + * + * string ancestor_module = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The ancestorModule. + */ + public java.lang.String getAncestorModule() { + java.lang.Object ref = ancestorModule_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ancestorModule_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. If empty, indicates that the custom module was created in the
+     * organization, folder, or project in which you are viewing the custom
+     * module. Otherwise, `ancestor_module` specifies the organization or folder
+     * from which the custom module is inherited.
+     * 
+ * + * + * string ancestor_module = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for ancestorModule. + */ + public com.google.protobuf.ByteString getAncestorModuleBytes() { + java.lang.Object ref = ancestorModule_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ancestorModule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. If empty, indicates that the custom module was created in the
+     * organization, folder, or project in which you are viewing the custom
+     * module. Otherwise, `ancestor_module` specifies the organization or folder
+     * from which the custom module is inherited.
+     * 
+ * + * + * string ancestor_module = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The ancestorModule to set. + * @return This builder for chaining. + */ + public Builder setAncestorModule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ancestorModule_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If empty, indicates that the custom module was created in the
+     * organization, folder, or project in which you are viewing the custom
+     * module. Otherwise, `ancestor_module` specifies the organization or folder
+     * from which the custom module is inherited.
+     * 
+ * + * + * string ancestor_module = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAncestorModule() { + ancestorModule_ = getDefaultInstance().getAncestorModule(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If empty, indicates that the custom module was created in the
+     * organization, folder, or project in which you are viewing the custom
+     * module. Otherwise, `ancestor_module` specifies the organization or folder
+     * from which the custom module is inherited.
+     * 
+ * + * + * string ancestor_module = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for ancestorModule to set. + * @return This builder for chaining. + */ + public Builder setAncestorModuleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ancestorModule_ = value; + bitField0_ |= 0x00000020; + 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_; + /** + * + * + *
+     * The user specified custom configuration for the module.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 8; + * + * @return Whether the customConfig field is set. + */ + public boolean hasCustomConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+     * The user specified custom configuration for the module.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 8; + * + * @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(); + } + } + /** + * + * + *
+     * The user specified custom configuration for the module.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 8; + */ + 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_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * The user specified custom configuration for the module.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 8; + */ + public Builder setCustomConfig( + com.google.cloud.securitycenter.v1.CustomConfig.Builder builderForValue) { + if (customConfigBuilder_ == null) { + customConfig_ = builderForValue.build(); + } else { + customConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * The user specified custom configuration for the module.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 8; + */ + public Builder mergeCustomConfig(com.google.cloud.securitycenter.v1.CustomConfig value) { + if (customConfigBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && customConfig_ != null + && customConfig_ + != com.google.cloud.securitycenter.v1.CustomConfig.getDefaultInstance()) { + getCustomConfigBuilder().mergeFrom(value); + } else { + customConfig_ = value; + } + } else { + customConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * The user specified custom configuration for the module.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 8; + */ + public Builder clearCustomConfig() { + bitField0_ = (bitField0_ & ~0x00000040); + customConfig_ = null; + if (customConfigBuilder_ != null) { + customConfigBuilder_.dispose(); + customConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The user specified custom configuration for the module.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 8; + */ + public com.google.cloud.securitycenter.v1.CustomConfig.Builder getCustomConfigBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getCustomConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The user specified custom configuration for the module.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 8; + */ + 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_; + } + } + /** + * + * + *
+     * The user specified custom configuration for the module.
+     * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 8; + */ + 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_; + } + + @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.SecurityHealthAnalyticsCustomModule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule) + private static final com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule(); + } + + public static com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityHealthAnalyticsCustomModule 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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityHealthAnalyticsCustomModuleName.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityHealthAnalyticsCustomModuleName.java new file mode 100644 index 000000000000..e65ed1f70dc5 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityHealthAnalyticsCustomModuleName.java @@ -0,0 +1,401 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.securitycenter.v1; + +import com.google.api.core.BetaApi; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class SecurityHealthAnalyticsCustomModuleName implements ResourceName { + private static final PathTemplate ORGANIZATION_CUSTOM_MODULE = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{custom_module}"); + private static final PathTemplate FOLDER_CUSTOM_MODULE = + PathTemplate.createWithoutUrlEncoding( + "folders/{folder}/securityHealthAnalyticsSettings/customModules/{custom_module}"); + private static final PathTemplate PROJECT_CUSTOM_MODULE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/securityHealthAnalyticsSettings/customModules/{custom_module}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String organization; + private final String customModule; + private final String folder; + private final String project; + + @Deprecated + protected SecurityHealthAnalyticsCustomModuleName() { + organization = null; + customModule = null; + folder = null; + project = null; + } + + private SecurityHealthAnalyticsCustomModuleName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + customModule = Preconditions.checkNotNull(builder.getCustomModule()); + folder = null; + project = null; + pathTemplate = ORGANIZATION_CUSTOM_MODULE; + } + + private SecurityHealthAnalyticsCustomModuleName(FolderCustomModuleBuilder builder) { + folder = Preconditions.checkNotNull(builder.getFolder()); + customModule = Preconditions.checkNotNull(builder.getCustomModule()); + organization = null; + project = null; + pathTemplate = FOLDER_CUSTOM_MODULE; + } + + private SecurityHealthAnalyticsCustomModuleName(ProjectCustomModuleBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + customModule = Preconditions.checkNotNull(builder.getCustomModule()); + organization = null; + folder = null; + pathTemplate = PROJECT_CUSTOM_MODULE; + } + + public String getOrganization() { + return organization; + } + + public String getCustomModule() { + return customModule; + } + + public String getFolder() { + return folder; + } + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static Builder newOrganizationCustomModuleBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static FolderCustomModuleBuilder newFolderCustomModuleBuilder() { + return new FolderCustomModuleBuilder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static ProjectCustomModuleBuilder newProjectCustomModuleBuilder() { + return new ProjectCustomModuleBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SecurityHealthAnalyticsCustomModuleName of( + String organization, String customModule) { + return newBuilder().setOrganization(organization).setCustomModule(customModule).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static SecurityHealthAnalyticsCustomModuleName ofOrganizationCustomModuleName( + String organization, String customModule) { + return newBuilder().setOrganization(organization).setCustomModule(customModule).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static SecurityHealthAnalyticsCustomModuleName ofFolderCustomModuleName( + String folder, String customModule) { + return newFolderCustomModuleBuilder().setFolder(folder).setCustomModule(customModule).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static SecurityHealthAnalyticsCustomModuleName ofProjectCustomModuleName( + String project, String customModule) { + return newProjectCustomModuleBuilder() + .setProject(project) + .setCustomModule(customModule) + .build(); + } + + public static String format(String organization, String customModule) { + return newBuilder() + .setOrganization(organization) + .setCustomModule(customModule) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatOrganizationCustomModuleName( + String organization, String customModule) { + return newBuilder() + .setOrganization(organization) + .setCustomModule(customModule) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatFolderCustomModuleName(String folder, String customModule) { + return newFolderCustomModuleBuilder() + .setFolder(folder) + .setCustomModule(customModule) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectCustomModuleName(String project, String customModule) { + return newProjectCustomModuleBuilder() + .setProject(project) + .setCustomModule(customModule) + .build() + .toString(); + } + + public static SecurityHealthAnalyticsCustomModuleName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (ORGANIZATION_CUSTOM_MODULE.matches(formattedString)) { + Map matchMap = ORGANIZATION_CUSTOM_MODULE.match(formattedString); + return ofOrganizationCustomModuleName( + matchMap.get("organization"), matchMap.get("custom_module")); + } else if (FOLDER_CUSTOM_MODULE.matches(formattedString)) { + Map matchMap = FOLDER_CUSTOM_MODULE.match(formattedString); + return ofFolderCustomModuleName(matchMap.get("folder"), matchMap.get("custom_module")); + } else if (PROJECT_CUSTOM_MODULE.matches(formattedString)) { + Map matchMap = PROJECT_CUSTOM_MODULE.match(formattedString); + return ofProjectCustomModuleName(matchMap.get("project"), matchMap.get("custom_module")); + } + throw new ValidationException( + "SecurityHealthAnalyticsCustomModuleName.parse: formattedString not in valid format"); + } + + public static List parseList( + List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (SecurityHealthAnalyticsCustomModuleName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return ORGANIZATION_CUSTOM_MODULE.matches(formattedString) + || FOLDER_CUSTOM_MODULE.matches(formattedString) + || PROJECT_CUSTOM_MODULE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + if (customModule != null) { + fieldMapBuilder.put("custom_module", customModule); + } + if (folder != null) { + fieldMapBuilder.put("folder", folder); + } + if (project != null) { + fieldMapBuilder.put("project", project); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + SecurityHealthAnalyticsCustomModuleName that = ((SecurityHealthAnalyticsCustomModuleName) o); + return Objects.equals(this.organization, that.organization) + && Objects.equals(this.customModule, that.customModule) + && Objects.equals(this.folder, that.folder) + && Objects.equals(this.project, that.project); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(organization); + h *= 1000003; + h ^= Objects.hashCode(customModule); + h *= 1000003; + h ^= Objects.hashCode(folder); + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** + * Builder for + * organizations/{organization}/securityHealthAnalyticsSettings/customModules/{custom_module}. + */ + public static class Builder { + private String organization; + private String customModule; + + protected Builder() {} + + public String getOrganization() { + return organization; + } + + public String getCustomModule() { + return customModule; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public Builder setCustomModule(String customModule) { + this.customModule = customModule; + return this; + } + + private Builder( + SecurityHealthAnalyticsCustomModuleName securityHealthAnalyticsCustomModuleName) { + Preconditions.checkArgument( + Objects.equals( + securityHealthAnalyticsCustomModuleName.pathTemplate, ORGANIZATION_CUSTOM_MODULE), + "toBuilder is only supported when SecurityHealthAnalyticsCustomModuleName has the pattern of organizations/{organization}/securityHealthAnalyticsSettings/customModules/{custom_module}"); + this.organization = securityHealthAnalyticsCustomModuleName.organization; + this.customModule = securityHealthAnalyticsCustomModuleName.customModule; + } + + public SecurityHealthAnalyticsCustomModuleName build() { + return new SecurityHealthAnalyticsCustomModuleName(this); + } + } + + /** Builder for folders/{folder}/securityHealthAnalyticsSettings/customModules/{custom_module}. */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class FolderCustomModuleBuilder { + private String folder; + private String customModule; + + protected FolderCustomModuleBuilder() {} + + public String getFolder() { + return folder; + } + + public String getCustomModule() { + return customModule; + } + + public FolderCustomModuleBuilder setFolder(String folder) { + this.folder = folder; + return this; + } + + public FolderCustomModuleBuilder setCustomModule(String customModule) { + this.customModule = customModule; + return this; + } + + public SecurityHealthAnalyticsCustomModuleName build() { + return new SecurityHealthAnalyticsCustomModuleName(this); + } + } + + /** + * Builder for projects/{project}/securityHealthAnalyticsSettings/customModules/{custom_module}. + */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class ProjectCustomModuleBuilder { + private String project; + private String customModule; + + protected ProjectCustomModuleBuilder() {} + + public String getProject() { + return project; + } + + public String getCustomModule() { + return customModule; + } + + public ProjectCustomModuleBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectCustomModuleBuilder setCustomModule(String customModule) { + this.customModule = customModule; + return this; + } + + public SecurityHealthAnalyticsCustomModuleName build() { + return new SecurityHealthAnalyticsCustomModuleName(this); + } + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityHealthAnalyticsCustomModuleOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityHealthAnalyticsCustomModuleOrBuilder.java new file mode 100644 index 000000000000..ce10c0e4c205 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityHealthAnalyticsCustomModuleOrBuilder.java @@ -0,0 +1,262 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/security_health_analytics_custom_module.proto + +package com.google.cloud.securitycenter.v1; + +public interface SecurityHealthAnalyticsCustomModuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Immutable. The resource name of the custom module.
+   * Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+   * or
+   * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+   * or
+   * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+   * The id {customModule} is server-generated and is not user settable.
+   * It will be a numeric id containing 1-20 digits.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Immutable. The resource name of the custom module.
+   * Its format is
+   * "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}",
+   * or
+   * "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}",
+   * or
+   * "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}"
+   * The id {customModule} is server-generated and is not user settable.
+   * It will be a numeric id containing 1-20 digits.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The display name of the Security Health Analytics custom module. This
+   * display name becomes the finding category for all findings that are
+   * returned by this custom module. The display name must be between 1 and
+   * 128 characters, start with a lowercase letter, and contain alphanumeric
+   * characters or underscores only.
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * The display name of the Security Health Analytics custom module. This
+   * display name becomes the finding category for all findings that are
+   * returned by this custom module. The display name must be between 1 and
+   * 128 characters, start with a lowercase letter, and contain alphanumeric
+   * characters or underscores only.
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * The enablement state of the custom module.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 4; + * + * + * @return The enum numeric value on the wire for enablementState. + */ + int getEnablementStateValue(); + /** + * + * + *
+   * The enablement state of the custom module.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 4; + * + * + * @return The enablementState. + */ + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.EnablementState + getEnablementState(); + + /** + * + * + *
+   * Output only. The time at which the custom module was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. The time at which the custom module was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. The time at which the custom module was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The editor that last updated the custom module.
+   * 
+ * + * string last_editor = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The lastEditor. + */ + java.lang.String getLastEditor(); + /** + * + * + *
+   * Output only. The editor that last updated the custom module.
+   * 
+ * + * string last_editor = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for lastEditor. + */ + com.google.protobuf.ByteString getLastEditorBytes(); + + /** + * + * + *
+   * Output only. If empty, indicates that the custom module was created in the
+   * organization, folder, or project in which you are viewing the custom
+   * module. Otherwise, `ancestor_module` specifies the organization or folder
+   * from which the custom module is inherited.
+   * 
+ * + * + * string ancestor_module = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The ancestorModule. + */ + java.lang.String getAncestorModule(); + /** + * + * + *
+   * Output only. If empty, indicates that the custom module was created in the
+   * organization, folder, or project in which you are viewing the custom
+   * module. Otherwise, `ancestor_module` specifies the organization or folder
+   * from which the custom module is inherited.
+   * 
+ * + * + * string ancestor_module = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for ancestorModule. + */ + com.google.protobuf.ByteString getAncestorModuleBytes(); + + /** + * + * + *
+   * The user specified custom configuration for the module.
+   * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 8; + * + * @return Whether the customConfig field is set. + */ + boolean hasCustomConfig(); + /** + * + * + *
+   * The user specified custom configuration for the module.
+   * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 8; + * + * @return The customConfig. + */ + com.google.cloud.securitycenter.v1.CustomConfig getCustomConfig(); + /** + * + * + *
+   * The user specified custom configuration for the module.
+   * 
+ * + * .google.cloud.securitycenter.v1.CustomConfig custom_config = 8; + */ + com.google.cloud.securitycenter.v1.CustomConfigOrBuilder getCustomConfigOrBuilder(); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityHealthAnalyticsCustomModuleProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityHealthAnalyticsCustomModuleProto.java new file mode 100644 index 000000000000..e6334d468faa --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityHealthAnalyticsCustomModuleProto.java @@ -0,0 +1,125 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/security_health_analytics_custom_module.proto + +package com.google.cloud.securitycenter.v1; + +public final class SecurityHealthAnalyticsCustomModuleProto { + private SecurityHealthAnalyticsCustomModuleProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_SecurityHealthAnalyticsCustomModule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_SecurityHealthAnalyticsCustomModule_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nLgoogle/cloud/securitycenter/v1/securit" + + "y_health_analytics_custom_module.proto\022\036" + + "google.cloud.securitycenter.v1\032\037google/a" + + "pi/field_behavior.proto\032\031google/api/reso" + + "urce.proto\032Lgoogle/cloud/securitycenter/" + + "v1/security_health_analytics_custom_conf" + + "ig.proto\032\037google/protobuf/timestamp.prot" + + "o\"\335\006\n#SecurityHealthAnalyticsCustomModul" + + "e\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\024\n\014display_name\030\002 \001" + + "(\t\022m\n\020enablement_state\030\004 \001(\0162S.google.cl" + + "oud.securitycenter.v1.SecurityHealthAnal" + + "yticsCustomModule.EnablementState\0224\n\013upd" + + "ate_time\030\005 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022\030\n\013last_editor\030\006 \001(\tB\003\340A\003\022b\n\017anc" + + "estor_module\030\007 \001(\tBI\340A\003\372AC\nAsecuritycent" + + "er.googleapis.com/SecurityHealthAnalytic" + + "sCustomModule\022C\n\rcustom_config\030\010 \001(\0132,.g" + + "oogle.cloud.securitycenter.v1.CustomConf" + + "ig\"]\n\017EnablementState\022 \n\034ENABLEMENT_STAT" + + "E_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED" + + "\020\002\022\r\n\tINHERITED\020\003:\305\002\352A\301\002\nAsecuritycenter" + + ".googleapis.com/SecurityHealthAnalyticsC" + + "ustomModule\022Zorganizations/{organization" + + "}/securityHealthAnalyticsSettings/custom" + + "Modules/{custom_module}\022Nfolders/{folder" + + "}/securityHealthAnalyticsSettings/custom" + + "Modules/{custom_module}\022Pprojects/{proje" + + "ct}/securityHealthAnalyticsSettings/cust" + + "omModules/{custom_module}B\351\003\n\"com.google" + + ".cloud.securitycenter.v1B(SecurityHealth" + + "AnalyticsCustomModuleProtoP\001ZJcloud.goog" + + "le.com/go/securitycenter/apiv1/securityc" + + "enterpb;securitycenterpb\252\002\036Google.Cloud." + + "SecurityCenter.V1\312\002\036Google\\Cloud\\Securit" + + "yCenter\\V1\352\002!Google::Cloud::SecurityCent" + + "er::V1\352A\343\001\n=securitycenter.googleapis.co" + + "m/SecurityHealthAnalyticsSettings\022 fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String organization; + private final String folder; + private final String project; + + @Deprecated + protected SecurityHealthAnalyticsSettingsName() { + organization = null; + folder = null; + project = null; + } + + private SecurityHealthAnalyticsSettingsName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + folder = null; + project = null; + pathTemplate = ORGANIZATION; + } + + private SecurityHealthAnalyticsSettingsName(FolderBuilder builder) { + folder = Preconditions.checkNotNull(builder.getFolder()); + organization = null; + project = null; + pathTemplate = FOLDER; + } + + private SecurityHealthAnalyticsSettingsName(ProjectBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + organization = null; + folder = null; + pathTemplate = PROJECT; + } + + public String getOrganization() { + return organization; + } + + public String getFolder() { + return folder; + } + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static Builder newOrganizationBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static FolderBuilder newFolderBuilder() { + return new FolderBuilder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static ProjectBuilder newProjectBuilder() { + return new ProjectBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SecurityHealthAnalyticsSettingsName of(String organization) { + return newBuilder().setOrganization(organization).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static SecurityHealthAnalyticsSettingsName ofOrganizationName(String organization) { + return newBuilder().setOrganization(organization).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static SecurityHealthAnalyticsSettingsName ofFolderName(String folder) { + return newFolderBuilder().setFolder(folder).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static SecurityHealthAnalyticsSettingsName ofProjectName(String project) { + return newProjectBuilder().setProject(project).build(); + } + + public static String format(String organization) { + return newBuilder().setOrganization(organization).build().toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatOrganizationName(String organization) { + return newBuilder().setOrganization(organization).build().toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatFolderName(String folder) { + return newFolderBuilder().setFolder(folder).build().toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectName(String project) { + return newProjectBuilder().setProject(project).build().toString(); + } + + public static SecurityHealthAnalyticsSettingsName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (ORGANIZATION.matches(formattedString)) { + Map matchMap = ORGANIZATION.match(formattedString); + return ofOrganizationName(matchMap.get("organization")); + } else if (FOLDER.matches(formattedString)) { + Map matchMap = FOLDER.match(formattedString); + return ofFolderName(matchMap.get("folder")); + } else if (PROJECT.matches(formattedString)) { + Map matchMap = PROJECT.match(formattedString); + return ofProjectName(matchMap.get("project")); + } + throw new ValidationException( + "SecurityHealthAnalyticsSettingsName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (SecurityHealthAnalyticsSettingsName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return ORGANIZATION.matches(formattedString) + || FOLDER.matches(formattedString) + || PROJECT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + if (folder != null) { + fieldMapBuilder.put("folder", folder); + } + if (project != null) { + fieldMapBuilder.put("project", project); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + SecurityHealthAnalyticsSettingsName that = ((SecurityHealthAnalyticsSettingsName) o); + return Objects.equals(this.organization, that.organization) + && Objects.equals(this.folder, that.folder) + && Objects.equals(this.project, that.project); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(organization); + h *= 1000003; + h ^= Objects.hashCode(folder); + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** Builder for organizations/{organization}/securityHealthAnalyticsSettings. */ + public static class Builder { + private String organization; + + protected Builder() {} + + public String getOrganization() { + return organization; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + private Builder(SecurityHealthAnalyticsSettingsName securityHealthAnalyticsSettingsName) { + Preconditions.checkArgument( + Objects.equals(securityHealthAnalyticsSettingsName.pathTemplate, ORGANIZATION), + "toBuilder is only supported when SecurityHealthAnalyticsSettingsName has the pattern of organizations/{organization}/securityHealthAnalyticsSettings"); + this.organization = securityHealthAnalyticsSettingsName.organization; + } + + public SecurityHealthAnalyticsSettingsName build() { + return new SecurityHealthAnalyticsSettingsName(this); + } + } + + /** Builder for folders/{folder}/securityHealthAnalyticsSettings. */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class FolderBuilder { + private String folder; + + protected FolderBuilder() {} + + public String getFolder() { + return folder; + } + + public FolderBuilder setFolder(String folder) { + this.folder = folder; + return this; + } + + public SecurityHealthAnalyticsSettingsName build() { + return new SecurityHealthAnalyticsSettingsName(this); + } + } + + /** Builder for projects/{project}/securityHealthAnalyticsSettings. */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class ProjectBuilder { + private String project; + + protected ProjectBuilder() {} + + public String getProject() { + return project; + } + + public ProjectBuilder setProject(String project) { + this.project = project; + return this; + } + + public SecurityHealthAnalyticsSettingsName build() { + return new SecurityHealthAnalyticsSettingsName(this); + } + } +} 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 cf9dd1a3d396..647095d30b39 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 @@ -47,6 +47,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_securitycenter_v1_CreateNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -59,6 +63,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -75,6 +83,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GetSecurityHealthAnalyticsCustomModuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GetSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -103,6 +119,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_securitycenter_v1_GroupResult_PropertiesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -119,6 +143,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListSecurityHealthAnalyticsCustomModulesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ListSecurityHealthAnalyticsCustomModulesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ListSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -187,6 +227,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -226,514 +270,678 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n;google/cloud/securitycenter/v1/securit" + "ycenter_service.proto\022\036google.cloud.secu" - + "ritycenter.v1\032Agoogle/cloud/securitycent" - + "er/v1/run_asset_discovery_response.proto" - + "\032\034google/api/annotations.proto\032\027google/a" - + "pi/client.proto\032\037google/api/field_behavi" - + "or.proto\032\031google/api/resource.proto\032*goo" - + "gle/cloud/securitycenter/v1/asset.proto\032" - + "4google/cloud/securitycenter/v1/bigquery" - + "_export.proto\0324google/cloud/securitycent" - + "er/v1/external_system.proto\032,google/clou" - + "d/securitycenter/v1/finding.proto\032+googl" - + "e/cloud/securitycenter/v1/folder.proto\0320" - + "google/cloud/securitycenter/v1/mute_conf" - + "ig.proto\0328google/cloud/securitycenter/v1" - + "/notification_config.proto\032:google/cloud" - + "/securitycenter/v1/organization_settings" - + ".proto\0323google/cloud/securitycenter/v1/s" - + "ecurity_marks.proto\032+google/cloud/securi" - + "tycenter/v1/source.proto\032\036google/iam/v1/" - + "iam_policy.proto\032\032google/iam/v1/policy.p" - + "roto\032#google/longrunning/operations.prot" - + "o\032\036google/protobuf/duration.proto\032\033googl" - + "e/protobuf/empty.proto\032 google/protobuf/" - + "field_mask.proto\032\034google/protobuf/struct" - + ".proto\032\037google/protobuf/timestamp.proto\"" - + "a\n\027BulkMuteFindingsRequest\022\031\n\006parent\030\001 \001" - + "(\tB\t\340A\002\372A\003\n\001*\022\016\n\006filter\030\002 \001(\t\022\033\n\017mute_an" - + "notation\030\003 \001(\tB\002\030\001\"\032\n\030BulkMuteFindingsRe" - + "sponse\"\254\001\n\024CreateFindingRequest\022<\n\006paren" - + "t\030\001 \001(\tB,\340A\002\372A&\n$securitycenter.googleap" - + "is.com/Source\022\027\n\nfinding_id\030\002 \001(\tB\003\340A\002\022=" - + "\n\007finding\030\003 \001(\0132\'.google.cloud.securityc" - + "enter.v1.FindingB\003\340A\002\"\276\001\n\027CreateMuteConf" - + "igRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(secur" - + "itycenter.googleapis.com/MuteConfig\022D\n\013m" - + "ute_config\030\002 \001(\0132*.google.cloud.security" - + "center.v1.MuteConfigB\003\340A\002\022\033\n\016mute_config" - + "_id\030\003 \001(\tB\003\340A\002\"\331\001\n\037CreateNotificationCon" - + "figRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\0220secu" - + "ritycenter.googleapis.com/NotificationCo" - + "nfig\022\026\n\tconfig_id\030\002 \001(\tB\003\340A\002\022T\n\023notifica" - + "tion_config\030\003 \001(\01322.google.cloud.securit" - + "ycenter.v1.NotificationConfigB\003\340A\002\"\234\001\n\023C" - + "reateSourceRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372" - + "A2\n0cloudresourcemanager.googleapis.com/" - + "Organization\022;\n\006source\030\002 \001(\0132&.google.cl" - + "oud.securitycenter.v1.SourceB\003\340A\002\"Y\n\027Del" - + "eteMuteConfigRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372" - + "A*\n(securitycenter.googleapis.com/MuteCo" - + "nfig\"i\n\037DeleteNotificationConfigRequest\022" - + "F\n\004name\030\001 \001(\tB8\340A\002\372A2\n0securitycenter.go" - + "ogleapis.com/NotificationConfig\"^\n\030GetBi" - + "gQueryExportRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A" - + ".\n,securitycenter.googleapis.com/BigQuer" - + "yExport\"V\n\024GetMuteConfigRequest\022>\n\004name\030" - + "\001 \001(\tB0\340A\002\372A*\n(securitycenter.googleapis" - + ".com/MuteConfig\"f\n\034GetNotificationConfig" - + "Request\022F\n\004name\030\001 \001(\tB8\340A\002\372A2\n0securityc" - + "enter.googleapis.com/NotificationConfig\"" - + "j\n\036GetOrganizationSettingsRequest\022H\n\004nam" - + "e\030\001 \001(\tB:\340A\002\372A4\n2securitycenter.googleap" - + "is.com/OrganizationSettings\"N\n\020GetSource" - + "Request\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$securityc" - + "enter.googleapis.com/Source\"\203\002\n\022GroupAss" - + "etsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#secu" - + "ritycenter.googleapis.com/Asset\022\016\n\006filte" - + "r\030\002 \001(\t\022\025\n\010group_by\030\003 \001(\tB\003\340A\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\"\206\002\n" - + "\024GroupFindingsRequest\022<\n\006parent\030\001 \001(\tB,\340" - + "A\002\372A&\n$securitycenter.googleapis.com/Sou" - + "rce\022\016\n\006filter\030\002 \001(\t\022\025\n\010group_by\030\003 \001(\tB\003\340" - + "A\002\022-\n\tread_time\030\004 \001(\0132\032.google.protobuf." - + "Timestamp\0223\n\020compare_duration\030\005 \001(\0132\031.go" - + "ogle.protobuf.Duration\022\022\n\npage_token\030\007 \001" - + "(\t\022\021\n\tpage_size\030\010 \001(\005\"\272\001\n\025GroupFindingsR" - + "esponse\022E\n\020group_by_results\030\001 \003(\0132+.goog" - + "le.cloud.securitycenter.v1.GroupResult\022-" - + "\n\tread_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stamp\022\027\n\017next_page_token\030\003 \001(\t\022\022\n\ntotal_" - + "size\030\004 \001(\005\"\270\001\n\013GroupResult\022O\n\nproperties" - + "\030\001 \003(\0132;.google.cloud.securitycenter.v1." - + "GroupResult.PropertiesEntry\022\r\n\005count\030\002 \001" - + "(\003\032I\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005va" - + "lue\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\"\201\001" - + "\n\026ListMuteConfigsRequest\022@\n\006parent\030\001 \001(\t" - + "B0\340A\002\372A*\022(securitycenter.googleapis.com/" - + "MuteConfig\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" - + "ken\030\003 \001(\t\"t\n\027ListMuteConfigsResponse\022@\n\014" - + "mute_configs\030\001 \003(\0132*.google.cloud.securi" - + "tycenter.v1.MuteConfig\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\"\221\001\n\036ListNotificationConfigsReque" - + "st\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\0220securitycent" - + "er.googleapis.com/NotificationConfig\022\022\n\n" - + "page_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"\214\001\n\037" - + "ListNotificationConfigsResponse\022P\n\024notif" - + "ication_configs\030\001 \003(\01322.google.cloud.sec" - + "uritycenter.v1.NotificationConfig\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\"y\n\022ListSourcesRequest" - + "\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$securitycenter" - + ".googleapis.com/Source\022\022\n\npage_token\030\002 \001" - + "(\t\022\021\n\tpage_size\030\007 \001(\005\"g\n\023ListSourcesResp" - + "onse\0227\n\007sources\030\001 \003(\0132&.google.cloud.sec" - + "uritycenter.v1.Source\022\027\n\017next_page_token" - + "\030\002 \001(\t\"\255\002\n\021ListAssetsRequest\022;\n\006parent\030\001" - + " \001(\tB+\340A\002\372A%\022#securitycenter.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\020compare_duration\030\005 \001(\0132\031.g" - + "oogle.protobuf.Duration\022.\n\nfield_mask\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\"\303\003\n\022ListA" - + "ssetsResponse\022`\n\023list_assets_results\030\001 \003" - + "(\0132C.google.cloud.securitycenter.v1.List" - + "AssetsResponse.ListAssetsResult\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\020ListAssetsResult\0224\n\005asset\030\001 \001(\0132" - + "%.google.cloud.securitycenter.v1.Asset\022e" - + "\n\014state_change\030\002 \001(\0162O.google.cloud.secu" - + "ritycenter.v1.ListAssetsResponse.ListAss" - + "etsResult.StateChange\"=\n\013StateChange\022\n\n\006" - + "UNUSED\020\000\022\t\n\005ADDED\020\001\022\013\n\007REMOVED\020\002\022\n\n\006ACTI" - + "VE\020\003\"\260\002\n\023ListFindingsRequest\022<\n\006parent\030\001" - + " \001(\tB,\340A\002\372A&\n$securitycenter.googleapis." - + "com/Source\022\016\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003" - + " \001(\t\022-\n\tread_time\030\004 \001(\0132\032.google.protobu" - + "f.Timestamp\0223\n\020compare_duration\030\005 \001(\0132\031." - + "google.protobuf.Duration\022.\n\nfield_mask\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\"\254\006\n\024List" - + "FindingsResponse\022f\n\025list_findings_result" - + "s\030\001 \003(\0132G.google.cloud.securitycenter.v1" - + ".ListFindingsResponse.ListFindingsResult" - + "\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\032\317\004\n\022ListFindingsResult\0228\n\007f" - + "inding\030\001 \001(\0132\'.google.cloud.securitycent" - + "er.v1.Finding\022i\n\014state_change\030\002 \001(\0162S.go" - + "ogle.cloud.securitycenter.v1.ListFinding" - + "sResponse.ListFindingsResult.StateChange" - + "\022g\n\010resource\030\003 \001(\0132P.google.cloud.securi" - + "tycenter.v1.ListFindingsResponse.ListFin" - + "dingsResult.ResourceB\003\340A\003\032\333\001\n\010Resource\022\014" - + "\n\004name\030\001 \001(\t\022\024\n\014display_name\030\010 \001(\t\022\014\n\004ty" - + "pe\030\006 \001(\t\022\024\n\014project_name\030\002 \001(\t\022\034\n\024projec" - + "t_display_name\030\003 \001(\t\022\023\n\013parent_name\030\004 \001(" - + "\t\022\033\n\023parent_display_name\030\005 \001(\t\0227\n\007folder" - + "s\030\007 \003(\0132&.google.cloud.securitycenter.v1" - + ".Folder\"M\n\013StateChange\022\n\n\006UNUSED\020\000\022\013\n\007CH" - + "ANGED\020\001\022\r\n\tUNCHANGED\020\002\022\t\n\005ADDED\020\003\022\013\n\007REM" - + "OVED\020\004\"\315\001\n\026SetFindingStateRequest\022;\n\004nam" - + "e\030\001 \001(\tB-\340A\002\372A\'\n%securitycenter.googleap" - + "is.com/Finding\022A\n\005state\030\002 \001(\0162-.google.c" - + "loud.securitycenter.v1.Finding.StateB\003\340A" - + "\002\0223\n\nstart_time\030\003 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\002\"\216\001\n\016SetMuteRequest\022;\n\004nam" - + "e\030\001 \001(\tB-\340A\002\372A\'\n%securitycenter.googleap" - + "is.com/Finding\022?\n\004mute\030\002 \001(\0162,.google.cl" - + "oud.securitycenter.v1.Finding.MuteB\003\340A\002\"" - + "d\n\030RunAssetDiscoveryRequest\022H\n\006parent\030\001 " - + "\001(\tB8\340A\002\372A2\n0cloudresourcemanager.google" - + "apis.com/Organization\"\234\001\n\033UpdateExternal" - + "SystemRequest\022L\n\017external_system\030\001 \001(\0132." - + ".google.cloud.securitycenter.v1.External" - + "SystemB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.googl" - + "e.protobuf.FieldMask\"\206\001\n\024UpdateFindingRe" - + "quest\022=\n\007finding\030\001 \001(\0132\'.google.cloud.se" - + "curitycenter.v1.FindingB\003\340A\002\022/\n\013update_m" - + "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\220\001" - + "\n\027UpdateMuteConfigRequest\022D\n\013mute_config" - + "\030\001 \001(\0132*.google.cloud.securitycenter.v1." - + "MuteConfigB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.g" - + "oogle.protobuf.FieldMask\"\250\001\n\037UpdateNotif" - + "icationConfigRequest\022T\n\023notification_con" - + "fig\030\001 \001(\01322.google.cloud.securitycenter." - + "v1.NotificationConfigB\003\340A\002\022/\n\013update_mas" - + "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"\256\001\n!" - + "UpdateOrganizationSettingsRequest\022X\n\025org" - + "anization_settings\030\001 \001(\01324.google.cloud." - + "securitycenter.v1.OrganizationSettingsB\003" - + "\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protob" - + "uf.FieldMask\"\203\001\n\023UpdateSourceRequest\022;\n\006" - + "source\030\001 \001(\0132&.google.cloud.securitycent" - + "er.v1.SourceB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032" - + ".google.protobuf.FieldMask\"\311\001\n\032UpdateSec" - + "urityMarksRequest\022J\n\016security_marks\030\001 \001(" - + "\0132-.google.cloud.securitycenter.v1.Secur" - + "ityMarksB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.goo" - + "gle.protobuf.FieldMask\022.\n\nstart_time\030\003 \001" - + "(\0132\032.google.protobuf.Timestamp\"\324\001\n\033Creat" - + "eBigQueryExportRequest\022D\n\006parent\030\001 \001(\tB4" - + "\340A\002\372A.\022,securitycenter.googleapis.com/Bi" - + "gQueryExport\022M\n\020big_query_export\030\002 \001(\0132." - + ".google.cloud.securitycenter.v1.BigQuery" - + "ExportB\003\340A\002\022 \n\023big_query_export_id\030\003 \001(\t" - + "B\003\340A\002\"\235\001\n\033UpdateBigQueryExportRequest\022M\n" - + "\020big_query_export\030\001 \001(\0132..google.cloud.s" - + "ecuritycenter.v1.BigQueryExportB\003\340A\002\022/\n\013" - + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" - + "dMask\"\211\001\n\032ListBigQueryExportsRequest\022D\n\006" - + "parent\030\001 \001(\tB4\340A\002\372A.\022,securitycenter.goo" - + "gleapis.com/BigQueryExport\022\021\n\tpage_size\030" - + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\201\001\n\033ListBigQue" - + "ryExportsResponse\022I\n\021big_query_exports\030\001" - + " \003(\0132..google.cloud.securitycenter.v1.Bi" - + "gQueryExport\022\027\n\017next_page_token\030\002 \001(\t\"a\n" - + "\033DeleteBigQueryExportRequest\022B\n\004name\030\001 \001" - + "(\tB4\340A\002\372A.\n,securitycenter.googleapis.co" - + "m/BigQueryExport2\374S\n\016SecurityCenter\022\342\002\n\020" - + "BulkMuteFindings\0227.google.cloud.security" - + "center.v1.BulkMuteFindingsRequest\032\035.goog" - + "le.longrunning.Operation\"\365\001\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*\332A\006parent\312AP\n7google" - + ".cloud.securitycenter.v1.BulkMuteFinding" - + "sResponse\022\025google.protobuf.Empty\022\261\001\n\014Cre" - + "ateSource\0223.google.cloud.securitycenter." - + "v1.CreateSourceRequest\032&.google.cloud.se" - + "curitycenter.v1.Source\"D\202\323\344\223\002.\"$/v1/{par" - + "ent=organizations/*}/sources:\006source\332A\rp" - + "arent,source\022\314\001\n\rCreateFinding\0224.google." - + "cloud.securitycenter.v1.CreateFindingReq" - + "uest\032\'.google.cloud.securitycenter.v1.Fi" - + "nding\"\\\202\323\344\223\002:\"//v1/{parent=organizations" - + "/*/sources/*}/findings:\007finding\332A\031parent" - + ",finding_id,finding\022\330\002\n\020CreateMuteConfig" - + "\0227.google.cloud.securitycenter.v1.Create" - + "MuteConfigRequest\032*.google.cloud.securit" - + "ycenter.v1.MuteConfig\"\336\001\202\323\344\223\002\236\001\"(/v1/{pa" - + "rent=organizations/*}/muteConfigs:\013mute_" - + "configZ1\"\"/v1/{parent=folders/*}/muteCon" - + "figs:\013mute_configZ2\"#/v1/{parent=project" - + "s/*}/muteConfigs:\013mute_config\332A\022parent,m" - + "ute_config\332A!parent,mute_config,mute_con" - + "fig_id\022\253\003\n\030CreateNotificationConfig\022?.go" - + "ogle.cloud.securitycenter.v1.CreateNotif" - + "icationConfigRequest\0322.google.cloud.secu" - + "ritycenter.v1.NotificationConfig\"\231\002\202\323\344\223\002" - + "\316\001\"0/v1/{parent=organizations/*}/notific" - + "ationConfigs:\023notification_configZA\"*/v1" - + "/{parent=folders/*}/notificationConfigs:" - + "\023notification_configZB\"+/v1/{parent=proj" - + "ects/*}/notificationConfigs:\023notificatio" - + "n_config\332A$parent,config_id,notification" - + "_config\332A\032parent,notification_config\022\352\001\n" - + "\020DeleteMuteConfig\0227.google.cloud.securit" - + "ycenter.v1.DeleteMuteConfigRequest\032\026.goo" - + "gle.protobuf.Empty\"\204\001\202\323\344\223\002w*(/v1/{name=o" - + "rganizations/*/muteConfigs/*}Z$*\"/v1/{na" - + "me=folders/*/muteConfigs/*}Z%*#/v1/{name" - + "=projects/*/muteConfigs/*}\332A\004name\022\223\002\n\030De" - + "leteNotificationConfig\022?.google.cloud.se" - + "curitycenter.v1.DeleteNotificationConfig" - + "Request\032\026.google.protobuf.Empty\"\235\001\202\323\344\223\002\217" - + "\001*0/v1/{name=organizations/*/notificatio" - + "nConfigs/*}Z,**/v1/{name=folders/*/notif" - + "icationConfigs/*}Z-*+/v1/{name=projects/" - + "*/notificationConfigs/*}\332A\004name\022\221\002\n\021GetB" - + "igQueryExport\0228.google.cloud.securitycen" - + "ter.v1.GetBigQueryExportRequest\032..google" - + ".cloud.securitycenter.v1.BigQueryExport\"" - + "\221\001\202\323\344\223\002\203\001\022,/v1/{name=organizations/*/big" - + "QueryExports/*}Z(\022&/v1/{name=folders/*/b" - + "igQueryExports/*}Z)\022\'/v1/{name=projects/" - + "*/bigQueryExports/*}\332A\004name\022\226\001\n\014GetIamPo" - + "licy\022\".google.iam.v1.GetIamPolicyRequest" - + "\032\025.google.iam.v1.Policy\"K\202\323\344\223\002:\"5/v1/{re" - + "source=organizations/*/sources/*}:getIam" - + "Policy:\001*\332A\010resource\022\370\001\n\rGetMuteConfig\0224" - + ".google.cloud.securitycenter.v1.GetMuteC" - + "onfigRequest\032*.google.cloud.securitycent" - + "er.v1.MuteConfig\"\204\001\202\323\344\223\002w\022(/v1/{name=org" - + "anizations/*/muteConfigs/*}Z$\022\"/v1/{name" - + "=folders/*/muteConfigs/*}Z%\022#/v1/{name=p" - + "rojects/*/muteConfigs/*}\332A\004name\022\251\002\n\025GetN" - + "otificationConfig\022<.google.cloud.securit" - + "ycenter.v1.GetNotificationConfigRequest\032" - + "2.google.cloud.securitycenter.v1.Notific" - + "ationConfig\"\235\001\202\323\344\223\002\217\001\0220/v1/{name=organiz" - + "ations/*/notificationConfigs/*}Z,\022*/v1/{" - + "name=folders/*/notificationConfigs/*}Z-\022" - + "+/v1/{name=projects/*/notificationConfig" - + "s/*}\332A\004name\022\317\001\n\027GetOrganizationSettings\022" - + ">.google.cloud.securitycenter.v1.GetOrga" - + "nizationSettingsRequest\0324.google.cloud.s" - + "ecuritycenter.v1.OrganizationSettings\">\202" - + "\323\344\223\0021\022//v1/{name=organizations/*/organiz" - + "ationSettings}\332A\004name\022\232\001\n\tGetSource\0220.go" - + "ogle.cloud.securitycenter.v1.GetSourceRe" - + "quest\032&.google.cloud.securitycenter.v1.S" - + "ource\"3\202\323\344\223\002&\022$/v1/{name=organizations/*" - + "/sources/*}\332A\004name\022\203\002\n\013GroupAssets\0222.goo" - + "gle.cloud.securitycenter.v1.GroupAssetsR" - + "equest\0323.google.cloud.securitycenter.v1." - + "GroupAssetsResponse\"\212\001\202\323\344\223\002\203\001\")/v1/{pare" - + "nt=organizations/*}/assets:group:\001*Z(\"#/" - + "v1/{parent=folders/*}/assets:group:\001*Z)\"" - + "$/v1/{parent=projects/*}/assets:group:\001*" - + "\022\277\002\n\rGroupFindings\0224.google.cloud.securi" - + "tycenter.v1.GroupFindingsRequest\0325.googl" - + "e.cloud.securitycenter.v1.GroupFindingsR" - + "esponse\"\300\001\202\323\344\223\002\247\001\"5/v1/{parent=organizat" - + "ions/*/sources/*}/findings:group:\001*Z4\"//" - + "v1/{parent=folders/*/sources/*}/findings" - + ":group:\001*Z5\"0/v1/{parent=projects/*/sour" - + "ces/*}/findings:group:\001*\332A\017parent,group_" - + "by\022\343\001\n\nListAssets\0221.google.cloud.securit" - + "ycenter.v1.ListAssetsRequest\0322.google.cl" + + "ritycenter.v1\032\034google/api/annotations.pr" + + "oto\032\027google/api/client.proto\032\037google/api" + + "/field_behavior.proto\032\031google/api/resour" + + "ce.proto\032*google/cloud/securitycenter/v1" + + "/asset.proto\0324google/cloud/securitycente" + + "r/v1/bigquery_export.proto\032Vgoogle/cloud" + + "/securitycenter/v1/effective_security_he" + + "alth_analytics_custom_module.proto\0324goog" + + "le/cloud/securitycenter/v1/external_syst" + + "em.proto\032,google/cloud/securitycenter/v1" + + "/finding.proto\032+google/cloud/securitycen" + + "ter/v1/folder.proto\0320google/cloud/securi" + + "tycenter/v1/mute_config.proto\0328google/cl" + + "oud/securitycenter/v1/notification_confi" + + "g.proto\032:google/cloud/securitycenter/v1/" + + "organization_settings.proto\032Agoogle/clou" + + "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\"a\n\027BulkMuteFindingsRequest\022\031\n\006pare" + + "nt\030\001 \001(\tB\t\340A\002\372A\003\n\001*\022\016\n\006filter\030\002 \001(\t\022\033\n\017m" + + "ute_annotation\030\003 \001(\tB\002\030\001\"\032\n\030BulkMuteFind" + + "ingsResponse\"\254\001\n\024CreateFindingRequest\022<\n" + + "\006parent\030\001 \001(\tB,\340A\002\372A&\n$securitycenter.go" + + "ogleapis.com/Source\022\027\n\nfinding_id\030\002 \001(\tB" + + "\003\340A\002\022=\n\007finding\030\003 \001(\0132\'.google.cloud.sec" + + "uritycenter.v1.FindingB\003\340A\002\"\276\001\n\027CreateMu" + + "teConfigRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022" + + "(securitycenter.googleapis.com/MuteConfi" + + "g\022D\n\013mute_config\030\002 \001(\0132*.google.cloud.se" + + "curitycenter.v1.MuteConfigB\003\340A\002\022\033\n\016mute_" + + "config_id\030\003 \001(\tB\003\340A\002\"\331\001\n\037CreateNotificat" + + "ionConfigRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2" + + "\0220securitycenter.googleapis.com/Notifica" + + "tionConfig\022\026\n\tconfig_id\030\002 \001(\tB\003\340A\002\022T\n\023no" + + "tification_config\030\003 \001(\01322.google.cloud.s" + + "ecuritycenter.v1.NotificationConfigB\003\340A\002" + + "\"\210\002\n0CreateSecurityHealthAnalyticsCustom" + + "ModuleRequest\022Y\n\006parent\030\001 \001(\tBI\340A\002\372AC\022As" + + "ecuritycenter.googleapis.com/SecurityHea" + + "lthAnalyticsCustomModule\022y\n\'security_hea" + + "lth_analytics_custom_module\030\002 \001(\0132C.goog" + + "le.cloud.securitycenter.v1.SecurityHealt" + + "hAnalyticsCustomModuleB\003\340A\002\"\234\001\n\023CreateSo" + + "urceRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0clo" + + "udresourcemanager.googleapis.com/Organiz" + + "ation\022;\n\006source\030\002 \001(\0132&.google.cloud.sec" + + "uritycenter.v1.SourceB\003\340A\002\"Y\n\027DeleteMute" + + "ConfigRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(sec" + + "uritycenter.googleapis.com/MuteConfig\"i\n" + + "\037DeleteNotificationConfigRequest\022F\n\004name" + + "\030\001 \001(\tB8\340A\002\372A2\n0securitycenter.googleapi" + + "s.com/NotificationConfig\"\213\001\n0DeleteSecur" + + "ityHealthAnalyticsCustomModuleRequest\022W\n" + + "\004name\030\001 \001(\tBI\340A\002\372AC\nAsecuritycenter.goog" + + "leapis.com/SecurityHealthAnalyticsCustom" + + "Module\"^\n\030GetBigQueryExportRequest\022B\n\004na" + + "me\030\001 \001(\tB4\340A\002\372A.\n,securitycenter.googlea" + + "pis.com/BigQueryExport\"V\n\024GetMuteConfigR" + + "equest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(securityce" + + "nter.googleapis.com/MuteConfig\"f\n\034GetNot" + + "ificationConfigRequest\022F\n\004name\030\001 \001(\tB8\340A" + + "\002\372A2\n0securitycenter.googleapis.com/Noti" + + "ficationConfig\"j\n\036GetOrganizationSetting" + + "sRequest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2security" + + "center.googleapis.com/OrganizationSettin" + + "gs\"\232\001\n6GetEffectiveSecurityHealthAnalyti" + + "csCustomModuleRequest\022`\n\004name\030\001 \001(\tBR\340A\002" + + "\372AL\nJsecuritycenter.googleapis.com/Effec" + + "tiveSecurityHealthAnalyticsCustomModule\"" + + "\210\001\n-GetSecurityHealthAnalyticsCustomModu" + + "leRequest\022W\n\004name\030\001 \001(\tBI\340A\002\372AC\nAsecurit" + + "ycenter.googleapis.com/SecurityHealthAna" + + "lyticsCustomModule\"N\n\020GetSourceRequest\022:" + + "\n\004name\030\001 \001(\tB,\340A\002\372A&\n$securitycenter.goo" + + "gleapis.com/Source\"\203\002\n\022GroupAssetsReques" + + "t\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#securitycente" + + "r.googleapis.com/Asset\022\016\n\006filter\030\002 \001(\t\022\025" + + "\n\010group_by\030\003 \001(\tB\003\340A\002\0223\n\020compare_duratio" + + "n\030\004 \001(\0132\031.google.protobuf.Duration\022-\n\tre" + + "ad_time\030\005 \001(\0132\032.google.protobuf.Timestam" + + "p\022\022\n\npage_token\030\007 \001(\t\022\021\n\tpage_size\030\010 \001(\005" + + "\"\270\001\n\023GroupAssetsResponse\022E\n\020group_by_res" + + "ults\030\001 \003(\0132+.google.cloud.securitycenter" + + ".v1.GroupResult\022-\n\tread_time\030\002 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\022\027\n\017next_page_toke" + + "n\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\"\206\002\n\024GroupFin" + + "dingsRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$se" + + "curitycenter.googleapis.com/Source\022\016\n\006fi" + + "lter\030\002 \001(\t\022\025\n\010group_by\030\003 \001(\tB\003\340A\002\022-\n\trea" + + "d_time\030\004 \001(\0132\032.google.protobuf.Timestamp" + + "\0223\n\020compare_duration\030\005 \001(\0132\031.google.prot" + + "obuf.Duration\022\022\n\npage_token\030\007 \001(\t\022\021\n\tpag" + + "e_size\030\010 \001(\005\"\272\001\n\025GroupFindingsResponse\022E" + + "\n\020group_by_results\030\001 \003(\0132+.google.cloud." + + "securitycenter.v1.GroupResult\022-\n\tread_ti" + + "me\030\002 \001(\0132\032.google.protobuf.Timestamp\022\027\n\017" + + "next_page_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(" + + "\005\"\270\001\n\013GroupResult\022O\n\nproperties\030\001 \003(\0132;." + + "google.cloud.securitycenter.v1.GroupResu" + + "lt.PropertiesEntry\022\r\n\005count\030\002 \001(\003\032I\n\017Pro" + + "pertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\013" + + "2\026.google.protobuf.Value:\0028\001\"\275\001\n9ListDes" + + "cendantSecurityHealthAnalyticsCustomModu" + + "lesRequest\022Y\n\006parent\030\001 \001(\tBI\340A\002\372AC\022Asecu" + + "ritycenter.googleapis.com/SecurityHealth" + + "AnalyticsCustomModule\022\021\n\tpage_size\030\002 \001(\005" + + "\022\022\n\npage_token\030\003 \001(\t\"\314\001\n:ListDescendantS" + + "ecurityHealthAnalyticsCustomModulesRespo" + + "nse\022u\n(security_health_analytics_custom_" + + "modules\030\001 \003(\0132C.google.cloud.securitycen" + + "ter.v1.SecurityHealthAnalyticsCustomModu" + + "le\022\027\n\017next_page_token\030\002 \001(\t\"\201\001\n\026ListMute" + + "ConfigsRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(" + + "securitycenter.googleapis.com/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_confi" + + "gs\030\001 \003(\0132*.google.cloud.securitycenter.v" + + "1.MuteConfig\022\027\n\017next_page_token\030\002 \001(\t\"\221\001" + + "\n\036ListNotificationConfigsRequest\022H\n\006pare" + + "nt\030\001 \001(\tB8\340A\002\372A2\0220securitycenter.googlea" + + "pis.com/NotificationConfig\022\022\n\npage_token" + + "\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"\214\001\n\037ListNotifi" + + "cationConfigsResponse\022P\n\024notification_co" + + "nfigs\030\001 \003(\01322.google.cloud.securitycente" + + "r.v1.NotificationConfig\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"\274\001\n8ListEffectiveSecurityHealth" + + "AnalyticsCustomModulesRequest\022Y\n\006parent\030" + + "\001 \001(\tBI\340A\002\372AC\022Asecuritycenter.googleapis" + + ".com/SecurityHealthAnalyticsCustomModule" + + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"" + + "\337\001\n9ListEffectiveSecurityHealthAnalytics" + + "CustomModulesResponse\022\210\001\n2effective_secu" + + "rity_health_analytics_custom_modules\030\001 \003" + + "(\0132L.google.cloud.securitycenter.v1.Effe" + + "ctiveSecurityHealthAnalyticsCustomModule" + + "\022\027\n\017next_page_token\030\002 \001(\t\"\263\001\n/ListSecuri" + + "tyHealthAnalyticsCustomModulesRequest\022Y\n" + + "\006parent\030\001 \001(\tBI\340A\002\372AC\022Asecuritycenter.go" + + "ogleapis.com/SecurityHealthAnalyticsCust" + + "omModule\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + + "n\030\003 \001(\t\"\302\001\n0ListSecurityHealthAnalyticsC" + + "ustomModulesResponse\022u\n(security_health_" + + "analytics_custom_modules\030\001 \003(\0132C.google." + + "cloud.securitycenter.v1.SecurityHealthAn" + + "alyticsCustomModule\022\027\n\017next_page_token\030\002" + + " \001(\t\"y\n\022ListSourcesRequest\022<\n\006parent\030\001 \001" + + "(\tB,\340A\002\372A&\022$securitycenter.googleapis.co" + + "m/Source\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_siz" + + "e\030\007 \001(\005\"g\n\023ListSourcesResponse\0227\n\007source" + + "s\030\001 \003(\0132&.google.cloud.securitycenter.v1" + + ".Source\022\027\n\017next_page_token\030\002 \001(\t\"\255\002\n\021Lis" + + "tAssetsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#" + + "securitycenter.googleapis.com/Asset\022\016\n\006f" + + "ilter\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022-\n\tread_ti" + + "me\030\004 \001(\0132\032.google.protobuf.Timestamp\0223\n\020" + + "compare_duration\030\005 \001(\0132\031.google.protobuf" + + ".Duration\022.\n\nfield_mask\030\007 \001(\0132\032.google.p" + + "rotobuf.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\023list_assets_results\030\001 \003(\0132C.google.cl" + "oud.securitycenter.v1.ListAssetsResponse" - + "\"n\202\323\344\223\002h\022#/v1/{parent=organizations/*}/a" - + "ssetsZ\037\022\035/v1/{parent=folders/*}/assetsZ " - + "\022\036/v1/{parent=projects/*}/assets\022\217\002\n\014Lis" - + "tFindings\0223.google.cloud.securitycenter." - + "v1.ListFindingsRequest\0324.google.cloud.se" - + "curitycenter.v1.ListFindingsResponse\"\223\001\202" - + "\323\344\223\002\214\001\022//v1/{parent=organizations/*/sour" - + "ces/*}/findingsZ+\022)/v1/{parent=folders/*" - + "/sources/*}/findingsZ,\022*/v1/{parent=proj" - + "ects/*/sources/*}/findings\022\213\002\n\017ListMuteC" - + "onfigs\0226.google.cloud.securitycenter.v1." - + "ListMuteConfigsRequest\0327.google.cloud.se" - + "curitycenter.v1.ListMuteConfigsResponse\"" - + "\206\001\202\323\344\223\002w\022(/v1/{parent=organizations/*}/m" - + "uteConfigsZ$\022\"/v1/{parent=folders/*}/mut" - + "eConfigsZ%\022#/v1/{parent=projects/*}/mute" - + "Configs\332A\006parent\022\274\002\n\027ListNotificationCon" - + "figs\022>.google.cloud.securitycenter.v1.Li" - + "stNotificationConfigsRequest\032?.google.cl" - + "oud.securitycenter.v1.ListNotificationCo" - + "nfigsResponse\"\237\001\202\323\344\223\002\217\001\0220/v1/{parent=org" - + "anizations/*}/notificationConfigsZ,\022*/v1" - + "/{parent=folders/*}/notificationConfigsZ" - + "-\022+/v1/{parent=projects/*}/notificationC" - + "onfigs\332A\006parent\022\362\001\n\013ListSources\0222.google" - + ".cloud.securitycenter.v1.ListSourcesRequ" - + "est\0323.google.cloud.securitycenter.v1.Lis" - + "tSourcesResponse\"z\202\323\344\223\002k\022$/v1/{parent=or" - + "ganizations/*}/sourcesZ \022\036/v1/{parent=fo" - + "lders/*}/sourcesZ!\022\037/v1/{parent=projects" - + "/*}/sources\332A\006parent\022\207\002\n\021RunAssetDiscove" - + "ry\0228.google.cloud.securitycenter.v1.RunA" - + "ssetDiscoveryRequest\032\035.google.longrunnin" - + "g.Operation\"\230\001\202\323\344\223\0025\"0/v1/{parent=organi" - + "zations/*}/assets:runDiscovery:\001*\332A\006pare" - + "nt\312AQ\n8google.cloud.securitycenter.v1.Ru" - + "nAssetDiscoveryResponse\022\025google.protobuf" - + ".Empty\022\304\002\n\017SetFindingState\0226.google.clou" - + "d.securitycenter.v1.SetFindingStateReque" - + "st\032\'.google.cloud.securitycenter.v1.Find" - + "ing\"\317\001\202\323\344\223\002\260\001\"8/v1/{name=organizations/*" - + "/sources/*/findings/*}:setState:\001*Z7\"2/v" - + "1/{name=folders/*/sources/*/findings/*}:" - + "setState:\001*Z8\"3/v1/{name=projects/*/sour" - + "ces/*/findings/*}:setState:\001*\332A\025name,sta" - + "te,start_time\022\245\002\n\007SetMute\022..google.cloud" - + ".securitycenter.v1.SetMuteRequest\032\'.goog" - + "le.cloud.securitycenter.v1.Finding\"\300\001\202\323\344" - + "\223\002\255\001\"7/v1/{name=organizations/*/sources/" - + "*/findings/*}:setMute:\001*Z6\"1/v1/{name=fo" - + "lders/*/sources/*/findings/*}:setMute:\001*" - + "Z7\"2/v1/{name=projects/*/sources/*/findi" - + "ngs/*}:setMute:\001*\332A\tname,mute\022\235\001\n\014SetIam" - + "Policy\022\".google.iam.v1.SetIamPolicyReque" - + "st\032\025.google.iam.v1.Policy\"R\202\323\344\223\002:\"5/v1/{" - + "resource=organizations/*/sources/*}:setI" - + "amPolicy:\001*\332A\017resource,policy\022\310\001\n\022TestIa" - + "mPermissions\022(.google.iam.v1.TestIamPerm" - + "issionsRequest\032).google.iam.v1.TestIamPe" - + "rmissionsResponse\"]\202\323\344\223\002@\";/v1/{resource" - + "=organizations/*/sources/*}:testIamPermi" - + "ssions:\001*\332A\024resource,permissions\022\320\003\n\024Upd" - + "ateExternalSystem\022;.google.cloud.securit" - + "ycenter.v1.UpdateExternalSystemRequest\032." - + ".google.cloud.securitycenter.v1.External" - + "System\"\312\002\202\323\344\223\002\245\0022Q/v1/{external_system.n" - + "ame=organizations/*/sources/*/findings/*" - + "/externalSystems/*}:\017external_systemZ^2K" - + "/v1/{external_system.name=folders/*/sour" - + "ces/*/findings/*/externalSystems/*}:\017ext" - + "ernal_systemZ_2L/v1/{external_system.nam" - + "e=projects/*/sources/*/findings/*/extern" - + "alSystems/*}:\017external_system\332A\033external" - + "_system,update_mask\022\301\002\n\rUpdateFinding\0224." - + "google.cloud.securitycenter.v1.UpdateFin" - + "dingRequest\032\'.google.cloud.securitycente" - + "r.v1.Finding\"\320\001\202\323\344\223\002\277\00127/v1/{finding.nam" + + ".ListAssetsResult\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\032\356\001\n\020ListAs" + + "setsResult\0224\n\005asset\030\001 \001(\0132%.google.cloud" + + ".securitycenter.v1.Asset\022e\n\014state_change" + + "\030\002 \001(\0162O.google.cloud.securitycenter.v1." + + "ListAssetsResponse.ListAssetsResult.Stat" + + "eChange\"=\n\013StateChange\022\n\n\006UNUSED\020\000\022\t\n\005AD" + + "DED\020\001\022\013\n\007REMOVED\020\002\022\n\n\006ACTIVE\020\003\"\260\002\n\023ListF" + + "indingsRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$" + + "securitycenter.googleapis.com/Source\022\016\n\006" + + "filter\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022-\n\tread_t" + + "ime\030\004 \001(\0132\032.google.protobuf.Timestamp\0223\n" + + "\020compare_duration\030\005 \001(\0132\031.google.protobu" + + "f.Duration\022.\n\nfield_mask\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\"\254\006\n\024ListFindingsRespon" + + "se\022f\n\025list_findings_results\030\001 \003(\0132G.goog" + + "le.cloud.securitycenter.v1.ListFindingsR" + + "esponse.ListFindingsResult\022-\n\tread_time\030" + + "\002 \001(\0132\032.google.protobuf.Timestamp\022\027\n\017nex" + + "t_page_token\030\003 \001(\t\022\022\n\ntotal_size\030\004 \001(\005\032\317" + + "\004\n\022ListFindingsResult\0228\n\007finding\030\001 \001(\0132\'" + + ".google.cloud.securitycenter.v1.Finding\022" + + "i\n\014state_change\030\002 \001(\0162S.google.cloud.sec" + + "uritycenter.v1.ListFindingsResponse.List" + + "FindingsResult.StateChange\022g\n\010resource\030\003" + + " \001(\0132P.google.cloud.securitycenter.v1.Li" + + "stFindingsResponse.ListFindingsResult.Re" + + "sourceB\003\340A\003\032\333\001\n\010Resource\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\014pr" + + "oject_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_di" + + "splay_name\030\005 \001(\t\0227\n\007folders\030\007 \003(\0132&.goog" + + "le.cloud.securitycenter.v1.Folder\"M\n\013Sta" + + "teChange\022\n\n\006UNUSED\020\000\022\013\n\007CHANGED\020\001\022\r\n\tUNC" + + "HANGED\020\002\022\t\n\005ADDED\020\003\022\013\n\007REMOVED\020\004\"\315\001\n\026Set" + + "FindingStateRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A" + + "\'\n%securitycenter.googleapis.com/Finding" + + "\022A\n\005state\030\002 \001(\0162-.google.cloud.securityc" + + "enter.v1.Finding.StateB\003\340A\002\0223\n\nstart_tim" + + "e\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\002" + + "\"\216\001\n\016SetMuteRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A" + + "\'\n%securitycenter.googleapis.com/Finding" + + "\022?\n\004mute\030\002 \001(\0162,.google.cloud.securityce" + + "nter.v1.Finding.MuteB\003\340A\002\"d\n\030RunAssetDis" + + "coveryRequest\022H\n\006parent\030\001 \001(\tB8\340A\002\372A2\n0c" + + "loudresourcemanager.googleapis.com/Organ" + + "ization\"\234\001\n\033UpdateExternalSystemRequest\022" + + "L\n\017external_system\030\001 \001(\0132..google.cloud." + + "securitycenter.v1.ExternalSystemB\003\340A\002\022/\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMask\"\206\001\n\024UpdateFindingRequest\022=\n\007findi" + + "ng\030\001 \001(\0132\'.google.cloud.securitycenter.v" + + "1.FindingB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.go" + + "ogle.protobuf.FieldMask\"\220\001\n\027UpdateMuteCo" + + "nfigRequest\022D\n\013mute_config\030\001 \001(\0132*.googl" + + "e.cloud.securitycenter.v1.MuteConfigB\003\340A" + + "\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf" + + ".FieldMask\"\250\001\n\037UpdateNotificationConfigR" + + "equest\022T\n\023notification_config\030\001 \001(\01322.go" + + "ogle.cloud.securitycenter.v1.Notificatio" + + "nConfigB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.goog" + + "le.protobuf.FieldMask\"\256\001\n!UpdateOrganiza" + + "tionSettingsRequest\022X\n\025organization_sett" + + "ings\030\001 \001(\01324.google.cloud.securitycenter" + + ".v1.OrganizationSettingsB\003\340A\002\022/\n\013update_" + + "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\336" + + "\001\n0UpdateSecurityHealthAnalyticsCustomMo" + + "duleRequest\022y\n\'security_health_analytics" + + "_custom_module\030\001 \001(\0132C.google.cloud.secu" + + "ritycenter.v1.SecurityHealthAnalyticsCus" + + "tomModuleB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.go" + + "ogle.protobuf.FieldMask\"\203\001\n\023UpdateSource" + + "Request\022;\n\006source\030\001 \001(\0132&.google.cloud.s" + + "ecuritycenter.v1.SourceB\003\340A\002\022/\n\013update_m" + + "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\311\001" + + "\n\032UpdateSecurityMarksRequest\022J\n\016security" + + "_marks\030\001 \001(\0132-.google.cloud.securitycent" + + "er.v1.SecurityMarksB\003\340A\002\022/\n\013update_mask\030" + + "\002 \001(\0132\032.google.protobuf.FieldMask\022.\n\nsta" + + "rt_time\030\003 \001(\0132\032.google.protobuf.Timestam" + + "p\"\324\001\n\033CreateBigQueryExportRequest\022D\n\006par" + + "ent\030\001 \001(\tB4\340A\002\372A.\022,securitycenter.google" + + "apis.com/BigQueryExport\022M\n\020big_query_exp" + + "ort\030\002 \001(\0132..google.cloud.securitycenter." + + "v1.BigQueryExportB\003\340A\002\022 \n\023big_query_expo" + + "rt_id\030\003 \001(\tB\003\340A\002\"\235\001\n\033UpdateBigQueryExpor" + + "tRequest\022M\n\020big_query_export\030\001 \001(\0132..goo" + + "gle.cloud.securitycenter.v1.BigQueryExpo" + + "rtB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.pr" + + "otobuf.FieldMask\"\211\001\n\032ListBigQueryExports" + + "Request\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\022,securit" + + "ycenter.googleapis.com/BigQueryExport\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\201\001\n" + + "\033ListBigQueryExportsResponse\022I\n\021big_quer" + + "y_exports\030\001 \003(\0132..google.cloud.securityc" + + "enter.v1.BigQueryExport\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"a\n\033DeleteBigQueryExportRequest\022" + + "B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,securitycenter.go" + + "ogleapis.com/BigQueryExport2\202t\n\016Security" + + "Center\022\342\002\n\020BulkMuteFindings\0227.google.clo" + + "ud.securitycenter.v1.BulkMuteFindingsReq" + + "uest\032\035.google.longrunning.Operation\"\365\001\202\323" + + "\344\223\002\222\001\"./v1/{parent=organizations/*}/find" + + "ings:bulkMute:\001*Z-\"(/v1/{parent=folders/" + + "*}/findings:bulkMute:\001*Z.\")/v1/{parent=p" + + "rojects/*}/findings:bulkMute:\001*\332A\006parent" + + "\312AP\n7google.cloud.securitycenter.v1.Bulk" + + "MuteFindingsResponse\022\025google.protobuf.Em" + + "pty\022\325\004\n)CreateSecurityHealthAnalyticsCus" + + "tomModule\022P.google.cloud.securitycenter." + + "v1.CreateSecurityHealthAnalyticsCustomMo" + + "duleRequest\032C.google.cloud.securitycente" + + "r.v1.SecurityHealthAnalyticsCustomModule" + + "\"\220\003\202\323\344\223\002\330\002\"J/v1/{parent=organizations/*/" + + "securityHealthAnalyticsSettings}/customM" + + "odules:\'security_health_analytics_custom" + + "_moduleZo\"D/v1/{parent=folders/*/securit" + + "yHealthAnalyticsSettings}/customModules:" + + "\'security_health_analytics_custom_module" + + "Zp\"E/v1/{parent=projects/*/securityHealt" + + "hAnalyticsSettings}/customModules:\'secur" + + "ity_health_analytics_custom_module\332A.par" + + "ent,security_health_analytics_custom_mod" + + "ule\022\261\001\n\014CreateSource\0223.google.cloud.secu" + + "ritycenter.v1.CreateSourceRequest\032&.goog" + + "le.cloud.securitycenter.v1.Source\"D\202\323\344\223\002" + + ".\"$/v1/{parent=organizations/*}/sources:" + + "\006source\332A\rparent,source\022\314\001\n\rCreateFindin" + + "g\0224.google.cloud.securitycenter.v1.Creat" + + "eFindingRequest\032\'.google.cloud.securityc" + + "enter.v1.Finding\"\\\202\323\344\223\002:\"//v1/{parent=or" + + "ganizations/*/sources/*}/findings:\007findi" + + "ng\332A\031parent,finding_id,finding\022\330\002\n\020Creat" + + "eMuteConfig\0227.google.cloud.securitycente" + + "r.v1.CreateMuteConfigRequest\032*.google.cl" + + "oud.securitycenter.v1.MuteConfig\"\336\001\202\323\344\223\002" + + "\236\001\"(/v1/{parent=organizations/*}/muteCon" + + "figs:\013mute_configZ1\"\"/v1/{parent=folders" + + "/*}/muteConfigs:\013mute_configZ2\"#/v1/{par" + + "ent=projects/*}/muteConfigs:\013mute_config" + + "\332A\022parent,mute_config\332A!parent,mute_conf" + + "ig,mute_config_id\022\253\003\n\030CreateNotification" + + "Config\022?.google.cloud.securitycenter.v1." + + "CreateNotificationConfigRequest\0322.google" + + ".cloud.securitycenter.v1.NotificationCon" + + "fig\"\231\002\202\323\344\223\002\316\001\"0/v1/{parent=organizations" + + "/*}/notificationConfigs:\023notification_co" + + "nfigZA\"*/v1/{parent=folders/*}/notificat" + + "ionConfigs:\023notification_configZB\"+/v1/{" + + "parent=projects/*}/notificationConfigs:\023" + + "notification_config\332A$parent,config_id,n" + + "otification_config\332A\032parent,notification" + + "_config\022\352\001\n\020DeleteMuteConfig\0227.google.cl" + + "oud.securitycenter.v1.DeleteMuteConfigRe" + + "quest\032\026.google.protobuf.Empty\"\204\001\202\323\344\223\002w*(" + + "/v1/{name=organizations/*/muteConfigs/*}" + + "Z$*\"/v1/{name=folders/*/muteConfigs/*}Z%" + + "*#/v1/{name=projects/*/muteConfigs/*}\332A\004" + + "name\022\223\002\n\030DeleteNotificationConfig\022?.goog" + + "le.cloud.securitycenter.v1.DeleteNotific" + + "ationConfigRequest\032\026.google.protobuf.Emp" + + "ty\"\235\001\202\323\344\223\002\217\001*0/v1/{name=organizations/*/" + + "notificationConfigs/*}Z,**/v1/{name=fold" + + "ers/*/notificationConfigs/*}Z-*+/v1/{nam" + + "e=projects/*/notificationConfigs/*}\332A\004na" + + "me\022\203\003\n)DeleteSecurityHealthAnalyticsCust" + + "omModule\022P.google.cloud.securitycenter.v" + + "1.DeleteSecurityHealthAnalyticsCustomMod" + + "uleRequest\032\026.google.protobuf.Empty\"\353\001\202\323\344" + + "\223\002\335\001*J/v1/{name=organizations/*/security" + + "HealthAnalyticsSettings/customModules/*}" + + "ZF*D/v1/{name=folders/*/securityHealthAn" + + "alyticsSettings/customModules/*}ZG*E/v1/" + + "{name=projects/*/securityHealthAnalytics" + + "Settings/customModules/*}\332A\004name\022\221\002\n\021Get" + + "BigQueryExport\0228.google.cloud.securityce" + + "nter.v1.GetBigQueryExportRequest\032..googl" + + "e.cloud.securitycenter.v1.BigQueryExport" + + "\"\221\001\202\323\344\223\002\203\001\022,/v1/{name=organizations/*/bi" + + "gQueryExports/*}Z(\022&/v1/{name=folders/*/" + + "bigQueryExports/*}Z)\022\'/v1/{name=projects" + + "/*/bigQueryExports/*}\332A\004name\022\226\001\n\014GetIamP" + + "olicy\022\".google.iam.v1.GetIamPolicyReques" + + "t\032\025.google.iam.v1.Policy\"K\202\323\344\223\002:\"5/v1/{r" + + "esource=organizations/*/sources/*}:getIa" + + "mPolicy:\001*\332A\010resource\022\370\001\n\rGetMuteConfig\022" + + "4.google.cloud.securitycenter.v1.GetMute" + + "ConfigRequest\032*.google.cloud.securitycen" + + "ter.v1.MuteConfig\"\204\001\202\323\344\223\002w\022(/v1/{name=or" + + "ganizations/*/muteConfigs/*}Z$\022\"/v1/{nam" + + "e=folders/*/muteConfigs/*}Z%\022#/v1/{name=" + + "projects/*/muteConfigs/*}\332A\004name\022\251\002\n\025Get" + + "NotificationConfig\022<.google.cloud.securi" + + "tycenter.v1.GetNotificationConfigRequest" + + "\0322.google.cloud.securitycenter.v1.Notifi" + + "cationConfig\"\235\001\202\323\344\223\002\217\001\0220/v1/{name=organi" + + "zations/*/notificationConfigs/*}Z,\022*/v1/" + + "{name=folders/*/notificationConfigs/*}Z-" + + "\022+/v1/{name=projects/*/notificationConfi" + + "gs/*}\332A\004name\022\317\001\n\027GetOrganizationSettings" + + "\022>.google.cloud.securitycenter.v1.GetOrg" + + "anizationSettingsRequest\0324.google.cloud." + + "securitycenter.v1.OrganizationSettings\">" + + "\202\323\344\223\0021\022//v1/{name=organizations/*/organi" + + "zationSettings}\332A\004name\022\340\003\n/GetEffectiveS" + + "ecurityHealthAnalyticsCustomModule\022V.goo" + + "gle.cloud.securitycenter.v1.GetEffective" + + "SecurityHealthAnalyticsCustomModuleReque" + + "st\032L.google.cloud.securitycenter.v1.Effe" + + "ctiveSecurityHealthAnalyticsCustomModule" + + "\"\206\002\202\323\344\223\002\370\001\022S/v1/{name=organizations/*/se" + + "curityHealthAnalyticsSettings/effectiveC" + + "ustomModules/*}ZO\022M/v1/{name=folders/*/s" + + "ecurityHealthAnalyticsSettings/effective" + + "CustomModules/*}ZP\022N/v1/{name=projects/*" + + "/securityHealthAnalyticsSettings/effecti" + + "veCustomModules/*}\332A\004name\022\252\003\n&GetSecurit" + + "yHealthAnalyticsCustomModule\022M.google.cl" + + "oud.securitycenter.v1.GetSecurityHealthA" + + "nalyticsCustomModuleRequest\032C.google.clo" + + "ud.securitycenter.v1.SecurityHealthAnaly" + + "ticsCustomModule\"\353\001\202\323\344\223\002\335\001\022J/v1/{name=or" + + "ganizations/*/securityHealthAnalyticsSet" + + "tings/customModules/*}ZF\022D/v1/{name=fold" + + "ers/*/securityHealthAnalyticsSettings/cu", + "stomModules/*}ZG\022E/v1/{name=projects/*/s" + + "ecurityHealthAnalyticsSettings/customMod" + + "ules/*}\332A\004name\022\232\001\n\tGetSource\0220.google.cl" + + "oud.securitycenter.v1.GetSourceRequest\032&" + + ".google.cloud.securitycenter.v1.Source\"3" + + "\202\323\344\223\002&\022$/v1/{name=organizations/*/source" + + "s/*}\332A\004name\022\203\002\n\013GroupAssets\0222.google.clo" + + "ud.securitycenter.v1.GroupAssetsRequest\032" + + "3.google.cloud.securitycenter.v1.GroupAs" + + "setsResponse\"\212\001\202\323\344\223\002\203\001\")/v1/{parent=orga" + + "nizations/*}/assets:group:\001*Z(\"#/v1/{par" + + "ent=folders/*}/assets:group:\001*Z)\"$/v1/{p" + + "arent=projects/*}/assets:group:\001*\022\277\002\n\rGr" + + "oupFindings\0224.google.cloud.securitycente" + + "r.v1.GroupFindingsRequest\0325.google.cloud" + + ".securitycenter.v1.GroupFindingsResponse" + + "\"\300\001\202\323\344\223\002\247\001\"5/v1/{parent=organizations/*/" + + "sources/*}/findings:group:\001*Z4\"//v1/{par" + + "ent=folders/*/sources/*}/findings:group:" + + "\001*Z5\"0/v1/{parent=projects/*/sources/*}/" + + "findings:group:\001*\332A\017parent,group_by\022\343\001\n\n" + + "ListAssets\0221.google.cloud.securitycenter" + + ".v1.ListAssetsRequest\0322.google.cloud.sec" + + "uritycenter.v1.ListAssetsResponse\"n\202\323\344\223\002" + + "h\022#/v1/{parent=organizations/*}/assetsZ\037" + + "\022\035/v1/{parent=folders/*}/assetsZ \022\036/v1/{" + + "parent=projects/*}/assets\022\210\004\n2ListDescen" + + "dantSecurityHealthAnalyticsCustomModules" + + "\022Y.google.cloud.securitycenter.v1.ListDe" + + "scendantSecurityHealthAnalyticsCustomMod" + + "ulesRequest\032Z.google.cloud.securitycente" + + "r.v1.ListDescendantSecurityHealthAnalyti" + + "csCustomModulesResponse\"\232\002\202\323\344\223\002\212\002\022Y/v1/{" + + "parent=organizations/*/securityHealthAna" + + "lyticsSettings}/customModules:listDescen" + + "dantZU\022S/v1/{parent=folders/*/securityHe" + + "althAnalyticsSettings}/customModules:lis" + + "tDescendantZV\022T/v1/{parent=projects/*/se" + + "curityHealthAnalyticsSettings}/customMod" + + "ules:listDescendant\332A\006parent\022\217\002\n\014ListFin" + + "dings\0223.google.cloud.securitycenter.v1.L" + + "istFindingsRequest\0324.google.cloud.securi" + + "tycenter.v1.ListFindingsResponse\"\223\001\202\323\344\223\002" + + "\214\001\022//v1/{parent=organizations/*/sources/" + + "*}/findingsZ+\022)/v1/{parent=folders/*/sou" + + "rces/*}/findingsZ,\022*/v1/{parent=projects" + + "/*/sources/*}/findings\022\213\002\n\017ListMuteConfi" + + "gs\0226.google.cloud.securitycenter.v1.List" + + "MuteConfigsRequest\0327.google.cloud.securi" + + "tycenter.v1.ListMuteConfigsResponse\"\206\001\202\323" + + "\344\223\002w\022(/v1/{parent=organizations/*}/muteC" + + "onfigsZ$\022\"/v1/{parent=folders/*}/muteCon" + + "figsZ%\022#/v1/{parent=projects/*}/muteConf" + + "igs\332A\006parent\022\274\002\n\027ListNotificationConfigs" + + "\022>.google.cloud.securitycenter.v1.ListNo" + + "tificationConfigsRequest\032?.google.cloud." + + "securitycenter.v1.ListNotificationConfig" + + "sResponse\"\237\001\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\332A\006parent\022\363\003\n1ListEffectiveSecurityHea" + + "lthAnalyticsCustomModules\022X.google.cloud" + + ".securitycenter.v1.ListEffectiveSecurity" + + "HealthAnalyticsCustomModulesRequest\032Y.go" + + "ogle.cloud.securitycenter.v1.ListEffecti" + + "veSecurityHealthAnalyticsCustomModulesRe" + + "sponse\"\210\002\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\332A\006parent\022\275\003\n(Li" + + "stSecurityHealthAnalyticsCustomModules\022O" + + ".google.cloud.securitycenter.v1.ListSecu" + + "rityHealthAnalyticsCustomModulesRequest\032" + + "P.google.cloud.securitycenter.v1.ListSec" + + "urityHealthAnalyticsCustomModulesRespons" + + "e\"\355\001\202\323\344\223\002\335\001\022J/v1/{parent=organizations/*" + + "/securityHealthAnalyticsSettings}/custom" + + "ModulesZF\022D/v1/{parent=folders/*/securit" + + "yHealthAnalyticsSettings}/customModulesZ" + + "G\022E/v1/{parent=projects/*/securityHealth" + + "AnalyticsSettings}/customModules\332A\006paren" + + "t\022\362\001\n\013ListSources\0222.google.cloud.securit" + + "ycenter.v1.ListSourcesRequest\0323.google.c" + + "loud.securitycenter.v1.ListSourcesRespon" + + "se\"z\202\323\344\223\002k\022$/v1/{parent=organizations/*}" + + "/sourcesZ \022\036/v1/{parent=folders/*}/sourc" + + "esZ!\022\037/v1/{parent=projects/*}/sources\332A\006" + + "parent\022\207\002\n\021RunAssetDiscovery\0228.google.cl" + + "oud.securitycenter.v1.RunAssetDiscoveryR" + + "equest\032\035.google.longrunning.Operation\"\230\001" + + "\202\323\344\223\0025\"0/v1/{parent=organizations/*}/ass" + + "ets:runDiscovery:\001*\332A\006parent\312AQ\n8google." + + "cloud.securitycenter.v1.RunAssetDiscover" + + "yResponse\022\025google.protobuf.Empty\022\304\002\n\017Set" + + "FindingState\0226.google.cloud.securitycent" + + "er.v1.SetFindingStateRequest\032\'.google.cl" + + "oud.securitycenter.v1.Finding\"\317\001\202\323\344\223\002\260\001\"" + + "8/v1/{name=organizations/*/sources/*/fin" + + "dings/*}:setState:\001*Z7\"2/v1/{name=folder" + + "s/*/sources/*/findings/*}:setState:\001*Z8\"" + + "3/v1/{name=projects/*/sources/*/findings" + + "/*}:setState:\001*\332A\025name,state,start_time\022" + + "\245\002\n\007SetMute\022..google.cloud.securitycente" + + "r.v1.SetMuteRequest\032\'.google.cloud.secur" + + "itycenter.v1.Finding\"\300\001\202\323\344\223\002\255\001\"7/v1/{nam" + "e=organizations/*/sources/*/findings/*}:" - + "\007findingZ<21/v1/{finding.name=folders/*/" - + "sources/*/findings/*}:\007findingZ=22/v1/{f" - + "inding.name=projects/*/sources/*/finding", - "s/*}:\007finding\332A\007finding\022\335\002\n\020UpdateMuteCo" - + "nfig\0227.google.cloud.securitycenter.v1.Up" - + "dateMuteConfigRequest\032*.google.cloud.sec" - + "uritycenter.v1.MuteConfig\"\343\001\202\323\344\223\002\302\00124/v1" - + "/{mute_config.name=organizations/*/muteC" - + "onfigs/*}:\013mute_configZ=2./v1/{mute_conf" - + "ig.name=folders/*/muteConfigs/*}:\013mute_c" - + "onfigZ>2//v1/{mute_config.name=projects/" - + "*/muteConfigs/*}:\013mute_config\332A\027mute_con" - + "fig,update_mask\022\333\003\n\030UpdateNotificationCo" - + "nfig\022?.google.cloud.securitycenter.v1.Up" - + "dateNotificationConfigRequest\0322.google.c" - + "loud.securitycenter.v1.NotificationConfi" - + "g\"\311\002\202\323\344\223\002\212\0022D/v1/{notification_config.na" - + "me=organizations/*/notificationConfigs/*" - + "}:\023notification_configZU2>/v1/{notificat" - + "ion_config.name=folders/*/notificationCo" - + "nfigs/*}:\023notification_configZV2?/v1/{no" - + "tification_config.name=projects/*/notifi" - + "cationConfigs/*}:\023notification_config\332A\023" - + "notification_config\332A\037notification_confi" - + "g,update_mask\022\223\002\n\032UpdateOrganizationSett" - + "ings\022A.google.cloud.securitycenter.v1.Up" - + "dateOrganizationSettingsRequest\0324.google" - + ".cloud.securitycenter.v1.OrganizationSet" - + "tings\"|\202\323\344\223\002^2E/v1/{organization_setting" - + "s.name=organizations/*/organizationSetti" - + "ngs}:\025organization_settings\332A\025organizati" - + "on_settings\022\261\001\n\014UpdateSource\0223.google.cl" - + "oud.securitycenter.v1.UpdateSourceReques" - + "t\032&.google.cloud.securitycenter.v1.Sourc" - + "e\"D\202\323\344\223\00252+/v1/{source.name=organization" - + "s/*/sources/*}:\006source\332A\006source\022\237\005\n\023Upda" - + "teSecurityMarks\022:.google.cloud.securityc" - + "enter.v1.UpdateSecurityMarksRequest\032-.go" - + "ogle.cloud.securitycenter.v1.SecurityMar" - + "ks\"\234\004\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\332A\016security_marks\022\364\002\n\024CreateBigQ" - + "ueryExport\022;.google.cloud.securitycenter" - + ".v1.CreateBigQueryExportRequest\032..google" - + ".cloud.securitycenter.v1.BigQueryExport\"" - + "\356\001\202\323\344\223\002\271\001\",/v1/{parent=organizations/*}/" - + "bigQueryExports:\020big_query_exportZ:\"&/v1" - + "/{parent=folders/*}/bigQueryExports:\020big" - + "_query_exportZ;\"\'/v1/{parent=projects/*}" - + "/bigQueryExports:\020big_query_export\332A+par" - + "ent,big_query_export,big_query_export_id" - + "\022\377\001\n\024DeleteBigQueryExport\022;.google.cloud" - + ".securitycenter.v1.DeleteBigQueryExportR" - + "equest\032\026.google.protobuf.Empty\"\221\001\202\323\344\223\002\203\001" - + "*,/v1/{name=organizations/*/bigQueryExpo" - + "rts/*}Z(*&/v1/{name=folders/*/bigQueryEx" - + "ports/*}Z)*\'/v1/{name=projects/*/bigQuer" - + "yExports/*}\332A\004name\022\230\003\n\024UpdateBigQueryExp" - + "ort\022;.google.cloud.securitycenter.v1.Upd" + + "setMute:\001*Z6\"1/v1/{name=folders/*/source" + + "s/*/findings/*}:setMute:\001*Z7\"2/v1/{name=" + + "projects/*/sources/*/findings/*}:setMute" + + ":\001*\332A\tname,mute\022\235\001\n\014SetIamPolicy\022\".googl" + + "e.iam.v1.SetIamPolicyRequest\032\025.google.ia" + + "m.v1.Policy\"R\202\323\344\223\002:\"5/v1/{resource=organ" + + "izations/*/sources/*}:setIamPolicy:\001*\332A\017" + + "resource,policy\022\310\001\n\022TestIamPermissions\022(" + + ".google.iam.v1.TestIamPermissionsRequest" + + "\032).google.iam.v1.TestIamPermissionsRespo" + + "nse\"]\202\323\344\223\002@\";/v1/{resource=organizations" + + "/*/sources/*}:testIamPermissions:\001*\332A\024re" + + "source,permissions\022\320\003\n\024UpdateExternalSys" + + "tem\022;.google.cloud.securitycenter.v1.Upd" + + "ateExternalSystemRequest\032..google.cloud." + + "securitycenter.v1.ExternalSystem\"\312\002\202\323\344\223\002" + + "\245\0022Q/v1/{external_system.name=organizati" + + "ons/*/sources/*/findings/*/externalSyste" + + "ms/*}:\017external_systemZ^2K/v1/{external_" + + "system.name=folders/*/sources/*/findings" + + "/*/externalSystems/*}:\017external_systemZ_" + + "2L/v1/{external_system.name=projects/*/s" + + "ources/*/findings/*/externalSystems/*}:\017" + + "external_system\332A\033external_system,update" + + "_mask\022\301\002\n\rUpdateFinding\0224.google.cloud.s" + + "ecuritycenter.v1.UpdateFindingRequest\032\'." + + "google.cloud.securitycenter.v1.Finding\"\320" + + "\001\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\332" + + "A\007finding\022\335\002\n\020UpdateMuteConfig\0227.google." + + "cloud.securitycenter.v1.UpdateMuteConfig" + + "Request\032*.google.cloud.securitycenter.v1" + + ".MuteConfig\"\343\001\202\323\344\223\002\302\00124/v1/{mute_config." + + "name=organizations/*/muteConfigs/*}:\013mut" + + "e_configZ=2./v1/{mute_config.name=folder" + + "s/*/muteConfigs/*}:\013mute_configZ>2//v1/{" + + "mute_config.name=projects/*/muteConfigs/" + + "*}:\013mute_config\332A\027mute_config,update_mas" + + "k\022\333\003\n\030UpdateNotificationConfig\022?.google." + + "cloud.securitycenter.v1.UpdateNotificati" + + "onConfigRequest\0322.google.cloud.securityc" + + "enter.v1.NotificationConfig\"\311\002\202\323\344\223\002\212\0022D/" + + "v1/{notification_config.name=organizatio" + + "ns/*/notificationConfigs/*}:\023notificatio" + + "n_configZU2>/v1/{notification_config.nam" + + "e=folders/*/notificationConfigs/*}:\023noti" + + "fication_configZV2?/v1/{notification_con" + + "fig.name=projects/*/notificationConfigs/" + + "*}:\023notification_config\332A\023notification_c" + + "onfig\332A\037notification_config,update_mask\022" + + "\223\002\n\032UpdateOrganizationSettings\022A.google." + + "cloud.securitycenter.v1.UpdateOrganizati" + + "onSettingsRequest\0324.google.cloud.securit" + + "ycenter.v1.OrganizationSettings\"|\202\323\344\223\002^2" + + "E/v1/{organization_settings.name=organiz" + + "ations/*/organizationSettings}:\025organiza" + + "tion_settings\332A\025organization_settings\022\324\005" + + "\n)UpdateSecurityHealthAnalyticsCustomMod" + + "ule\022P.google.cloud.securitycenter.v1.Upd" + + "ateSecurityHealthAnalyticsCustomModuleRe" + + "quest\032C.google.cloud.securitycenter.v1.S" + + "ecurityHealthAnalyticsCustomModule\"\217\004\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\332A3securit" + + "y_health_analytics_custom_module,update_" + + "mask\022\261\001\n\014UpdateSource\0223.google.cloud.sec" + + "uritycenter.v1.UpdateSourceRequest\032&.goo" + + "gle.cloud.securitycenter.v1.Source\"D\202\323\344\223" + + "\00252+/v1/{source.name=organizations/*/sou" + + "rces/*}:\006source\332A\006source\022\237\005\n\023UpdateSecur" + + "ityMarks\022:.google.cloud.securitycenter.v" + + "1.UpdateSecurityMarksRequest\032-.google.cl" + + "oud.securitycenter.v1.SecurityMarks\"\234\004\202\323" + + "\344\223\002\204\0042@/v1/{security_marks.name=organiza" + + "tions/*/assets/*/securityMarks}:\016securit" + + "y_marksZL2:/v1/{security_marks.name=fold" + + "ers/*/assets/*/securityMarks}:\016security_" + + "marksZM2;/v1/{security_marks.name=projec" + + "ts/*/assets/*/securityMarks}:\016security_m" + + "arksZ^2L/v1/{security_marks.name=organiz" + + "ations/*/sources/*/findings/*/securityMa" + + "rks}:\016security_marksZX2F/v1/{security_ma" + + "rks.name=folders/*/sources/*/findings/*/" + + "securityMarks}:\016security_marksZY2G/v1/{s" + + "ecurity_marks.name=projects/*/sources/*/" + + "findings/*/securityMarks}:\016security_mark" + + "s\332A\016security_marks\022\364\002\n\024CreateBigQueryExp" + + "ort\022;.google.cloud.securitycenter.v1.Cre" + "ateBigQueryExportRequest\032..google.cloud." - + "securitycenter.v1.BigQueryExport\"\222\002\202\323\344\223\002" - + "\354\0012=/v1/{big_query_export.name=organizat" - + "ions/*/bigQueryExports/*}:\020big_query_exp" - + "ortZK27/v1/{big_query_export.name=folder" - + "s/*/bigQueryExports/*}:\020big_query_export" - + "ZL28/v1/{big_query_export.name=projects/" - + "*/bigQueryExports/*}:\020big_query_export\332A" - + "\034big_query_export,update_mask\022\244\002\n\023ListBi" - + "gQueryExports\022:.google.cloud.securitycen" - + "ter.v1.ListBigQueryExportsRequest\032;.goog" - + "le.cloud.securitycenter.v1.ListBigQueryE" - + "xportsResponse\"\223\001\202\323\344\223\002\203\001\022,/v1/{parent=or" - + "ganizations/*}/bigQueryExportsZ(\022&/v1/{p" - + "arent=folders/*}/bigQueryExportsZ)\022\'/v1/" - + "{parent=projects/*}/bigQueryExports\332A\006pa" - + "rent\032Q\312A\035securitycenter.googleapis.com\322A" - + ".https://www.googleapis.com/auth/cloud-p" - + "latformB\330\001\n\"com.google.cloud.securitycen" - + "ter.v1P\001ZJcloud.google.com/go/securityce" - + "nter/apiv1/securitycenterpb;securitycent" - + "erpb\252\002\036Google.Cloud.SecurityCenter.V1\312\002\036" - + "Google\\Cloud\\SecurityCenter\\V1\352\002!Google:" - + ":Cloud::SecurityCenter::V1P\000b\006proto3" + + "securitycenter.v1.BigQueryExport\"\356\001\202\323\344\223\002" + + "\271\001\",/v1/{parent=organizations/*}/bigQuer" + + "yExports:\020big_query_exportZ:\"&/v1/{paren" + + "t=folders/*}/bigQueryExports:\020big_query_" + + "exportZ;\"\'/v1/{parent=projects/*}/bigQue" + + "ryExports:\020big_query_export\332A+parent,big" + + "_query_export,big_query_export_id\022\377\001\n\024De" + + "leteBigQueryExport\022;.google.cloud.securi" + + "tycenter.v1.DeleteBigQueryExportRequest\032" + + "\026.google.protobuf.Empty\"\221\001\202\323\344\223\002\203\001*,/v1/{" + + "name=organizations/*/bigQueryExports/*}Z" + + "(*&/v1/{name=folders/*/bigQueryExports/*" + + "}Z)*\'/v1/{name=projects/*/bigQueryExport" + + "s/*}\332A\004name\022\230\003\n\024UpdateBigQueryExport\022;.g" + + "oogle.cloud.securitycenter.v1.UpdateBigQ" + + "ueryExportRequest\032..google.cloud.securit" + + "ycenter.v1.BigQueryExport\"\222\002\202\323\344\223\002\354\0012=/v1" + + "/{big_query_export.name=organizations/*/" + + "bigQueryExports/*}:\020big_query_exportZK27" + + "/v1/{big_query_export.name=folders/*/big" + + "QueryExports/*}:\020big_query_exportZL28/v1" + + "/{big_query_export.name=projects/*/bigQu" + + "eryExports/*}:\020big_query_export\332A\034big_qu" + + "ery_export,update_mask\022\244\002\n\023ListBigQueryE" + + "xports\022:.google.cloud.securitycenter.v1." + + "ListBigQueryExportsRequest\032;.google.clou" + + "d.securitycenter.v1.ListBigQueryExportsR" + + "esponse\"\223\001\202\323\344\223\002\203\001\022,/v1/{parent=organizat" + + "ions/*}/bigQueryExportsZ(\022&/v1/{parent=f" + + "olders/*}/bigQueryExportsZ)\022\'/v1/{parent" + + "=projects/*}/bigQueryExports\332A\006parent\032Q\312" + + "A\035securitycenter.googleapis.com\322A.https:" + + "//www.googleapis.com/auth/cloud-platform" + + "B\330\001\n\"com.google.cloud.securitycenter.v1P" + + "\001ZJcloud.google.com/go/securitycenter/ap" + + "iv1/securitycenterpb;securitycenterpb\252\002\036" + + "Google.Cloud.SecurityCenter.V1\312\002\036Google\\" + + "Cloud\\SecurityCenter\\V1\352\002!Google::Cloud:" + + ":SecurityCenter::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass - .getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.securitycenter.v1.AssetOuterClass.getDescriptor(), com.google.cloud.securitycenter.v1.BigQueryExportProto.getDescriptor(), + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModuleProto + .getDescriptor(), com.google.cloud.securitycenter.v1.ExternalSystemProto.getDescriptor(), com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(), com.google.cloud.securitycenter.v1.FolderProto.getDescriptor(), com.google.cloud.securitycenter.v1.MuteConfigProto.getDescriptor(), com.google.cloud.securitycenter.v1.NotificationConfigProto.getDescriptor(), com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass + .getDescriptor(), + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleProto + .getDescriptor(), com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(), com.google.cloud.securitycenter.v1.SourceOuterClass.getDescriptor(), com.google.iam.v1.IamPolicyProto.getDescriptor(), @@ -783,8 +991,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Parent", "ConfigId", "NotificationConfig", }); - internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor = + internal_static_google_cloud_securitycenter_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_securitycenter_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_CreateSecurityHealthAnalyticsCustomModuleRequest_descriptor, + new java.lang.String[] { + "Parent", "SecurityHealthAnalyticsCustomModule", + }); + internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor = + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_CreateSourceRequest_descriptor, @@ -792,7 +1008,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Source", }); internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_DeleteMuteConfigRequest_descriptor, @@ -800,15 +1016,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_DeleteNotificationConfigRequest_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_cloud_securitycenter_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_securitycenter_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_DeleteSecurityHealthAnalyticsCustomModuleRequest_descriptor, + new java.lang.String[] { + "Name", + }); internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_GetBigQueryExportRequest_descriptor, @@ -816,7 +1040,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_GetMuteConfigRequest_descriptor, @@ -824,7 +1048,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_GetNotificationConfigRequest_descriptor, @@ -832,15 +1056,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_GetOrganizationSettingsRequest_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_cloud_securitycenter_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_securitycenter_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GetEffectiveSecurityHealthAnalyticsCustomModuleRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_securitycenter_v1_GetSecurityHealthAnalyticsCustomModuleRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_securitycenter_v1_GetSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GetSecurityHealthAnalyticsCustomModuleRequest_descriptor, + new java.lang.String[] { + "Name", + }); internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_securitycenter_v1_GetSourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_GetSourceRequest_descriptor, @@ -848,7 +1088,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_GroupAssetsRequest_descriptor, @@ -856,7 +1096,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "GroupBy", "CompareDuration", "ReadTime", "PageToken", "PageSize", }); internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_GroupAssetsResponse_descriptor, @@ -864,7 +1104,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GroupByResults", "ReadTime", "NextPageToken", "TotalSize", }); internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_GroupFindingsRequest_descriptor, @@ -872,7 +1112,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "GroupBy", "ReadTime", "CompareDuration", "PageToken", "PageSize", }); internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_GroupFindingsResponse_descriptor, @@ -880,7 +1120,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GroupByResults", "ReadTime", "NextPageToken", "TotalSize", }); internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_securitycenter_v1_GroupResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_GroupResult_descriptor, @@ -897,8 +1137,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_securitycenter_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_securitycenter_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListDescendantSecurityHealthAnalyticsCustomModulesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_securitycenter_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_securitycenter_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListDescendantSecurityHealthAnalyticsCustomModulesResponse_descriptor, + new java.lang.String[] { + "SecurityHealthAnalyticsCustomModules", "NextPageToken", + }); internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_ListMuteConfigsRequest_descriptor, @@ -906,7 +1162,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_ListMuteConfigsResponse_descriptor, @@ -914,7 +1170,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MuteConfigs", "NextPageToken", }); internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsRequest_descriptor, @@ -922,15 +1178,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageToken", "PageSize", }); internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_ListNotificationConfigsResponse_descriptor, new java.lang.String[] { "NotificationConfigs", "NextPageToken", }); + internal_static_google_cloud_securitycenter_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_securitycenter_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_securitycenter_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_securitycenter_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListEffectiveSecurityHealthAnalyticsCustomModulesResponse_descriptor, + new java.lang.String[] { + "EffectiveSecurityHealthAnalyticsCustomModules", "NextPageToken", + }); + internal_static_google_cloud_securitycenter_v1_ListSecurityHealthAnalyticsCustomModulesRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_securitycenter_v1_ListSecurityHealthAnalyticsCustomModulesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListSecurityHealthAnalyticsCustomModulesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_securitycenter_v1_ListSecurityHealthAnalyticsCustomModulesResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_securitycenter_v1_ListSecurityHealthAnalyticsCustomModulesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ListSecurityHealthAnalyticsCustomModulesResponse_descriptor, + new java.lang.String[] { + "SecurityHealthAnalyticsCustomModules", "NextPageToken", + }); internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_ListSourcesRequest_descriptor, @@ -938,7 +1226,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageToken", "PageSize", }); internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_ListSourcesResponse_descriptor, @@ -946,7 +1234,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Sources", "NextPageToken", }); internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_ListAssetsRequest_descriptor, @@ -961,7 +1249,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PageSize", }); internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_ListAssetsResponse_descriptor, @@ -979,7 +1267,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Asset", "StateChange", }); internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_ListFindingsRequest_descriptor, @@ -994,7 +1282,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PageSize", }); internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_ListFindingsResponse_descriptor, @@ -1029,7 +1317,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Folders", }); internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_SetFindingStateRequest_descriptor, @@ -1037,7 +1325,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "State", "StartTime", }); internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_securitycenter_v1_SetMuteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_SetMuteRequest_descriptor, @@ -1045,7 +1333,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Mute", }); internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_RunAssetDiscoveryRequest_descriptor, @@ -1053,7 +1341,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", }); internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_UpdateExternalSystemRequest_descriptor, @@ -1061,7 +1349,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExternalSystem", "UpdateMask", }); internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(42); internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_UpdateFindingRequest_descriptor, @@ -1069,7 +1357,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Finding", "UpdateMask", }); internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(43); internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_UpdateMuteConfigRequest_descriptor, @@ -1077,7 +1365,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MuteConfig", "UpdateMask", }); internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(44); internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_UpdateNotificationConfigRequest_descriptor, @@ -1085,15 +1373,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NotificationConfig", "UpdateMask", }); internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(45); internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_UpdateOrganizationSettingsRequest_descriptor, new java.lang.String[] { "OrganizationSettings", "UpdateMask", }); + internal_static_google_cloud_securitycenter_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_cloud_securitycenter_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_descriptor, + new java.lang.String[] { + "SecurityHealthAnalyticsCustomModule", "UpdateMask", + }); internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(47); internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_UpdateSourceRequest_descriptor, @@ -1101,7 +1397,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Source", "UpdateMask", }); internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(48); internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_UpdateSecurityMarksRequest_descriptor, @@ -1109,7 +1405,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SecurityMarks", "UpdateMask", "StartTime", }); internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(49); internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_CreateBigQueryExportRequest_descriptor, @@ -1117,7 +1413,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "BigQueryExport", "BigQueryExportId", }); internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(50); internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_UpdateBigQueryExportRequest_descriptor, @@ -1125,7 +1421,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BigQueryExport", "UpdateMask", }); internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(51); internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsRequest_descriptor, @@ -1133,7 +1429,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(52); internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_ListBigQueryExportsResponse_descriptor, @@ -1141,7 +1437,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BigQueryExports", "NextPageToken", }); internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(53); internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_DeleteBigQueryExportRequest_descriptor, @@ -1159,19 +1455,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.longrunning.OperationsProto.operationInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.securitycenter.v1.AssetOuterClass.getDescriptor(); com.google.cloud.securitycenter.v1.BigQueryExportProto.getDescriptor(); + com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModuleProto + .getDescriptor(); com.google.cloud.securitycenter.v1.ExternalSystemProto.getDescriptor(); com.google.cloud.securitycenter.v1.FindingOuterClass.getDescriptor(); com.google.cloud.securitycenter.v1.FolderProto.getDescriptor(); com.google.cloud.securitycenter.v1.MuteConfigProto.getDescriptor(); com.google.cloud.securitycenter.v1.NotificationConfigProto.getDescriptor(); com.google.cloud.securitycenter.v1.OrganizationSettingsOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1.RunAssetDiscoveryResponseOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleProto.getDescriptor(); com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(); com.google.cloud.securitycenter.v1.SourceOuterClass.getDescriptor(); com.google.iam.v1.IamPolicyProto.getDescriptor(); diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityHealthAnalyticsCustomModuleRequest.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityHealthAnalyticsCustomModuleRequest.java new file mode 100644 index 000000000000..346e9f1d3dbe --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityHealthAnalyticsCustomModuleRequest.java @@ -0,0 +1,1063 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
+ * Request message for updating security health analytics custom modules.
+ * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest} + */ +public final class UpdateSecurityHealthAnalyticsCustomModuleRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) + UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() to construct. + private UpdateSecurityHealthAnalyticsCustomModuleRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateSecurityHealthAnalyticsCustomModuleRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateSecurityHealthAnalyticsCustomModuleRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + .class, + com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + .Builder.class); + } + + public static final int SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE_FIELD_NUMBER = 1; + private com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + securityHealthAnalyticsCustomModule_; + /** + * + * + *
+   * Required. The SecurityHealthAnalytics custom module to update.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityHealthAnalyticsCustomModule field is set. + */ + @java.lang.Override + public boolean hasSecurityHealthAnalyticsCustomModule() { + return securityHealthAnalyticsCustomModule_ != null; + } + /** + * + * + *
+   * Required. The SecurityHealthAnalytics custom module to update.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityHealthAnalyticsCustomModule. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModule() { + return securityHealthAnalyticsCustomModule_ == null + ? com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance() + : securityHealthAnalyticsCustomModule_; + } + /** + * + * + *
+   * Required. The SecurityHealthAnalytics custom module to update.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder + getSecurityHealthAnalyticsCustomModuleOrBuilder() { + return securityHealthAnalyticsCustomModule_ == null + ? com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance() + : securityHealthAnalyticsCustomModule_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (securityHealthAnalyticsCustomModule_ != null) { + output.writeMessage(1, getSecurityHealthAnalyticsCustomModule()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (securityHealthAnalyticsCustomModule_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getSecurityHealthAnalyticsCustomModule()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.UpdateSecurityHealthAnalyticsCustomModuleRequest)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest other = + (com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) obj; + + if (hasSecurityHealthAnalyticsCustomModule() != other.hasSecurityHealthAnalyticsCustomModule()) + return false; + if (hasSecurityHealthAnalyticsCustomModule()) { + if (!getSecurityHealthAnalyticsCustomModule() + .equals(other.getSecurityHealthAnalyticsCustomModule())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasSecurityHealthAnalyticsCustomModule()) { + hash = (37 * hash) + SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE_FIELD_NUMBER; + hash = (53 * hash) + getSecurityHealthAnalyticsCustomModule().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + 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.UpdateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + 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.UpdateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + 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.UpdateSecurityHealthAnalyticsCustomModuleRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + 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.UpdateSecurityHealthAnalyticsCustomModuleRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + 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.UpdateSecurityHealthAnalyticsCustomModuleRequest + 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.UpdateSecurityHealthAnalyticsCustomModuleRequest + 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.UpdateSecurityHealthAnalyticsCustomModuleRequest + 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 for updating security health analytics custom modules.
+   * 
+ * + * Protobuf type {@code + * google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) + com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + .class, + com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + securityHealthAnalyticsCustomModule_ = null; + if (securityHealthAnalyticsCustomModuleBuilder_ != null) { + securityHealthAnalyticsCustomModuleBuilder_.dispose(); + securityHealthAnalyticsCustomModuleBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecuritycenterService + .internal_static_google_cloud_securitycenter_v1_UpdateSecurityHealthAnalyticsCustomModuleRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + build() { + com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + buildPartial() { + com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest result = + new com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.securityHealthAnalyticsCustomModule_ = + securityHealthAnalyticsCustomModuleBuilder_ == null + ? securityHealthAnalyticsCustomModule_ + : securityHealthAnalyticsCustomModuleBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) { + return mergeFrom( + (com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest other) { + if (other + == com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + .getDefaultInstance()) return this; + if (other.hasSecurityHealthAnalyticsCustomModule()) { + mergeSecurityHealthAnalyticsCustomModule(other.getSecurityHealthAnalyticsCustomModule()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getSecurityHealthAnalyticsCustomModuleFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + securityHealthAnalyticsCustomModule_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> + securityHealthAnalyticsCustomModuleBuilder_; + /** + * + * + *
+     * Required. The SecurityHealthAnalytics custom module to update.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityHealthAnalyticsCustomModule field is set. + */ + public boolean hasSecurityHealthAnalyticsCustomModule() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The SecurityHealthAnalytics custom module to update.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityHealthAnalyticsCustomModule. + */ + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModule() { + if (securityHealthAnalyticsCustomModuleBuilder_ == null) { + return securityHealthAnalyticsCustomModule_ == null + ? com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance() + : securityHealthAnalyticsCustomModule_; + } else { + return securityHealthAnalyticsCustomModuleBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The SecurityHealthAnalytics custom module to update.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule value) { + if (securityHealthAnalyticsCustomModuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityHealthAnalyticsCustomModule_ = value; + } else { + securityHealthAnalyticsCustomModuleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The SecurityHealthAnalytics custom module to update.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder + builderForValue) { + if (securityHealthAnalyticsCustomModuleBuilder_ == null) { + securityHealthAnalyticsCustomModule_ = builderForValue.build(); + } else { + securityHealthAnalyticsCustomModuleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The SecurityHealthAnalytics custom module to update.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSecurityHealthAnalyticsCustomModule( + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule value) { + if (securityHealthAnalyticsCustomModuleBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && securityHealthAnalyticsCustomModule_ != null + && securityHealthAnalyticsCustomModule_ + != com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance()) { + getSecurityHealthAnalyticsCustomModuleBuilder().mergeFrom(value); + } else { + securityHealthAnalyticsCustomModule_ = value; + } + } else { + securityHealthAnalyticsCustomModuleBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The SecurityHealthAnalytics custom module to update.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSecurityHealthAnalyticsCustomModule() { + bitField0_ = (bitField0_ & ~0x00000001); + securityHealthAnalyticsCustomModule_ = null; + if (securityHealthAnalyticsCustomModuleBuilder_ != null) { + securityHealthAnalyticsCustomModuleBuilder_.dispose(); + securityHealthAnalyticsCustomModuleBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The SecurityHealthAnalytics custom module to update.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder + getSecurityHealthAnalyticsCustomModuleBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSecurityHealthAnalyticsCustomModuleFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The SecurityHealthAnalytics custom module to update.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder + getSecurityHealthAnalyticsCustomModuleOrBuilder() { + if (securityHealthAnalyticsCustomModuleBuilder_ != null) { + return securityHealthAnalyticsCustomModuleBuilder_.getMessageOrBuilder(); + } else { + return securityHealthAnalyticsCustomModule_ == null + ? com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + .getDefaultInstance() + : securityHealthAnalyticsCustomModule_; + } + } + /** + * + * + *
+     * Required. The SecurityHealthAnalytics custom module to update.
+     * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder> + getSecurityHealthAnalyticsCustomModuleFieldBuilder() { + if (securityHealthAnalyticsCustomModuleBuilder_ == null) { + securityHealthAnalyticsCustomModuleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule.Builder, + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder>( + getSecurityHealthAnalyticsCustomModule(), getParentForChildren(), isClean()); + securityHealthAnalyticsCustomModule_ = null; + } + return securityHealthAnalyticsCustomModuleBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @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.UpdateSecurityHealthAnalyticsCustomModuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) + private static final com.google.cloud.securitycenter.v1 + .UpdateSecurityHealthAnalyticsCustomModuleRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest(); + } + + public static com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser< + UpdateSecurityHealthAnalyticsCustomModuleRequest>() { + @java.lang.Override + public UpdateSecurityHealthAnalyticsCustomModuleRequest 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 + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java new file mode 100644 index 000000000000..dcbe7e3702e5 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/securitycenter_service.proto + +package com.google.cloud.securitycenter.v1; + +public interface UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The SecurityHealthAnalytics custom module to update.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the securityHealthAnalyticsCustomModule field is set. + */ + boolean hasSecurityHealthAnalyticsCustomModule(); + /** + * + * + *
+   * Required. The SecurityHealthAnalytics custom module to update.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The securityHealthAnalyticsCustomModule. + */ + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule + getSecurityHealthAnalyticsCustomModule(); + /** + * + * + *
+   * Required. The SecurityHealthAnalytics custom module to update.
+   * 
+ * + * + * .google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleOrBuilder + getSecurityHealthAnalyticsCustomModuleOrBuilder(); + + /** + * + * + *
+   * The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/access.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/access.proto index b5d9d0d8368b..55ff088de8b2 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/access.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/access.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. @@ -106,4 +106,4 @@ message ServiceAccountDelegationInfo { message Geolocation { // A CLDR. string region_code = 1; -} \ No newline at end of file +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto index 8bfdbe9fd3f3..01462175af33 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/asset.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/bigquery_export.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/bigquery_export.proto index 6afd9b4f54f2..8299f05e49fe 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/bigquery_export.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/bigquery_export.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. @@ -78,22 +78,24 @@ message BigQueryExport { // (0-9), or underscores (_). string dataset = 4; - // Output only. The time at which the big query export was created. + // Output only. The time at which the BigQuery export was created. // This field is set by the server and will be ignored if provided on export // on creation. - google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The most recent time at which the big export was updated. + // Output only. The most recent time at which the BigQuery export was updated. // This field is set by the server and will be ignored if provided on export // creation or update. - google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Email address of the user who last edited the big query export. + // Output only. Email address of the user who last edited the BigQuery export. // This field is set by the server and will be ignored if provided on export // creation or update. string most_recent_editor = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The service account that needs permission to create table, upload data to - // the big query dataset. + // Output only. The service account that needs permission to create table and + // upload data to the BigQuery dataset. string principal = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/compliance.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/compliance.proto index 13edb396b9a9..bc183bb5e37d 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/compliance.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/compliance.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/connection.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/connection.proto index 6ac9c99e5e01..43a2115674c4 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/connection.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/connection.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/contact_details.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/contact_details.proto index c0e7c2f761c6..741ad8fae1da 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/contact_details.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/contact_details.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. @@ -30,8 +30,8 @@ message ContactDetails { repeated Contact contacts = 1; } -// Representa a single contact's email address +// The email address of a contact. message Contact { - // An email address e.g. "person123@company.com" + // An email address. For example, "`person123@company.com`". string email = 1; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/container.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/container.proto index 420356368cd9..c90168991f6a 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/container.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/container.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/database.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/database.proto index 39afb4e010d9..70bf35161032 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/database.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/database.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. @@ -29,7 +29,7 @@ option ruby_package = "Google::Cloud::SecurityCenter::V1"; // instances or Cloud Spanner instances), or the database instance itself. // Some database resources may not have the full resource name populated // because these resource types are not yet supported by Cloud Asset Inventory -// (e.g. CloudSQL databases). In these cases only the display name will be +// (e.g. CloudSQL databases). In these cases only the display name will be // provided. message Database { // The full resource name of the database the user connected to, if it is diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module.proto new file mode 100644 index 000000000000..3c5cc8af3b0a --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module.proto @@ -0,0 +1,81 @@ +// 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.securitycenter.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/securitycenter/v1/security_health_analytics_custom_config.proto"; + +option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; +option java_multiple_files = true; +option java_outer_classname = "EffectiveSecurityHealthAnalyticsCustomModuleProto"; +option java_package = "com.google.cloud.securitycenter.v1"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; +option ruby_package = "Google::Cloud::SecurityCenter::V1"; + +// An EffectiveSecurityHealthAnalyticsCustomModule is the representation of +// a Security Health Analytics custom module at a specified level of the +// resource hierarchy: organization, folder, or project. If a custom module is +// inherited from a parent organization or folder, the value of the +// `enablementState` property in EffectiveSecurityHealthAnalyticsCustomModule is +// set to the value that is effective in the parent, instead of `INHERITED`. +// For example, if the module is enabled in a parent organization or folder, the +// effective enablement_state for the module in all child folders or projects is +// also `enabled`. EffectiveSecurityHealthAnalyticsCustomModule is read-only. +message EffectiveSecurityHealthAnalyticsCustomModule { + option (google.api.resource) = { + type: "securitycenter.googleapis.com/EffectiveSecurityHealthAnalyticsCustomModule" + pattern: "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}" + pattern: "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}" + pattern: "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}" + }; + + // The enablement state of the module. + enum EnablementState { + // Unspecified enablement state. + ENABLEMENT_STATE_UNSPECIFIED = 0; + + // The module is enabled at the given level. + ENABLED = 1; + + // The module is disabled at the given level. + DISABLED = 2; + } + + // Output only. The resource name of the custom module. + // Its format is + // "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", + // or + // "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", + // or + // "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The user-specified configuration for the module. + CustomConfig custom_config = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The effective state of enablement for the module at the given + // level of the hierarchy. + EnablementState enablement_state = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The display name for the custom module. The name must be + // between 1 and 128 characters, start with a lowercase letter, and contain + // alphanumeric characters or underscores only. + string display_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/exfiltration.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/exfiltration.proto index 02620be69c28..4c3735dedf28 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/exfiltration.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/exfiltration.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. @@ -25,7 +25,7 @@ option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; option ruby_package = "Google::Cloud::SecurityCenter::V1"; // Exfiltration represents a data exfiltration attempt of one or more -// sources to one or more targets. Sources represent the source +// sources to one or more targets. Sources represent the source // of data that is exfiltrated, and Targets represents the destination the // data was copied to. message Exfiltration { diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/external_system.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/external_system.proto index 5dd45724718c..0e23d6a675f6 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/external_system.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/external_system.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/file.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/file.proto index 99cfa07ad9dd..4d7a459590c8 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/file.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/file.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto index ade6cca0a60b..5e2653c5e591 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. @@ -254,17 +254,19 @@ message Finding { // Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise Indicator indicator = 18; - // Represents vulnerability-specific fields like CVE and CVS scores. + // Represents vulnerability-specific fields like CVE and CVSS scores. // CVE stands for Common Vulnerabilities and Exposures // (https://cve.mitre.org/about/) Vulnerability vulnerability = 20; // Output only. The most recent time this finding was muted or unmuted. - google.protobuf.Timestamp mute_update_time = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp mute_update_time = 21 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Third party SIEM/SOAR fields within SCC, contains external system - // information and external system finding fields. - map external_systems = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Third party SIEM/SOAR fields within SCC, contains external + // system information and external system finding fields. + map external_systems = 22 + [(google.api.field_behavior) = OUTPUT_ONLY]; // MITRE ATT&CK tactics and techniques related to this finding. // See: https://attack.mitre.org @@ -286,9 +288,9 @@ message Finding { // Represents operating system processes associated with the Finding. repeated Process processes = 30; - // Output only. Map containing the points of contact for the given finding. The key - // represents the type of contact, while the value contains a list of all the - // contacts that pertain. Please refer to: + // Output only. Map containing the points of contact for the given finding. + // The key represents the type of contact, while the value contains a list of + // all the contacts that pertain. Please refer to: // https://cloud.google.com/resource-manager/docs/managing-notification-contacts#notification-categories // // { @@ -303,7 +305,8 @@ message Finding { // ] // } // } - map contacts = 33 [(google.api.field_behavior) = OUTPUT_ONLY]; + map contacts = 33 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Contains compliance information for security standards associated to the // finding. @@ -325,6 +328,11 @@ message Finding { // Next steps associate to the finding. string next_steps = 40; + // Unique identifier of the module which generated the finding. + // Example: + // folders/598186756061/securityHealthAnalyticsSettings/customModules/56799441161885 + string module_name = 41; + // Containers associated with the finding. containers provides information // for both Kubernetes and non-Kubernetes containers. repeated Container containers = 42; diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/folder.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/folder.proto index 2a1291daa784..e809154231c9 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/folder.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/folder.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/iam_binding.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/iam_binding.proto index 9d68642df0a4..533ac4bdadc8 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/iam_binding.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/iam_binding.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/indicator.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/indicator.proto index 567bc384d593..f36e8b4872d0 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/indicator.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/indicator.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. @@ -24,10 +24,11 @@ option java_package = "com.google.cloud.securitycenter.v1"; option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; option ruby_package = "Google::Cloud::SecurityCenter::V1"; -// Represents what's commonly known as an Indicator of compromise (IoC) in +// Represents what's commonly known as an _indicator of compromise_ (IoC) in // computer forensics. This is an artifact observed on a network or in an // operating system that, with high confidence, indicates a computer intrusion. -// Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise +// For more information, see [Indicator of +// compromise](https://en.wikipedia.org/wiki/Indicator_of_compromise). message Indicator { // Indicates what signature matched this process. message ProcessSignature { @@ -67,7 +68,7 @@ message Indicator { } } - // List of ip addresses associated to the Finding. + // The list of IP addresses that are associated with the finding. repeated string ip_addresses = 1; // List of domains associated to the Finding. diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/kernel_rootkit.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/kernel_rootkit.proto index f2178ad55f5b..6af2840bf068 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/kernel_rootkit.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/kernel_rootkit.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. @@ -29,34 +29,34 @@ message KernelRootkit { // Rootkit name when available. string name = 1; - // True if unexpected modifications of kernel code memory are present. + // True when unexpected modifications of kernel code memory are present. bool unexpected_code_modification = 2; - // True if unexpected modifications of kernel read-only data memory are + // True when unexpected modifications of kernel read-only data memory are // present. bool unexpected_read_only_data_modification = 3; - // True if `ftrace` points are present with callbacks pointing to regions + // True when `ftrace` points are present with callbacks pointing to regions // that are not in the expected kernel or module code range. bool unexpected_ftrace_handler = 4; - // True if `kprobe` points are present with callbacks pointing to regions + // True when `kprobe` points are present with callbacks pointing to regions // that are not in the expected kernel or module code range. bool unexpected_kprobe_handler = 5; - // True if kernel code pages that are not in the expected kernel or module + // True when kernel code pages that are not in the expected kernel or module // code regions are present. bool unexpected_kernel_code_pages = 6; - // True if system call handlers that are are not in the expected kernel or + // True when system call handlers that are are not in the expected kernel or // module code regions are present. bool unexpected_system_call_handler = 7; - // True if interrupt handlers that are are not in the expected kernel or + // True when interrupt handlers that are are not in the expected kernel or // module code regions are present. bool unexpected_interrupt_handler = 8; - // True if unexpected processes in the scheduler run queue are present. Such + // True when unexpected processes in the scheduler run queue are present. Such // processes are in the run queue, but not in the process task list. bool unexpected_processes_in_runqueue = 9; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/kubernetes.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/kubernetes.proto index dfe24c04fabc..ac1df835116c 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/kubernetes.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/kubernetes.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. @@ -27,7 +27,7 @@ option java_package = "com.google.cloud.securitycenter.v1"; option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; option ruby_package = "Google::Cloud::SecurityCenter::V1"; -// Kubernetes related attributes. +// Kubernetes-related attributes. message Kubernetes { // Kubernetes Pod. message Pod { @@ -96,8 +96,8 @@ message Kubernetes { // The Role or ClusterRole referenced by the binding. Role role = 3; - // Represents the subjects(s) bound to the role. Not always available - // for PATCH requests. + // Represents one or more subjects that are bound to the role. Not always + // available for PATCH requests. repeated Subject subjects = 4; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/label.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/label.proto index cc554342e6e8..0760c82d8408 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/label.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/label.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mitre_attack.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mitre_attack.proto index 708b10390c94..79425d2c60d6 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mitre_attack.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mitre_attack.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mute_config.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mute_config.proto index 20d2cb059e07..d2a8db68499e 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mute_config.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/mute_config.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. @@ -50,11 +50,11 @@ message MuteConfig { // A description of the mute config. string description = 3; - // Required. An expression that defines the filter to apply across create/update events - // of findings. While creating a filter string, be mindful of the - // scope in which the mute configuration is being created. E.g., If a filter - // contains project = X but is created under the project = Y scope, it might - // not match any findings. + // Required. An expression that defines the filter to apply across + // create/update events of findings. While creating a filter string, be + // mindful of the scope in which the mute configuration is being created. + // E.g., If a filter contains project = X but is created under the project = Y + // scope, it might not match any findings. // // The following field and operator combinations are supported: // @@ -75,12 +75,14 @@ message MuteConfig { // Output only. The time at which the mute config was created. // This field is set by the server and will be ignored if provided on config // creation. - google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The most recent time at which the mute config was updated. // This field is set by the server and will be ignored if provided on config // creation or update. - google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Email address of the user who last edited the mute config. // This field is set by the server and will be ignored if provided on config diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_config.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_config.proto index 1bce1cfe771f..de2a88b6bb1d 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_config.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_config.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. @@ -83,9 +83,9 @@ message NotificationConfig { // The Pub/Sub topic to send notifications to. Its format is // "projects/[project_id]/topics/[topic]". - string pubsub_topic = 3 [(google.api.resource_reference) = { - type: "pubsub.googleapis.com/Topic" - }]; + string pubsub_topic = 3 [ + (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } + ]; // Output only. The service account that needs "pubsub.topics.publish" // permission to publish to the Pub/Sub topic. diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_message.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_message.proto index 80f98ea2da04..59841d92ede8 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_message.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/notification_message.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto index 460ee701fb58..66880a17c63b 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/organization_settings.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/process.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/process.proto index c885f48ec966..3ec0a5c29f1b 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/process.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/process.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/resource.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/resource.proto index 3adcda1fcee7..626974ea962d 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/resource.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/resource.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. @@ -51,8 +51,8 @@ message Resource { // The human readable name of resource's parent. string parent_display_name = 5; - // Output only. Contains a Folder message for each folder in the assets ancestry. - // The first folder is the deepest nested folder, and the last folder is the - // folder directly under the Organization. + // Output only. Contains a Folder message for each folder in the assets + // ancestry. The first folder is the deepest nested folder, and the last + // folder is the folder directly under the Organization. repeated Folder folders = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/run_asset_discovery_response.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/run_asset_discovery_response.proto index c2861883f576..f331fb9ec78f 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/run_asset_discovery_response.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/run_asset_discovery_response.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_health_analytics_custom_config.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_health_analytics_custom_config.proto new file mode 100644 index 000000000000..337f0a3bb3f8 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_health_analytics_custom_config.proto @@ -0,0 +1,101 @@ +// 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.securitycenter.v1; + +import "google/type/expr.proto"; + +option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; +option java_multiple_files = true; +option java_outer_classname = "SecurityHealthAnalyticsCustomConfigProto"; +option java_package = "com.google.cloud.securitycenter.v1"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; +option ruby_package = "Google::Cloud::SecurityCenter::V1"; + +// Defines the properties in a custom module configuration for Security +// Health Analytics. Use the custom module configuration to create custom +// detectors that generate custom findings for resources that you specify. +message CustomConfig { + // A set of optional name-value pairs that define custom source properties to + // return with each finding that is generated by the custom module. The custom + // source properties that are defined here are included in the finding JSON + // under `sourceProperties`. + message CustomOutputSpec { + // An individual name-value pair that defines a custom source property. + message Property { + // Name of the property for the custom output. + string name = 1; + + // The CEL expression for the custom output. A resource property can be + // specified to return the value of the property or a text string enclosed + // in quotation marks. + google.type.Expr value_expression = 2; + } + + // A list of custom output properties to add to the finding. + repeated Property properties = 1; + } + + // Resource for selecting resource type. + message ResourceSelector { + // The resource types to run the detector on. + repeated string resource_types = 1; + } + + // Defines the valid value options for the severity of a finding. + enum Severity { + // Unspecified severity. + SEVERITY_UNSPECIFIED = 0; + + // Critical severity. + CRITICAL = 1; + + // High severity. + HIGH = 2; + + // Medium severity. + MEDIUM = 3; + + // Low severity. + LOW = 4; + } + + // The CEL expression to evaluate to produce findings. When the expression + // evaluates to true against a resource, a finding is generated. + google.type.Expr predicate = 1; + + // Custom output properties. + CustomOutputSpec custom_output = 2; + + // The resource types that the custom module operates on. Each custom module + // can specify up to 5 resource types. + ResourceSelector resource_selector = 3; + + // The severity to assign to findings generated by the module. + Severity severity = 4; + + // Text that describes the vulnerability or misconfiguration that the custom + // module detects. This explanation is returned with each finding instance to + // help investigators understand the detected issue. The text must be enclosed + // in quotation marks. + string description = 5; + + // An explanation of the recommended steps that security teams can take to + // resolve the detected issue. This explanation is returned with each finding + // generated by this module in the `nextSteps` property of the finding JSON. + string recommendation = 6; +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_health_analytics_custom_module.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_health_analytics_custom_module.proto new file mode 100644 index 000000000000..7e7343d064f8 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_health_analytics_custom_module.proto @@ -0,0 +1,110 @@ +// 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.securitycenter.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/securitycenter/v1/security_health_analytics_custom_config.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; +option java_multiple_files = true; +option java_outer_classname = "SecurityHealthAnalyticsCustomModuleProto"; +option java_package = "com.google.cloud.securitycenter.v1"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; +option ruby_package = "Google::Cloud::SecurityCenter::V1"; +option (google.api.resource_definition) = { + type: "securitycenter.googleapis.com/SecurityHealthAnalyticsSettings" + pattern: "organizations/{organization}/securityHealthAnalyticsSettings" + pattern: "folders/{folder}/securityHealthAnalyticsSettings" + pattern: "projects/{project}/securityHealthAnalyticsSettings" +}; + +// Represents an instance of a Security Health Analytics custom module, +// including its full module name, display name, enablement state, and last +// updated time. You can create a custom module at the organization, folder, or +// project level. Custom modules that you create at the organization or folder +// level are inherited by the child folders and projects. +message SecurityHealthAnalyticsCustomModule { + option (google.api.resource) = { + type: "securitycenter.googleapis.com/SecurityHealthAnalyticsCustomModule" + pattern: "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{custom_module}" + pattern: "folders/{folder}/securityHealthAnalyticsSettings/customModules/{custom_module}" + pattern: "projects/{project}/securityHealthAnalyticsSettings/customModules/{custom_module}" + }; + + // Possible enablement states of a custom module. + enum EnablementState { + // Unspecified enablement state. + ENABLEMENT_STATE_UNSPECIFIED = 0; + + // The module is enabled at the given CRM resource. + ENABLED = 1; + + // The module is disabled at the given CRM resource. + DISABLED = 2; + + // State is inherited from an ancestor module. The module will either + // be effectively ENABLED or DISABLED based on its closest non-inherited + // ancestor module in the CRM hierarchy. + INHERITED = 3; + } + + // Immutable. The resource name of the custom module. + // Its format is + // "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", + // or + // "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", + // or + // "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" + // + // The id {customModule} is server-generated and is not user settable. + // It will be a numeric id containing 1-20 digits. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // The display name of the Security Health Analytics custom module. This + // display name becomes the finding category for all findings that are + // returned by this custom module. The display name must be between 1 and + // 128 characters, start with a lowercase letter, and contain alphanumeric + // characters or underscores only. + string display_name = 2; + + // The enablement state of the custom module. + EnablementState enablement_state = 4; + + // Output only. The time at which the custom module was last updated. + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The editor that last updated the custom module. + string last_editor = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If empty, indicates that the custom module was created in the + // organization, folder, or project in which you are viewing the custom + // module. Otherwise, `ancestor_module` specifies the organization or folder + // from which the custom module is inherited. + string ancestor_module = 7 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "securitycenter.googleapis.com/SecurityHealthAnalyticsCustomModule" + } + ]; + + // The user specified custom configuration for the module. + CustomConfig custom_config = 8; +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto index c0118899b171..74c641dea836 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_marks.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. 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 94aef2df2408..42db34f29a06 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 @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. @@ -16,20 +16,21 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; -import public "google/cloud/securitycenter/v1/run_asset_discovery_response.proto"; - import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/securitycenter/v1/asset.proto"; import "google/cloud/securitycenter/v1/bigquery_export.proto"; +import "google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module.proto"; import "google/cloud/securitycenter/v1/external_system.proto"; import "google/cloud/securitycenter/v1/finding.proto"; import "google/cloud/securitycenter/v1/folder.proto"; import "google/cloud/securitycenter/v1/mute_config.proto"; import "google/cloud/securitycenter/v1/notification_config.proto"; import "google/cloud/securitycenter/v1/organization_settings.proto"; +import "google/cloud/securitycenter/v1/run_asset_discovery_response.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"; import "google/iam/v1/iam_policy.proto"; @@ -78,6 +79,29 @@ service SecurityCenter { }; } + // Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the + // given CRM parent, and also creates inherited + // SecurityHealthAnalyticsCustomModules for all CRM descendants of the given + // parent. These modules are enabled by default. + rpc CreateSecurityHealthAnalyticsCustomModule( + CreateSecurityHealthAnalyticsCustomModuleRequest) + returns (SecurityHealthAnalyticsCustomModule) { + option (google.api.http) = { + post: "/v1/{parent=organizations/*/securityHealthAnalyticsSettings}/customModules" + body: "security_health_analytics_custom_module" + additional_bindings { + post: "/v1/{parent=folders/*/securityHealthAnalyticsSettings}/customModules" + body: "security_health_analytics_custom_module" + } + additional_bindings { + post: "/v1/{parent=projects/*/securityHealthAnalyticsSettings}/customModules" + body: "security_health_analytics_custom_module" + } + }; + option (google.api.method_signature) = + "parent,security_health_analytics_custom_module"; + } + // Creates a source. rpc CreateSource(CreateSourceRequest) returns (Source) { option (google.api.http) = { @@ -161,6 +185,24 @@ service SecurityCenter { option (google.api.method_signature) = "name"; } + // Deletes the specified SecurityHealthAnalyticsCustomModule and all of its + // descendants in the CRM hierarchy. This method is only supported for + // resident custom modules. + rpc DeleteSecurityHealthAnalyticsCustomModule( + DeleteSecurityHealthAnalyticsCustomModuleRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=organizations/*/securityHealthAnalyticsSettings/customModules/*}" + additional_bindings { + delete: "/v1/{name=folders/*/securityHealthAnalyticsSettings/customModules/*}" + } + additional_bindings { + delete: "/v1/{name=projects/*/securityHealthAnalyticsSettings/customModules/*}" + } + }; + option (google.api.method_signature) = "name"; + } + // Gets a BigQuery export. rpc GetBigQueryExport(GetBigQueryExportRequest) returns (BigQueryExport) { option (google.api.http) = { @@ -211,6 +253,38 @@ service SecurityCenter { option (google.api.method_signature) = "name"; } + // Retrieves an EffectiveSecurityHealthAnalyticsCustomModule. + rpc GetEffectiveSecurityHealthAnalyticsCustomModule( + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest) + returns (EffectiveSecurityHealthAnalyticsCustomModule) { + option (google.api.http) = { + get: "/v1/{name=organizations/*/securityHealthAnalyticsSettings/effectiveCustomModules/*}" + additional_bindings { + get: "/v1/{name=folders/*/securityHealthAnalyticsSettings/effectiveCustomModules/*}" + } + additional_bindings { + get: "/v1/{name=projects/*/securityHealthAnalyticsSettings/effectiveCustomModules/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Retrieves a SecurityHealthAnalyticsCustomModule. + rpc GetSecurityHealthAnalyticsCustomModule( + GetSecurityHealthAnalyticsCustomModuleRequest) + returns (SecurityHealthAnalyticsCustomModule) { + option (google.api.http) = { + get: "/v1/{name=organizations/*/securityHealthAnalyticsSettings/customModules/*}" + additional_bindings { + get: "/v1/{name=folders/*/securityHealthAnalyticsSettings/customModules/*}" + } + additional_bindings { + get: "/v1/{name=projects/*/securityHealthAnalyticsSettings/customModules/*}" + } + }; + option (google.api.method_signature) = "name"; + } + // Gets a source. rpc GetSource(GetSourceRequest) returns (Source) { option (google.api.http) = { @@ -268,6 +342,23 @@ service SecurityCenter { }; } + // Returns a list of all resident SecurityHealthAnalyticsCustomModules under + // the given CRM parent and all of the parent’s CRM descendants. + rpc ListDescendantSecurityHealthAnalyticsCustomModules( + ListDescendantSecurityHealthAnalyticsCustomModulesRequest) + returns (ListDescendantSecurityHealthAnalyticsCustomModulesResponse) { + option (google.api.http) = { + get: "/v1/{parent=organizations/*/securityHealthAnalyticsSettings}/customModules:listDescendant" + additional_bindings { + get: "/v1/{parent=folders/*/securityHealthAnalyticsSettings}/customModules:listDescendant" + } + additional_bindings { + get: "/v1/{parent=projects/*/securityHealthAnalyticsSettings}/customModules:listDescendant" + } + }; + option (google.api.method_signature) = "parent"; + } + // Lists an organization or source's findings. // // To list across all sources provide a `-` as the source id. @@ -302,6 +393,42 @@ service SecurityCenter { option (google.api.method_signature) = "parent"; } + // Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the + // given parent. This includes resident modules defined at the scope of the + // parent, and inherited modules, inherited from CRM ancestors. + rpc ListEffectiveSecurityHealthAnalyticsCustomModules( + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest) + returns (ListEffectiveSecurityHealthAnalyticsCustomModulesResponse) { + option (google.api.http) = { + get: "/v1/{parent=organizations/*/securityHealthAnalyticsSettings}/effectiveCustomModules" + additional_bindings { + get: "/v1/{parent=folders/*/securityHealthAnalyticsSettings}/effectiveCustomModules" + } + additional_bindings { + get: "/v1/{parent=projects/*/securityHealthAnalyticsSettings}/effectiveCustomModules" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Returns a list of all SecurityHealthAnalyticsCustomModules for the given + // parent. This includes resident modules defined at the scope of the parent, + // and inherited modules, inherited from CRM ancestors. + rpc ListSecurityHealthAnalyticsCustomModules( + ListSecurityHealthAnalyticsCustomModulesRequest) + returns (ListSecurityHealthAnalyticsCustomModulesResponse) { + option (google.api.http) = { + get: "/v1/{parent=organizations/*/securityHealthAnalyticsSettings}/customModules" + additional_bindings { + get: "/v1/{parent=folders/*/securityHealthAnalyticsSettings}/customModules" + } + additional_bindings { + get: "/v1/{parent=projects/*/securityHealthAnalyticsSettings}/customModules" + } + }; + option (google.api.method_signature) = "parent"; + } + // Lists all sources belonging to an organization. rpc ListSources(ListSourcesRequest) returns (ListSourcesResponse) { option (google.api.http) = { @@ -469,6 +596,30 @@ service SecurityCenter { option (google.api.method_signature) = "organization_settings"; } + // Updates the SecurityHealthAnalyticsCustomModule under the given name based + // on the given update mask. Updating the enablement state is supported on + // both resident and inherited modules (though resident modules cannot have an + // enablement state of “inherited”). Updating the display name and custom + // config of a module is supported on resident modules only. + rpc UpdateSecurityHealthAnalyticsCustomModule( + UpdateSecurityHealthAnalyticsCustomModuleRequest) + returns (SecurityHealthAnalyticsCustomModule) { + option (google.api.http) = { + patch: "/v1/{security_health_analytics_custom_module.name=organizations/*/securityHealthAnalyticsSettings/customModules/*}" + body: "security_health_analytics_custom_module" + additional_bindings { + patch: "/v1/{security_health_analytics_custom_module.name=folders/*/securityHealthAnalyticsSettings/customModules/*}" + body: "security_health_analytics_custom_module" + } + additional_bindings { + patch: "/v1/{security_health_analytics_custom_module.name=projects/*/securityHealthAnalyticsSettings/customModules/*}" + body: "security_health_analytics_custom_module" + } + }; + option (google.api.method_signature) = + "security_health_analytics_custom_module,update_mask"; + } + // Updates a source. rpc UpdateSource(UpdateSourceRequest) returns (Source) { option (google.api.http) = { @@ -684,6 +835,26 @@ message CreateNotificationConfigRequest { [(google.api.field_behavior) = REQUIRED]; } +// Request message for creating security health analytics custom modules. +message CreateSecurityHealthAnalyticsCustomModuleRequest { + // Required. Resource name of the new custom module's parent. Its format is + // "organizations/{organization}/securityHealthAnalyticsSettings", + // "folders/{folder}/securityHealthAnalyticsSettings", or + // "projects/{project}/securityHealthAnalyticsSettings" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "securitycenter.googleapis.com/SecurityHealthAnalyticsCustomModule" + } + ]; + + // Required. SecurityHealthAnalytics custom module to create. The provided + // name is ignored and reset with provided parent information and + // server-generated ID. + SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = + 2 [(google.api.field_behavior) = REQUIRED]; +} + // Request message for creating a source. message CreateSourceRequest { // Required. Resource name of the new source's parent. Its format should be @@ -728,6 +899,21 @@ message DeleteNotificationConfigRequest { ]; } +// Request message for deleting security health analytics custom modules. +message DeleteSecurityHealthAnalyticsCustomModuleRequest { + // Required. Name of the custom module to delete. Its format is + // "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", + // "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", + // or + // "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "securitycenter.googleapis.com/SecurityHealthAnalyticsCustomModule" + } + ]; +} + // Request message for retrieving a BigQuery export. message GetBigQueryExportRequest { // Required. Name of the BigQuery export to retrieve. Its format is @@ -782,6 +968,37 @@ message GetOrganizationSettingsRequest { ]; } +// Request message for getting effective security health analytics custom +// modules. +message GetEffectiveSecurityHealthAnalyticsCustomModuleRequest { + // Required. Name of the effective custom module to get. Its format is + // "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", + // "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", + // or + // "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "securitycenter.googleapis.com/EffectiveSecurityHealthAnalyticsCustomModule" + } + ]; +} + +// Request message for getting security health analytics custom modules. +message GetSecurityHealthAnalyticsCustomModuleRequest { + // Required. Name of the custom module to get. Its format is + // "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", + // "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", + // or + // "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "securitycenter.googleapis.com/SecurityHealthAnalyticsCustomModule" + } + ]; +} + // Request message for getting a source. message GetSourceRequest { // Required. Relative resource name of the source. Its format is @@ -1124,6 +1341,40 @@ message GroupResult { int64 count = 2; } +// Request message for listing descendant security health analytics custom +// modules. +message ListDescendantSecurityHealthAnalyticsCustomModulesRequest { + // Required. Name of parent to list descendant custom modules. Its format is + // "organizations/{organization}/securityHealthAnalyticsSettings", + // "folders/{folder}/securityHealthAnalyticsSettings", or + // "projects/{project}/securityHealthAnalyticsSettings" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "securitycenter.googleapis.com/SecurityHealthAnalyticsCustomModule" + } + ]; + + // The maximum number of results to return in a single response. Default is + // 10, minimum is 1, maximum is 1000. + int32 page_size = 2; + + // The value returned by the last call indicating a continuation + string page_token = 3; +} + +// Response message for listing descendant security health analytics custom +// modules. +message ListDescendantSecurityHealthAnalyticsCustomModulesResponse { + // Custom modules belonging to the requested parent and its descendants. + repeated SecurityHealthAnalyticsCustomModule + security_health_analytics_custom_modules = 1; + + // If not empty, indicates that there may be more custom modules to be + // returned. + string next_page_token = 2; +} + // Request message for listing mute configs at a given scope e.g. organization, // folder or project. message ListMuteConfigsRequest { @@ -1193,6 +1444,72 @@ message ListNotificationConfigsResponse { string next_page_token = 2; } +// Request message for listing effective security health analytics custom +// modules. +message ListEffectiveSecurityHealthAnalyticsCustomModulesRequest { + // Required. Name of parent to list effective custom modules. Its format is + // "organizations/{organization}/securityHealthAnalyticsSettings", + // "folders/{folder}/securityHealthAnalyticsSettings", or + // "projects/{project}/securityHealthAnalyticsSettings" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "securitycenter.googleapis.com/SecurityHealthAnalyticsCustomModule" + } + ]; + + // The maximum number of results to return in a single response. Default is + // 10, minimum is 1, maximum is 1000. + int32 page_size = 2; + + // The value returned by the last call indicating a continuation + string page_token = 3; +} + +// Response message for listing effective security health analytics custom +// modules. +message ListEffectiveSecurityHealthAnalyticsCustomModulesResponse { + // Effective custom modules belonging to the requested parent. + repeated EffectiveSecurityHealthAnalyticsCustomModule + effective_security_health_analytics_custom_modules = 1; + + // If not empty, indicates that there may be more effective custom modules to + // be returned. + string next_page_token = 2; +} + +// Request message for listing security health analytics custom modules. +message ListSecurityHealthAnalyticsCustomModulesRequest { + // Required. Name of parent to list custom modules. Its format is + // "organizations/{organization}/securityHealthAnalyticsSettings", + // "folders/{folder}/securityHealthAnalyticsSettings", or + // "projects/{project}/securityHealthAnalyticsSettings" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "securitycenter.googleapis.com/SecurityHealthAnalyticsCustomModule" + } + ]; + + // The maximum number of results to return in a single response. Default is + // 10, minimum is 1, maximum is 1000. + int32 page_size = 2; + + // The value returned by the last call indicating a continuation + string page_token = 3; +} + +// Response message for listing security health analytics custom modules. +message ListSecurityHealthAnalyticsCustomModulesResponse { + // Custom modules belonging to the requested parent. + repeated SecurityHealthAnalyticsCustomModule + security_health_analytics_custom_modules = 1; + + // If not empty, indicates that there may be more custom modules to be + // returned. + string next_page_token = 2; +} + // Request message for listing sources. message ListSourcesRequest { // Required. Resource name of the parent of sources to list. Its format should @@ -1775,6 +2092,16 @@ message UpdateOrganizationSettingsRequest { google.protobuf.FieldMask update_mask = 2; } +// Request message for updating security health analytics custom modules. +message UpdateSecurityHealthAnalyticsCustomModuleRequest { + // Required. The SecurityHealthAnalytics custom module to update. + SecurityHealthAnalyticsCustomModule security_health_analytics_custom_module = + 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to update. + google.protobuf.FieldMask update_mask = 2; +} + // Request message for updating a source. message UpdateSourceRequest { // Required. The source resource to update. diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto index daf7c3c601e6..0aed0286225a 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/source.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/vulnerability.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/vulnerability.proto index eeff95633649..457e88c73196 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/vulnerability.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/vulnerability.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/createsecurityhealthanalyticscustommodule/AsyncCreateSecurityHealthAnalyticsCustomModule.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/createsecurityhealthanalyticscustommodule/AsyncCreateSecurityHealthAnalyticsCustomModule.java new file mode 100644 index 000000000000..17b84a440a0e --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/createsecurityhealthanalyticscustommodule/AsyncCreateSecurityHealthAnalyticsCustomModule.java @@ -0,0 +1,56 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_CreateSecurityHealthAnalyticsCustomModule_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest; +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsSettingsName; + +public class AsyncCreateSecurityHealthAnalyticsCustomModule { + + public static void main(String[] args) throws Exception { + asyncCreateSecurityHealthAnalyticsCustomModule(); + } + + public static void asyncCreateSecurityHealthAnalyticsCustomModule() 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()) { + CreateSecurityHealthAnalyticsCustomModuleRequest request = + CreateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + .setParent( + SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]") + .toString()) + .setSecurityHealthAnalyticsCustomModule( + SecurityHealthAnalyticsCustomModule.newBuilder().build()) + .build(); + ApiFuture future = + securityCenterClient + .createSecurityHealthAnalyticsCustomModuleCallable() + .futureCall(request); + // Do something. + SecurityHealthAnalyticsCustomModule response = future.get(); + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_async] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModule.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModule.java new file mode 100644 index 000000000000..ac79de6aac82 --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModule.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_CreateSecurityHealthAnalyticsCustomModule_sync] +import com.google.cloud.securitycenter.v1.CreateSecurityHealthAnalyticsCustomModuleRequest; +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsSettingsName; + +public class SyncCreateSecurityHealthAnalyticsCustomModule { + + public static void main(String[] args) throws Exception { + syncCreateSecurityHealthAnalyticsCustomModule(); + } + + public static void syncCreateSecurityHealthAnalyticsCustomModule() 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()) { + CreateSecurityHealthAnalyticsCustomModuleRequest request = + CreateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + .setParent( + SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]") + .toString()) + .setSecurityHealthAnalyticsCustomModule( + SecurityHealthAnalyticsCustomModule.newBuilder().build()) + .build(); + SecurityHealthAnalyticsCustomModule response = + securityCenterClient.createSecurityHealthAnalyticsCustomModule(request); + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticssettingsnameSecurityhealthanalyticscustommodule.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticssettingsnameSecurityhealthanalyticscustommodule.java new file mode 100644 index 000000000000..dbd9ba5c1826 --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticssettingsnameSecurityhealthanalyticscustommodule.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_CreateSecurityHealthAnalyticsCustomModule_SecurityhealthanalyticssettingsnameSecurityhealthanalyticscustommodule_sync] +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsSettingsName; + +public +class SyncCreateSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticssettingsnameSecurityhealthanalyticscustommodule { + + public static void main(String[] args) throws Exception { + syncCreateSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticssettingsnameSecurityhealthanalyticscustommodule(); + } + + public static void + syncCreateSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticssettingsnameSecurityhealthanalyticscustommodule() + 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()) { + SecurityHealthAnalyticsSettingsName parent = + SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]"); + SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = + SecurityHealthAnalyticsCustomModule.newBuilder().build(); + SecurityHealthAnalyticsCustomModule response = + securityCenterClient.createSecurityHealthAnalyticsCustomModule( + parent, securityHealthAnalyticsCustomModule); + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_SecurityhealthanalyticssettingsnameSecurityhealthanalyticscustommodule_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleStringSecurityhealthanalyticscustommodule.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleStringSecurityhealthanalyticscustommodule.java new file mode 100644 index 000000000000..9c2f9a5558fa --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModuleStringSecurityhealthanalyticscustommodule.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_CreateSecurityHealthAnalyticsCustomModule_StringSecurityhealthanalyticscustommodule_sync] +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsSettingsName; + +public +class SyncCreateSecurityHealthAnalyticsCustomModuleStringSecurityhealthanalyticscustommodule { + + public static void main(String[] args) throws Exception { + syncCreateSecurityHealthAnalyticsCustomModuleStringSecurityhealthanalyticscustommodule(); + } + + public static void + syncCreateSecurityHealthAnalyticsCustomModuleStringSecurityhealthanalyticscustommodule() + 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()) { + String parent = + SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]").toString(); + SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = + SecurityHealthAnalyticsCustomModule.newBuilder().build(); + SecurityHealthAnalyticsCustomModule response = + securityCenterClient.createSecurityHealthAnalyticsCustomModule( + parent, securityHealthAnalyticsCustomModule); + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_StringSecurityhealthanalyticscustommodule_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/deletesecurityhealthanalyticscustommodule/AsyncDeleteSecurityHealthAnalyticsCustomModule.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/deletesecurityhealthanalyticscustommodule/AsyncDeleteSecurityHealthAnalyticsCustomModule.java new file mode 100644 index 000000000000..4a264682b549 --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/deletesecurityhealthanalyticscustommodule/AsyncDeleteSecurityHealthAnalyticsCustomModule.java @@ -0,0 +1,55 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_DeleteSecurityHealthAnalyticsCustomModule_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest; +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleName; +import com.google.protobuf.Empty; + +public class AsyncDeleteSecurityHealthAnalyticsCustomModule { + + public static void main(String[] args) throws Exception { + asyncDeleteSecurityHealthAnalyticsCustomModule(); + } + + public static void asyncDeleteSecurityHealthAnalyticsCustomModule() 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()) { + DeleteSecurityHealthAnalyticsCustomModuleRequest request = + DeleteSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + .setName( + SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName( + "[ORGANIZATION]", "[CUSTOM_MODULE]") + .toString()) + .build(); + ApiFuture future = + securityCenterClient + .deleteSecurityHealthAnalyticsCustomModuleCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_async] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModule.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModule.java new file mode 100644 index 000000000000..f563eb35de05 --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModule.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_DeleteSecurityHealthAnalyticsCustomModule_sync] +import com.google.cloud.securitycenter.v1.DeleteSecurityHealthAnalyticsCustomModuleRequest; +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleName; +import com.google.protobuf.Empty; + +public class SyncDeleteSecurityHealthAnalyticsCustomModule { + + public static void main(String[] args) throws Exception { + syncDeleteSecurityHealthAnalyticsCustomModule(); + } + + public static void syncDeleteSecurityHealthAnalyticsCustomModule() 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()) { + DeleteSecurityHealthAnalyticsCustomModuleRequest request = + DeleteSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + .setName( + SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName( + "[ORGANIZATION]", "[CUSTOM_MODULE]") + .toString()) + .build(); + securityCenterClient.deleteSecurityHealthAnalyticsCustomModule(request); + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java new file mode 100644 index 000000000000..66c9aee6ea20 --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_DeleteSecurityHealthAnalyticsCustomModule_Securityhealthanalyticscustommodulename_sync] +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleName; +import com.google.protobuf.Empty; + +public class SyncDeleteSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename { + + public static void main(String[] args) throws Exception { + syncDeleteSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename(); + } + + public static void + syncDeleteSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename() + 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()) { + SecurityHealthAnalyticsCustomModuleName name = + SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName( + "[ORGANIZATION]", "[CUSTOM_MODULE]"); + securityCenterClient.deleteSecurityHealthAnalyticsCustomModule(name); + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_Securityhealthanalyticscustommodulename_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleString.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleString.java new file mode 100644 index 000000000000..19ff12ac3f42 --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/deletesecurityhealthanalyticscustommodule/SyncDeleteSecurityHealthAnalyticsCustomModuleString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_DeleteSecurityHealthAnalyticsCustomModule_String_sync] +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleName; +import com.google.protobuf.Empty; + +public class SyncDeleteSecurityHealthAnalyticsCustomModuleString { + + public static void main(String[] args) throws Exception { + syncDeleteSecurityHealthAnalyticsCustomModuleString(); + } + + public static void syncDeleteSecurityHealthAnalyticsCustomModuleString() 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()) { + String name = + SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName( + "[ORGANIZATION]", "[CUSTOM_MODULE]") + .toString(); + securityCenterClient.deleteSecurityHealthAnalyticsCustomModule(name); + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_String_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/geteffectivesecurityhealthanalyticscustommodule/AsyncGetEffectiveSecurityHealthAnalyticsCustomModule.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/geteffectivesecurityhealthanalyticscustommodule/AsyncGetEffectiveSecurityHealthAnalyticsCustomModule.java new file mode 100644 index 000000000000..0acacd51c27f --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/geteffectivesecurityhealthanalyticscustommodule/AsyncGetEffectiveSecurityHealthAnalyticsCustomModule.java @@ -0,0 +1,56 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_GetEffectiveSecurityHealthAnalyticsCustomModule_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModuleName; +import com.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest; +import com.google.cloud.securitycenter.v1.SecurityCenterClient; + +public class AsyncGetEffectiveSecurityHealthAnalyticsCustomModule { + + public static void main(String[] args) throws Exception { + asyncGetEffectiveSecurityHealthAnalyticsCustomModule(); + } + + public static void asyncGetEffectiveSecurityHealthAnalyticsCustomModule() 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()) { + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request = + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + .setName( + EffectiveSecurityHealthAnalyticsCustomModuleName + .ofOrganizationEffectiveCustomModuleName( + "[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]") + .toString()) + .build(); + ApiFuture future = + securityCenterClient + .getEffectiveSecurityHealthAnalyticsCustomModuleCallable() + .futureCall(request); + // Do something. + EffectiveSecurityHealthAnalyticsCustomModule response = future.get(); + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_async] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java new file mode 100644 index 000000000000..6421b368158b --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModule.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_GetEffectiveSecurityHealthAnalyticsCustomModule_sync] +import com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModuleName; +import com.google.cloud.securitycenter.v1.GetEffectiveSecurityHealthAnalyticsCustomModuleRequest; +import com.google.cloud.securitycenter.v1.SecurityCenterClient; + +public class SyncGetEffectiveSecurityHealthAnalyticsCustomModule { + + public static void main(String[] args) throws Exception { + syncGetEffectiveSecurityHealthAnalyticsCustomModule(); + } + + public static void syncGetEffectiveSecurityHealthAnalyticsCustomModule() 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()) { + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest request = + GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + .setName( + EffectiveSecurityHealthAnalyticsCustomModuleName + .ofOrganizationEffectiveCustomModuleName( + "[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]") + .toString()) + .build(); + EffectiveSecurityHealthAnalyticsCustomModule response = + securityCenterClient.getEffectiveSecurityHealthAnalyticsCustomModule(request); + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleEffectivesecurityhealthanalyticscustommodulename.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleEffectivesecurityhealthanalyticscustommodulename.java new file mode 100644 index 000000000000..50a14723725e --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleEffectivesecurityhealthanalyticscustommodulename.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_GetEffectiveSecurityHealthAnalyticsCustomModule_Effectivesecurityhealthanalyticscustommodulename_sync] +import com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModuleName; +import com.google.cloud.securitycenter.v1.SecurityCenterClient; + +public +class SyncGetEffectiveSecurityHealthAnalyticsCustomModuleEffectivesecurityhealthanalyticscustommodulename { + + public static void main(String[] args) throws Exception { + syncGetEffectiveSecurityHealthAnalyticsCustomModuleEffectivesecurityhealthanalyticscustommodulename(); + } + + public static void + syncGetEffectiveSecurityHealthAnalyticsCustomModuleEffectivesecurityhealthanalyticscustommodulename() + 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()) { + EffectiveSecurityHealthAnalyticsCustomModuleName name = + EffectiveSecurityHealthAnalyticsCustomModuleName.ofOrganizationEffectiveCustomModuleName( + "[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]"); + EffectiveSecurityHealthAnalyticsCustomModule response = + securityCenterClient.getEffectiveSecurityHealthAnalyticsCustomModule(name); + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_Effectivesecurityhealthanalyticscustommodulename_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleString.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleString.java new file mode 100644 index 000000000000..fc2f072cff2d --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/geteffectivesecurityhealthanalyticscustommodule/SyncGetEffectiveSecurityHealthAnalyticsCustomModuleString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_GetEffectiveSecurityHealthAnalyticsCustomModule_String_sync] +import com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModuleName; +import com.google.cloud.securitycenter.v1.SecurityCenterClient; + +public class SyncGetEffectiveSecurityHealthAnalyticsCustomModuleString { + + public static void main(String[] args) throws Exception { + syncGetEffectiveSecurityHealthAnalyticsCustomModuleString(); + } + + public static void syncGetEffectiveSecurityHealthAnalyticsCustomModuleString() 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()) { + String name = + EffectiveSecurityHealthAnalyticsCustomModuleName.ofOrganizationEffectiveCustomModuleName( + "[ORGANIZATION]", "[EFFECTIVE_CUSTOM_MODULE]") + .toString(); + EffectiveSecurityHealthAnalyticsCustomModule response = + securityCenterClient.getEffectiveSecurityHealthAnalyticsCustomModule(name); + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_String_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/getsecurityhealthanalyticscustommodule/AsyncGetSecurityHealthAnalyticsCustomModule.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/getsecurityhealthanalyticscustommodule/AsyncGetSecurityHealthAnalyticsCustomModule.java new file mode 100644 index 000000000000..7d562a321292 --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/getsecurityhealthanalyticscustommodule/AsyncGetSecurityHealthAnalyticsCustomModule.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_GetSecurityHealthAnalyticsCustomModule_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest; +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleName; + +public class AsyncGetSecurityHealthAnalyticsCustomModule { + + public static void main(String[] args) throws Exception { + asyncGetSecurityHealthAnalyticsCustomModule(); + } + + public static void asyncGetSecurityHealthAnalyticsCustomModule() 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()) { + GetSecurityHealthAnalyticsCustomModuleRequest request = + GetSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + .setName( + SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName( + "[ORGANIZATION]", "[CUSTOM_MODULE]") + .toString()) + .build(); + ApiFuture future = + securityCenterClient.getSecurityHealthAnalyticsCustomModuleCallable().futureCall(request); + // Do something. + SecurityHealthAnalyticsCustomModule response = future.get(); + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_async] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModule.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModule.java new file mode 100644 index 000000000000..769dbe3d7702 --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModule.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_GetSecurityHealthAnalyticsCustomModule_sync] +import com.google.cloud.securitycenter.v1.GetSecurityHealthAnalyticsCustomModuleRequest; +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleName; + +public class SyncGetSecurityHealthAnalyticsCustomModule { + + public static void main(String[] args) throws Exception { + syncGetSecurityHealthAnalyticsCustomModule(); + } + + public static void syncGetSecurityHealthAnalyticsCustomModule() 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()) { + GetSecurityHealthAnalyticsCustomModuleRequest request = + GetSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + .setName( + SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName( + "[ORGANIZATION]", "[CUSTOM_MODULE]") + .toString()) + .build(); + SecurityHealthAnalyticsCustomModule response = + securityCenterClient.getSecurityHealthAnalyticsCustomModule(request); + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java new file mode 100644 index 000000000000..56de86cb0c79 --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_GetSecurityHealthAnalyticsCustomModule_Securityhealthanalyticscustommodulename_sync] +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleName; + +public class SyncGetSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename { + + public static void main(String[] args) throws Exception { + syncGetSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename(); + } + + public static void + syncGetSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommodulename() + 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()) { + SecurityHealthAnalyticsCustomModuleName name = + SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName( + "[ORGANIZATION]", "[CUSTOM_MODULE]"); + SecurityHealthAnalyticsCustomModule response = + securityCenterClient.getSecurityHealthAnalyticsCustomModule(name); + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_Securityhealthanalyticscustommodulename_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleString.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleString.java new file mode 100644 index 000000000000..6e5e36fef9bf --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/getsecurityhealthanalyticscustommodule/SyncGetSecurityHealthAnalyticsCustomModuleString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_GetSecurityHealthAnalyticsCustomModule_String_sync] +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModuleName; + +public class SyncGetSecurityHealthAnalyticsCustomModuleString { + + public static void main(String[] args) throws Exception { + syncGetSecurityHealthAnalyticsCustomModuleString(); + } + + public static void syncGetSecurityHealthAnalyticsCustomModuleString() 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()) { + String name = + SecurityHealthAnalyticsCustomModuleName.ofOrganizationCustomModuleName( + "[ORGANIZATION]", "[CUSTOM_MODULE]") + .toString(); + SecurityHealthAnalyticsCustomModule response = + securityCenterClient.getSecurityHealthAnalyticsCustomModule(name); + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_String_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModules.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModules.java new file mode 100644 index 000000000000..7af2a042f51c --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModules.java @@ -0,0 +1,58 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_ListDescendantSecurityHealthAnalyticsCustomModules_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest; +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsSettingsName; + +public class AsyncListDescendantSecurityHealthAnalyticsCustomModules { + + public static void main(String[] args) throws Exception { + asyncListDescendantSecurityHealthAnalyticsCustomModules(); + } + + public static void asyncListDescendantSecurityHealthAnalyticsCustomModules() 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()) { + ListDescendantSecurityHealthAnalyticsCustomModulesRequest request = + ListDescendantSecurityHealthAnalyticsCustomModulesRequest.newBuilder() + .setParent( + SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + securityCenterClient + .listDescendantSecurityHealthAnalyticsCustomModulesPagedCallable() + .futureCall(request); + // Do something. + for (SecurityHealthAnalyticsCustomModule element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_async] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModulesPaged.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModulesPaged.java new file mode 100644 index 000000000000..a0890a02b868 --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listdescendantsecurityhealthanalyticscustommodules/AsyncListDescendantSecurityHealthAnalyticsCustomModulesPaged.java @@ -0,0 +1,68 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_ListDescendantSecurityHealthAnalyticsCustomModules_Paged_async] +import com.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest; +import com.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse; +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsSettingsName; +import com.google.common.base.Strings; + +public class AsyncListDescendantSecurityHealthAnalyticsCustomModulesPaged { + + public static void main(String[] args) throws Exception { + asyncListDescendantSecurityHealthAnalyticsCustomModulesPaged(); + } + + public static void asyncListDescendantSecurityHealthAnalyticsCustomModulesPaged() + 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()) { + ListDescendantSecurityHealthAnalyticsCustomModulesRequest request = + ListDescendantSecurityHealthAnalyticsCustomModulesRequest.newBuilder() + .setParent( + SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListDescendantSecurityHealthAnalyticsCustomModulesResponse response = + securityCenterClient + .listDescendantSecurityHealthAnalyticsCustomModulesCallable() + .call(request); + for (SecurityHealthAnalyticsCustomModule element : + response.getSecurityHealthAnalyticsCustomModulesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_Paged_async] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModules.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModules.java new file mode 100644 index 000000000000..70b5944d8224 --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModules.java @@ -0,0 +1,55 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_ListDescendantSecurityHealthAnalyticsCustomModules_sync] +import com.google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesRequest; +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsSettingsName; + +public class SyncListDescendantSecurityHealthAnalyticsCustomModules { + + public static void main(String[] args) throws Exception { + syncListDescendantSecurityHealthAnalyticsCustomModules(); + } + + public static void syncListDescendantSecurityHealthAnalyticsCustomModules() 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()) { + ListDescendantSecurityHealthAnalyticsCustomModulesRequest request = + ListDescendantSecurityHealthAnalyticsCustomModulesRequest.newBuilder() + .setParent( + SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (SecurityHealthAnalyticsCustomModule element : + securityCenterClient + .listDescendantSecurityHealthAnalyticsCustomModules(request) + .iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesSecurityhealthanalyticssettingsname.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesSecurityhealthanalyticssettingsname.java new file mode 100644 index 000000000000..a15ab9bf46b2 --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesSecurityhealthanalyticssettingsname.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_ListDescendantSecurityHealthAnalyticsCustomModules_Securityhealthanalyticssettingsname_sync] +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsSettingsName; + +public +class SyncListDescendantSecurityHealthAnalyticsCustomModulesSecurityhealthanalyticssettingsname { + + public static void main(String[] args) throws Exception { + syncListDescendantSecurityHealthAnalyticsCustomModulesSecurityhealthanalyticssettingsname(); + } + + public static void + syncListDescendantSecurityHealthAnalyticsCustomModulesSecurityhealthanalyticssettingsname() + 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()) { + SecurityHealthAnalyticsSettingsName parent = + SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]"); + for (SecurityHealthAnalyticsCustomModule element : + securityCenterClient + .listDescendantSecurityHealthAnalyticsCustomModules(parent) + .iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_Securityhealthanalyticssettingsname_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesString.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesString.java new file mode 100644 index 000000000000..4172061cfdaa --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listdescendantsecurityhealthanalyticscustommodules/SyncListDescendantSecurityHealthAnalyticsCustomModulesString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_ListDescendantSecurityHealthAnalyticsCustomModules_String_sync] +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsSettingsName; + +public class SyncListDescendantSecurityHealthAnalyticsCustomModulesString { + + public static void main(String[] args) throws Exception { + syncListDescendantSecurityHealthAnalyticsCustomModulesString(); + } + + public static void syncListDescendantSecurityHealthAnalyticsCustomModulesString() + 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()) { + String parent = + SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]").toString(); + for (SecurityHealthAnalyticsCustomModule element : + securityCenterClient + .listDescendantSecurityHealthAnalyticsCustomModules(parent) + .iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_String_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModules.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModules.java new file mode 100644 index 000000000000..d592543d593b --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModules.java @@ -0,0 +1,58 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_ListEffectiveSecurityHealthAnalyticsCustomModules_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest; +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsSettingsName; + +public class AsyncListEffectiveSecurityHealthAnalyticsCustomModules { + + public static void main(String[] args) throws Exception { + asyncListEffectiveSecurityHealthAnalyticsCustomModules(); + } + + public static void asyncListEffectiveSecurityHealthAnalyticsCustomModules() 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()) { + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request = + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.newBuilder() + .setParent( + SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + securityCenterClient + .listEffectiveSecurityHealthAnalyticsCustomModulesPagedCallable() + .futureCall(request); + // Do something. + for (EffectiveSecurityHealthAnalyticsCustomModule element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_async] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModulesPaged.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModulesPaged.java new file mode 100644 index 000000000000..d8cfa9fbef16 --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listeffectivesecurityhealthanalyticscustommodules/AsyncListEffectiveSecurityHealthAnalyticsCustomModulesPaged.java @@ -0,0 +1,68 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_ListEffectiveSecurityHealthAnalyticsCustomModules_Paged_async] +import com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest; +import com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse; +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsSettingsName; +import com.google.common.base.Strings; + +public class AsyncListEffectiveSecurityHealthAnalyticsCustomModulesPaged { + + public static void main(String[] args) throws Exception { + asyncListEffectiveSecurityHealthAnalyticsCustomModulesPaged(); + } + + public static void asyncListEffectiveSecurityHealthAnalyticsCustomModulesPaged() + 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()) { + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request = + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.newBuilder() + .setParent( + SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListEffectiveSecurityHealthAnalyticsCustomModulesResponse response = + securityCenterClient + .listEffectiveSecurityHealthAnalyticsCustomModulesCallable() + .call(request); + for (EffectiveSecurityHealthAnalyticsCustomModule element : + response.getEffectiveSecurityHealthAnalyticsCustomModulesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_Paged_async] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModules.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModules.java new file mode 100644 index 000000000000..da2417471275 --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModules.java @@ -0,0 +1,55 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_ListEffectiveSecurityHealthAnalyticsCustomModules_sync] +import com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesRequest; +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsSettingsName; + +public class SyncListEffectiveSecurityHealthAnalyticsCustomModules { + + public static void main(String[] args) throws Exception { + syncListEffectiveSecurityHealthAnalyticsCustomModules(); + } + + public static void syncListEffectiveSecurityHealthAnalyticsCustomModules() 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()) { + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest request = + ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.newBuilder() + .setParent( + SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (EffectiveSecurityHealthAnalyticsCustomModule element : + securityCenterClient + .listEffectiveSecurityHealthAnalyticsCustomModules(request) + .iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesSecurityhealthanalyticssettingsname.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesSecurityhealthanalyticssettingsname.java new file mode 100644 index 000000000000..12df824ed96a --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesSecurityhealthanalyticssettingsname.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_ListEffectiveSecurityHealthAnalyticsCustomModules_Securityhealthanalyticssettingsname_sync] +import com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsSettingsName; + +public +class SyncListEffectiveSecurityHealthAnalyticsCustomModulesSecurityhealthanalyticssettingsname { + + public static void main(String[] args) throws Exception { + syncListEffectiveSecurityHealthAnalyticsCustomModulesSecurityhealthanalyticssettingsname(); + } + + public static void + syncListEffectiveSecurityHealthAnalyticsCustomModulesSecurityhealthanalyticssettingsname() + 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()) { + SecurityHealthAnalyticsSettingsName parent = + SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]"); + for (EffectiveSecurityHealthAnalyticsCustomModule element : + securityCenterClient + .listEffectiveSecurityHealthAnalyticsCustomModules(parent) + .iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_Securityhealthanalyticssettingsname_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesString.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesString.java new file mode 100644 index 000000000000..cf748f26d0d7 --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listeffectivesecurityhealthanalyticscustommodules/SyncListEffectiveSecurityHealthAnalyticsCustomModulesString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_ListEffectiveSecurityHealthAnalyticsCustomModules_String_sync] +import com.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsSettingsName; + +public class SyncListEffectiveSecurityHealthAnalyticsCustomModulesString { + + public static void main(String[] args) throws Exception { + syncListEffectiveSecurityHealthAnalyticsCustomModulesString(); + } + + public static void syncListEffectiveSecurityHealthAnalyticsCustomModulesString() + 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()) { + String parent = + SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]").toString(); + for (EffectiveSecurityHealthAnalyticsCustomModule element : + securityCenterClient + .listEffectiveSecurityHealthAnalyticsCustomModules(parent) + .iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_String_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModules.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModules.java new file mode 100644 index 000000000000..697d50931de0 --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModules.java @@ -0,0 +1,58 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_ListSecurityHealthAnalyticsCustomModules_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest; +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsSettingsName; + +public class AsyncListSecurityHealthAnalyticsCustomModules { + + public static void main(String[] args) throws Exception { + asyncListSecurityHealthAnalyticsCustomModules(); + } + + public static void asyncListSecurityHealthAnalyticsCustomModules() 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()) { + ListSecurityHealthAnalyticsCustomModulesRequest request = + ListSecurityHealthAnalyticsCustomModulesRequest.newBuilder() + .setParent( + SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + securityCenterClient + .listSecurityHealthAnalyticsCustomModulesPagedCallable() + .futureCall(request); + // Do something. + for (SecurityHealthAnalyticsCustomModule element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_async] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModulesPaged.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModulesPaged.java new file mode 100644 index 000000000000..f34dbf26049c --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listsecurityhealthanalyticscustommodules/AsyncListSecurityHealthAnalyticsCustomModulesPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_ListSecurityHealthAnalyticsCustomModules_Paged_async] +import com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest; +import com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse; +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsSettingsName; +import com.google.common.base.Strings; + +public class AsyncListSecurityHealthAnalyticsCustomModulesPaged { + + public static void main(String[] args) throws Exception { + asyncListSecurityHealthAnalyticsCustomModulesPaged(); + } + + public static void asyncListSecurityHealthAnalyticsCustomModulesPaged() 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()) { + ListSecurityHealthAnalyticsCustomModulesRequest request = + ListSecurityHealthAnalyticsCustomModulesRequest.newBuilder() + .setParent( + SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListSecurityHealthAnalyticsCustomModulesResponse response = + securityCenterClient.listSecurityHealthAnalyticsCustomModulesCallable().call(request); + for (SecurityHealthAnalyticsCustomModule element : + response.getSecurityHealthAnalyticsCustomModulesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_Paged_async] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModules.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModules.java new file mode 100644 index 000000000000..936e87217267 --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModules.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_ListSecurityHealthAnalyticsCustomModules_sync] +import com.google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesRequest; +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsSettingsName; + +public class SyncListSecurityHealthAnalyticsCustomModules { + + public static void main(String[] args) throws Exception { + syncListSecurityHealthAnalyticsCustomModules(); + } + + public static void syncListSecurityHealthAnalyticsCustomModules() 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()) { + ListSecurityHealthAnalyticsCustomModulesRequest request = + ListSecurityHealthAnalyticsCustomModulesRequest.newBuilder() + .setParent( + SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (SecurityHealthAnalyticsCustomModule element : + securityCenterClient.listSecurityHealthAnalyticsCustomModules(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesSecurityhealthanalyticssettingsname.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesSecurityhealthanalyticssettingsname.java new file mode 100644 index 000000000000..427da8baff6a --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesSecurityhealthanalyticssettingsname.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_ListSecurityHealthAnalyticsCustomModules_Securityhealthanalyticssettingsname_sync] +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsSettingsName; + +public class SyncListSecurityHealthAnalyticsCustomModulesSecurityhealthanalyticssettingsname { + + public static void main(String[] args) throws Exception { + syncListSecurityHealthAnalyticsCustomModulesSecurityhealthanalyticssettingsname(); + } + + public static void + syncListSecurityHealthAnalyticsCustomModulesSecurityhealthanalyticssettingsname() + 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()) { + SecurityHealthAnalyticsSettingsName parent = + SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]"); + for (SecurityHealthAnalyticsCustomModule element : + securityCenterClient.listSecurityHealthAnalyticsCustomModules(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_Securityhealthanalyticssettingsname_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesString.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesString.java new file mode 100644 index 000000000000..1b5ee699dc12 --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/listsecurityhealthanalyticscustommodules/SyncListSecurityHealthAnalyticsCustomModulesString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_ListSecurityHealthAnalyticsCustomModules_String_sync] +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsSettingsName; + +public class SyncListSecurityHealthAnalyticsCustomModulesString { + + public static void main(String[] args) throws Exception { + syncListSecurityHealthAnalyticsCustomModulesString(); + } + + public static void syncListSecurityHealthAnalyticsCustomModulesString() 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()) { + String parent = + SecurityHealthAnalyticsSettingsName.ofOrganizationName("[ORGANIZATION]").toString(); + for (SecurityHealthAnalyticsCustomModule element : + securityCenterClient.listSecurityHealthAnalyticsCustomModules(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_String_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/updatesecurityhealthanalyticscustommodule/AsyncUpdateSecurityHealthAnalyticsCustomModule.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/updatesecurityhealthanalyticscustommodule/AsyncUpdateSecurityHealthAnalyticsCustomModule.java new file mode 100644 index 000000000000..54021dae4761 --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/updatesecurityhealthanalyticscustommodule/AsyncUpdateSecurityHealthAnalyticsCustomModule.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_UpdateSecurityHealthAnalyticsCustomModule_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSecurityHealthAnalyticsCustomModule { + + public static void main(String[] args) throws Exception { + asyncUpdateSecurityHealthAnalyticsCustomModule(); + } + + public static void asyncUpdateSecurityHealthAnalyticsCustomModule() 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()) { + UpdateSecurityHealthAnalyticsCustomModuleRequest request = + UpdateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + .setSecurityHealthAnalyticsCustomModule( + SecurityHealthAnalyticsCustomModule.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + securityCenterClient + .updateSecurityHealthAnalyticsCustomModuleCallable() + .futureCall(request); + // Do something. + SecurityHealthAnalyticsCustomModule response = future.get(); + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_UpdateSecurityHealthAnalyticsCustomModule_async] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModule.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModule.java new file mode 100644 index 000000000000..0c19585252c7 --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModule.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_UpdateSecurityHealthAnalyticsCustomModule_sync] +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; +import com.google.cloud.securitycenter.v1.UpdateSecurityHealthAnalyticsCustomModuleRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSecurityHealthAnalyticsCustomModule { + + public static void main(String[] args) throws Exception { + syncUpdateSecurityHealthAnalyticsCustomModule(); + } + + public static void syncUpdateSecurityHealthAnalyticsCustomModule() 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()) { + UpdateSecurityHealthAnalyticsCustomModuleRequest request = + UpdateSecurityHealthAnalyticsCustomModuleRequest.newBuilder() + .setSecurityHealthAnalyticsCustomModule( + SecurityHealthAnalyticsCustomModule.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + SecurityHealthAnalyticsCustomModule response = + securityCenterClient.updateSecurityHealthAnalyticsCustomModule(request); + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_UpdateSecurityHealthAnalyticsCustomModule_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommoduleFieldmask.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommoduleFieldmask.java new file mode 100644 index 000000000000..f4e9e6084300 --- /dev/null +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycenter/updatesecurityhealthanalyticscustommodule/SyncUpdateSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommoduleFieldmask.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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_UpdateSecurityHealthAnalyticsCustomModule_SecurityhealthanalyticscustommoduleFieldmask_sync] +import com.google.cloud.securitycenter.v1.SecurityCenterClient; +import com.google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule; +import com.google.protobuf.FieldMask; + +public +class SyncUpdateSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommoduleFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommoduleFieldmask(); + } + + public static void + syncUpdateSecurityHealthAnalyticsCustomModuleSecurityhealthanalyticscustommoduleFieldmask() + 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()) { + SecurityHealthAnalyticsCustomModule securityHealthAnalyticsCustomModule = + SecurityHealthAnalyticsCustomModule.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + SecurityHealthAnalyticsCustomModule response = + securityCenterClient.updateSecurityHealthAnalyticsCustomModule( + securityHealthAnalyticsCustomModule, updateMask); + } + } +} +// [END securitycenter_v1_generated_SecurityCenter_UpdateSecurityHealthAnalyticsCustomModule_SecurityhealthanalyticscustommoduleFieldmask_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycentersettings/createsource/SyncCreateSource.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycentersettings/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModule.java similarity index 81% rename from java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycentersettings/createsource/SyncCreateSource.java rename to java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycentersettings/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModule.java index d7a643adab91..e327c3b61378 100644 --- a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycentersettings/createsource/SyncCreateSource.java +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/securitycentersettings/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModule.java @@ -16,17 +16,17 @@ package com.google.cloud.securitycenter.v1.samples; -// [START securitycenter_v1_generated_SecurityCenterSettings_CreateSource_sync] +// [START securitycenter_v1_generated_SecurityCenterSettings_CreateSecurityHealthAnalyticsCustomModule_sync] import com.google.cloud.securitycenter.v1.SecurityCenterSettings; import java.time.Duration; -public class SyncCreateSource { +public class SyncCreateSecurityHealthAnalyticsCustomModule { public static void main(String[] args) throws Exception { - syncCreateSource(); + syncCreateSecurityHealthAnalyticsCustomModule(); } - public static void syncCreateSource() throws Exception { + public static void syncCreateSecurityHealthAnalyticsCustomModule() 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. @@ -35,10 +35,10 @@ public static void syncCreateSource() throws Exception { SecurityCenterSettings.Builder securityCenterSettingsBuilder = SecurityCenterSettings.newBuilder(); securityCenterSettingsBuilder - .createSourceSettings() + .createSecurityHealthAnalyticsCustomModuleSettings() .setRetrySettings( securityCenterSettingsBuilder - .createSourceSettings() + .createSecurityHealthAnalyticsCustomModuleSettings() .getRetrySettings() .toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) @@ -46,4 +46,4 @@ public static void syncCreateSource() throws Exception { SecurityCenterSettings securityCenterSettings = securityCenterSettingsBuilder.build(); } } -// [END securitycenter_v1_generated_SecurityCenterSettings_CreateSource_sync] +// [END securitycenter_v1_generated_SecurityCenterSettings_CreateSecurityHealthAnalyticsCustomModule_sync] diff --git a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/stub/securitycenterstubsettings/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModule.java similarity index 81% rename from java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java rename to java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/stub/securitycenterstubsettings/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModule.java index c09ef2f6e8fb..8ece5a48caa9 100644 --- a/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/stub/securitycenterstubsettings/createsource/SyncCreateSource.java +++ b/java-securitycenter/samples/snippets/generated/com/google/cloud/securitycenter/v1/stub/securitycenterstubsettings/createsecurityhealthanalyticscustommodule/SyncCreateSecurityHealthAnalyticsCustomModule.java @@ -16,17 +16,17 @@ package com.google.cloud.securitycenter.v1.stub.samples; -// [START securitycenter_v1_generated_SecurityCenterStubSettings_CreateSource_sync] +// [START securitycenter_v1_generated_SecurityCenterStubSettings_CreateSecurityHealthAnalyticsCustomModule_sync] import com.google.cloud.securitycenter.v1.stub.SecurityCenterStubSettings; import java.time.Duration; -public class SyncCreateSource { +public class SyncCreateSecurityHealthAnalyticsCustomModule { public static void main(String[] args) throws Exception { - syncCreateSource(); + syncCreateSecurityHealthAnalyticsCustomModule(); } - public static void syncCreateSource() throws Exception { + public static void syncCreateSecurityHealthAnalyticsCustomModule() 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. @@ -35,10 +35,10 @@ public static void syncCreateSource() throws Exception { SecurityCenterStubSettings.Builder securityCenterSettingsBuilder = SecurityCenterStubSettings.newBuilder(); securityCenterSettingsBuilder - .createSourceSettings() + .createSecurityHealthAnalyticsCustomModuleSettings() .setRetrySettings( securityCenterSettingsBuilder - .createSourceSettings() + .createSecurityHealthAnalyticsCustomModuleSettings() .getRetrySettings() .toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) @@ -46,4 +46,4 @@ public static void syncCreateSource() throws Exception { SecurityCenterStubSettings securityCenterSettings = securityCenterSettingsBuilder.build(); } } -// [END securitycenter_v1_generated_SecurityCenterStubSettings_CreateSource_sync] +// [END securitycenter_v1_generated_SecurityCenterStubSettings_CreateSecurityHealthAnalyticsCustomModule_sync]