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

      • 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.v1beta2.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.
         
      • 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 syntax, sentiment, entity, and
         classification features in one call.