Class SpeechTranslationServiceGrpc.SpeechTranslationServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<SpeechTranslationServiceGrpc.SpeechTranslationServiceStub>
com.google.cloud.mediatranslation.v1beta1.SpeechTranslationServiceGrpc.SpeechTranslationServiceStub
- Enclosing class:
- SpeechTranslationServiceGrpc
public static final class SpeechTranslationServiceGrpc.SpeechTranslationServiceStub
extends io.grpc.stub.AbstractAsyncStub<SpeechTranslationServiceGrpc.SpeechTranslationServiceStub>
A stub to allow clients to do asynchronous rpc calls to service SpeechTranslationService.
Provides translation from/to media types.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) io.grpc.stub.StreamObserver<StreamingTranslateSpeechRequest>streamingTranslateSpeech(io.grpc.stub.StreamObserver<StreamingTranslateSpeechResponse> responseObserver) Performs bidirectional streaming speech translation: receive results while sending audio.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected SpeechTranslationServiceGrpc.SpeechTranslationServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<SpeechTranslationServiceGrpc.SpeechTranslationServiceStub>
-
streamingTranslateSpeech
public io.grpc.stub.StreamObserver<StreamingTranslateSpeechRequest> streamingTranslateSpeech(io.grpc.stub.StreamObserver<StreamingTranslateSpeechResponse> responseObserver) Performs bidirectional streaming speech translation: receive results while sending audio. This method is only available via the gRPC API (not REST).
-