Package com.google.cloud.language.v2
Class LanguageServiceGrpc.LanguageServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<LanguageServiceGrpc.LanguageServiceFutureStub>
com.google.cloud.language.v2.LanguageServiceGrpc.LanguageServiceFutureStub
- Enclosing class:
- LanguageServiceGrpc
public static final class LanguageServiceGrpc.LanguageServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<LanguageServiceGrpc.LanguageServiceFutureStub>
A stub to allow clients to do ListenableFuture-style 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 TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<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.com.google.common.util.concurrent.ListenableFuture<AnalyzeSentimentResponse>analyzeSentiment(AnalyzeSentimentRequest request) Analyzes the sentiment of the provided text.com.google.common.util.concurrent.ListenableFuture<AnnotateTextResponse>annotateText(AnnotateTextRequest request) A convenience method that provides all features in one call.build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<ClassifyTextResponse>classifyText(ClassifyTextRequest request) Classifies a document into categories.com.google.common.util.concurrent.ListenableFuture<ModerateTextResponse>moderateText(ModerateTextRequest request) Moderates a document for harmful and sensitive categories.Methods inherited from class io.grpc.stub.AbstractFutureStub
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.LanguageServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<LanguageServiceGrpc.LanguageServiceFutureStub>
-
analyzeSentiment
public com.google.common.util.concurrent.ListenableFuture<AnalyzeSentimentResponse> analyzeSentiment(AnalyzeSentimentRequest request) Analyzes the sentiment of the provided text.
-
analyzeEntities
public com.google.common.util.concurrent.ListenableFuture<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 com.google.common.util.concurrent.ListenableFuture<ClassifyTextResponse> classifyText(ClassifyTextRequest request) Classifies a document into categories.
-
moderateText
public com.google.common.util.concurrent.ListenableFuture<ModerateTextResponse> moderateText(ModerateTextRequest request) Moderates a document for harmful and sensitive categories.
-
annotateText
public com.google.common.util.concurrent.ListenableFuture<AnnotateTextResponse> annotateText(AnnotateTextRequest request) A convenience method that provides all features in one call.
-