Class LanguageServiceGrpc (2.37.0)

public final class LanguageServiceGrpc

Provides text analysis operations such as sentiment analysis and entity recognition.

Inheritance

java.lang.Object > LanguageServiceGrpc

Static Fields

SERVICE_NAME

public static final String SERVICE_NAME
Field Value
TypeDescription
String

Static Methods

bindService(LanguageServiceGrpc.AsyncService service)

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

getAnalyzeEntitiesMethod()

public static MethodDescriptor<AnalyzeEntitiesRequest,AnalyzeEntitiesResponse> getAnalyzeEntitiesMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<AnalyzeEntitiesRequest,AnalyzeEntitiesResponse>

getAnalyzeSentimentMethod()

public static MethodDescriptor<AnalyzeSentimentRequest,AnalyzeSentimentResponse> getAnalyzeSentimentMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<AnalyzeSentimentRequest,AnalyzeSentimentResponse>

getAnnotateTextMethod()

public static MethodDescriptor<AnnotateTextRequest,AnnotateTextResponse> getAnnotateTextMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<AnnotateTextRequest,AnnotateTextResponse>

getClassifyTextMethod()

public static MethodDescriptor<ClassifyTextRequest,ClassifyTextResponse> getClassifyTextMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<ClassifyTextRequest,ClassifyTextResponse>

getModerateTextMethod()

public static MethodDescriptor<ModerateTextRequest,ModerateTextResponse> getModerateTextMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<ModerateTextRequest,ModerateTextResponse>

getServiceDescriptor()

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

newBlockingStub(Channel channel)

public static LanguageServiceGrpc.LanguageServiceBlockingStub 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
LanguageServiceGrpc.LanguageServiceBlockingStub

newFutureStub(Channel channel)

public static LanguageServiceGrpc.LanguageServiceFutureStub newFutureStub(Channel channel)

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

Parameter
NameDescription
channelio.grpc.Channel
Returns
TypeDescription
LanguageServiceGrpc.LanguageServiceFutureStub

newStub(Channel channel)

public static LanguageServiceGrpc.LanguageServiceStub newStub(Channel channel)

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

Parameter
NameDescription
channelio.grpc.Channel
Returns
TypeDescription
LanguageServiceGrpc.LanguageServiceStub