@Generated(value="by gapic-generator") @BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public class GrpcTextToSpeechStub extends TextToSpeechStub
This class is for advanced usage and reflects the underlying API directly.
| Modifier | Constructor and Description |
|---|---|
protected |
GrpcTextToSpeechStub(TextToSpeechStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcTextToSpeechStub, using the given settings.
|
protected |
GrpcTextToSpeechStub(TextToSpeechStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcTextToSpeechStub, using the given settings.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static GrpcTextToSpeechStub |
create(com.google.api.gax.rpc.ClientContext clientContext) |
static GrpcTextToSpeechStub |
create(com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) |
static GrpcTextToSpeechStub |
create(TextToSpeechStubSettings settings) |
boolean |
isShutdown() |
boolean |
isTerminated() |
com.google.api.gax.rpc.UnaryCallable<ListVoicesRequest,ListVoicesResponse> |
listVoicesCallable() |
void |
shutdown() |
void |
shutdownNow() |
com.google.api.gax.rpc.UnaryCallable<SynthesizeSpeechRequest,SynthesizeSpeechResponse> |
synthesizeSpeechCallable() |
protected GrpcTextToSpeechStub(TextToSpeechStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionprotected GrpcTextToSpeechStub(TextToSpeechStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic static final GrpcTextToSpeechStub create(TextToSpeechStubSettings settings) throws IOException
IOExceptionpublic static final GrpcTextToSpeechStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionpublic static final GrpcTextToSpeechStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic com.google.api.gax.rpc.UnaryCallable<ListVoicesRequest,ListVoicesResponse> listVoicesCallable()
listVoicesCallable in class TextToSpeechStubpublic com.google.api.gax.rpc.UnaryCallable<SynthesizeSpeechRequest,SynthesizeSpeechResponse> synthesizeSpeechCallable()
synthesizeSpeechCallable in class TextToSpeechStubpublic final void close()
close in interface AutoCloseableclose in class TextToSpeechStubpublic void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionCopyright © 2019 Google LLC. All rights reserved.