Class LanguageServiceGrpc.LanguageServiceBlockingStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<LanguageServiceGrpc.LanguageServiceBlockingStub>
com.google.cloud.language.v1beta2.LanguageServiceGrpc.LanguageServiceBlockingStub
- Enclosing class:
- LanguageServiceGrpc
public static final class LanguageServiceGrpc.LanguageServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub<LanguageServiceGrpc.LanguageServiceBlockingStub>
A stub to allow clients to do limited synchronous 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 TypeMethodDescriptionanalyzeEntities(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.Finds entities, similar to [AnalyzeEntities][google.cloud.language.v1beta2.LanguageService.AnalyzeEntities] in the text and analyzes sentiment associated with each entity and its mentions.analyzeSentiment(AnalyzeSentimentRequest request) Analyzes the sentiment of the provided text.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.annotateText(AnnotateTextRequest request) A convenience method that provides all syntax, sentiment, entity, and classification features in one call.build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) classifyText(ClassifyTextRequest request) Classifies a document into categories.moderateText(ModerateTextRequest request) Moderates a document for harmful and sensitive categories.Methods inherited from class io.grpc.stub.AbstractBlockingStub
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.LanguageServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<LanguageServiceGrpc.LanguageServiceBlockingStub>
-
analyzeSentiment
Analyzes the sentiment of the provided text.
-
analyzeEntities
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
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
Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.
-
classifyText
Classifies a document into categories.
-
moderateText
Moderates a document for harmful and sensitive categories.
-
annotateText
A convenience method that provides all syntax, sentiment, entity, and classification features in one call.
-