Package types (2.18.0) Stay organized with collections Save and categorize content based on your preferences.
API documentation forlanguage_v1beta2.types package.
Classes
AnalyzeEntitiesRequest
The entity analysis request message.
AnalyzeEntitiesResponse
The entity analysis response message.
AnalyzeEntitySentimentRequest
The entity-level sentiment analysis request message.
AnalyzeEntitySentimentResponse
The entity-level sentiment analysis response message.
AnalyzeSentimentRequest
The sentiment analysis request message.
AnalyzeSentimentResponse
The sentiment analysis response message.
AnalyzeSyntaxRequest
The syntax analysis request message.
AnalyzeSyntaxResponse
The syntax analysis response message.
AnnotateTextRequest
The request message for the text annotation API, which canperform multiple analysis types (sentiment, entities, andsyntax) in one call.
AnnotateTextResponse
The text annotations response message.
ClassificationCategory
Represents a category returned from the text classifier.
ClassificationModelOptions
Model options available for classification requests.
This message hasoneof_ fields (mutually exclusive fields).For each oneof, at most one member field can be set at the same time.Setting any member of the oneof automatically clears all othermembers.
.. _oneof:https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
ClassifyTextRequest
The document classification request message.
ClassifyTextResponse
The document classification response message.
DependencyEdge
Represents dependency parse tree information for a token.
Document
Represents the input to API methods.
This message hasoneof_ fields (mutually exclusive fields).For each oneof, at most one member field can be set at the same time.Setting any member of the oneof automatically clears all othermembers.
.. _oneof:https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
EncodingType
Represents the text encoding that the caller uses to process theoutput. Providing anEncodingType is recommended because the APIprovides the beginning offsets for various outputs, such as tokensand mentions, and languages that natively use different textencodings may access offsets differently.
Entity
Represents a phrase in the text that is a known entity, suchas a person, an organization, or location. The API associatesinformation, such as salience and mentions, with entities.
EntityMention
Represents a mention for an entity in the text. Currently,proper noun mentions are supported.
ModerateTextRequest
The document moderation request message.
ModerateTextResponse
The document moderation response message.
PartOfSpeech
Represents part of speech information for a token.
Sentence
Represents a sentence in the input document.
Sentiment
Represents the feeling associated with the entire text orentities in the text.Next ID: 6
TextSpan
Represents an output piece of text.
Token
Represents the smallest syntactic building block of the text.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-11-13 UTC.