Class GrpcTextToSpeechStub (2.9.0)

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.

Inheritance

java.lang.Object > TextToSpeechStub > GrpcTextToSpeechStub

Static Methods

create(ClientContext clientContext)

public static final GrpcTextToSpeechStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcTextToSpeechStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcTextToSpeechStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcTextToSpeechStub
Exceptions
TypeDescription
IOException

create(TextToSpeechStubSettings settings)

public static final GrpcTextToSpeechStub create(TextToSpeechStubSettings settings)
Parameter
NameDescription
settingsTextToSpeechStubSettings
Returns
TypeDescription
GrpcTextToSpeechStub
Exceptions
TypeDescription
IOException

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
NameDescription
settingsTextToSpeechStubSettings
clientContextClientContext

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
NameDescription
settingsTextToSpeechStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listVoicesCallable()

public UnaryCallable<ListVoicesRequest,ListVoicesResponse> listVoicesCallable()
Returns
TypeDescription
UnaryCallable<ListVoicesRequest,ListVoicesResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

synthesizeSpeechCallable()

public UnaryCallable<SynthesizeSpeechRequest,SynthesizeSpeechResponse> synthesizeSpeechCallable()
Returns
TypeDescription
UnaryCallable<SynthesizeSpeechRequest,SynthesizeSpeechResponse>
Overrides