public final SearchConfig updateSearchConfig(UpdateSearchConfigRequest request) {
    return updateSearchConfigCallable().call(request);
  }
Updates a search configuration inside a corpus.

<p>Please follow the rules below to create a valid UpdateSearchConfigRequest. --- General Rules
--- 1. Request.search_configuration.name must already exist. 2. Request must contain at least
one non-empty search_criteria_property or facet_property. 3. mapped_fields must not be empty,
and must map to existing UGA keys. 4. All mapped_fields must be of the same type. 5. All
mapped_fields must share the same granularity. 6. All mapped_fields must share the same
semantic SearchConfig match options. For property-specific rules, please reference the comments
for FacetProperty and SearchCriteriaProperty.

<p>Sample code:

<pre>{@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 (WarehouseClient warehouseClient = WarehouseClient.create()) {
  UpdateSearchConfigRequest request =
      UpdateSearchConfigRequest.newBuilder()
          .setSearchConfig(SearchConfig.newBuilder().build())
          .setUpdateMask(FieldMask.newBuilder().build())
          .build();
  SearchConfig response = warehouseClient.updateSearchConfig(request);
}
}</pre>

@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
java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/WarehouseClient.java