Class Glossary.Types.LanguageCodePair (2.3.0)

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

Used with unidirectional glossaries.

Inheritance

Object > Glossary.Types.LanguageCodePair

Namespace

Google.Cloud.Translate.V3

Assembly

Google.Cloud.Translate.V3.dll

Constructors

LanguageCodePair()

public LanguageCodePair()

LanguageCodePair(Glossary.Types.LanguageCodePair)

public LanguageCodePair(Glossary.Types.LanguageCodePair other)
Parameter
NameDescription
otherGlossary.Types.LanguageCodePair

Properties

SourceLanguageCode

public string SourceLanguageCode { get; set; }

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

Property Value
TypeDescription
String

TargetLanguageCode

public string TargetLanguageCode { get; set; }

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

Property Value
TypeDescription
String