| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | | using System.ComponentModel; |
| | 10 | |
|
| | 11 | | namespace Azure.Search.Documents.Indexes.Models |
| | 12 | | { |
| | 13 | | /// <summary> The language codes supported for input text by TextTranslationSkill. </summary> |
| | 14 | | public readonly partial struct TextTranslationSkillLanguage : IEquatable<TextTranslationSkillLanguage> |
| | 15 | | { |
| | 16 | | private readonly string _value; |
| | 17 | |
|
| | 18 | | /// <summary> Determines if two <see cref="TextTranslationSkillLanguage"/> values are the same. </summary> |
| | 19 | | /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> |
| | 20 | | public TextTranslationSkillLanguage(string value) |
| | 21 | | { |
| 65 | 22 | | _value = value ?? throw new ArgumentNullException(nameof(value)); |
| 65 | 23 | | } |
| | 24 | |
|
| | 25 | | private const string AfValue = "af"; |
| | 26 | | private const string ArValue = "ar"; |
| | 27 | | private const string BnValue = "bn"; |
| | 28 | | private const string BsValue = "bs"; |
| | 29 | | private const string BgValue = "bg"; |
| | 30 | | private const string YueValue = "yue"; |
| | 31 | | private const string CaValue = "ca"; |
| | 32 | | private const string ZhHansValue = "zh-Hans"; |
| | 33 | | private const string ZhHantValue = "zh-Hant"; |
| | 34 | | private const string HrValue = "hr"; |
| | 35 | | private const string CsValue = "cs"; |
| | 36 | | private const string DaValue = "da"; |
| | 37 | | private const string NlValue = "nl"; |
| | 38 | | private const string EnValue = "en"; |
| | 39 | | private const string EtValue = "et"; |
| | 40 | | private const string FjValue = "fj"; |
| | 41 | | private const string FilValue = "fil"; |
| | 42 | | private const string FiValue = "fi"; |
| | 43 | | private const string FrValue = "fr"; |
| | 44 | | private const string DeValue = "de"; |
| | 45 | | private const string ElValue = "el"; |
| | 46 | | private const string HtValue = "ht"; |
| | 47 | | private const string HeValue = "he"; |
| | 48 | | private const string HiValue = "hi"; |
| | 49 | | private const string MwwValue = "mww"; |
| | 50 | | private const string HuValue = "hu"; |
| | 51 | | private const string IsValue = "is"; |
| | 52 | | private const string IdValue = "id"; |
| | 53 | | private const string ItValue = "it"; |
| | 54 | | private const string JaValue = "ja"; |
| | 55 | | private const string SwValue = "sw"; |
| | 56 | | private const string TlhValue = "tlh"; |
| | 57 | | private const string KoValue = "ko"; |
| | 58 | | private const string LvValue = "lv"; |
| | 59 | | private const string LtValue = "lt"; |
| | 60 | | private const string MgValue = "mg"; |
| | 61 | | private const string MsValue = "ms"; |
| | 62 | | private const string MtValue = "mt"; |
| | 63 | | private const string NbValue = "nb"; |
| | 64 | | private const string FaValue = "fa"; |
| | 65 | | private const string PlValue = "pl"; |
| | 66 | | private const string PtValue = "pt"; |
| | 67 | | private const string OtqValue = "otq"; |
| | 68 | | private const string RoValue = "ro"; |
| | 69 | | private const string RuValue = "ru"; |
| | 70 | | private const string SmValue = "sm"; |
| | 71 | | private const string SrCyrlValue = "sr-Cyrl"; |
| | 72 | | private const string SrLatnValue = "sr-Latn"; |
| | 73 | | private const string SkValue = "sk"; |
| | 74 | | private const string SlValue = "sl"; |
| | 75 | | private const string EsValue = "es"; |
| | 76 | | private const string SvValue = "sv"; |
| | 77 | | private const string TyValue = "ty"; |
| | 78 | | private const string TaValue = "ta"; |
| | 79 | | private const string TeValue = "te"; |
| | 80 | | private const string ThValue = "th"; |
| | 81 | | private const string ToValue = "to"; |
| | 82 | | private const string TrValue = "tr"; |
| | 83 | | private const string UkValue = "uk"; |
| | 84 | | private const string UrValue = "ur"; |
| | 85 | | private const string ViValue = "vi"; |
| | 86 | | private const string CyValue = "cy"; |
| | 87 | | private const string YuaValue = "yua"; |
| | 88 | |
|
| | 89 | | /// <summary> Afrikaans. </summary> |
| 0 | 90 | | public static TextTranslationSkillLanguage Af { get; } = new TextTranslationSkillLanguage(AfValue); |
| | 91 | | /// <summary> Arabic. </summary> |
| 0 | 92 | | public static TextTranslationSkillLanguage Ar { get; } = new TextTranslationSkillLanguage(ArValue); |
| | 93 | | /// <summary> Bangla. </summary> |
| 0 | 94 | | public static TextTranslationSkillLanguage Bn { get; } = new TextTranslationSkillLanguage(BnValue); |
| | 95 | | /// <summary> Bosnian (Latin). </summary> |
| 0 | 96 | | public static TextTranslationSkillLanguage Bs { get; } = new TextTranslationSkillLanguage(BsValue); |
| | 97 | | /// <summary> Bulgarian. </summary> |
| 0 | 98 | | public static TextTranslationSkillLanguage Bg { get; } = new TextTranslationSkillLanguage(BgValue); |
| | 99 | | /// <summary> Cantonese (Traditional). </summary> |
| 0 | 100 | | public static TextTranslationSkillLanguage Yue { get; } = new TextTranslationSkillLanguage(YueValue); |
| | 101 | | /// <summary> Catalan. </summary> |
| 0 | 102 | | public static TextTranslationSkillLanguage Ca { get; } = new TextTranslationSkillLanguage(CaValue); |
| | 103 | | /// <summary> Chinese Simplified. </summary> |
| 0 | 104 | | public static TextTranslationSkillLanguage ZhHans { get; } = new TextTranslationSkillLanguage(ZhHansValue); |
| | 105 | | /// <summary> Chinese Traditional. </summary> |
| 0 | 106 | | public static TextTranslationSkillLanguage ZhHant { get; } = new TextTranslationSkillLanguage(ZhHantValue); |
| | 107 | | /// <summary> Croatian. </summary> |
| 0 | 108 | | public static TextTranslationSkillLanguage Hr { get; } = new TextTranslationSkillLanguage(HrValue); |
| | 109 | | /// <summary> Czech. </summary> |
| 0 | 110 | | public static TextTranslationSkillLanguage Cs { get; } = new TextTranslationSkillLanguage(CsValue); |
| | 111 | | /// <summary> Danish. </summary> |
| 0 | 112 | | public static TextTranslationSkillLanguage Da { get; } = new TextTranslationSkillLanguage(DaValue); |
| | 113 | | /// <summary> Dutch. </summary> |
| 0 | 114 | | public static TextTranslationSkillLanguage Nl { get; } = new TextTranslationSkillLanguage(NlValue); |
| | 115 | | /// <summary> English. </summary> |
| 2 | 116 | | public static TextTranslationSkillLanguage En { get; } = new TextTranslationSkillLanguage(EnValue); |
| | 117 | | /// <summary> Estonian. </summary> |
| 0 | 118 | | public static TextTranslationSkillLanguage Et { get; } = new TextTranslationSkillLanguage(EtValue); |
| | 119 | | /// <summary> Fijian. </summary> |
| 0 | 120 | | public static TextTranslationSkillLanguage Fj { get; } = new TextTranslationSkillLanguage(FjValue); |
| | 121 | | /// <summary> Filipino. </summary> |
| 0 | 122 | | public static TextTranslationSkillLanguage Fil { get; } = new TextTranslationSkillLanguage(FilValue); |
| | 123 | | /// <summary> Finnish. </summary> |
| 0 | 124 | | public static TextTranslationSkillLanguage Fi { get; } = new TextTranslationSkillLanguage(FiValue); |
| | 125 | | /// <summary> French. </summary> |
| 2 | 126 | | public static TextTranslationSkillLanguage Fr { get; } = new TextTranslationSkillLanguage(FrValue); |
| | 127 | | /// <summary> German. </summary> |
| 0 | 128 | | public static TextTranslationSkillLanguage De { get; } = new TextTranslationSkillLanguage(DeValue); |
| | 129 | | /// <summary> Greek. </summary> |
| 0 | 130 | | public static TextTranslationSkillLanguage El { get; } = new TextTranslationSkillLanguage(ElValue); |
| | 131 | | /// <summary> Haitian Creole. </summary> |
| 0 | 132 | | public static TextTranslationSkillLanguage Ht { get; } = new TextTranslationSkillLanguage(HtValue); |
| | 133 | | /// <summary> Hebrew. </summary> |
| 0 | 134 | | public static TextTranslationSkillLanguage He { get; } = new TextTranslationSkillLanguage(HeValue); |
| | 135 | | /// <summary> Hindi. </summary> |
| 0 | 136 | | public static TextTranslationSkillLanguage Hi { get; } = new TextTranslationSkillLanguage(HiValue); |
| | 137 | | /// <summary> Hmong Daw. </summary> |
| 0 | 138 | | public static TextTranslationSkillLanguage Mww { get; } = new TextTranslationSkillLanguage(MwwValue); |
| | 139 | | /// <summary> Hungarian. </summary> |
| 0 | 140 | | public static TextTranslationSkillLanguage Hu { get; } = new TextTranslationSkillLanguage(HuValue); |
| | 141 | | /// <summary> Icelandic. </summary> |
| 0 | 142 | | public static TextTranslationSkillLanguage Is { get; } = new TextTranslationSkillLanguage(IsValue); |
| | 143 | | /// <summary> Indonesian. </summary> |
| 0 | 144 | | public static TextTranslationSkillLanguage Id { get; } = new TextTranslationSkillLanguage(IdValue); |
| | 145 | | /// <summary> Italian. </summary> |
| 0 | 146 | | public static TextTranslationSkillLanguage It { get; } = new TextTranslationSkillLanguage(ItValue); |
| | 147 | | /// <summary> Japanese. </summary> |
| 0 | 148 | | public static TextTranslationSkillLanguage Ja { get; } = new TextTranslationSkillLanguage(JaValue); |
| | 149 | | /// <summary> Kiswahili. </summary> |
| 0 | 150 | | public static TextTranslationSkillLanguage Sw { get; } = new TextTranslationSkillLanguage(SwValue); |
| | 151 | | /// <summary> Klingon. </summary> |
| 0 | 152 | | public static TextTranslationSkillLanguage Tlh { get; } = new TextTranslationSkillLanguage(TlhValue); |
| | 153 | | /// <summary> Korean. </summary> |
| 0 | 154 | | public static TextTranslationSkillLanguage Ko { get; } = new TextTranslationSkillLanguage(KoValue); |
| | 155 | | /// <summary> Latvian. </summary> |
| 0 | 156 | | public static TextTranslationSkillLanguage Lv { get; } = new TextTranslationSkillLanguage(LvValue); |
| | 157 | | /// <summary> Lithuanian. </summary> |
| 0 | 158 | | public static TextTranslationSkillLanguage Lt { get; } = new TextTranslationSkillLanguage(LtValue); |
| | 159 | | /// <summary> Malagasy. </summary> |
| 0 | 160 | | public static TextTranslationSkillLanguage Mg { get; } = new TextTranslationSkillLanguage(MgValue); |
| | 161 | | /// <summary> Malay. </summary> |
| 0 | 162 | | public static TextTranslationSkillLanguage Ms { get; } = new TextTranslationSkillLanguage(MsValue); |
| | 163 | | /// <summary> Maltese. </summary> |
| 0 | 164 | | public static TextTranslationSkillLanguage Mt { get; } = new TextTranslationSkillLanguage(MtValue); |
| | 165 | | /// <summary> Norwegian. </summary> |
| 0 | 166 | | public static TextTranslationSkillLanguage Nb { get; } = new TextTranslationSkillLanguage(NbValue); |
| | 167 | | /// <summary> Persian. </summary> |
| 0 | 168 | | public static TextTranslationSkillLanguage Fa { get; } = new TextTranslationSkillLanguage(FaValue); |
| | 169 | | /// <summary> Polish. </summary> |
| 0 | 170 | | public static TextTranslationSkillLanguage Pl { get; } = new TextTranslationSkillLanguage(PlValue); |
| | 171 | | /// <summary> Portuguese. </summary> |
| 0 | 172 | | public static TextTranslationSkillLanguage Pt { get; } = new TextTranslationSkillLanguage(PtValue); |
| | 173 | | /// <summary> Queretaro Otomi. </summary> |
| 0 | 174 | | public static TextTranslationSkillLanguage Otq { get; } = new TextTranslationSkillLanguage(OtqValue); |
| | 175 | | /// <summary> Romanian. </summary> |
| 0 | 176 | | public static TextTranslationSkillLanguage Ro { get; } = new TextTranslationSkillLanguage(RoValue); |
| | 177 | | /// <summary> Russian. </summary> |
| 0 | 178 | | public static TextTranslationSkillLanguage Ru { get; } = new TextTranslationSkillLanguage(RuValue); |
| | 179 | | /// <summary> Samoan. </summary> |
| 0 | 180 | | public static TextTranslationSkillLanguage Sm { get; } = new TextTranslationSkillLanguage(SmValue); |
| | 181 | | /// <summary> Serbian (Cyrillic). </summary> |
| 0 | 182 | | public static TextTranslationSkillLanguage SrCyrl { get; } = new TextTranslationSkillLanguage(SrCyrlValue); |
| | 183 | | /// <summary> Serbian (Latin). </summary> |
| 0 | 184 | | public static TextTranslationSkillLanguage SrLatn { get; } = new TextTranslationSkillLanguage(SrLatnValue); |
| | 185 | | /// <summary> Slovak. </summary> |
| 0 | 186 | | public static TextTranslationSkillLanguage Sk { get; } = new TextTranslationSkillLanguage(SkValue); |
| | 187 | | /// <summary> Slovenian. </summary> |
| 0 | 188 | | public static TextTranslationSkillLanguage Sl { get; } = new TextTranslationSkillLanguage(SlValue); |
| | 189 | | /// <summary> Spanish. </summary> |
| 0 | 190 | | public static TextTranslationSkillLanguage Es { get; } = new TextTranslationSkillLanguage(EsValue); |
| | 191 | | /// <summary> Swedish. </summary> |
| 0 | 192 | | public static TextTranslationSkillLanguage Sv { get; } = new TextTranslationSkillLanguage(SvValue); |
| | 193 | | /// <summary> Tahitian. </summary> |
| 0 | 194 | | public static TextTranslationSkillLanguage Ty { get; } = new TextTranslationSkillLanguage(TyValue); |
| | 195 | | /// <summary> Tamil. </summary> |
| 0 | 196 | | public static TextTranslationSkillLanguage Ta { get; } = new TextTranslationSkillLanguage(TaValue); |
| | 197 | | /// <summary> Telugu. </summary> |
| 0 | 198 | | public static TextTranslationSkillLanguage Te { get; } = new TextTranslationSkillLanguage(TeValue); |
| | 199 | | /// <summary> Thai. </summary> |
| 0 | 200 | | public static TextTranslationSkillLanguage Th { get; } = new TextTranslationSkillLanguage(ThValue); |
| | 201 | | /// <summary> Tongan. </summary> |
| 0 | 202 | | public static TextTranslationSkillLanguage To { get; } = new TextTranslationSkillLanguage(ToValue); |
| | 203 | | /// <summary> Turkish. </summary> |
| 0 | 204 | | public static TextTranslationSkillLanguage Tr { get; } = new TextTranslationSkillLanguage(TrValue); |
| | 205 | | /// <summary> Ukrainian. </summary> |
| 0 | 206 | | public static TextTranslationSkillLanguage Uk { get; } = new TextTranslationSkillLanguage(UkValue); |
| | 207 | | /// <summary> Urdu. </summary> |
| 0 | 208 | | public static TextTranslationSkillLanguage Ur { get; } = new TextTranslationSkillLanguage(UrValue); |
| | 209 | | /// <summary> Vietnamese. </summary> |
| 0 | 210 | | public static TextTranslationSkillLanguage Vi { get; } = new TextTranslationSkillLanguage(ViValue); |
| | 211 | | /// <summary> Welsh. </summary> |
| 0 | 212 | | public static TextTranslationSkillLanguage Cy { get; } = new TextTranslationSkillLanguage(CyValue); |
| | 213 | | /// <summary> Yucatec Maya. </summary> |
| 0 | 214 | | public static TextTranslationSkillLanguage Yua { get; } = new TextTranslationSkillLanguage(YuaValue); |
| | 215 | | /// <summary> Determines if two <see cref="TextTranslationSkillLanguage"/> values are the same. </summary> |
| 0 | 216 | | public static bool operator ==(TextTranslationSkillLanguage left, TextTranslationSkillLanguage right) => left.Eq |
| | 217 | | /// <summary> Determines if two <see cref="TextTranslationSkillLanguage"/> values are not the same. </summary> |
| 0 | 218 | | public static bool operator !=(TextTranslationSkillLanguage left, TextTranslationSkillLanguage right) => !left.E |
| | 219 | | /// <summary> Converts a string to a <see cref="TextTranslationSkillLanguage"/>. </summary> |
| 0 | 220 | | public static implicit operator TextTranslationSkillLanguage(string value) => new TextTranslationSkillLanguage(v |
| | 221 | |
|
| | 222 | | /// <inheritdoc /> |
| | 223 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 224 | | public override bool Equals(object obj) => obj is TextTranslationSkillLanguage other && Equals(other); |
| | 225 | | /// <inheritdoc /> |
| 0 | 226 | | public bool Equals(TextTranslationSkillLanguage other) => string.Equals(_value, other._value, StringComparison.I |
| | 227 | |
|
| | 228 | | /// <inheritdoc /> |
| | 229 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 230 | | public override int GetHashCode() => _value?.GetHashCode() ?? 0; |
| | 231 | | /// <inheritdoc /> |
| 2 | 232 | | public override string ToString() => _value; |
| | 233 | | } |
| | 234 | | } |