/** * Constructs an instance of SpeechClient, using the given settings. The channels are created * based on the settings passed in, or defaults for any settings that are not set. */ public static final SpeechClient create(SpeechSettings settings) throws IOException { return new SpeechClient(settings); }
/** * Constructs an instance of SpeechClient, using the given stub for making calls. This is for * advanced usage - prefer to use SpeechSettings}. */ @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final SpeechClient create(SpeechStub stub) { return new SpeechClient(stub); }