| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.Search.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using Newtonsoft.Json.Converters; |
| | 15 | | using System.Runtime; |
| | 16 | | using System.Runtime.Serialization; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// Defines values for TextTranslationSkillLanguage. |
| | 20 | | /// </summary> |
| | 21 | | [JsonConverter(typeof(StringEnumConverter))] |
| | 22 | | public enum TextTranslationSkillLanguage |
| | 23 | | { |
| | 24 | | [EnumMember(Value = "af")] |
| | 25 | | Af, |
| | 26 | | [EnumMember(Value = "ar")] |
| | 27 | | Ar, |
| | 28 | | [EnumMember(Value = "bn")] |
| | 29 | | Bn, |
| | 30 | | [EnumMember(Value = "bs")] |
| | 31 | | Bs, |
| | 32 | | [EnumMember(Value = "bg")] |
| | 33 | | Bg, |
| | 34 | | [EnumMember(Value = "yue")] |
| | 35 | | Yue, |
| | 36 | | [EnumMember(Value = "ca")] |
| | 37 | | Ca, |
| | 38 | | [EnumMember(Value = "zh-Hans")] |
| | 39 | | ZhHans, |
| | 40 | | [EnumMember(Value = "zh-Hant")] |
| | 41 | | ZhHant, |
| | 42 | | [EnumMember(Value = "hr")] |
| | 43 | | Hr, |
| | 44 | | [EnumMember(Value = "cs")] |
| | 45 | | Cs, |
| | 46 | | [EnumMember(Value = "da")] |
| | 47 | | Da, |
| | 48 | | [EnumMember(Value = "nl")] |
| | 49 | | Nl, |
| | 50 | | [EnumMember(Value = "en")] |
| | 51 | | En, |
| | 52 | | [EnumMember(Value = "et")] |
| | 53 | | Et, |
| | 54 | | [EnumMember(Value = "fj")] |
| | 55 | | Fj, |
| | 56 | | [EnumMember(Value = "fil")] |
| | 57 | | Fil, |
| | 58 | | [EnumMember(Value = "fi")] |
| | 59 | | Fi, |
| | 60 | | [EnumMember(Value = "fr")] |
| | 61 | | Fr, |
| | 62 | | [EnumMember(Value = "de")] |
| | 63 | | De, |
| | 64 | | [EnumMember(Value = "el")] |
| | 65 | | El, |
| | 66 | | [EnumMember(Value = "ht")] |
| | 67 | | Ht, |
| | 68 | | [EnumMember(Value = "he")] |
| | 69 | | He, |
| | 70 | | [EnumMember(Value = "hi")] |
| | 71 | | Hi, |
| | 72 | | [EnumMember(Value = "mww")] |
| | 73 | | Mww, |
| | 74 | | [EnumMember(Value = "hu")] |
| | 75 | | Hu, |
| | 76 | | [EnumMember(Value = "is")] |
| | 77 | | Is, |
| | 78 | | [EnumMember(Value = "id")] |
| | 79 | | Id, |
| | 80 | | [EnumMember(Value = "it")] |
| | 81 | | It, |
| | 82 | | [EnumMember(Value = "ja")] |
| | 83 | | Ja, |
| | 84 | | [EnumMember(Value = "sw")] |
| | 85 | | Sw, |
| | 86 | | [EnumMember(Value = "tlh")] |
| | 87 | | Tlh, |
| | 88 | | [EnumMember(Value = "ko")] |
| | 89 | | Ko, |
| | 90 | | [EnumMember(Value = "lv")] |
| | 91 | | Lv, |
| | 92 | | [EnumMember(Value = "lt")] |
| | 93 | | Lt, |
| | 94 | | [EnumMember(Value = "mg")] |
| | 95 | | Mg, |
| | 96 | | [EnumMember(Value = "ms")] |
| | 97 | | Ms, |
| | 98 | | [EnumMember(Value = "mt")] |
| | 99 | | Mt, |
| | 100 | | [EnumMember(Value = "nb")] |
| | 101 | | Nb, |
| | 102 | | [EnumMember(Value = "fa")] |
| | 103 | | Fa, |
| | 104 | | [EnumMember(Value = "pl")] |
| | 105 | | Pl, |
| | 106 | | [EnumMember(Value = "pt")] |
| | 107 | | Pt, |
| | 108 | | [EnumMember(Value = "otq")] |
| | 109 | | Otq, |
| | 110 | | [EnumMember(Value = "ro")] |
| | 111 | | Ro, |
| | 112 | | [EnumMember(Value = "ru")] |
| | 113 | | Ru, |
| | 114 | | [EnumMember(Value = "sm")] |
| | 115 | | Sm, |
| | 116 | | [EnumMember(Value = "sr-Cyrl")] |
| | 117 | | SrCyrl, |
| | 118 | | [EnumMember(Value = "sr-Latn")] |
| | 119 | | SrLatn, |
| | 120 | | [EnumMember(Value = "sk")] |
| | 121 | | Sk, |
| | 122 | | [EnumMember(Value = "sl")] |
| | 123 | | Sl, |
| | 124 | | [EnumMember(Value = "es")] |
| | 125 | | Es, |
| | 126 | | [EnumMember(Value = "sv")] |
| | 127 | | Sv, |
| | 128 | | [EnumMember(Value = "ty")] |
| | 129 | | Ty, |
| | 130 | | [EnumMember(Value = "ta")] |
| | 131 | | Ta, |
| | 132 | | [EnumMember(Value = "te")] |
| | 133 | | Te, |
| | 134 | | [EnumMember(Value = "th")] |
| | 135 | | Th, |
| | 136 | | [EnumMember(Value = "to")] |
| | 137 | | To, |
| | 138 | | [EnumMember(Value = "tr")] |
| | 139 | | Tr, |
| | 140 | | [EnumMember(Value = "uk")] |
| | 141 | | Uk, |
| | 142 | | [EnumMember(Value = "ur")] |
| | 143 | | Ur, |
| | 144 | | [EnumMember(Value = "vi")] |
| | 145 | | Vi, |
| | 146 | | [EnumMember(Value = "cy")] |
| | 147 | | Cy, |
| | 148 | | [EnumMember(Value = "yua")] |
| | 149 | | Yua |
| | 150 | | } |
| | 151 | | internal static class TextTranslationSkillLanguageEnumExtension |
| | 152 | | { |
| | 153 | | internal static string ToSerializedValue(this TextTranslationSkillLanguage? value) |
| | 154 | | { |
| 0 | 155 | | return value == null ? null : ((TextTranslationSkillLanguage)value).ToSerializedValue(); |
| | 156 | | } |
| | 157 | |
|
| | 158 | | internal static string ToSerializedValue(this TextTranslationSkillLanguage value) |
| | 159 | | { |
| | 160 | | switch( value ) |
| | 161 | | { |
| | 162 | | case TextTranslationSkillLanguage.Af: |
| 0 | 163 | | return "af"; |
| | 164 | | case TextTranslationSkillLanguage.Ar: |
| 0 | 165 | | return "ar"; |
| | 166 | | case TextTranslationSkillLanguage.Bn: |
| 0 | 167 | | return "bn"; |
| | 168 | | case TextTranslationSkillLanguage.Bs: |
| 0 | 169 | | return "bs"; |
| | 170 | | case TextTranslationSkillLanguage.Bg: |
| 0 | 171 | | return "bg"; |
| | 172 | | case TextTranslationSkillLanguage.Yue: |
| 0 | 173 | | return "yue"; |
| | 174 | | case TextTranslationSkillLanguage.Ca: |
| 0 | 175 | | return "ca"; |
| | 176 | | case TextTranslationSkillLanguage.ZhHans: |
| 0 | 177 | | return "zh-Hans"; |
| | 178 | | case TextTranslationSkillLanguage.ZhHant: |
| 0 | 179 | | return "zh-Hant"; |
| | 180 | | case TextTranslationSkillLanguage.Hr: |
| 0 | 181 | | return "hr"; |
| | 182 | | case TextTranslationSkillLanguage.Cs: |
| 0 | 183 | | return "cs"; |
| | 184 | | case TextTranslationSkillLanguage.Da: |
| 0 | 185 | | return "da"; |
| | 186 | | case TextTranslationSkillLanguage.Nl: |
| 0 | 187 | | return "nl"; |
| | 188 | | case TextTranslationSkillLanguage.En: |
| 0 | 189 | | return "en"; |
| | 190 | | case TextTranslationSkillLanguage.Et: |
| 0 | 191 | | return "et"; |
| | 192 | | case TextTranslationSkillLanguage.Fj: |
| 0 | 193 | | return "fj"; |
| | 194 | | case TextTranslationSkillLanguage.Fil: |
| 0 | 195 | | return "fil"; |
| | 196 | | case TextTranslationSkillLanguage.Fi: |
| 0 | 197 | | return "fi"; |
| | 198 | | case TextTranslationSkillLanguage.Fr: |
| 0 | 199 | | return "fr"; |
| | 200 | | case TextTranslationSkillLanguage.De: |
| 0 | 201 | | return "de"; |
| | 202 | | case TextTranslationSkillLanguage.El: |
| 0 | 203 | | return "el"; |
| | 204 | | case TextTranslationSkillLanguage.Ht: |
| 0 | 205 | | return "ht"; |
| | 206 | | case TextTranslationSkillLanguage.He: |
| 0 | 207 | | return "he"; |
| | 208 | | case TextTranslationSkillLanguage.Hi: |
| 0 | 209 | | return "hi"; |
| | 210 | | case TextTranslationSkillLanguage.Mww: |
| 0 | 211 | | return "mww"; |
| | 212 | | case TextTranslationSkillLanguage.Hu: |
| 0 | 213 | | return "hu"; |
| | 214 | | case TextTranslationSkillLanguage.Is: |
| 0 | 215 | | return "is"; |
| | 216 | | case TextTranslationSkillLanguage.Id: |
| 0 | 217 | | return "id"; |
| | 218 | | case TextTranslationSkillLanguage.It: |
| 0 | 219 | | return "it"; |
| | 220 | | case TextTranslationSkillLanguage.Ja: |
| 0 | 221 | | return "ja"; |
| | 222 | | case TextTranslationSkillLanguage.Sw: |
| 0 | 223 | | return "sw"; |
| | 224 | | case TextTranslationSkillLanguage.Tlh: |
| 0 | 225 | | return "tlh"; |
| | 226 | | case TextTranslationSkillLanguage.Ko: |
| 0 | 227 | | return "ko"; |
| | 228 | | case TextTranslationSkillLanguage.Lv: |
| 0 | 229 | | return "lv"; |
| | 230 | | case TextTranslationSkillLanguage.Lt: |
| 0 | 231 | | return "lt"; |
| | 232 | | case TextTranslationSkillLanguage.Mg: |
| 0 | 233 | | return "mg"; |
| | 234 | | case TextTranslationSkillLanguage.Ms: |
| 0 | 235 | | return "ms"; |
| | 236 | | case TextTranslationSkillLanguage.Mt: |
| 0 | 237 | | return "mt"; |
| | 238 | | case TextTranslationSkillLanguage.Nb: |
| 0 | 239 | | return "nb"; |
| | 240 | | case TextTranslationSkillLanguage.Fa: |
| 0 | 241 | | return "fa"; |
| | 242 | | case TextTranslationSkillLanguage.Pl: |
| 0 | 243 | | return "pl"; |
| | 244 | | case TextTranslationSkillLanguage.Pt: |
| 0 | 245 | | return "pt"; |
| | 246 | | case TextTranslationSkillLanguage.Otq: |
| 0 | 247 | | return "otq"; |
| | 248 | | case TextTranslationSkillLanguage.Ro: |
| 0 | 249 | | return "ro"; |
| | 250 | | case TextTranslationSkillLanguage.Ru: |
| 0 | 251 | | return "ru"; |
| | 252 | | case TextTranslationSkillLanguage.Sm: |
| 0 | 253 | | return "sm"; |
| | 254 | | case TextTranslationSkillLanguage.SrCyrl: |
| 0 | 255 | | return "sr-Cyrl"; |
| | 256 | | case TextTranslationSkillLanguage.SrLatn: |
| 0 | 257 | | return "sr-Latn"; |
| | 258 | | case TextTranslationSkillLanguage.Sk: |
| 0 | 259 | | return "sk"; |
| | 260 | | case TextTranslationSkillLanguage.Sl: |
| 0 | 261 | | return "sl"; |
| | 262 | | case TextTranslationSkillLanguage.Es: |
| 0 | 263 | | return "es"; |
| | 264 | | case TextTranslationSkillLanguage.Sv: |
| 0 | 265 | | return "sv"; |
| | 266 | | case TextTranslationSkillLanguage.Ty: |
| 0 | 267 | | return "ty"; |
| | 268 | | case TextTranslationSkillLanguage.Ta: |
| 0 | 269 | | return "ta"; |
| | 270 | | case TextTranslationSkillLanguage.Te: |
| 0 | 271 | | return "te"; |
| | 272 | | case TextTranslationSkillLanguage.Th: |
| 0 | 273 | | return "th"; |
| | 274 | | case TextTranslationSkillLanguage.To: |
| 0 | 275 | | return "to"; |
| | 276 | | case TextTranslationSkillLanguage.Tr: |
| 0 | 277 | | return "tr"; |
| | 278 | | case TextTranslationSkillLanguage.Uk: |
| 0 | 279 | | return "uk"; |
| | 280 | | case TextTranslationSkillLanguage.Ur: |
| 0 | 281 | | return "ur"; |
| | 282 | | case TextTranslationSkillLanguage.Vi: |
| 0 | 283 | | return "vi"; |
| | 284 | | case TextTranslationSkillLanguage.Cy: |
| 0 | 285 | | return "cy"; |
| | 286 | | case TextTranslationSkillLanguage.Yua: |
| 0 | 287 | | return "yua"; |
| | 288 | | } |
| 0 | 289 | | return null; |
| | 290 | | } |
| | 291 | |
|
| | 292 | | internal static TextTranslationSkillLanguage? ParseTextTranslationSkillLanguage(this string value) |
| | 293 | | { |
| | 294 | | switch( value ) |
| | 295 | | { |
| | 296 | | case "af": |
| 0 | 297 | | return TextTranslationSkillLanguage.Af; |
| | 298 | | case "ar": |
| 0 | 299 | | return TextTranslationSkillLanguage.Ar; |
| | 300 | | case "bn": |
| 0 | 301 | | return TextTranslationSkillLanguage.Bn; |
| | 302 | | case "bs": |
| 0 | 303 | | return TextTranslationSkillLanguage.Bs; |
| | 304 | | case "bg": |
| 0 | 305 | | return TextTranslationSkillLanguage.Bg; |
| | 306 | | case "yue": |
| 0 | 307 | | return TextTranslationSkillLanguage.Yue; |
| | 308 | | case "ca": |
| 0 | 309 | | return TextTranslationSkillLanguage.Ca; |
| | 310 | | case "zh-Hans": |
| 0 | 311 | | return TextTranslationSkillLanguage.ZhHans; |
| | 312 | | case "zh-Hant": |
| 0 | 313 | | return TextTranslationSkillLanguage.ZhHant; |
| | 314 | | case "hr": |
| 0 | 315 | | return TextTranslationSkillLanguage.Hr; |
| | 316 | | case "cs": |
| 0 | 317 | | return TextTranslationSkillLanguage.Cs; |
| | 318 | | case "da": |
| 0 | 319 | | return TextTranslationSkillLanguage.Da; |
| | 320 | | case "nl": |
| 0 | 321 | | return TextTranslationSkillLanguage.Nl; |
| | 322 | | case "en": |
| 0 | 323 | | return TextTranslationSkillLanguage.En; |
| | 324 | | case "et": |
| 0 | 325 | | return TextTranslationSkillLanguage.Et; |
| | 326 | | case "fj": |
| 0 | 327 | | return TextTranslationSkillLanguage.Fj; |
| | 328 | | case "fil": |
| 0 | 329 | | return TextTranslationSkillLanguage.Fil; |
| | 330 | | case "fi": |
| 0 | 331 | | return TextTranslationSkillLanguage.Fi; |
| | 332 | | case "fr": |
| 0 | 333 | | return TextTranslationSkillLanguage.Fr; |
| | 334 | | case "de": |
| 0 | 335 | | return TextTranslationSkillLanguage.De; |
| | 336 | | case "el": |
| 0 | 337 | | return TextTranslationSkillLanguage.El; |
| | 338 | | case "ht": |
| 0 | 339 | | return TextTranslationSkillLanguage.Ht; |
| | 340 | | case "he": |
| 0 | 341 | | return TextTranslationSkillLanguage.He; |
| | 342 | | case "hi": |
| 0 | 343 | | return TextTranslationSkillLanguage.Hi; |
| | 344 | | case "mww": |
| 0 | 345 | | return TextTranslationSkillLanguage.Mww; |
| | 346 | | case "hu": |
| 0 | 347 | | return TextTranslationSkillLanguage.Hu; |
| | 348 | | case "is": |
| 0 | 349 | | return TextTranslationSkillLanguage.Is; |
| | 350 | | case "id": |
| 0 | 351 | | return TextTranslationSkillLanguage.Id; |
| | 352 | | case "it": |
| 0 | 353 | | return TextTranslationSkillLanguage.It; |
| | 354 | | case "ja": |
| 0 | 355 | | return TextTranslationSkillLanguage.Ja; |
| | 356 | | case "sw": |
| 0 | 357 | | return TextTranslationSkillLanguage.Sw; |
| | 358 | | case "tlh": |
| 0 | 359 | | return TextTranslationSkillLanguage.Tlh; |
| | 360 | | case "ko": |
| 0 | 361 | | return TextTranslationSkillLanguage.Ko; |
| | 362 | | case "lv": |
| 0 | 363 | | return TextTranslationSkillLanguage.Lv; |
| | 364 | | case "lt": |
| 0 | 365 | | return TextTranslationSkillLanguage.Lt; |
| | 366 | | case "mg": |
| 0 | 367 | | return TextTranslationSkillLanguage.Mg; |
| | 368 | | case "ms": |
| 0 | 369 | | return TextTranslationSkillLanguage.Ms; |
| | 370 | | case "mt": |
| 0 | 371 | | return TextTranslationSkillLanguage.Mt; |
| | 372 | | case "nb": |
| 0 | 373 | | return TextTranslationSkillLanguage.Nb; |
| | 374 | | case "fa": |
| 0 | 375 | | return TextTranslationSkillLanguage.Fa; |
| | 376 | | case "pl": |
| 0 | 377 | | return TextTranslationSkillLanguage.Pl; |
| | 378 | | case "pt": |
| 0 | 379 | | return TextTranslationSkillLanguage.Pt; |
| | 380 | | case "otq": |
| 0 | 381 | | return TextTranslationSkillLanguage.Otq; |
| | 382 | | case "ro": |
| 0 | 383 | | return TextTranslationSkillLanguage.Ro; |
| | 384 | | case "ru": |
| 0 | 385 | | return TextTranslationSkillLanguage.Ru; |
| | 386 | | case "sm": |
| 0 | 387 | | return TextTranslationSkillLanguage.Sm; |
| | 388 | | case "sr-Cyrl": |
| 0 | 389 | | return TextTranslationSkillLanguage.SrCyrl; |
| | 390 | | case "sr-Latn": |
| 0 | 391 | | return TextTranslationSkillLanguage.SrLatn; |
| | 392 | | case "sk": |
| 0 | 393 | | return TextTranslationSkillLanguage.Sk; |
| | 394 | | case "sl": |
| 0 | 395 | | return TextTranslationSkillLanguage.Sl; |
| | 396 | | case "es": |
| 0 | 397 | | return TextTranslationSkillLanguage.Es; |
| | 398 | | case "sv": |
| 0 | 399 | | return TextTranslationSkillLanguage.Sv; |
| | 400 | | case "ty": |
| 0 | 401 | | return TextTranslationSkillLanguage.Ty; |
| | 402 | | case "ta": |
| 0 | 403 | | return TextTranslationSkillLanguage.Ta; |
| | 404 | | case "te": |
| 0 | 405 | | return TextTranslationSkillLanguage.Te; |
| | 406 | | case "th": |
| 0 | 407 | | return TextTranslationSkillLanguage.Th; |
| | 408 | | case "to": |
| 0 | 409 | | return TextTranslationSkillLanguage.To; |
| | 410 | | case "tr": |
| 0 | 411 | | return TextTranslationSkillLanguage.Tr; |
| | 412 | | case "uk": |
| 0 | 413 | | return TextTranslationSkillLanguage.Uk; |
| | 414 | | case "ur": |
| 0 | 415 | | return TextTranslationSkillLanguage.Ur; |
| | 416 | | case "vi": |
| 0 | 417 | | return TextTranslationSkillLanguage.Vi; |
| | 418 | | case "cy": |
| 0 | 419 | | return TextTranslationSkillLanguage.Cy; |
| | 420 | | case "yua": |
| 0 | 421 | | return TextTranslationSkillLanguage.Yua; |
| | 422 | | } |
| 0 | 423 | | return null; |
| | 424 | | } |
| | 425 | | } |
| | 426 | | } |