@BetaApi @Generated(value="by gapic-generator-java") public class GrpcSpeechTranslationServiceStub extends SpeechTranslationServiceStub
This class is for advanced usage and reflects the underlying API directly.
| Modifier | Constructor and Description |
|---|---|
protected |
GrpcSpeechTranslationServiceStub(SpeechTranslationServiceStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcSpeechTranslationServiceStub, using the given settings.
|
protected |
GrpcSpeechTranslationServiceStub(SpeechTranslationServiceStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcSpeechTranslationServiceStub, using the given settings.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static GrpcSpeechTranslationServiceStub |
create(com.google.api.gax.rpc.ClientContext clientContext) |
static GrpcSpeechTranslationServiceStub |
create(com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) |
static GrpcSpeechTranslationServiceStub |
create(SpeechTranslationServiceStubSettings settings) |
com.google.longrunning.stub.GrpcOperationsStub |
getOperationsStub() |
boolean |
isShutdown() |
boolean |
isTerminated() |
void |
shutdown() |
void |
shutdownNow() |
com.google.api.gax.rpc.BidiStreamingCallable<StreamingTranslateSpeechRequest,StreamingTranslateSpeechResponse> |
streamingTranslateSpeechCallable() |
protected GrpcSpeechTranslationServiceStub(SpeechTranslationServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionprotected GrpcSpeechTranslationServiceStub(SpeechTranslationServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic static final GrpcSpeechTranslationServiceStub create(SpeechTranslationServiceStubSettings settings) throws IOException
IOExceptionpublic static final GrpcSpeechTranslationServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionpublic static final GrpcSpeechTranslationServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
public com.google.api.gax.rpc.BidiStreamingCallable<StreamingTranslateSpeechRequest,StreamingTranslateSpeechResponse> streamingTranslateSpeechCallable()
streamingTranslateSpeechCallable in class SpeechTranslationServiceStubpublic final void close()
close in interface AutoCloseableclose in class SpeechTranslationServiceStubpublic void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionCopyright © 2022 Google LLC. All rights reserved.