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 other
members.
Represents the text encoding that the caller uses to process the
output. Providing anEncodingTypeis recommended because the API
provides the beginning offsets for various outputs, such as tokens
and mentions, and languages that natively use different text
encodings may access offsets differently.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Package types (2.17.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.17.2 (latest)](/python/docs/reference/language/latest/google.cloud.language_v2.types)\n- [2.17.0](/python/docs/reference/language/2.17.0/google.cloud.language_v2.types)\n- [2.16.0](/python/docs/reference/language/2.16.0/google.cloud.language_v2.types)\n- [2.15.1](/python/docs/reference/language/2.15.1/google.cloud.language_v2.types)\n- [2.14.0](/python/docs/reference/language/2.14.0/google.cloud.language_v2.types)\n- [2.13.4](/python/docs/reference/language/2.13.4/google.cloud.language_v2.types)\n- [2.12.0](/python/docs/reference/language/2.12.0/google.cloud.language_v2.types)\n- [2.11.0](/python/docs/reference/language/2.11.0/google.cloud.language_v2.types)\n- [2.10.1](/python/docs/reference/language/2.10.1/google.cloud.language_v2.types)\n- [2.9.1](/python/docs/reference/language/2.9.1/google.cloud.language_v2.types)\n- [2.8.1](/python/docs/reference/language/2.8.1/google.cloud.language_v2.types)\n- [2.7.0](/python/docs/reference/language/2.7.0/google.cloud.language_v2.types)\n- [2.6.1](/python/docs/reference/language/2.6.1/google.cloud.language_v2.types)\n- [2.5.2](/python/docs/reference/language/2.5.2/google.cloud.language_v2.types)\n- [2.4.3](/python/docs/reference/language/2.4.3/google.cloud.language_v2.types)\n- [2.3.2](/python/docs/reference/language/2.3.2/google.cloud.language_v2.types)\n- [2.2.2](/python/docs/reference/language/2.2.2/google.cloud.language_v2.types)\n- [2.1.0](/python/docs/reference/language/2.1.0/google.cloud.language_v2.types)\n- [2.0.0](/python/docs/reference/language/2.0.0/google.cloud.language_v2.types)\n- [1.3.2](/python/docs/reference/language/1.3.2/google.cloud.language_v2.types) \nAPI documentation for `language_v2.types` package. \n\nClasses\n-------\n\n### [AnalyzeEntitiesRequest](/python/docs/reference/language/latest/google.cloud.language_v2.types.AnalyzeEntitiesRequest)\n\nThe entity analysis request message.\n\n### [AnalyzeEntitiesResponse](/python/docs/reference/language/latest/google.cloud.language_v2.types.AnalyzeEntitiesResponse)\n\nThe entity analysis response message.\n\n### [AnalyzeSentimentRequest](/python/docs/reference/language/latest/google.cloud.language_v2.types.AnalyzeSentimentRequest)\n\nThe sentiment analysis request message.\n\n### [AnalyzeSentimentResponse](/python/docs/reference/language/latest/google.cloud.language_v2.types.AnalyzeSentimentResponse)\n\nThe sentiment analysis response message.\n\n### [AnnotateTextRequest](/python/docs/reference/language/latest/google.cloud.language_v2.types.AnnotateTextRequest)\n\nThe request message for the text annotation API, which can\nperform multiple analysis types in one call.\n\n### [AnnotateTextResponse](/python/docs/reference/language/latest/google.cloud.language_v2.types.AnnotateTextResponse)\n\nThe text annotations response message.\n\n### [ClassificationCategory](/python/docs/reference/language/latest/google.cloud.language_v2.types.ClassificationCategory)\n\nRepresents a category returned from the text classifier.\n\n### [ClassifyTextRequest](/python/docs/reference/language/latest/google.cloud.language_v2.types.ClassifyTextRequest)\n\nThe document classification request message.\n\n### [ClassifyTextResponse](/python/docs/reference/language/latest/google.cloud.language_v2.types.ClassifyTextResponse)\n\nThe document classification response message.\n\n### [Document](/python/docs/reference/language/latest/google.cloud.language_v2.types.Document)\n\nRepresents the input to API methods.\n\nThis message has `oneof`_ fields (mutually exclusive fields).\nFor each oneof, at most one member field can be set at the same time.\nSetting any member of the oneof automatically clears all other\nmembers.\n\n.. _oneof: \u003chttps://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields\u003e\n\n### [EncodingType](/python/docs/reference/language/latest/google.cloud.language_v2.types.EncodingType)\n\nRepresents the text encoding that the caller uses to process the\noutput. Providing an `EncodingType` is recommended because the API\nprovides the beginning offsets for various outputs, such as tokens\nand mentions, and languages that natively use different text\nencodings may access offsets differently.\n\n### [Entity](/python/docs/reference/language/latest/google.cloud.language_v2.types.Entity)\n\nRepresents a phrase in the text that is a known entity, such\nas a person, an organization, or location. The API associates\ninformation, such as probability and mentions, with entities.\n\n### [EntityMention](/python/docs/reference/language/latest/google.cloud.language_v2.types.EntityMention)\n\nRepresents a mention for an entity in the text. Currently,\nproper noun mentions are supported.\n\n### [ModerateTextRequest](/python/docs/reference/language/latest/google.cloud.language_v2.types.ModerateTextRequest)\n\nThe document moderation request message.\n\n### [ModerateTextResponse](/python/docs/reference/language/latest/google.cloud.language_v2.types.ModerateTextResponse)\n\nThe document moderation response message.\n\n### [Sentence](/python/docs/reference/language/latest/google.cloud.language_v2.types.Sentence)\n\nRepresents a sentence in the input document.\n\n### [Sentiment](/python/docs/reference/language/latest/google.cloud.language_v2.types.Sentiment)\n\nRepresents the feeling associated with the entire text or\nentities in the text.\n\n### [TextSpan](/python/docs/reference/language/latest/google.cloud.language_v2.types.TextSpan)\n\nRepresents a text span in the input document."]]