1.8.0 (latest) 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class TranslationConfig : IMessage<TranslationConfig>, IEquatable<TranslationConfig>, IDeepCloneable<TranslationConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Speech-to-Text v2 API class TranslationConfig.

Translation configuration. Use to translate the given audio into text for the
desired language.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> TranslationConfig

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[TranslationConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.TranslationConfig.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[TranslationConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.TranslationConfig.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[TranslationConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.TranslationConfig.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Speech.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.md.txt)

## Assembly

Google.Cloud.Speech.V2.dll

## Constructors

### TranslationConfig()

    public TranslationConfig()

### TranslationConfig(TranslationConfig)

    public TranslationConfig(TranslationConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `TranslationConfig` |

## Properties

### TargetLanguage

    public string TargetLanguage { get; set; }

Required. The language code to translate to.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |