public final Config getConfig(ConfigName name) {
    GetConfigRequest request =
        GetConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build();
    return getConfig(request);
  }
Returns the requested [Config][google.cloud.speech.v2.Config].

<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 (SpeechClient speechClient = SpeechClient.create()) {
  ConfigName name = ConfigName.of("[PROJECT]", "[LOCATION]");
  Config response = speechClient.getConfig(name);
}
}</pre>

@param name Required. The name of the config to retrieve. There is exactly one config resource
    per project per location. The expected format is
    `projects/{project}/locations/{location}/config`.
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java