@Generated(value="by gapic-generator") @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(SpeechStubSettings settings,
ClientContext clientContext)
Constructs an instance of GrpcSpeechStub, using the given settings.
|
protected |
GrpcSpeechStub(SpeechStubSettings settings,
ClientContext clientContext,
GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcSpeechStub, using the given settings.
|
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static GrpcSpeechStub |
create(ClientContext clientContext) |
static GrpcSpeechStub |
create(ClientContext clientContext,
GrpcStubCallableFactory callableFactory) |
static GrpcSpeechStub |
create(SpeechStubSettings settings) |
GrpcOperationsStub |
getOperationsStub() |
boolean |
isShutdown() |
boolean |
isTerminated() |
UnaryCallable<com.google.cloud.speech.v1.LongRunningRecognizeRequest,Operation> |
longRunningRecognizeCallable() |
OperationCallable<com.google.cloud.speech.v1.LongRunningRecognizeRequest,com.google.cloud.speech.v1.LongRunningRecognizeResponse,com.google.cloud.speech.v1.LongRunningRecognizeMetadata> |
longRunningRecognizeOperationCallable() |
UnaryCallable<com.google.cloud.speech.v1.RecognizeRequest,com.google.cloud.speech.v1.RecognizeResponse> |
recognizeCallable() |
void |
shutdown() |
void |
shutdownNow() |
BidiStreamingCallable<com.google.cloud.speech.v1.StreamingRecognizeRequest,com.google.cloud.speech.v1.StreamingRecognizeResponse> |
streamingRecognizeCallable() |
protected GrpcSpeechStub(SpeechStubSettings settings, ClientContext clientContext) throws IOException
IOException
protected GrpcSpeechStub(SpeechStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcSpeechStub create(SpeechStubSettings settings) throws IOException
IOException
public static final GrpcSpeechStub create(ClientContext clientContext) throws IOException
IOException
public static final GrpcSpeechStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public GrpcOperationsStub getOperationsStub()
getOperationsStub
in class SpeechStub
public UnaryCallable<com.google.cloud.speech.v1.RecognizeRequest,com.google.cloud.speech.v1.RecognizeResponse> recognizeCallable()
recognizeCallable
in class SpeechStub
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable<com.google.cloud.speech.v1.LongRunningRecognizeRequest,com.google.cloud.speech.v1.LongRunningRecognizeResponse,com.google.cloud.speech.v1.LongRunningRecognizeMetadata> longRunningRecognizeOperationCallable()
longRunningRecognizeOperationCallable
in class SpeechStub
public UnaryCallable<com.google.cloud.speech.v1.LongRunningRecognizeRequest,Operation> longRunningRecognizeCallable()
longRunningRecognizeCallable
in class SpeechStub
public BidiStreamingCallable<com.google.cloud.speech.v1.StreamingRecognizeRequest,com.google.cloud.speech.v1.StreamingRecognizeResponse> streamingRecognizeCallable()
streamingRecognizeCallable
in class SpeechStub
public final void close()
close
in interface AutoCloseable
close
in class SpeechStub
public void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
InterruptedException
Copyright © 2019 Google LLC. All rights reserved.