Package com.google.cloud.language.v1
Class LanguageServiceGrpc.LanguageServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<LanguageServiceGrpc.LanguageServiceStub>
com.google.cloud.language.v1.LanguageServiceGrpc.LanguageServiceStub
- Enclosing class:
- LanguageServiceGrpc
public static final class LanguageServiceGrpc.LanguageServiceStub
extends io.grpc.stub.AbstractAsyncStub<LanguageServiceGrpc.LanguageServiceStub>
A stub to allow clients to do asynchronous rpc calls to service LanguageService.
Provides text analysis operations such as sentiment analysis and entity recognition.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionvoidanalyzeEntities(AnalyzeEntitiesRequest request, io.grpc.stub.StreamObserver<AnalyzeEntitiesResponse> responseObserver) Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties.voidanalyzeEntitySentiment(AnalyzeEntitySentimentRequest request, io.grpc.stub.StreamObserver<AnalyzeEntitySentimentResponse> responseObserver) Finds entities, similar to [AnalyzeEntities][google.cloud.language.v1.LanguageService.AnalyzeEntities] in the text and analyzes sentiment associated with each entity and its mentions.voidanalyzeSentiment(AnalyzeSentimentRequest request, io.grpc.stub.StreamObserver<AnalyzeSentimentResponse> responseObserver) Analyzes the sentiment of the provided text.voidanalyzeSyntax(AnalyzeSyntaxRequest request, io.grpc.stub.StreamObserver<AnalyzeSyntaxResponse> responseObserver) Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.voidannotateText(AnnotateTextRequest request, io.grpc.stub.StreamObserver<AnnotateTextResponse> responseObserver) A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.protected LanguageServiceGrpc.LanguageServiceStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidclassifyText(ClassifyTextRequest request, io.grpc.stub.StreamObserver<ClassifyTextResponse> responseObserver) Classifies a document into categories.voidmoderateText(ModerateTextRequest request, io.grpc.stub.StreamObserver<ModerateTextResponse> responseObserver) Moderates a document for harmful and sensitive categories.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected LanguageServiceGrpc.LanguageServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<LanguageServiceGrpc.LanguageServiceStub>
-
analyzeSentiment
public void analyzeSentiment(AnalyzeSentimentRequest request, io.grpc.stub.StreamObserver<AnalyzeSentimentResponse> responseObserver) Analyzes the sentiment of the provided text.
-
analyzeEntities
public void analyzeEntities(AnalyzeEntitiesRequest request, io.grpc.stub.StreamObserver<AnalyzeEntitiesResponse> responseObserver) Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties.
-
analyzeEntitySentiment
public void analyzeEntitySentiment(AnalyzeEntitySentimentRequest request, io.grpc.stub.StreamObserver<AnalyzeEntitySentimentResponse> responseObserver) Finds entities, similar to [AnalyzeEntities][google.cloud.language.v1.LanguageService.AnalyzeEntities] in the text and analyzes sentiment associated with each entity and its mentions.
-
analyzeSyntax
public void analyzeSyntax(AnalyzeSyntaxRequest request, io.grpc.stub.StreamObserver<AnalyzeSyntaxResponse> responseObserver) Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.
-
classifyText
public void classifyText(ClassifyTextRequest request, io.grpc.stub.StreamObserver<ClassifyTextResponse> responseObserver) Classifies a document into categories.
-
moderateText
public void moderateText(ModerateTextRequest request, io.grpc.stub.StreamObserver<ModerateTextResponse> responseObserver) Moderates a document for harmful and sensitive categories.
-
annotateText
public void annotateText(AnnotateTextRequest request, io.grpc.stub.StreamObserver<AnnotateTextResponse> responseObserver) A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.
-