Class LanguageServiceGrpc (2.73.0)

publicfinalclass LanguageServiceGrpc

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

Inheritance

java.lang.Object > LanguageServiceGrpc

Static Fields

SERVICE_NAME

publicstaticfinalStringSERVICE_NAME
Field Value
Type Description
String

Static Methods

bindService(LanguageServiceGrpc.AsyncService service)

publicstaticfinalServerServiceDefinitionbindService(LanguageServiceGrpc.AsyncServiceservice)
Parameter
Name Description
service LanguageServiceGrpc.AsyncService
Returns
Type Description
io.grpc.ServerServiceDefinition

getAnalyzeEntitiesMethod()

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

getAnalyzeEntitySentimentMethod()

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

getAnalyzeSentimentMethod()

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

getAnalyzeSyntaxMethod()

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

getAnnotateTextMethod()

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

getClassifyTextMethod()

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

getModerateTextMethod()

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

getServiceDescriptor()

publicstaticServiceDescriptorgetServiceDescriptor()
Returns
Type Description
io.grpc.ServiceDescriptor

newBlockingStub(Channel channel)

publicstaticLanguageServiceGrpc.LanguageServiceBlockingStubnewBlockingStub(Channelchannel)

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

newBlockingV2Stub(Channel channel)

publicstaticLanguageServiceGrpc.LanguageServiceBlockingV2StubnewBlockingV2Stub(Channelchannel)

Creates a new blocking-style stub that supports all types of calls on the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
LanguageServiceGrpc.LanguageServiceBlockingV2Stub

newFutureStub(Channel channel)

publicstaticLanguageServiceGrpc.LanguageServiceFutureStubnewFutureStub(Channelchannel)

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)

publicstaticLanguageServiceGrpc.LanguageServiceStubnewStub(Channelchannel)

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

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.