Package com.google.cloud.language.v2 (2.50.0)

GitHub Repository RPC Documentation REST Documentation

Client Classes

Client classes are the main entry point to using a package. They contain several variations of Java methods for each of the API's methods.

Client Description
com.google.cloud.language.v2.LanguageServiceClient Service Description: Provides text analysis operations such as sentiment analysis and entity recognition.

This class provides the ability to make remote calls to the backing service through method

Settings Classes

Settings classes can be used to configure credentials, endpoints, and retry settings for a Client.

Settings Description
com.google.cloud.language.v2.LanguageServiceSettings Settings class to configure an instance of LanguageServiceClient.

The default instance has everything set to sensible defaults:

Classes

Class Description
com.google.cloud.language.v2.AnalyzeEntitiesRequest The entity analysis request message.
com.google.cloud.language.v2.AnalyzeEntitiesRequest.Builder The entity analysis request message.
com.google.cloud.language.v2.AnalyzeEntitiesResponse The entity analysis response message.
com.google.cloud.language.v2.AnalyzeEntitiesResponse.Builder The entity analysis response message.
com.google.cloud.language.v2.AnalyzeSentimentRequest The sentiment analysis request message.
com.google.cloud.language.v2.AnalyzeSentimentRequest.Builder The sentiment analysis request message.
com.google.cloud.language.v2.AnalyzeSentimentResponse The sentiment analysis response message.
com.google.cloud.language.v2.AnalyzeSentimentResponse.Builder The sentiment analysis response message.
com.google.cloud.language.v2.AnnotateTextRequest The request message for the text annotation API, which can perform multiple analysis types in one call.
com.google.cloud.language.v2.AnnotateTextRequest.Builder The request message for the text annotation API, which can perform multiple analysis types in one call.
com.google.cloud.language.v2.AnnotateTextRequest.Features All available features. Setting each one to true will enable that specific analysis for the input.
com.google.cloud.language.v2.AnnotateTextRequest.Features.Builder All available features. Setting each one to true will enable that specific analysis for the input.
com.google.cloud.language.v2.AnnotateTextResponse The text annotations response message.
com.google.cloud.language.v2.AnnotateTextResponse.Builder The text annotations response message.
com.google.cloud.language.v2.ClassificationCategory Represents a category returned from the text classifier.
com.google.cloud.language.v2.ClassificationCategory.Builder Represents a category returned from the text classifier.
com.google.cloud.language.v2.ClassifyTextRequest The document classification request message.
com.google.cloud.language.v2.ClassifyTextRequest.Builder The document classification request message.
com.google.cloud.language.v2.ClassifyTextResponse The document classification response message.
com.google.cloud.language.v2.ClassifyTextResponse.Builder The document classification response message.
com.google.cloud.language.v2.Document Represents the input to API methods.
com.google.cloud.language.v2.Document.Builder Represents the input to API methods.
com.google.cloud.language.v2.Entity Represents a phrase in the text that is a known entity, such as a person, an organization, or location. The API associates information, such as probability and mentions, with entities.
com.google.cloud.language.v2.Entity.Builder Represents a phrase in the text that is a known entity, such as a person, an organization, or location. The API associates information, such as probability and mentions, with entities.
com.google.cloud.language.v2.EntityMention Represents a mention for an entity in the text. Currently, proper noun mentions are supported.
com.google.cloud.language.v2.EntityMention.Builder Represents a mention for an entity in the text. Currently, proper noun mentions are supported.
com.google.cloud.language.v2.LanguageServiceGrpc Provides text analysis operations such as sentiment analysis and entity recognition.
com.google.cloud.language.v2.LanguageServiceGrpc.LanguageServiceImplBase Base class for the server implementation of the service LanguageService. Provides text analysis operations such as sentiment analysis and entity
com.google.cloud.language.v2.LanguageServiceProto
com.google.cloud.language.v2.LanguageServiceSettings.Builder Builder for LanguageServiceSettings.
com.google.cloud.language.v2.ModerateTextRequest The document moderation request message.
com.google.cloud.language.v2.ModerateTextRequest.Builder The document moderation request message.
com.google.cloud.language.v2.ModerateTextResponse The document moderation response message.
com.google.cloud.language.v2.ModerateTextResponse.Builder The document moderation response message.
com.google.cloud.language.v2.Sentence Represents a sentence in the input document.
com.google.cloud.language.v2.Sentence.Builder Represents a sentence in the input document.
com.google.cloud.language.v2.Sentiment Represents the feeling associated with the entire text or entities in the text.
com.google.cloud.language.v2.Sentiment.Builder Represents the feeling associated with the entire text or entities in the text.
com.google.cloud.language.v2.TextSpan Represents a text span in the input document.
com.google.cloud.language.v2.TextSpan.Builder Represents a text span in the input document.

Interfaces

Interface Description
com.google.cloud.language.v2.AnalyzeEntitiesRequestOrBuilder
com.google.cloud.language.v2.AnalyzeEntitiesResponseOrBuilder
com.google.cloud.language.v2.AnalyzeSentimentRequestOrBuilder
com.google.cloud.language.v2.AnalyzeSentimentResponseOrBuilder
com.google.cloud.language.v2.AnnotateTextRequest.FeaturesOrBuilder
com.google.cloud.language.v2.AnnotateTextRequestOrBuilder
com.google.cloud.language.v2.AnnotateTextResponseOrBuilder
com.google.cloud.language.v2.ClassificationCategoryOrBuilder
com.google.cloud.language.v2.ClassifyTextRequestOrBuilder
com.google.cloud.language.v2.ClassifyTextResponseOrBuilder
com.google.cloud.language.v2.DocumentOrBuilder
com.google.cloud.language.v2.EntityMentionOrBuilder
com.google.cloud.language.v2.EntityOrBuilder
com.google.cloud.language.v2.LanguageServiceGrpc.AsyncService Provides text analysis operations such as sentiment analysis and entity recognition.
com.google.cloud.language.v2.ModerateTextRequestOrBuilder
com.google.cloud.language.v2.ModerateTextResponseOrBuilder
com.google.cloud.language.v2.SentenceOrBuilder
com.google.cloud.language.v2.SentimentOrBuilder
com.google.cloud.language.v2.TextSpanOrBuilder

Enums

Enum Description
com.google.cloud.language.v2.Document.SourceCase
com.google.cloud.language.v2.Document.Type The document types enum.
com.google.cloud.language.v2.EncodingType Represents the text encoding that the caller uses to process the output. Providing an EncodingType is recommended because the API provides the beginning offsets for various outputs, such as tokens and mentions, and
com.google.cloud.language.v2.Entity.Type The type of the entity. The table below lists the associated fields for entities that have different metadata.
com.google.cloud.language.v2.EntityMention.Type The supported types of mentions.
com.google.cloud.language.v2.ModerateTextRequest.ModelVersion The model version to use for ModerateText.