Class LanguageServiceGrpc (2.55.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
Type Description
String

Static Methods

bindService(LanguageServiceGrpc.AsyncService service)

public static final ServerServiceDefinition bindService(LanguageServiceGrpc.AsyncService service)
Parameter
Name Description
service LanguageServiceGrpc.AsyncService
Returns
Type Description
io.grpc.ServerServiceDefinition

getAnalyzeEntitiesMethod()

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

getAnalyzeEntitySentimentMethod()

public static MethodDescriptor<AnalyzeEntitySentimentRequest,AnalyzeEntitySentimentResponse> getAnalyzeEntitySentimentMethod()
Returns
Type Description
io.grpc.MethodDescriptor<AnalyzeEntitySentimentRequest,AnalyzeEntitySentimentResponse>

getAnalyzeSentimentMethod()

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

getAnalyzeSyntaxMethod()

public static MethodDescriptor<AnalyzeSyntaxRequest,AnalyzeSyntaxResponse> getAnalyzeSyntaxMethod()
Returns
Type Description
io.grpc.MethodDescriptor<AnalyzeSyntaxRequest,AnalyzeSyntaxResponse>

getAnnotateTextMethod()

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

getClassifyTextMethod()

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

getModerateTextMethod()

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

getServiceDescriptor()

public static ServiceDescriptor getServiceDescriptor()
Returns
Type Description
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
Name Description
channel io.grpc.Channel
Returns
Type Description
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
Name Description
channel io.grpc.Channel
Returns
Type Description
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
Name Description
channel io.grpc.Channel
Returns
Type Description
LanguageServiceGrpc.LanguageServiceStub