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