# Package types (3.27.0)

3.27.0 (latest) 3.25.0 3.24.0 3.23.0 3.22.0 3.21.1 3.20.3 3.19.0 3.18.0 3.17.0 3.15.5 3.14.0 3.13.0 3.12.1 3.11.3 3.10.1 3.9.0 3.8.4 3.7.4 3.6.1 3.5.0 3.4.1 3.3.2 3.2.1 3.1.0 3.0.2 2.0.4 1.7.2 1.6.0 API documentation for `translate_v3.types` package.

## Classes

### [AdaptiveMtDataset](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.AdaptiveMtDataset)

An Adaptive MT Dataset.

### [AdaptiveMtFile](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.AdaptiveMtFile)

An AdaptiveMtFile.

### [AdaptiveMtSentence](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.AdaptiveMtSentence)

An AdaptiveMt sentence entry.

### [AdaptiveMtTranslateRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.AdaptiveMtTranslateRequest)

The request for sending an AdaptiveMt translation query.

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

### [AdaptiveMtTranslateResponse](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.AdaptiveMtTranslateResponse)

An AdaptiveMtTranslate response.

### [AdaptiveMtTranslation](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.AdaptiveMtTranslation)

An AdaptiveMt translation.

### [BatchDocumentInputConfig](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.BatchDocumentInputConfig)

Input configuration for BatchTranslateDocument request.

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

### [BatchDocumentOutputConfig](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.BatchDocumentOutputConfig)

Output configuration for BatchTranslateDocument request.

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

### [BatchTransferResourcesResponse](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.BatchTransferResourcesResponse)

Response message for BatchTransferResources.

### [BatchTranslateDocumentMetadata](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.BatchTranslateDocumentMetadata)

State metadata for the batch translation operation.

### [BatchTranslateDocumentRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.BatchTranslateDocumentRequest)

The BatchTranslateDocument request.

### [BatchTranslateDocumentResponse](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.BatchTranslateDocumentResponse)

Stored in the
`google.longrunning.Operation.response][google.longrunning.Operation.response]`
field returned by BatchTranslateDocument if at least one document is
translated successfully.

### [BatchTranslateMetadata](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.BatchTranslateMetadata)

State metadata for the batch translation operation.

### [BatchTranslateResponse](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.BatchTranslateResponse)

Stored in the
`google.longrunning.Operation.response][google.longrunning.Operation.response]`
field returned by BatchTranslateText if at least one sentence is
translated successfully.

### [BatchTranslateTextRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.BatchTranslateTextRequest)

The batch translation request.

### [CreateAdaptiveMtDatasetRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.CreateAdaptiveMtDatasetRequest)

Request message for creating an AdaptiveMtDataset.

### [CreateDatasetMetadata](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.CreateDatasetMetadata)

Metadata of create dataset operation.

### [CreateDatasetRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.CreateDatasetRequest)

Request message for CreateDataset.

### [CreateGlossaryEntryRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.CreateGlossaryEntryRequest)

Request message for CreateGlossaryEntry

### [CreateGlossaryMetadata](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.CreateGlossaryMetadata)

Stored in the
`google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]`
field returned by CreateGlossary.

### [CreateGlossaryRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.CreateGlossaryRequest)

Request message for CreateGlossary.

### [CreateModelMetadata](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.CreateModelMetadata)

Metadata of create model operation.

### [CreateModelRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.CreateModelRequest)

Request message for CreateModel.

### [Dataset](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.Dataset)

A dataset that hosts the examples (sentence pairs) used for
translation models.

### [DatasetInputConfig](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.DatasetInputConfig)

Input configuration for datasets.

### [DatasetOutputConfig](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.DatasetOutputConfig)

Output configuration for datasets.

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

### [DeleteAdaptiveMtDatasetRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.DeleteAdaptiveMtDatasetRequest)

Request message for deleting an AdaptiveMtDataset.

### [DeleteAdaptiveMtFileRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.DeleteAdaptiveMtFileRequest)

The request for deleting an AdaptiveMt file.

### [DeleteDatasetMetadata](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.DeleteDatasetMetadata)

Metadata of delete dataset operation.

### [DeleteDatasetRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.DeleteDatasetRequest)

Request message for DeleteDataset.

### [DeleteGlossaryEntryRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.DeleteGlossaryEntryRequest)

Request message for Delete Glossary Entry

### [DeleteGlossaryMetadata](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.DeleteGlossaryMetadata)

Stored in the
`google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]`
field returned by DeleteGlossary.

### [DeleteGlossaryRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.DeleteGlossaryRequest)

Request message for DeleteGlossary.

### [DeleteGlossaryResponse](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.DeleteGlossaryResponse)

Stored in the
`google.longrunning.Operation.response][google.longrunning.Operation.response]`
field returned by DeleteGlossary.

### [DeleteModelMetadata](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.DeleteModelMetadata)

Metadata of delete model operation.

### [DeleteModelRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.DeleteModelRequest)

Request message for DeleteModel.

### [DetectLanguageRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.DetectLanguageRequest)

The request message for language detection.

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

### [DetectLanguageResponse](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.DetectLanguageResponse)

The response message for language detection.

### [DetectedLanguage](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.DetectedLanguage)

The response message for language detection.

### [DocumentInputConfig](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.DocumentInputConfig)

A document translation request input config.

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>

### [DocumentOutputConfig](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.DocumentOutputConfig)

A document translation request output config.

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

### [DocumentTranslation](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.DocumentTranslation)

A translated document message.

### [Example](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.Example)

A sentence pair.

### [ExportDataMetadata](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.ExportDataMetadata)

Metadata of export data operation.

### [ExportDataRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.ExportDataRequest)

Request message for ExportData.

### [FileInputSource](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.FileInputSource)

An inlined file.

### [GcsDestination](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.GcsDestination)

The Google Cloud Storage location for the output content.

### [GcsInputSource](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.GcsInputSource)

The Google Cloud Storage location for the input content.

### [GcsOutputDestination](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.GcsOutputDestination)

The Google Cloud Storage location for the output content.

### [GcsSource](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.GcsSource)

The Google Cloud Storage location for the input content.

### [GetAdaptiveMtDatasetRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.GetAdaptiveMtDatasetRequest)

Request message for getting an Adaptive MT dataset.

### [GetAdaptiveMtFileRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.GetAdaptiveMtFileRequest)

The request for getting an AdaptiveMtFile.

### [GetDatasetRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.GetDatasetRequest)

Request message for GetDataset.

### [GetGlossaryEntryRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.GetGlossaryEntryRequest)

Request message for the Get Glossary Entry Api

### [GetGlossaryRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.GetGlossaryRequest)

Request message for GetGlossary.

### [GetModelRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.GetModelRequest)

Request message for GetModel.

### [GetSupportedLanguagesRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.GetSupportedLanguagesRequest)

The request message for discovering supported languages.

### [Glossary](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.Glossary)

Represents a glossary built from user-provided data.

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>

### [GlossaryEntry](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.GlossaryEntry)

Represents a single entry in a glossary.

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>

### [GlossaryInputConfig](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.GlossaryInputConfig)

Input configuration for glossaries.

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

### [GlossaryTerm](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.GlossaryTerm)

Represents a single glossary term

### [ImportAdaptiveMtFileRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.ImportAdaptiveMtFileRequest)

The request for importing an AdaptiveMt file along with its
sentences.

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>

### [ImportAdaptiveMtFileResponse](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.ImportAdaptiveMtFileResponse)

The response for importing an AdaptiveMtFile

### [ImportDataMetadata](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.ImportDataMetadata)

Metadata of import data operation.

### [ImportDataRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.ImportDataRequest)

Request message for ImportData.

### [InputConfig](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.InputConfig)

Input configuration for BatchTranslateText request.

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

### [ListAdaptiveMtDatasetsRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.ListAdaptiveMtDatasetsRequest)

Request message for listing all Adaptive MT datasets that the
requestor has access to.

### [ListAdaptiveMtDatasetsResponse](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.ListAdaptiveMtDatasetsResponse)

A list of AdaptiveMtDatasets.

### [ListAdaptiveMtFilesRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.ListAdaptiveMtFilesRequest)

The request to list all AdaptiveMt files under a given
dataset.

### [ListAdaptiveMtFilesResponse](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.ListAdaptiveMtFilesResponse)

The response for listing all AdaptiveMt files under a given
dataset.

### [ListAdaptiveMtSentencesRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.ListAdaptiveMtSentencesRequest)

The request for listing Adaptive MT sentences from a
Dataset/File.

### [ListAdaptiveMtSentencesResponse](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.ListAdaptiveMtSentencesResponse)

List AdaptiveMt sentences response.

### [ListDatasetsRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.ListDatasetsRequest)

Request message for ListDatasets.

### [ListDatasetsResponse](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.ListDatasetsResponse)

Response message for ListDatasets.

### [ListExamplesRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.ListExamplesRequest)

Request message for ListExamples.

### [ListExamplesResponse](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.ListExamplesResponse)

Response message for ListExamples.

### [ListGlossariesRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.ListGlossariesRequest)

Request message for ListGlossaries.

### [ListGlossariesResponse](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.ListGlossariesResponse)

Response message for ListGlossaries.

### [ListGlossaryEntriesRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.ListGlossaryEntriesRequest)

Request message for ListGlossaryEntries

### [ListGlossaryEntriesResponse](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.ListGlossaryEntriesResponse)

Response message for ListGlossaryEntries

### [ListModelsRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.ListModelsRequest)

Request message for ListModels.

### [ListModelsResponse](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.ListModelsResponse)

Response message for ListModels.

### [Model](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.Model)

A trained translation model.

### [OperationState](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.OperationState)

Possible states of long running operations.

### [OutputConfig](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.OutputConfig)

Output configuration for BatchTranslateText request.

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

### [Romanization](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.Romanization)

A single romanization response.

### [RomanizeTextRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.RomanizeTextRequest)

The request message for synchronous romanization.

### [RomanizeTextResponse](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.RomanizeTextResponse)

The response message for synchronous romanization.

### [SupportedLanguage](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.SupportedLanguage)

A single supported language response corresponds to
information related to one supported language.

### [SupportedLanguages](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.SupportedLanguages)

The response message for discovering supported languages.

### [TranslateDocumentRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.TranslateDocumentRequest)

A document translation request.

### [TranslateDocumentResponse](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.TranslateDocumentResponse)

A translated document response message.

### [TranslateTextGlossaryConfig](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.TranslateTextGlossaryConfig)

Configures which glossary is used for a specific target
language and defines options for applying that glossary.

### [TranslateTextRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.TranslateTextRequest)

The request message for synchronous translation.

### [TranslateTextResponse](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.TranslateTextResponse)

### [Translation](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.Translation)

A single translation response.

### [TransliterationConfig](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.TransliterationConfig)

Configures transliteration feature on top of translation.

### [UpdateGlossaryEntryRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.UpdateGlossaryEntryRequest)

Request message for UpdateGlossaryEntry

### [UpdateGlossaryMetadata](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.UpdateGlossaryMetadata)

Stored in the
`google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]`
field returned by UpdateGlossary.

### [UpdateGlossaryRequest](https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.UpdateGlossaryRequest)

Request message for the update glossary flow