# Package types (2.21.0)

2.21.0 (latest) 2.20.0 2.19.0 2.18.0 2.17.2 2.16.0 2.15.1 2.14.0 2.13.4 2.12.0 2.11.0 2.10.1 2.9.1 2.8.1 2.7.0 2.6.1 2.5.2 2.4.3 2.3.2 2.2.2 2.1.0 2.0.0 1.3.2 API documentation for `language_v2.types` package.

## Classes

### [AnalyzeEntitiesRequest](https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v2.types.AnalyzeEntitiesRequest)

The entity analysis request message.

### [AnalyzeEntitiesResponse](https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v2.types.AnalyzeEntitiesResponse)

The entity analysis response message.

### [AnalyzeSentimentRequest](https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v2.types.AnalyzeSentimentRequest)

The sentiment analysis request message.

### [AnalyzeSentimentResponse](https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v2.types.AnalyzeSentimentResponse)

The sentiment analysis response message.

### [AnnotateTextRequest](https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v2.types.AnnotateTextRequest)

The request message for the text annotation API, which can
perform multiple analysis types in one call.

### [AnnotateTextResponse](https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v2.types.AnnotateTextResponse)

The text annotations response message.

### [ClassificationCategory](https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v2.types.ClassificationCategory)

Represents a category returned from the text classifier.

### [ClassifyTextRequest](https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v2.types.ClassifyTextRequest)

The document classification request message.

### [ClassifyTextResponse](https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v2.types.ClassifyTextResponse)

The document classification response message.

### [Document](https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v2.types.Document)

Represents the input to API methods.

This message has `oneof`_ 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.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [EncodingType](https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v2.types.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 languages that natively use different text
encodings may access offsets differently.

### [Entity](https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v2.types.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.

### [EntityMention](https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v2.types.EntityMention)

Represents a mention for an entity in the text. Currently,
proper noun mentions are supported.

### [ModerateTextRequest](https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v2.types.ModerateTextRequest)

The document moderation request message.

### [ModerateTextResponse](https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v2.types.ModerateTextResponse)

The document moderation response message.

### [Sentence](https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v2.types.Sentence)

Represents a sentence in the input document.

### [Sentiment](https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v2.types.Sentiment)

Represents the feeling associated with the entire text or
entities in the text.

### [TextSpan](https://docs.cloud.google.com/python/docs/reference/language/latest/google.cloud.language_v2.types.TextSpan)

Represents a text span in the input document.