Package com.google.cloud.language.v2
Class LanguageServiceGrpc.LanguageServiceBlockingStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<LanguageServiceGrpc.LanguageServiceBlockingStub>
-
- com.google.cloud.language.v2.LanguageServiceGrpc.LanguageServiceBlockingStub
-
- Enclosing class:
- LanguageServiceGrpc
public static final class LanguageServiceGrpc.LanguageServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<LanguageServiceGrpc.LanguageServiceBlockingStub>
A stub to allow clients to do synchronous rpc calls to service LanguageService.Provides text analysis operations such as sentiment analysis and entity recognition.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnalyzeEntitiesResponseanalyzeEntities(AnalyzeEntitiesRequest request)Finds named entities (currently proper names and common nouns) in the text along with entity types, probability, mentions for each entity, and other properties.AnalyzeSentimentResponseanalyzeSentiment(AnalyzeSentimentRequest request)Analyzes the sentiment of the provided text.AnnotateTextResponseannotateText(AnnotateTextRequest request)A convenience method that provides all features in one call.protected LanguageServiceGrpc.LanguageServiceBlockingStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)ClassifyTextResponseclassifyText(ClassifyTextRequest request)Classifies a document into categories.ModerateTextResponsemoderateText(ModerateTextRequest request)Moderates a document for harmful and sensitive categories.
-
-
-
Method Detail
-
build
protected LanguageServiceGrpc.LanguageServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<LanguageServiceGrpc.LanguageServiceBlockingStub>
-
analyzeSentiment
public AnalyzeSentimentResponse analyzeSentiment(AnalyzeSentimentRequest request)
Analyzes the sentiment of the provided text.
-
analyzeEntities
public AnalyzeEntitiesResponse analyzeEntities(AnalyzeEntitiesRequest request)
Finds named entities (currently proper names and common nouns) in the text along with entity types, probability, mentions for each entity, and other properties.
-
classifyText
public ClassifyTextResponse classifyText(ClassifyTextRequest request)
Classifies a document into categories.
-
moderateText
public ModerateTextResponse moderateText(ModerateTextRequest request)
Moderates a document for harmful and sensitive categories.
-
annotateText
public AnnotateTextResponse annotateText(AnnotateTextRequest request)
A convenience method that provides all features in one call.
-
-