@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,
ClientContext clientContext)
Constructs an instance of GrpcTextToSpeechStub, using the given settings.
|
protected |
GrpcTextToSpeechStub(TextToSpeechStubSettings settings,
ClientContext clientContext,
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(ClientContext clientContext) |
static GrpcTextToSpeechStub |
create(ClientContext clientContext,
GrpcStubCallableFactory callableFactory) |
static GrpcTextToSpeechStub |
create(TextToSpeechStubSettings settings) |
boolean |
isShutdown() |
boolean |
isTerminated() |
UnaryCallable<com.google.cloud.texttospeech.v1beta1.ListVoicesRequest,com.google.cloud.texttospeech.v1beta1.ListVoicesResponse> |
listVoicesCallable() |
void |
shutdown() |
void |
shutdownNow() |
UnaryCallable<com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest,com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse> |
synthesizeSpeechCallable() |
protected GrpcTextToSpeechStub(TextToSpeechStubSettings settings, ClientContext clientContext) throws IOException
IOException
protected GrpcTextToSpeechStub(TextToSpeechStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcTextToSpeechStub create(TextToSpeechStubSettings settings) throws IOException
IOException
public static final GrpcTextToSpeechStub create(ClientContext clientContext) throws IOException
IOException
public static final GrpcTextToSpeechStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public UnaryCallable<com.google.cloud.texttospeech.v1beta1.ListVoicesRequest,com.google.cloud.texttospeech.v1beta1.ListVoicesResponse> listVoicesCallable()
listVoicesCallable
in class TextToSpeechStub
public UnaryCallable<com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest,com.google.cloud.texttospeech.v1beta1.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 © 2019 Google LLC. All rights reserved.