@Generated("by gapic-generator-java")
Package com.google.cloud.language.v1
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);
}
-
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.AnalyzeEntitySentimentRequest The entity-level sentiment analysis request message.AnalyzeEntitySentimentRequest.Builder The entity-level sentiment analysis request message.AnalyzeEntitySentimentResponse The entity-level sentiment analysis response message.AnalyzeEntitySentimentResponse.Builder The entity-level sentiment 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.AnalyzeSyntaxRequest The syntax analysis request message.AnalyzeSyntaxRequest.Builder The syntax analysis request message.AnalyzeSyntaxResponse The syntax analysis response message.AnalyzeSyntaxResponse.Builder The syntax analysis response message.AnnotateTextRequest The request message for the text annotation API, which can perform multiple analysis types (sentiment, entities, and syntax) in one call.AnnotateTextRequest.Builder The request message for the text annotation API, which can perform multiple analysis types (sentiment, entities, and syntax) in one call.AnnotateTextRequest.Features All available features for sentiment, syntax, and semantic analysis.AnnotateTextRequest.Features.Builder All available features for sentiment, syntax, and semantic analysis.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.ClassificationModelOptions Model options available for classification requests.ClassificationModelOptions.Builder Model options available for classification requests.ClassificationModelOptions.V1Model Options for the V1 model.ClassificationModelOptions.V1Model.Builder Options for the V1 model.ClassificationModelOptions.V2Model Options for the V2 model.ClassificationModelOptions.V2Model.Builder Options for the V2 model.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.DependencyEdge Represents dependency parse tree information for a token.DependencyEdge.Builder Represents dependency parse tree information for a token.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.PartOfSpeech Represents part of speech information for a token.PartOfSpeech.Builder Represents part of speech information for a token.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 an output piece of text.TextSpan.Builder Represents an output piece of text.Token Represents the smallest syntactic building block of the text.Token.Builder Represents the smallest syntactic building block of the text. -
Enum Summary Enum Description ClassificationModelOptions.ModelTypeCase ClassificationModelOptions.V2Model.ContentCategoriesVersion The content categories used for classification.DependencyEdge.Label The parse label enum for the token.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.PartOfSpeech.Aspect The characteristic of a verb that expresses time flow during an event.PartOfSpeech.Case The grammatical function performed by a noun or pronoun in a phrase, clause, or sentence.PartOfSpeech.Form Depending on the language, Form can be categorizing different forms of verbs, adjectives, adverbs, etc.PartOfSpeech.Gender Gender classes of nouns reflected in the behaviour of associated words.PartOfSpeech.Mood The grammatical feature of verbs, used for showing modality and attitude.PartOfSpeech.Number Count distinctions.PartOfSpeech.Person The distinction between the speaker, second person, third person, etc.PartOfSpeech.Proper This category shows if the token is part of a proper name.PartOfSpeech.Reciprocity Reciprocal features of a pronoun.PartOfSpeech.Tag The part of speech tags enum.PartOfSpeech.Tense Time reference.PartOfSpeech.Voice The relationship between the action that a verb expresses and the participants identified by its arguments.