public class GrpcTextToSpeechStub extends TextToSpeechStub
gRPC stub implementation for the TextToSpeech service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final GrpcTextToSpeechStub create(ClientContext clientContext)
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcTextToSpeechStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
create(TextToSpeechStubSettings settings)
public static final GrpcTextToSpeechStub create(TextToSpeechStubSettings settings)
Constructors
GrpcTextToSpeechStub(TextToSpeechStubSettings settings, ClientContext clientContext)
protected GrpcTextToSpeechStub(TextToSpeechStubSettings settings, ClientContext clientContext)
Constructs an instance of GrpcTextToSpeechStub, using the given settings. This is protected so
that it is easy to make a subclass, but otherwise, the static factory methods should be
preferred.
GrpcTextToSpeechStub(TextToSpeechStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
protected GrpcTextToSpeechStub(TextToSpeechStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcTextToSpeechStub, using the given settings. This is protected so
that it is easy to make a subclass, but otherwise, the static factory methods should be
preferred.
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
close()
public final void close()
Overrides
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
isShutdown()
public boolean isShutdown()
isTerminated()
public boolean isTerminated()
listVoicesCallable()
public UnaryCallable<ListVoicesRequest,ListVoicesResponse> listVoicesCallable()
Overrides
shutdown()
shutdownNow()
public void shutdownNow()
streamingSynthesizeCallable()
public BidiStreamingCallable<StreamingSynthesizeRequest,StreamingSynthesizeResponse> streamingSynthesizeCallable()
Overrides
synthesizeSpeechCallable()
public UnaryCallable<SynthesizeSpeechRequest,SynthesizeSpeechResponse> synthesizeSpeechCallable()
Overrides