Class SpeechGrpc (4.32.0)

public final class SpeechGrpc

Service that implements Google Cloud Speech API.

Inheritance

java.lang.Object > SpeechGrpc

Static Fields

SERVICE_NAME

public static final String SERVICE_NAME
Field Value
TypeDescription
String

Static Methods

bindService(SpeechGrpc.AsyncService service)

public static final ServerServiceDefinition bindService(SpeechGrpc.AsyncService service)
Parameter
NameDescription
serviceSpeechGrpc.AsyncService
Returns
TypeDescription
io.grpc.ServerServiceDefinition

getLongRunningRecognizeMethod()

public static MethodDescriptor<LongRunningRecognizeRequest,Operation> getLongRunningRecognizeMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<LongRunningRecognizeRequest,Operation>

getRecognizeMethod()

public static MethodDescriptor<RecognizeRequest,RecognizeResponse> getRecognizeMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<RecognizeRequest,RecognizeResponse>

getServiceDescriptor()

public static ServiceDescriptor getServiceDescriptor()
Returns
TypeDescription
io.grpc.ServiceDescriptor

getStreamingRecognizeMethod()

public static MethodDescriptor<StreamingRecognizeRequest,StreamingRecognizeResponse> getStreamingRecognizeMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<StreamingRecognizeRequest,StreamingRecognizeResponse>

newBlockingStub(Channel channel)

public static SpeechGrpc.SpeechBlockingStub newBlockingStub(Channel channel)

Creates a new blocking-style stub that supports unary and streaming output calls on the service

Parameter
NameDescription
channelio.grpc.Channel
Returns
TypeDescription
SpeechGrpc.SpeechBlockingStub

newFutureStub(Channel channel)

public static SpeechGrpc.SpeechFutureStub newFutureStub(Channel channel)

Creates a new ListenableFuture-style stub that supports unary calls on the service

Parameter
NameDescription
channelio.grpc.Channel
Returns
TypeDescription
SpeechGrpc.SpeechFutureStub

newStub(Channel channel)

public static SpeechGrpc.SpeechStub newStub(Channel channel)

Creates a new async stub that supports all call types for the service

Parameter
NameDescription
channelio.grpc.Channel
Returns
TypeDescription
SpeechGrpc.SpeechStub