@Generated("by gapic-generator-java")
Package com.google.cloud.language.v2
A client to Cloud Natural Language API
The interfaces provided are listed below, along with usage samples.
======================= LanguageServiceClient =======================
Service Description: Provides text analysis operations such as sentiment analysis and entity recognition.
Sample for LanguageServiceClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
Document document = Document.newBuilder().build();
AnalyzeSentimentResponse response = languageServiceClient.analyzeSentiment(document);
}
-
Interface Summary Interface Description AnalyzeEntitiesRequestOrBuilder AnalyzeEntitiesResponseOrBuilder AnalyzeSentimentRequestOrBuilder AnalyzeSentimentResponseOrBuilder AnnotateTextRequest.FeaturesOrBuilder AnnotateTextRequestOrBuilder AnnotateTextResponseOrBuilder ClassificationCategoryOrBuilder ClassifyTextRequestOrBuilder ClassifyTextResponseOrBuilder DocumentOrBuilder EntityMentionOrBuilder EntityOrBuilder LanguageServiceGrpc.AsyncService Provides text analysis operations such as sentiment analysis and entity recognition.ModerateTextRequestOrBuilder ModerateTextResponseOrBuilder SentenceOrBuilder SentimentOrBuilder TextSpanOrBuilder -
Class Summary Class Description AnalyzeEntitiesRequest The entity analysis request message.AnalyzeEntitiesRequest.Builder The entity analysis request message.AnalyzeEntitiesResponse The entity analysis response message.AnalyzeEntitiesResponse.Builder The entity analysis response message.AnalyzeSentimentRequest The sentiment analysis request message.AnalyzeSentimentRequest.Builder The sentiment analysis request message.AnalyzeSentimentResponse The sentiment analysis response message.AnalyzeSentimentResponse.Builder The sentiment analysis response message.AnnotateTextRequest The request message for the text annotation API, which can perform multiple analysis types in one call.AnnotateTextRequest.Builder The request message for the text annotation API, which can perform multiple analysis types in one call.AnnotateTextRequest.Features All available features.AnnotateTextRequest.Features.Builder All available features.AnnotateTextResponse The text annotations response message.AnnotateTextResponse.Builder The text annotations response message.ClassificationCategory Represents a category returned from the text classifier.ClassificationCategory.Builder Represents a category returned from the text classifier.ClassifyTextRequest The document classification request message.ClassifyTextRequest.Builder The document classification request message.ClassifyTextResponse The document classification response message.ClassifyTextResponse.Builder The document classification response message.Document Represents the input to API methods.Document.Builder Represents the input to API methods.Entity Represents a phrase in the text that is a known entity, such as a person, an organization, or location.Entity.Builder Represents a phrase in the text that is a known entity, such as a person, an organization, or location.EntityMention Represents a mention for an entity in the text.EntityMention.Builder Represents a mention for an entity in the text.LanguageServiceClient Service Description: Provides text analysis operations such as sentiment analysis and entity recognition.LanguageServiceGrpc Provides text analysis operations such as sentiment analysis and entity recognition.LanguageServiceGrpc.LanguageServiceBlockingStub A stub to allow clients to do synchronous rpc calls to service LanguageService.LanguageServiceGrpc.LanguageServiceFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service LanguageService.LanguageServiceGrpc.LanguageServiceImplBase Base class for the server implementation of the service LanguageService.LanguageServiceGrpc.LanguageServiceStub A stub to allow clients to do asynchronous rpc calls to service LanguageService.LanguageServiceProto LanguageServiceSettings Settings class to configure an instance ofLanguageServiceClient
.LanguageServiceSettings.Builder Builder for LanguageServiceSettings.ModerateTextRequest The document moderation request message.ModerateTextRequest.Builder The document moderation request message.ModerateTextResponse The document moderation response message.ModerateTextResponse.Builder The document moderation response message.Sentence Represents a sentence in the input document.Sentence.Builder Represents a sentence in the input document.Sentiment Represents the feeling associated with the entire text or entities in the text.Sentiment.Builder Represents the feeling associated with the entire text or entities in the text.TextSpan Represents a text span in the input document.TextSpan.Builder Represents a text span in the input document. -
Enum Summary Enum Description Document.SourceCase Document.Type The document types enum.EncodingType Represents the text encoding that the caller uses to process the output.Entity.Type The type of the entity.EntityMention.Type The supported types of mentions.