Class HttpJsonSpeechStub (4.17.0)

public class HttpJsonSpeechStub extends SpeechStub

REST stub implementation for the Speech service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > SpeechStub > HttpJsonSpeechStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonSpeechStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonSpeechStub
Exceptions
TypeDescription
IOException

create(SpeechStubSettings settings)

public static final HttpJsonSpeechStub create(SpeechStubSettings settings)
Parameter
NameDescription
settingsSpeechStubSettings
Returns
TypeDescription
HttpJsonSpeechStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonSpeechStub(SpeechStubSettings settings, ClientContext clientContext)

protected HttpJsonSpeechStub(SpeechStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonSpeechStub, 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
settingsSpeechStubSettings
clientContextClientContext

HttpJsonSpeechStub(SpeechStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonSpeechStub(SpeechStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonSpeechStub, 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
settingsSpeechStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

longRunningRecognizeCallable()

public UnaryCallable<LongRunningRecognizeRequest,Operation> longRunningRecognizeCallable()
Returns
TypeDescription
UnaryCallable<LongRunningRecognizeRequest,Operation>
Overrides

longRunningRecognizeOperationCallable()

public OperationCallable<LongRunningRecognizeRequest,LongRunningRecognizeResponse,LongRunningRecognizeMetadata> longRunningRecognizeOperationCallable()
Returns
TypeDescription
OperationCallable<LongRunningRecognizeRequest,LongRunningRecognizeResponse,LongRunningRecognizeMetadata>
Overrides

recognizeCallable()

public UnaryCallable<RecognizeRequest,RecognizeResponse> recognizeCallable()
Returns
TypeDescription
UnaryCallable<RecognizeRequest,RecognizeResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

streamingRecognizeCallable()

public BidiStreamingCallable<StreamingRecognizeRequest,StreamingRecognizeResponse> streamingRecognizeCallable()
Returns
TypeDescription
BidiStreamingCallable<StreamingRecognizeRequest,StreamingRecognizeResponse>
Overrides