@Generated(value="by gapic-generator-java") @BetaApi public class HttpJsonSpeechStub extends SpeechStub
This class is for advanced usage and reflects the underlying API directly.
| Modifier | Constructor and Description |
|---|---|
protected |
HttpJsonSpeechStub(SpeechStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonSpeechStub, using the given settings.
|
protected |
HttpJsonSpeechStub(SpeechStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonSpeechStub, using the given settings.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static HttpJsonSpeechStub |
create(com.google.api.gax.rpc.ClientContext clientContext) |
static HttpJsonSpeechStub |
create(com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) |
static HttpJsonSpeechStub |
create(SpeechStubSettings settings) |
com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub |
getHttpJsonOperationsStub() |
static List<com.google.api.gax.httpjson.ApiMethodDescriptor> |
getMethodDescriptors() |
boolean |
isShutdown() |
boolean |
isTerminated() |
com.google.api.gax.rpc.UnaryCallable<LongRunningRecognizeRequest,com.google.longrunning.Operation> |
longRunningRecognizeCallable() |
com.google.api.gax.rpc.OperationCallable<LongRunningRecognizeRequest,LongRunningRecognizeResponse,LongRunningRecognizeMetadata> |
longRunningRecognizeOperationCallable() |
com.google.api.gax.rpc.UnaryCallable<RecognizeRequest,RecognizeResponse> |
recognizeCallable() |
void |
shutdown() |
void |
shutdownNow() |
com.google.api.gax.rpc.BidiStreamingCallable<StreamingRecognizeRequest,StreamingRecognizeResponse> |
streamingRecognizeCallable() |
getOperationsStubprotected HttpJsonSpeechStub(SpeechStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionprotected HttpJsonSpeechStub(SpeechStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
IOExceptionpublic static final HttpJsonSpeechStub create(SpeechStubSettings settings) throws IOException
IOExceptionpublic static final HttpJsonSpeechStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionpublic static final HttpJsonSpeechStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
IOException@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
getHttpJsonOperationsStub in class SpeechStubpublic com.google.api.gax.rpc.UnaryCallable<RecognizeRequest,RecognizeResponse> recognizeCallable()
recognizeCallable in class SpeechStubpublic com.google.api.gax.rpc.UnaryCallable<LongRunningRecognizeRequest,com.google.longrunning.Operation> longRunningRecognizeCallable()
longRunningRecognizeCallable in class SpeechStubpublic com.google.api.gax.rpc.OperationCallable<LongRunningRecognizeRequest,LongRunningRecognizeResponse,LongRunningRecognizeMetadata> longRunningRecognizeOperationCallable()
longRunningRecognizeOperationCallable in class SpeechStubpublic com.google.api.gax.rpc.BidiStreamingCallable<StreamingRecognizeRequest,StreamingRecognizeResponse> streamingRecognizeCallable()
streamingRecognizeCallable in class SpeechStubpublic final void close()
close in interface AutoCloseableclose in class SpeechStubpublic void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionCopyright © 2024 Google LLC. All rights reserved.