| | 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 | |
|
| | 10 | | namespace Azure.Search.Documents.Indexes.Models |
| | 11 | | { |
| | 12 | | internal static class MicrosoftTokenizerLanguageExtensions |
| | 13 | | { |
| 0 | 14 | | public static string ToSerialString(this MicrosoftTokenizerLanguage value) => value switch |
| 0 | 15 | | { |
| 0 | 16 | | MicrosoftTokenizerLanguage.Bangla => "bangla", |
| 0 | 17 | | MicrosoftTokenizerLanguage.Bulgarian => "bulgarian", |
| 0 | 18 | | MicrosoftTokenizerLanguage.Catalan => "catalan", |
| 0 | 19 | | MicrosoftTokenizerLanguage.ChineseSimplified => "chineseSimplified", |
| 0 | 20 | | MicrosoftTokenizerLanguage.ChineseTraditional => "chineseTraditional", |
| 0 | 21 | | MicrosoftTokenizerLanguage.Croatian => "croatian", |
| 0 | 22 | | MicrosoftTokenizerLanguage.Czech => "czech", |
| 0 | 23 | | MicrosoftTokenizerLanguage.Danish => "danish", |
| 0 | 24 | | MicrosoftTokenizerLanguage.Dutch => "dutch", |
| 0 | 25 | | MicrosoftTokenizerLanguage.English => "english", |
| 0 | 26 | | MicrosoftTokenizerLanguage.French => "french", |
| 0 | 27 | | MicrosoftTokenizerLanguage.German => "german", |
| 0 | 28 | | MicrosoftTokenizerLanguage.Greek => "greek", |
| 0 | 29 | | MicrosoftTokenizerLanguage.Gujarati => "gujarati", |
| 0 | 30 | | MicrosoftTokenizerLanguage.Hindi => "hindi", |
| 0 | 31 | | MicrosoftTokenizerLanguage.Icelandic => "icelandic", |
| 0 | 32 | | MicrosoftTokenizerLanguage.Indonesian => "indonesian", |
| 0 | 33 | | MicrosoftTokenizerLanguage.Italian => "italian", |
| 0 | 34 | | MicrosoftTokenizerLanguage.Japanese => "japanese", |
| 0 | 35 | | MicrosoftTokenizerLanguage.Kannada => "kannada", |
| 0 | 36 | | MicrosoftTokenizerLanguage.Korean => "korean", |
| 0 | 37 | | MicrosoftTokenizerLanguage.Malay => "malay", |
| 0 | 38 | | MicrosoftTokenizerLanguage.Malayalam => "malayalam", |
| 0 | 39 | | MicrosoftTokenizerLanguage.Marathi => "marathi", |
| 0 | 40 | | MicrosoftTokenizerLanguage.NorwegianBokmaal => "norwegianBokmaal", |
| 0 | 41 | | MicrosoftTokenizerLanguage.Polish => "polish", |
| 0 | 42 | | MicrosoftTokenizerLanguage.Portuguese => "portuguese", |
| 0 | 43 | | MicrosoftTokenizerLanguage.PortugueseBrazilian => "portugueseBrazilian", |
| 0 | 44 | | MicrosoftTokenizerLanguage.Punjabi => "punjabi", |
| 0 | 45 | | MicrosoftTokenizerLanguage.Romanian => "romanian", |
| 0 | 46 | | MicrosoftTokenizerLanguage.Russian => "russian", |
| 0 | 47 | | MicrosoftTokenizerLanguage.SerbianCyrillic => "serbianCyrillic", |
| 0 | 48 | | MicrosoftTokenizerLanguage.SerbianLatin => "serbianLatin", |
| 0 | 49 | | MicrosoftTokenizerLanguage.Slovenian => "slovenian", |
| 0 | 50 | | MicrosoftTokenizerLanguage.Spanish => "spanish", |
| 0 | 51 | | MicrosoftTokenizerLanguage.Swedish => "swedish", |
| 0 | 52 | | MicrosoftTokenizerLanguage.Tamil => "tamil", |
| 0 | 53 | | MicrosoftTokenizerLanguage.Telugu => "telugu", |
| 0 | 54 | | MicrosoftTokenizerLanguage.Thai => "thai", |
| 0 | 55 | | MicrosoftTokenizerLanguage.Ukrainian => "ukrainian", |
| 0 | 56 | | MicrosoftTokenizerLanguage.Urdu => "urdu", |
| 0 | 57 | | MicrosoftTokenizerLanguage.Vietnamese => "vietnamese", |
| 0 | 58 | | _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MicrosoftTokenizerLanguage value." |
| 0 | 59 | | }; |
| | 60 | |
|
| | 61 | | public static MicrosoftTokenizerLanguage ToMicrosoftTokenizerLanguage(this string value) |
| | 62 | | { |
| 0 | 63 | | if (string.Equals(value, "bangla", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLa |
| 0 | 64 | | if (string.Equals(value, "bulgarian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenize |
| 0 | 65 | | if (string.Equals(value, "catalan", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerL |
| 0 | 66 | | if (string.Equals(value, "chineseSimplified", StringComparison.InvariantCultureIgnoreCase)) return Microsoft |
| 0 | 67 | | if (string.Equals(value, "chineseTraditional", StringComparison.InvariantCultureIgnoreCase)) return Microsof |
| 0 | 68 | | if (string.Equals(value, "croatian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizer |
| 0 | 69 | | if (string.Equals(value, "czech", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLan |
| 0 | 70 | | if (string.Equals(value, "danish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLa |
| 0 | 71 | | if (string.Equals(value, "dutch", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLan |
| 0 | 72 | | if (string.Equals(value, "english", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerL |
| 0 | 73 | | if (string.Equals(value, "french", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLa |
| 0 | 74 | | if (string.Equals(value, "german", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLa |
| 0 | 75 | | if (string.Equals(value, "greek", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLan |
| 0 | 76 | | if (string.Equals(value, "gujarati", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizer |
| 0 | 77 | | if (string.Equals(value, "hindi", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLan |
| 0 | 78 | | if (string.Equals(value, "icelandic", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenize |
| 0 | 79 | | if (string.Equals(value, "indonesian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokeniz |
| 0 | 80 | | if (string.Equals(value, "italian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerL |
| 0 | 81 | | if (string.Equals(value, "japanese", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizer |
| 0 | 82 | | if (string.Equals(value, "kannada", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerL |
| 0 | 83 | | if (string.Equals(value, "korean", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLa |
| 0 | 84 | | if (string.Equals(value, "malay", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLan |
| 0 | 85 | | if (string.Equals(value, "malayalam", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenize |
| 0 | 86 | | if (string.Equals(value, "marathi", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerL |
| 0 | 87 | | if (string.Equals(value, "norwegianBokmaal", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftT |
| 0 | 88 | | if (string.Equals(value, "polish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLa |
| 0 | 89 | | if (string.Equals(value, "portuguese", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokeniz |
| 0 | 90 | | if (string.Equals(value, "portugueseBrazilian", StringComparison.InvariantCultureIgnoreCase)) return Microso |
| 0 | 91 | | if (string.Equals(value, "punjabi", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerL |
| 0 | 92 | | if (string.Equals(value, "romanian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizer |
| 0 | 93 | | if (string.Equals(value, "russian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerL |
| 0 | 94 | | if (string.Equals(value, "serbianCyrillic", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTo |
| 0 | 95 | | if (string.Equals(value, "serbianLatin", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftToken |
| 0 | 96 | | if (string.Equals(value, "slovenian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenize |
| 0 | 97 | | if (string.Equals(value, "spanish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerL |
| 0 | 98 | | if (string.Equals(value, "swedish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerL |
| 0 | 99 | | if (string.Equals(value, "tamil", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLan |
| 0 | 100 | | if (string.Equals(value, "telugu", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLa |
| 0 | 101 | | if (string.Equals(value, "thai", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLang |
| 0 | 102 | | if (string.Equals(value, "ukrainian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenize |
| 0 | 103 | | if (string.Equals(value, "urdu", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokenizerLang |
| 0 | 104 | | if (string.Equals(value, "vietnamese", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftTokeniz |
| 0 | 105 | | throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MicrosoftTokenizerLanguage value."); |
| | 106 | | } |
| | 107 | | } |
| | 108 | | } |