@Generated(value="by gapic-generator-java") @BetaApi public class HttpJsonTextToSpeechStub extends TextToSpeechStub
This class is for advanced usage and reflects the underlying API directly.
Modifier | Constructor and Description |
---|---|
protected |
HttpJsonTextToSpeechStub(TextToSpeechStubSettings settings,
ClientContext clientContext)
Constructs an instance of HttpJsonTextToSpeechStub, using the given settings.
|
protected |
HttpJsonTextToSpeechStub(TextToSpeechStubSettings settings,
ClientContext clientContext,
HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonTextToSpeechStub, using the given settings.
|
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static HttpJsonTextToSpeechStub |
create(ClientContext clientContext) |
static HttpJsonTextToSpeechStub |
create(ClientContext clientContext,
HttpJsonStubCallableFactory callableFactory) |
static HttpJsonTextToSpeechStub |
create(TextToSpeechStubSettings settings) |
static List<ApiMethodDescriptor> |
getMethodDescriptors() |
boolean |
isShutdown() |
boolean |
isTerminated() |
UnaryCallable<ListVoicesRequest,ListVoicesResponse> |
listVoicesCallable() |
void |
shutdown() |
void |
shutdownNow() |
UnaryCallable<SynthesizeSpeechRequest,SynthesizeSpeechResponse> |
synthesizeSpeechCallable() |
protected HttpJsonTextToSpeechStub(TextToSpeechStubSettings settings, ClientContext clientContext) throws IOException
IOException
protected HttpJsonTextToSpeechStub(TextToSpeechStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException
IOException
public static final HttpJsonTextToSpeechStub create(TextToSpeechStubSettings settings) throws IOException
IOException
public static final HttpJsonTextToSpeechStub create(ClientContext clientContext) throws IOException
IOException
public static final HttpJsonTextToSpeechStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException
IOException
@InternalApi public static List<ApiMethodDescriptor> getMethodDescriptors()
public UnaryCallable<ListVoicesRequest,ListVoicesResponse> listVoicesCallable()
listVoicesCallable
in class TextToSpeechStub
public UnaryCallable<SynthesizeSpeechRequest,SynthesizeSpeechResponse> synthesizeSpeechCallable()
synthesizeSpeechCallable
in class TextToSpeechStub
public final void close()
close
in interface AutoCloseable
close
in class TextToSpeechStub
public void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
InterruptedException
Copyright © 2022 Google LLC. All rights reserved.