public final SearchConfig updateSearchConfig(SearchConfig searchConfig, FieldMask updateMask) {
    UpdateSearchConfigRequest request =
        UpdateSearchConfigRequest.newBuilder()
            .setSearchConfig(searchConfig)
            .setUpdateMask(updateMask)
            .build();
    return updateSearchConfig(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()) {
  SearchConfig searchConfig = SearchConfig.newBuilder().build();
  FieldMask updateMask = FieldMask.newBuilder().build();
  SearchConfig response = warehouseClient.updateSearchConfig(searchConfig, updateMask);
}
}</pre>

@param searchConfig Required. The search configuration to update.
    <p>The search configuration's `name` field is used to identify the resource to be updated.
    Format:
    `projects/{project_number}/locations/{location}/corpora/{corpus}/searchConfigs/{search_config}`
@param updateMask The list of fields to be updated. If left unset, all field paths will be
    updated/overwritten.
@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