Beta
This library is covered by the Pre-GA Offerings Terms
of the Terms of Service. Pre-GA libraries might have limited support,
and changes to pre-GA libraries might not be compatible with other pre-GA versions.
For more information, see the
launch stage descriptions .
public class GrpcSpeechTranslationServiceStub extends SpeechTranslationServiceStub
gRPC stub implementation for the SpeechTranslationService service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final GrpcSpeechTranslationServiceStub create(ClientContext clientContext)
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcSpeechTranslationServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcSpeechTranslationServiceStub create(SpeechTranslationServiceStubSettings settings)
Constructors
GrpcSpeechTranslationServiceStub(SpeechTranslationServiceStubSettings settings, ClientContext clientContext)
protected GrpcSpeechTranslationServiceStub(SpeechTranslationServiceStubSettings settings, ClientContext clientContext)
Constructs an instance of GrpcSpeechTranslationServiceStub, using the given settings. This is
protected so that it is easy to make a subclass, but otherwise, the static factory methods
should be preferred.
GrpcSpeechTranslationServiceStub(SpeechTranslationServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
protected GrpcSpeechTranslationServiceStub(SpeechTranslationServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcSpeechTranslationServiceStub, using the given settings. This is
protected so that it is easy to make a subclass, but otherwise, the static factory methods
should be preferred.
Methods
public boolean awaitTermination(long duration, TimeUnit unit)
public final void close()
Overrides
public GrpcOperationsStub getOperationsStub()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public BidiStreamingCallable<StreamingTranslateSpeechRequest,StreamingTranslateSpeechResponse> streamingTranslateSpeechCallable()
Overrides