public final SearchConfig createSearchConfig(CreateSearchConfigRequest request) {
    return createSearchConfigCallable().call(request);
  }
Creates a search configuration inside a corpus.

<p>Please follow the rules below to create a valid CreateSearchConfigRequest. --- General Rules
--- 1. Request.search_config_id must not be associated with an existing SearchConfig. 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()) {
  CreateSearchConfigRequest request =
      CreateSearchConfigRequest.newBuilder()
          .setParent(CorpusName.of("[PROJECT_NUMBER]", "[LOCATION]", "[CORPUS]").toString())
          .setSearchConfig(SearchConfig.newBuilder().build())
          .setSearchConfigId("searchConfigId1576297925")
          .build();
  SearchConfig response = warehouseClient.createSearchConfig(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