@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.v1.RecognizeRequest,com.google.cloud.speech.v1.RecognizeResponse> recognizeCallable()
recognizeCallable in class SpeechStubpublic com.google.api.gax.rpc.OperationCallable<com.google.cloud.speech.v1.LongRunningRecognizeRequest,com.google.cloud.speech.v1.LongRunningRecognizeResponse,com.google.cloud.speech.v1.LongRunningRecognizeMetadata> longRunningRecognizeOperationCallable()
longRunningRecognizeOperationCallable in class SpeechStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.cloud.speech.v1.LongRunningRecognizeRequest,com.google.longrunning.Operation> longRunningRecognizeCallable()
longRunningRecognizeCallable in class SpeechStubpublic com.google.api.gax.rpc.BidiStreamingCallable<com.google.cloud.speech.v1.StreamingRecognizeRequest,com.google.cloud.speech.v1.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.