| | 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 MicrosoftStemmingTokenizerLanguageExtensions |
| | 13 | | { |
| 0 | 14 | | public static string ToSerialString(this MicrosoftStemmingTokenizerLanguage value) => value switch |
| 0 | 15 | | { |
| 0 | 16 | | MicrosoftStemmingTokenizerLanguage.Arabic => "arabic", |
| 0 | 17 | | MicrosoftStemmingTokenizerLanguage.Bangla => "bangla", |
| 0 | 18 | | MicrosoftStemmingTokenizerLanguage.Bulgarian => "bulgarian", |
| 0 | 19 | | MicrosoftStemmingTokenizerLanguage.Catalan => "catalan", |
| 0 | 20 | | MicrosoftStemmingTokenizerLanguage.Croatian => "croatian", |
| 0 | 21 | | MicrosoftStemmingTokenizerLanguage.Czech => "czech", |
| 0 | 22 | | MicrosoftStemmingTokenizerLanguage.Danish => "danish", |
| 0 | 23 | | MicrosoftStemmingTokenizerLanguage.Dutch => "dutch", |
| 0 | 24 | | MicrosoftStemmingTokenizerLanguage.English => "english", |
| 0 | 25 | | MicrosoftStemmingTokenizerLanguage.Estonian => "estonian", |
| 0 | 26 | | MicrosoftStemmingTokenizerLanguage.Finnish => "finnish", |
| 0 | 27 | | MicrosoftStemmingTokenizerLanguage.French => "french", |
| 0 | 28 | | MicrosoftStemmingTokenizerLanguage.German => "german", |
| 0 | 29 | | MicrosoftStemmingTokenizerLanguage.Greek => "greek", |
| 0 | 30 | | MicrosoftStemmingTokenizerLanguage.Gujarati => "gujarati", |
| 0 | 31 | | MicrosoftStemmingTokenizerLanguage.Hebrew => "hebrew", |
| 0 | 32 | | MicrosoftStemmingTokenizerLanguage.Hindi => "hindi", |
| 0 | 33 | | MicrosoftStemmingTokenizerLanguage.Hungarian => "hungarian", |
| 0 | 34 | | MicrosoftStemmingTokenizerLanguage.Icelandic => "icelandic", |
| 0 | 35 | | MicrosoftStemmingTokenizerLanguage.Indonesian => "indonesian", |
| 0 | 36 | | MicrosoftStemmingTokenizerLanguage.Italian => "italian", |
| 0 | 37 | | MicrosoftStemmingTokenizerLanguage.Kannada => "kannada", |
| 0 | 38 | | MicrosoftStemmingTokenizerLanguage.Latvian => "latvian", |
| 0 | 39 | | MicrosoftStemmingTokenizerLanguage.Lithuanian => "lithuanian", |
| 0 | 40 | | MicrosoftStemmingTokenizerLanguage.Malay => "malay", |
| 0 | 41 | | MicrosoftStemmingTokenizerLanguage.Malayalam => "malayalam", |
| 0 | 42 | | MicrosoftStemmingTokenizerLanguage.Marathi => "marathi", |
| 0 | 43 | | MicrosoftStemmingTokenizerLanguage.NorwegianBokmaal => "norwegianBokmaal", |
| 0 | 44 | | MicrosoftStemmingTokenizerLanguage.Polish => "polish", |
| 0 | 45 | | MicrosoftStemmingTokenizerLanguage.Portuguese => "portuguese", |
| 0 | 46 | | MicrosoftStemmingTokenizerLanguage.PortugueseBrazilian => "portugueseBrazilian", |
| 0 | 47 | | MicrosoftStemmingTokenizerLanguage.Punjabi => "punjabi", |
| 0 | 48 | | MicrosoftStemmingTokenizerLanguage.Romanian => "romanian", |
| 0 | 49 | | MicrosoftStemmingTokenizerLanguage.Russian => "russian", |
| 0 | 50 | | MicrosoftStemmingTokenizerLanguage.SerbianCyrillic => "serbianCyrillic", |
| 0 | 51 | | MicrosoftStemmingTokenizerLanguage.SerbianLatin => "serbianLatin", |
| 0 | 52 | | MicrosoftStemmingTokenizerLanguage.Slovak => "slovak", |
| 0 | 53 | | MicrosoftStemmingTokenizerLanguage.Slovenian => "slovenian", |
| 0 | 54 | | MicrosoftStemmingTokenizerLanguage.Spanish => "spanish", |
| 0 | 55 | | MicrosoftStemmingTokenizerLanguage.Swedish => "swedish", |
| 0 | 56 | | MicrosoftStemmingTokenizerLanguage.Tamil => "tamil", |
| 0 | 57 | | MicrosoftStemmingTokenizerLanguage.Telugu => "telugu", |
| 0 | 58 | | MicrosoftStemmingTokenizerLanguage.Turkish => "turkish", |
| 0 | 59 | | MicrosoftStemmingTokenizerLanguage.Ukrainian => "ukrainian", |
| 0 | 60 | | MicrosoftStemmingTokenizerLanguage.Urdu => "urdu", |
| 0 | 61 | | _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MicrosoftStemmingTokenizerLanguage |
| 0 | 62 | | }; |
| | 63 | |
|
| | 64 | | public static MicrosoftStemmingTokenizerLanguage ToMicrosoftStemmingTokenizerLanguage(this string value) |
| | 65 | | { |
| 0 | 66 | | if (string.Equals(value, "arabic", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTok |
| 0 | 67 | | if (string.Equals(value, "bangla", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTok |
| 0 | 68 | | if (string.Equals(value, "bulgarian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemming |
| 0 | 69 | | if (string.Equals(value, "catalan", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTo |
| 0 | 70 | | if (string.Equals(value, "croatian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingT |
| 0 | 71 | | if (string.Equals(value, "czech", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingToke |
| 0 | 72 | | if (string.Equals(value, "danish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTok |
| 0 | 73 | | if (string.Equals(value, "dutch", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingToke |
| 0 | 74 | | if (string.Equals(value, "english", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTo |
| 0 | 75 | | if (string.Equals(value, "estonian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingT |
| 0 | 76 | | if (string.Equals(value, "finnish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTo |
| 0 | 77 | | if (string.Equals(value, "french", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTok |
| 0 | 78 | | if (string.Equals(value, "german", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTok |
| 0 | 79 | | if (string.Equals(value, "greek", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingToke |
| 0 | 80 | | if (string.Equals(value, "gujarati", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingT |
| 0 | 81 | | if (string.Equals(value, "hebrew", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTok |
| 0 | 82 | | if (string.Equals(value, "hindi", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingToke |
| 0 | 83 | | if (string.Equals(value, "hungarian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemming |
| 0 | 84 | | if (string.Equals(value, "icelandic", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemming |
| 0 | 85 | | if (string.Equals(value, "indonesian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmin |
| 0 | 86 | | if (string.Equals(value, "italian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTo |
| 0 | 87 | | if (string.Equals(value, "kannada", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTo |
| 0 | 88 | | if (string.Equals(value, "latvian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTo |
| 0 | 89 | | if (string.Equals(value, "lithuanian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmin |
| 0 | 90 | | if (string.Equals(value, "malay", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingToke |
| 0 | 91 | | if (string.Equals(value, "malayalam", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemming |
| 0 | 92 | | if (string.Equals(value, "marathi", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTo |
| 0 | 93 | | if (string.Equals(value, "norwegianBokmaal", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftS |
| 0 | 94 | | if (string.Equals(value, "polish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTok |
| 0 | 95 | | if (string.Equals(value, "portuguese", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmin |
| 0 | 96 | | if (string.Equals(value, "portugueseBrazilian", StringComparison.InvariantCultureIgnoreCase)) return Microso |
| 0 | 97 | | if (string.Equals(value, "punjabi", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTo |
| 0 | 98 | | if (string.Equals(value, "romanian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingT |
| 0 | 99 | | if (string.Equals(value, "russian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTo |
| 0 | 100 | | if (string.Equals(value, "serbianCyrillic", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftSt |
| 0 | 101 | | if (string.Equals(value, "serbianLatin", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemm |
| 0 | 102 | | if (string.Equals(value, "slovak", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTok |
| 0 | 103 | | if (string.Equals(value, "slovenian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemming |
| 0 | 104 | | if (string.Equals(value, "spanish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTo |
| 0 | 105 | | if (string.Equals(value, "swedish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTo |
| 0 | 106 | | if (string.Equals(value, "tamil", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingToke |
| 0 | 107 | | if (string.Equals(value, "telugu", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTok |
| 0 | 108 | | if (string.Equals(value, "turkish", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingTo |
| 0 | 109 | | if (string.Equals(value, "ukrainian", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemming |
| 0 | 110 | | if (string.Equals(value, "urdu", StringComparison.InvariantCultureIgnoreCase)) return MicrosoftStemmingToken |
| 0 | 111 | | throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown MicrosoftStemmingTokenizerLanguage valu |
| | 112 | | } |
| | 113 | | } |
| | 114 | | } |