public final SearchConfig createSearchConfig(
      String parent, SearchConfig searchConfig, String searchConfigId) {
    CreateSearchConfigRequest request =
        CreateSearchConfigRequest.newBuilder()
            .setParent(parent)
            .setSearchConfig(searchConfig)
            .setSearchConfigId(searchConfigId)
            .build();
    return createSearchConfig(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()) {
  String parent = CorpusName.of("[PROJECT_NUMBER]", "[LOCATION]", "[CORPUS]").toString();
  SearchConfig searchConfig = SearchConfig.newBuilder().build();
  String searchConfigId = "searchConfigId1576297925";
  SearchConfig response =
      warehouseClient.createSearchConfig(parent, searchConfig, searchConfigId);
}
}</pre>

@param parent Required. The parent resource where this search configuration will be created.
    Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}`
@param searchConfig Required. The search config to create.
@param searchConfigId Required. ID to use for the new search config. Will become the final
    component of the SearchConfig's resource name. This value should be up to 63 characters,
    and valid characters are /[a-z][0-9]-_/. The first character must be a letter, the last
    could be a letter or a number.
@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