Class LanguageServiceGrpc.LanguageServiceBlockingV2Stub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<LanguageServiceGrpc.LanguageServiceBlockingV2Stub>
com.google.cloud.language.v1beta2.LanguageServiceGrpc.LanguageServiceBlockingV2Stub
Enclosing class:
LanguageServiceGrpc

public static final class LanguageServiceGrpc.LanguageServiceBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<LanguageServiceGrpc.LanguageServiceBlockingV2Stub>
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 Details

    • build

      protected LanguageServiceGrpc.LanguageServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<LanguageServiceGrpc.LanguageServiceBlockingV2Stub>
    • analyzeSentiment

      public AnalyzeSentimentResponse analyzeSentiment(AnalyzeSentimentRequest request) throws io.grpc.StatusException
       Analyzes the sentiment of the provided text.
       
      Throws:
      io.grpc.StatusException
    • analyzeEntities

      public AnalyzeEntitiesResponse analyzeEntities(AnalyzeEntitiesRequest request) throws io.grpc.StatusException
       Finds named entities (currently proper names and common nouns) in the text
       along with entity types, salience, mentions for each entity, and
       other properties.
       
      Throws:
      io.grpc.StatusException
    • analyzeEntitySentiment

      public AnalyzeEntitySentimentResponse analyzeEntitySentiment(AnalyzeEntitySentimentRequest request) throws io.grpc.StatusException
       Finds entities, similar to
       [AnalyzeEntities][google.cloud.language.v1beta2.LanguageService.AnalyzeEntities]
       in the text and analyzes sentiment associated with each entity and its
       mentions.
       
      Throws:
      io.grpc.StatusException
    • analyzeSyntax

      public AnalyzeSyntaxResponse analyzeSyntax(AnalyzeSyntaxRequest request) throws io.grpc.StatusException
       Analyzes the syntax of the text and provides sentence boundaries and
       tokenization along with part of speech tags, dependency trees, and other
       properties.
       
      Throws:
      io.grpc.StatusException
    • classifyText

      public ClassifyTextResponse classifyText(ClassifyTextRequest request) throws io.grpc.StatusException
       Classifies a document into categories.
       
      Throws:
      io.grpc.StatusException
    • moderateText

      public ModerateTextResponse moderateText(ModerateTextRequest request) throws io.grpc.StatusException
       Moderates a document for harmful and sensitive categories.
       
      Throws:
      io.grpc.StatusException
    • annotateText

      public AnnotateTextResponse annotateText(AnnotateTextRequest request) throws io.grpc.StatusException
       A convenience method that provides all syntax, sentiment, entity, and
       classification features in one call.
       
      Throws:
      io.grpc.StatusException