# Google Cloud Translation v2 API - Namespace Google.Cloud.Translation.V2 (3.5.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [3.5.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2)
- [3.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translation.V2/3.4.0/Google.Cloud.Translation.V2)
- [3.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translation.V2/3.3.0/Google.Cloud.Translation.V2)
- [3.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translation.V2/3.2.0/Google.Cloud.Translation.V2)
- [3.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translation.V2/3.1.0/Google.Cloud.Translation.V2)
- [3.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translation.V2/3.0.0/Google.Cloud.Translation.V2)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translation.V2/2.1.0/Google.Cloud.Translation.V2)

## Classes

### [AdvancedTranslationClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.AdvancedTranslationClient)

Abstract class providing operations for Google Cloud Translation. This class uses strings for model names,
unlike [TranslationClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.TranslationClient) which uses the [TranslationModel](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.TranslationModel) enum. This makes
it less convenient to use for simple cases, but more powerful in allowing arbitrary custom models to be specified.

### [AdvancedTranslationClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.AdvancedTranslationClientBuilder)

A builder for [AdvancedTranslationClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.AdvancedTranslationClient), allowing simple client customization.

### [AdvancedTranslationClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.AdvancedTranslationClientImpl)

Wrapper around [TranslateService](https://googleapis.dev/dotnet/Google.Apis.Translate.v2/1.68.0.875/api/Google.Apis.Translate.v2.TranslateService.html) to provide simpler operations.

### [Detection](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.Detection)

A result of detecting the language of a piece of text
via [DetectLanguage(string)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.TranslationClient#Google_Cloud_Translation_V2_TranslationClient_DetectLanguage_System_String_) or
[DetectLanguageAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.TranslationClient#Google_Cloud_Translation_V2_TranslationClient_DetectLanguageAsync_System_String_System_Threading_CancellationToken_),
or the multiple-item equivalents.

### [Language](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.Language)

A language supported by the Google Cloud Translation API.

### [LanguageCodes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.LanguageCodes)

A helper class with constants for supported language codes.
This is simply a code-convenient form of the set of languages returned by
[ListLanguages(string, TranslationModel?)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.TranslationClient#Google_Cloud_Translation_V2_TranslationClient_ListLanguages_System_String_System_Nullable_Google_Cloud_Translation_V2_TranslationModel__).
It is regenerated regularly, but not guaranteed to be complete at any moment in time;
if the language you wish to use is present in the table but not covered here, please use
the listed language code as a hard-coded string until this class catches up.

### [TranslationClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.TranslationClient)

Abstract class providing operations for Google Cloud Translation.

### [TranslationClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.TranslationClientBuilder)

A builder for [TranslationClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.TranslationClient), allowing simple client customization.

### [TranslationClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.TranslationClientImpl)

Wrapper around [TranslateService](https://googleapis.dev/dotnet/Google.Apis.Translate.v2/1.68.0.875/api/Google.Apis.Translate.v2.TranslateService.html) to provide simpler operations.

### [TranslationResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.TranslationResult)

The result of a translation operation.

## Enums

### [TranslationModel](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translation.V2/latest/Google.Cloud.Translation.V2.TranslationModel)

Underlying model used by the Google Cloud Translation API. This can be explicitly
specified on a per-client or per-method basis. See
<https://cloud.google.com/translate/release-notes> for on-going changes and new models.