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)
Parameter
Returns
Exceptions
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcTextToSpeechStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Returns
Exceptions
create(TextToSpeechStubSettings settings)
public static final GrpcTextToSpeechStub create(TextToSpeechStubSettings settings)
Parameter
Returns
Exceptions
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.
Parameters
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.
Parameters
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Returns
Exceptions
close()
public final void close()
Overrides
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
Returns
isShutdown()
public boolean isShutdown()
Returns
isTerminated()
public boolean isTerminated()
Returns
listVoicesCallable()
public UnaryCallable<ListVoicesRequest,ListVoicesResponse> listVoicesCallable()
Returns
Overrides
shutdown()
shutdownNow()
public void shutdownNow()
synthesizeSpeechCallable()
public UnaryCallable<SynthesizeSpeechRequest,SynthesizeSpeechResponse> synthesizeSpeechCallable()
Returns
Overrides