# Google Cloud Translation v3 API - Class Glossary.Types.LanguageCodePair (3.11.0)

3.11.0 (latest) 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.4.0 2.3.0 2.2.0

    public sealed class Glossary.Types.LanguageCodePair : IMessage<Glossary.Types.LanguageCodePair>, IEquatable<Glossary.Types.LanguageCodePair>, IDeepCloneable<Glossary.Types.LanguageCodePair>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Translation v3 API class Glossary.Types.LanguageCodePair.

Used with unidirectional glossaries.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Glossary](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.Glossary)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.Glossary.Types)[LanguageCodePair](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.Glossary.Types.LanguageCodePair), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Glossary](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.Glossary)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.Glossary.Types)[LanguageCodePair](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.Glossary.Types.LanguageCodePair), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Glossary](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.Glossary)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.Glossary.Types)[LanguageCodePair](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.Glossary.Types.LanguageCodePair), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## 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.Translate.V3](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3)

## Assembly

Google.Cloud.Translate.V3.dll

## Constructors

### LanguageCodePair()

    public LanguageCodePair()

### LanguageCodePair(LanguageCodePair)

    public LanguageCodePair(Glossary.Types.LanguageCodePair other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.Glossaryhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.Glossary.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.Glossary.Types.LanguageCodePair` |

## Properties

### SourceLanguageCode

    public string SourceLanguageCode { get; set; }

Required. The ISO-639 language code of the input text, for example,
"en-US". Expected to be an exact match for GlossaryTerm.language_code.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### TargetLanguageCode

    public string TargetLanguageCode { get; set; }

Required. The ISO-639 language code for translation output, for example,
"zh-CN". Expected to be an exact match for GlossaryTerm.language_code.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |