@Generated(value="by GAPIC v0.0.5") @BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public class GrpcSpeechStub extends SpeechStub
This class is for advanced usage and reflects the underlying API directly.
| Modifier | Constructor and Description |
|---|---|
protected |
GrpcSpeechStub(SpeechSettings settings,
com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcSpeechStub, using the given settings.
|
protected GrpcSpeechStub(SpeechSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionpublic static final GrpcSpeechStub create(SpeechSettings settings) throws IOException
IOExceptionpublic static final GrpcSpeechStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionpublic com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
getOperationsStub in class SpeechStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.cloud.speech.v1beta1.SyncRecognizeRequest,com.google.cloud.speech.v1beta1.SyncRecognizeResponse> syncRecognizeCallable()
syncRecognizeCallable in class SpeechStubpublic com.google.api.gax.rpc.OperationCallable<com.google.cloud.speech.v1beta1.AsyncRecognizeRequest,com.google.cloud.speech.v1beta1.AsyncRecognizeResponse,com.google.cloud.speech.v1beta1.AsyncRecognizeMetadata> asyncRecognizeOperationCallable()
asyncRecognizeOperationCallable in class SpeechStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.cloud.speech.v1beta1.AsyncRecognizeRequest,com.google.longrunning.Operation> asyncRecognizeCallable()
asyncRecognizeCallable in class SpeechStubpublic com.google.api.gax.rpc.BidiStreamingCallable<com.google.cloud.speech.v1beta1.StreamingRecognizeRequest,com.google.cloud.speech.v1beta1.StreamingRecognizeResponse> streamingRecognizeCallable()
streamingRecognizeCallable in class SpeechStubpublic void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionCopyright © 2017 Google. All rights reserved.