public final CustomClass createCustomClass(
      String parent, CustomClass customClass, String customClassId) {
    CreateCustomClassRequest request =
        CreateCustomClassRequest.newBuilder()
            .setParent(parent)
            .setCustomClass(customClass)
            .setCustomClassId(customClassId)
            .build();
    return createCustomClass(request);
  }
Create a custom class.

<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 (AdaptationClient adaptationClient = AdaptationClient.create()) {
  String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
  CustomClass customClass = CustomClass.newBuilder().build();
  String customClassId = "customClassId1871032322";
  CustomClass response = adaptationClient.createCustomClass(parent, customClass, customClassId);
}
}</pre>

@param parent Required. The parent resource where this custom class will be created. Format:
    <p>`projects/{project}/locations/{location}/customClasses`
    <p>Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu`
    (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global`
    location. To specify a region, use a [regional
    endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or
    `eu` location value.
@param customClass Required. The custom class to create.
@param customClassId Required. The ID to use for the custom class, which will become the final
    component of the custom class' resource name.
    <p>This value should restrict to letters, numbers, and hyphens, with the first character a
    letter, the last a letter or a number, and be 4-63 characters.
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java