public static final AdaptationSettings create(AdaptationStubSettings stub) throws IOException {
    return new AdaptationSettings.Builder(stub.toBuilder()).build();
  }
Returns the object with the settings used for calls to deleteCustomClass.
java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java