Class SpeechGrpc.SpeechBlockingV2Stub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<SpeechGrpc.SpeechBlockingV2Stub>
com.google.cloud.speech.v1.SpeechGrpc.SpeechBlockingV2Stub
Enclosing class:
SpeechGrpc

public static final class SpeechGrpc.SpeechBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<SpeechGrpc.SpeechBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service Speech.
 Service that implements Google Cloud Speech API.
 
  • 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 Type
    Method
    Description
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface.
    Performs synchronous speech recognition: receive results after all audio has been sent and processed.
    io.grpc.stub.BlockingClientCall<StreamingRecognizeRequest,StreamingRecognizeResponse>
    Performs bidirectional streaming speech recognition: receive results while sending audio.

    Methods inherited from class io.grpc.stub.AbstractBlockingStub

    newStub, newStub

    Methods inherited from class io.grpc.stub.AbstractStub

    getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • build

      protected SpeechGrpc.SpeechBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<SpeechGrpc.SpeechBlockingV2Stub>
    • recognize

      public RecognizeResponse recognize(RecognizeRequest request) throws io.grpc.StatusException
       Performs synchronous speech recognition: receive results after all audio
       has been sent and processed.
       
      Throws:
      io.grpc.StatusException
    • longRunningRecognize

      public Operation longRunningRecognize(LongRunningRecognizeRequest request) throws io.grpc.StatusException
       Performs asynchronous speech recognition: receive results via the
       google.longrunning.Operations interface. Returns either an
       `Operation.error` or an `Operation.response` which contains
       a `LongRunningRecognizeResponse` message.
       For more information on asynchronous speech recognition, see the
       [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
       
      Throws:
      io.grpc.StatusException
    • streamingRecognize

      @ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<StreamingRecognizeRequest,StreamingRecognizeResponse> streamingRecognize()
       Performs bidirectional streaming speech recognition: receive results while
       sending audio. This method is only available via the gRPC API (not REST).