Class 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.
     
    • Method Detail

      • 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, salience, mentions for each entity, and
         other properties.
         
      • analyzeEntitySentiment

        public com.google.common.util.concurrent.ListenableFuture<AnalyzeEntitySentimentResponse> analyzeEntitySentiment​(AnalyzeEntitySentimentRequest request)
         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 com.google.common.util.concurrent.ListenableFuture<AnalyzeSyntaxResponse> analyzeSyntax​(AnalyzeSyntaxRequest request)
         Analyzes the syntax of the text and provides sentence boundaries and
         tokenization along with part of speech tags, dependency trees, and other
         properties.
         
      • 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 the features that analyzeSentiment,
         analyzeEntities, and analyzeSyntax provide in one call.