| | 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 StemmerTokenFilterLanguageExtensions |
| | 13 | | { |
| 0 | 14 | | public static string ToSerialString(this StemmerTokenFilterLanguage value) => value switch |
| 0 | 15 | | { |
| 0 | 16 | | StemmerTokenFilterLanguage.Arabic => "arabic", |
| 0 | 17 | | StemmerTokenFilterLanguage.Armenian => "armenian", |
| 0 | 18 | | StemmerTokenFilterLanguage.Basque => "basque", |
| 0 | 19 | | StemmerTokenFilterLanguage.Brazilian => "brazilian", |
| 0 | 20 | | StemmerTokenFilterLanguage.Bulgarian => "bulgarian", |
| 0 | 21 | | StemmerTokenFilterLanguage.Catalan => "catalan", |
| 0 | 22 | | StemmerTokenFilterLanguage.Czech => "czech", |
| 0 | 23 | | StemmerTokenFilterLanguage.Danish => "danish", |
| 0 | 24 | | StemmerTokenFilterLanguage.Dutch => "dutch", |
| 0 | 25 | | StemmerTokenFilterLanguage.DutchKp => "dutchKp", |
| 0 | 26 | | StemmerTokenFilterLanguage.English => "english", |
| 0 | 27 | | StemmerTokenFilterLanguage.LightEnglish => "lightEnglish", |
| 0 | 28 | | StemmerTokenFilterLanguage.MinimalEnglish => "minimalEnglish", |
| 0 | 29 | | StemmerTokenFilterLanguage.PossessiveEnglish => "possessiveEnglish", |
| 0 | 30 | | StemmerTokenFilterLanguage.Porter2 => "porter2", |
| 0 | 31 | | StemmerTokenFilterLanguage.Lovins => "lovins", |
| 0 | 32 | | StemmerTokenFilterLanguage.Finnish => "finnish", |
| 0 | 33 | | StemmerTokenFilterLanguage.LightFinnish => "lightFinnish", |
| 0 | 34 | | StemmerTokenFilterLanguage.French => "french", |
| 0 | 35 | | StemmerTokenFilterLanguage.LightFrench => "lightFrench", |
| 0 | 36 | | StemmerTokenFilterLanguage.MinimalFrench => "minimalFrench", |
| 0 | 37 | | StemmerTokenFilterLanguage.Galician => "galician", |
| 0 | 38 | | StemmerTokenFilterLanguage.MinimalGalician => "minimalGalician", |
| 0 | 39 | | StemmerTokenFilterLanguage.German => "german", |
| 0 | 40 | | StemmerTokenFilterLanguage.German2 => "german2", |
| 0 | 41 | | StemmerTokenFilterLanguage.LightGerman => "lightGerman", |
| 0 | 42 | | StemmerTokenFilterLanguage.MinimalGerman => "minimalGerman", |
| 0 | 43 | | StemmerTokenFilterLanguage.Greek => "greek", |
| 0 | 44 | | StemmerTokenFilterLanguage.Hindi => "hindi", |
| 0 | 45 | | StemmerTokenFilterLanguage.Hungarian => "hungarian", |
| 0 | 46 | | StemmerTokenFilterLanguage.LightHungarian => "lightHungarian", |
| 0 | 47 | | StemmerTokenFilterLanguage.Indonesian => "indonesian", |
| 0 | 48 | | StemmerTokenFilterLanguage.Irish => "irish", |
| 0 | 49 | | StemmerTokenFilterLanguage.Italian => "italian", |
| 0 | 50 | | StemmerTokenFilterLanguage.LightItalian => "lightItalian", |
| 0 | 51 | | StemmerTokenFilterLanguage.Sorani => "sorani", |
| 0 | 52 | | StemmerTokenFilterLanguage.Latvian => "latvian", |
| 0 | 53 | | StemmerTokenFilterLanguage.Norwegian => "norwegian", |
| 0 | 54 | | StemmerTokenFilterLanguage.LightNorwegian => "lightNorwegian", |
| 0 | 55 | | StemmerTokenFilterLanguage.MinimalNorwegian => "minimalNorwegian", |
| 0 | 56 | | StemmerTokenFilterLanguage.LightNynorsk => "lightNynorsk", |
| 0 | 57 | | StemmerTokenFilterLanguage.MinimalNynorsk => "minimalNynorsk", |
| 0 | 58 | | StemmerTokenFilterLanguage.Portuguese => "portuguese", |
| 0 | 59 | | StemmerTokenFilterLanguage.LightPortuguese => "lightPortuguese", |
| 0 | 60 | | StemmerTokenFilterLanguage.MinimalPortuguese => "minimalPortuguese", |
| 0 | 61 | | StemmerTokenFilterLanguage.PortugueseRslp => "portugueseRslp", |
| 0 | 62 | | StemmerTokenFilterLanguage.Romanian => "romanian", |
| 0 | 63 | | StemmerTokenFilterLanguage.Russian => "russian", |
| 0 | 64 | | StemmerTokenFilterLanguage.LightRussian => "lightRussian", |
| 0 | 65 | | StemmerTokenFilterLanguage.Spanish => "spanish", |
| 0 | 66 | | StemmerTokenFilterLanguage.LightSpanish => "lightSpanish", |
| 0 | 67 | | StemmerTokenFilterLanguage.Swedish => "swedish", |
| 0 | 68 | | StemmerTokenFilterLanguage.LightSwedish => "lightSwedish", |
| 0 | 69 | | StemmerTokenFilterLanguage.Turkish => "turkish", |
| 0 | 70 | | _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown StemmerTokenFilterLanguage value." |
| 0 | 71 | | }; |
| | 72 | |
|
| | 73 | | public static StemmerTokenFilterLanguage ToStemmerTokenFilterLanguage(this string value) |
| | 74 | | { |
| 0 | 75 | | if (string.Equals(value, "arabic", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLa |
| 0 | 76 | | if (string.Equals(value, "armenian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilter |
| 0 | 77 | | if (string.Equals(value, "basque", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLa |
| 0 | 78 | | if (string.Equals(value, "brazilian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilte |
| 0 | 79 | | if (string.Equals(value, "bulgarian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilte |
| 0 | 80 | | if (string.Equals(value, "catalan", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterL |
| 0 | 81 | | if (string.Equals(value, "czech", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLan |
| 0 | 82 | | if (string.Equals(value, "danish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLa |
| 0 | 83 | | if (string.Equals(value, "dutch", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLan |
| 0 | 84 | | if (string.Equals(value, "dutchKp", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterL |
| 0 | 85 | | if (string.Equals(value, "english", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterL |
| 0 | 86 | | if (string.Equals(value, "lightEnglish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFi |
| 0 | 87 | | if (string.Equals(value, "minimalEnglish", StringComparison.InvariantCultureIgnoreCase)) return StemmerToken |
| 0 | 88 | | if (string.Equals(value, "possessiveEnglish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTo |
| 0 | 89 | | if (string.Equals(value, "porter2", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterL |
| 0 | 90 | | if (string.Equals(value, "lovins", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLa |
| 0 | 91 | | if (string.Equals(value, "finnish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterL |
| 0 | 92 | | if (string.Equals(value, "lightFinnish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFi |
| 0 | 93 | | if (string.Equals(value, "french", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLa |
| 0 | 94 | | if (string.Equals(value, "lightFrench", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFil |
| 0 | 95 | | if (string.Equals(value, "minimalFrench", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenF |
| 0 | 96 | | if (string.Equals(value, "galician", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilter |
| 0 | 97 | | if (string.Equals(value, "minimalGalician", StringComparison.InvariantCultureIgnoreCase)) return StemmerToke |
| 0 | 98 | | if (string.Equals(value, "german", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLa |
| 0 | 99 | | if (string.Equals(value, "german2", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterL |
| 0 | 100 | | if (string.Equals(value, "lightGerman", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFil |
| 0 | 101 | | if (string.Equals(value, "minimalGerman", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenF |
| 0 | 102 | | if (string.Equals(value, "greek", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLan |
| 0 | 103 | | if (string.Equals(value, "hindi", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLan |
| 0 | 104 | | if (string.Equals(value, "hungarian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilte |
| 0 | 105 | | if (string.Equals(value, "lightHungarian", StringComparison.InvariantCultureIgnoreCase)) return StemmerToken |
| 0 | 106 | | if (string.Equals(value, "indonesian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilt |
| 0 | 107 | | if (string.Equals(value, "irish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLan |
| 0 | 108 | | if (string.Equals(value, "italian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterL |
| 0 | 109 | | if (string.Equals(value, "lightItalian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFi |
| 0 | 110 | | if (string.Equals(value, "sorani", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterLa |
| 0 | 111 | | if (string.Equals(value, "latvian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterL |
| 0 | 112 | | if (string.Equals(value, "norwegian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilte |
| 0 | 113 | | if (string.Equals(value, "lightNorwegian", StringComparison.InvariantCultureIgnoreCase)) return StemmerToken |
| 0 | 114 | | if (string.Equals(value, "minimalNorwegian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTok |
| 0 | 115 | | if (string.Equals(value, "lightNynorsk", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFi |
| 0 | 116 | | if (string.Equals(value, "minimalNynorsk", StringComparison.InvariantCultureIgnoreCase)) return StemmerToken |
| 0 | 117 | | if (string.Equals(value, "portuguese", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilt |
| 0 | 118 | | if (string.Equals(value, "lightPortuguese", StringComparison.InvariantCultureIgnoreCase)) return StemmerToke |
| 0 | 119 | | if (string.Equals(value, "minimalPortuguese", StringComparison.InvariantCultureIgnoreCase)) return StemmerTo |
| 0 | 120 | | if (string.Equals(value, "portugueseRslp", StringComparison.InvariantCultureIgnoreCase)) return StemmerToken |
| 0 | 121 | | if (string.Equals(value, "romanian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilter |
| 0 | 122 | | if (string.Equals(value, "russian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterL |
| 0 | 123 | | if (string.Equals(value, "lightRussian", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFi |
| 0 | 124 | | if (string.Equals(value, "spanish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterL |
| 0 | 125 | | if (string.Equals(value, "lightSpanish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFi |
| 0 | 126 | | if (string.Equals(value, "swedish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterL |
| 0 | 127 | | if (string.Equals(value, "lightSwedish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFi |
| 0 | 128 | | if (string.Equals(value, "turkish", StringComparison.InvariantCultureIgnoreCase)) return StemmerTokenFilterL |
| 0 | 129 | | throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown StemmerTokenFilterLanguage value."); |
| | 130 | | } |
| | 131 | | } |
| | 132 | | } |