| | 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 MicrosoftStemmingTokenizerLanguage. |
| | 20 | | /// </summary> |
| | 21 | | [JsonConverter(typeof(StringEnumConverter))] |
| | 22 | | public enum MicrosoftStemmingTokenizerLanguage |
| | 23 | | { |
| | 24 | | [EnumMember(Value = "arabic")] |
| | 25 | | Arabic, |
| | 26 | | [EnumMember(Value = "bangla")] |
| | 27 | | Bangla, |
| | 28 | | [EnumMember(Value = "bulgarian")] |
| | 29 | | Bulgarian, |
| | 30 | | [EnumMember(Value = "catalan")] |
| | 31 | | Catalan, |
| | 32 | | [EnumMember(Value = "croatian")] |
| | 33 | | Croatian, |
| | 34 | | [EnumMember(Value = "czech")] |
| | 35 | | Czech, |
| | 36 | | [EnumMember(Value = "danish")] |
| | 37 | | Danish, |
| | 38 | | [EnumMember(Value = "dutch")] |
| | 39 | | Dutch, |
| | 40 | | [EnumMember(Value = "english")] |
| | 41 | | English, |
| | 42 | | [EnumMember(Value = "estonian")] |
| | 43 | | Estonian, |
| | 44 | | [EnumMember(Value = "finnish")] |
| | 45 | | Finnish, |
| | 46 | | [EnumMember(Value = "french")] |
| | 47 | | French, |
| | 48 | | [EnumMember(Value = "german")] |
| | 49 | | German, |
| | 50 | | [EnumMember(Value = "greek")] |
| | 51 | | Greek, |
| | 52 | | [EnumMember(Value = "gujarati")] |
| | 53 | | Gujarati, |
| | 54 | | [EnumMember(Value = "hebrew")] |
| | 55 | | Hebrew, |
| | 56 | | [EnumMember(Value = "hindi")] |
| | 57 | | Hindi, |
| | 58 | | [EnumMember(Value = "hungarian")] |
| | 59 | | Hungarian, |
| | 60 | | [EnumMember(Value = "icelandic")] |
| | 61 | | Icelandic, |
| | 62 | | [EnumMember(Value = "indonesian")] |
| | 63 | | Indonesian, |
| | 64 | | [EnumMember(Value = "italian")] |
| | 65 | | Italian, |
| | 66 | | [EnumMember(Value = "kannada")] |
| | 67 | | Kannada, |
| | 68 | | [EnumMember(Value = "latvian")] |
| | 69 | | Latvian, |
| | 70 | | [EnumMember(Value = "lithuanian")] |
| | 71 | | Lithuanian, |
| | 72 | | [EnumMember(Value = "malay")] |
| | 73 | | Malay, |
| | 74 | | [EnumMember(Value = "malayalam")] |
| | 75 | | Malayalam, |
| | 76 | | [EnumMember(Value = "marathi")] |
| | 77 | | Marathi, |
| | 78 | | [EnumMember(Value = "norwegianBokmaal")] |
| | 79 | | NorwegianBokmaal, |
| | 80 | | [EnumMember(Value = "polish")] |
| | 81 | | Polish, |
| | 82 | | [EnumMember(Value = "portuguese")] |
| | 83 | | Portuguese, |
| | 84 | | [EnumMember(Value = "portugueseBrazilian")] |
| | 85 | | PortugueseBrazilian, |
| | 86 | | [EnumMember(Value = "punjabi")] |
| | 87 | | Punjabi, |
| | 88 | | [EnumMember(Value = "romanian")] |
| | 89 | | Romanian, |
| | 90 | | [EnumMember(Value = "russian")] |
| | 91 | | Russian, |
| | 92 | | [EnumMember(Value = "serbianCyrillic")] |
| | 93 | | SerbianCyrillic, |
| | 94 | | [EnumMember(Value = "serbianLatin")] |
| | 95 | | SerbianLatin, |
| | 96 | | [EnumMember(Value = "slovak")] |
| | 97 | | Slovak, |
| | 98 | | [EnumMember(Value = "slovenian")] |
| | 99 | | Slovenian, |
| | 100 | | [EnumMember(Value = "spanish")] |
| | 101 | | Spanish, |
| | 102 | | [EnumMember(Value = "swedish")] |
| | 103 | | Swedish, |
| | 104 | | [EnumMember(Value = "tamil")] |
| | 105 | | Tamil, |
| | 106 | | [EnumMember(Value = "telugu")] |
| | 107 | | Telugu, |
| | 108 | | [EnumMember(Value = "turkish")] |
| | 109 | | Turkish, |
| | 110 | | [EnumMember(Value = "ukrainian")] |
| | 111 | | Ukrainian, |
| | 112 | | [EnumMember(Value = "urdu")] |
| | 113 | | Urdu |
| | 114 | | } |
| | 115 | | internal static class MicrosoftStemmingTokenizerLanguageEnumExtension |
| | 116 | | { |
| | 117 | | internal static string ToSerializedValue(this MicrosoftStemmingTokenizerLanguage? value) |
| | 118 | | { |
| 0 | 119 | | return value == null ? null : ((MicrosoftStemmingTokenizerLanguage)value).ToSerializedValue(); |
| | 120 | | } |
| | 121 | |
|
| | 122 | | internal static string ToSerializedValue(this MicrosoftStemmingTokenizerLanguage value) |
| | 123 | | { |
| | 124 | | switch( value ) |
| | 125 | | { |
| | 126 | | case MicrosoftStemmingTokenizerLanguage.Arabic: |
| 0 | 127 | | return "arabic"; |
| | 128 | | case MicrosoftStemmingTokenizerLanguage.Bangla: |
| 0 | 129 | | return "bangla"; |
| | 130 | | case MicrosoftStemmingTokenizerLanguage.Bulgarian: |
| 0 | 131 | | return "bulgarian"; |
| | 132 | | case MicrosoftStemmingTokenizerLanguage.Catalan: |
| 0 | 133 | | return "catalan"; |
| | 134 | | case MicrosoftStemmingTokenizerLanguage.Croatian: |
| 0 | 135 | | return "croatian"; |
| | 136 | | case MicrosoftStemmingTokenizerLanguage.Czech: |
| 0 | 137 | | return "czech"; |
| | 138 | | case MicrosoftStemmingTokenizerLanguage.Danish: |
| 0 | 139 | | return "danish"; |
| | 140 | | case MicrosoftStemmingTokenizerLanguage.Dutch: |
| 0 | 141 | | return "dutch"; |
| | 142 | | case MicrosoftStemmingTokenizerLanguage.English: |
| 0 | 143 | | return "english"; |
| | 144 | | case MicrosoftStemmingTokenizerLanguage.Estonian: |
| 0 | 145 | | return "estonian"; |
| | 146 | | case MicrosoftStemmingTokenizerLanguage.Finnish: |
| 0 | 147 | | return "finnish"; |
| | 148 | | case MicrosoftStemmingTokenizerLanguage.French: |
| 0 | 149 | | return "french"; |
| | 150 | | case MicrosoftStemmingTokenizerLanguage.German: |
| 0 | 151 | | return "german"; |
| | 152 | | case MicrosoftStemmingTokenizerLanguage.Greek: |
| 0 | 153 | | return "greek"; |
| | 154 | | case MicrosoftStemmingTokenizerLanguage.Gujarati: |
| 0 | 155 | | return "gujarati"; |
| | 156 | | case MicrosoftStemmingTokenizerLanguage.Hebrew: |
| 0 | 157 | | return "hebrew"; |
| | 158 | | case MicrosoftStemmingTokenizerLanguage.Hindi: |
| 0 | 159 | | return "hindi"; |
| | 160 | | case MicrosoftStemmingTokenizerLanguage.Hungarian: |
| 0 | 161 | | return "hungarian"; |
| | 162 | | case MicrosoftStemmingTokenizerLanguage.Icelandic: |
| 0 | 163 | | return "icelandic"; |
| | 164 | | case MicrosoftStemmingTokenizerLanguage.Indonesian: |
| 0 | 165 | | return "indonesian"; |
| | 166 | | case MicrosoftStemmingTokenizerLanguage.Italian: |
| 0 | 167 | | return "italian"; |
| | 168 | | case MicrosoftStemmingTokenizerLanguage.Kannada: |
| 0 | 169 | | return "kannada"; |
| | 170 | | case MicrosoftStemmingTokenizerLanguage.Latvian: |
| 0 | 171 | | return "latvian"; |
| | 172 | | case MicrosoftStemmingTokenizerLanguage.Lithuanian: |
| 0 | 173 | | return "lithuanian"; |
| | 174 | | case MicrosoftStemmingTokenizerLanguage.Malay: |
| 0 | 175 | | return "malay"; |
| | 176 | | case MicrosoftStemmingTokenizerLanguage.Malayalam: |
| 0 | 177 | | return "malayalam"; |
| | 178 | | case MicrosoftStemmingTokenizerLanguage.Marathi: |
| 0 | 179 | | return "marathi"; |
| | 180 | | case MicrosoftStemmingTokenizerLanguage.NorwegianBokmaal: |
| 0 | 181 | | return "norwegianBokmaal"; |
| | 182 | | case MicrosoftStemmingTokenizerLanguage.Polish: |
| 0 | 183 | | return "polish"; |
| | 184 | | case MicrosoftStemmingTokenizerLanguage.Portuguese: |
| 0 | 185 | | return "portuguese"; |
| | 186 | | case MicrosoftStemmingTokenizerLanguage.PortugueseBrazilian: |
| 0 | 187 | | return "portugueseBrazilian"; |
| | 188 | | case MicrosoftStemmingTokenizerLanguage.Punjabi: |
| 0 | 189 | | return "punjabi"; |
| | 190 | | case MicrosoftStemmingTokenizerLanguage.Romanian: |
| 0 | 191 | | return "romanian"; |
| | 192 | | case MicrosoftStemmingTokenizerLanguage.Russian: |
| 0 | 193 | | return "russian"; |
| | 194 | | case MicrosoftStemmingTokenizerLanguage.SerbianCyrillic: |
| 0 | 195 | | return "serbianCyrillic"; |
| | 196 | | case MicrosoftStemmingTokenizerLanguage.SerbianLatin: |
| 0 | 197 | | return "serbianLatin"; |
| | 198 | | case MicrosoftStemmingTokenizerLanguage.Slovak: |
| 0 | 199 | | return "slovak"; |
| | 200 | | case MicrosoftStemmingTokenizerLanguage.Slovenian: |
| 0 | 201 | | return "slovenian"; |
| | 202 | | case MicrosoftStemmingTokenizerLanguage.Spanish: |
| 0 | 203 | | return "spanish"; |
| | 204 | | case MicrosoftStemmingTokenizerLanguage.Swedish: |
| 0 | 205 | | return "swedish"; |
| | 206 | | case MicrosoftStemmingTokenizerLanguage.Tamil: |
| 0 | 207 | | return "tamil"; |
| | 208 | | case MicrosoftStemmingTokenizerLanguage.Telugu: |
| 0 | 209 | | return "telugu"; |
| | 210 | | case MicrosoftStemmingTokenizerLanguage.Turkish: |
| 0 | 211 | | return "turkish"; |
| | 212 | | case MicrosoftStemmingTokenizerLanguage.Ukrainian: |
| 0 | 213 | | return "ukrainian"; |
| | 214 | | case MicrosoftStemmingTokenizerLanguage.Urdu: |
| 0 | 215 | | return "urdu"; |
| | 216 | | } |
| 0 | 217 | | return null; |
| | 218 | | } |
| | 219 | |
|
| | 220 | | internal static MicrosoftStemmingTokenizerLanguage? ParseMicrosoftStemmingTokenizerLanguage(this string value) |
| | 221 | | { |
| | 222 | | switch( value ) |
| | 223 | | { |
| | 224 | | case "arabic": |
| 0 | 225 | | return MicrosoftStemmingTokenizerLanguage.Arabic; |
| | 226 | | case "bangla": |
| 0 | 227 | | return MicrosoftStemmingTokenizerLanguage.Bangla; |
| | 228 | | case "bulgarian": |
| 0 | 229 | | return MicrosoftStemmingTokenizerLanguage.Bulgarian; |
| | 230 | | case "catalan": |
| 0 | 231 | | return MicrosoftStemmingTokenizerLanguage.Catalan; |
| | 232 | | case "croatian": |
| 0 | 233 | | return MicrosoftStemmingTokenizerLanguage.Croatian; |
| | 234 | | case "czech": |
| 0 | 235 | | return MicrosoftStemmingTokenizerLanguage.Czech; |
| | 236 | | case "danish": |
| 0 | 237 | | return MicrosoftStemmingTokenizerLanguage.Danish; |
| | 238 | | case "dutch": |
| 0 | 239 | | return MicrosoftStemmingTokenizerLanguage.Dutch; |
| | 240 | | case "english": |
| 0 | 241 | | return MicrosoftStemmingTokenizerLanguage.English; |
| | 242 | | case "estonian": |
| 0 | 243 | | return MicrosoftStemmingTokenizerLanguage.Estonian; |
| | 244 | | case "finnish": |
| 0 | 245 | | return MicrosoftStemmingTokenizerLanguage.Finnish; |
| | 246 | | case "french": |
| 0 | 247 | | return MicrosoftStemmingTokenizerLanguage.French; |
| | 248 | | case "german": |
| 0 | 249 | | return MicrosoftStemmingTokenizerLanguage.German; |
| | 250 | | case "greek": |
| 0 | 251 | | return MicrosoftStemmingTokenizerLanguage.Greek; |
| | 252 | | case "gujarati": |
| 0 | 253 | | return MicrosoftStemmingTokenizerLanguage.Gujarati; |
| | 254 | | case "hebrew": |
| 0 | 255 | | return MicrosoftStemmingTokenizerLanguage.Hebrew; |
| | 256 | | case "hindi": |
| 0 | 257 | | return MicrosoftStemmingTokenizerLanguage.Hindi; |
| | 258 | | case "hungarian": |
| 0 | 259 | | return MicrosoftStemmingTokenizerLanguage.Hungarian; |
| | 260 | | case "icelandic": |
| 0 | 261 | | return MicrosoftStemmingTokenizerLanguage.Icelandic; |
| | 262 | | case "indonesian": |
| 0 | 263 | | return MicrosoftStemmingTokenizerLanguage.Indonesian; |
| | 264 | | case "italian": |
| 0 | 265 | | return MicrosoftStemmingTokenizerLanguage.Italian; |
| | 266 | | case "kannada": |
| 0 | 267 | | return MicrosoftStemmingTokenizerLanguage.Kannada; |
| | 268 | | case "latvian": |
| 0 | 269 | | return MicrosoftStemmingTokenizerLanguage.Latvian; |
| | 270 | | case "lithuanian": |
| 0 | 271 | | return MicrosoftStemmingTokenizerLanguage.Lithuanian; |
| | 272 | | case "malay": |
| 0 | 273 | | return MicrosoftStemmingTokenizerLanguage.Malay; |
| | 274 | | case "malayalam": |
| 0 | 275 | | return MicrosoftStemmingTokenizerLanguage.Malayalam; |
| | 276 | | case "marathi": |
| 0 | 277 | | return MicrosoftStemmingTokenizerLanguage.Marathi; |
| | 278 | | case "norwegianBokmaal": |
| 0 | 279 | | return MicrosoftStemmingTokenizerLanguage.NorwegianBokmaal; |
| | 280 | | case "polish": |
| 0 | 281 | | return MicrosoftStemmingTokenizerLanguage.Polish; |
| | 282 | | case "portuguese": |
| 0 | 283 | | return MicrosoftStemmingTokenizerLanguage.Portuguese; |
| | 284 | | case "portugueseBrazilian": |
| 0 | 285 | | return MicrosoftStemmingTokenizerLanguage.PortugueseBrazilian; |
| | 286 | | case "punjabi": |
| 0 | 287 | | return MicrosoftStemmingTokenizerLanguage.Punjabi; |
| | 288 | | case "romanian": |
| 0 | 289 | | return MicrosoftStemmingTokenizerLanguage.Romanian; |
| | 290 | | case "russian": |
| 0 | 291 | | return MicrosoftStemmingTokenizerLanguage.Russian; |
| | 292 | | case "serbianCyrillic": |
| 0 | 293 | | return MicrosoftStemmingTokenizerLanguage.SerbianCyrillic; |
| | 294 | | case "serbianLatin": |
| 0 | 295 | | return MicrosoftStemmingTokenizerLanguage.SerbianLatin; |
| | 296 | | case "slovak": |
| 0 | 297 | | return MicrosoftStemmingTokenizerLanguage.Slovak; |
| | 298 | | case "slovenian": |
| 0 | 299 | | return MicrosoftStemmingTokenizerLanguage.Slovenian; |
| | 300 | | case "spanish": |
| 0 | 301 | | return MicrosoftStemmingTokenizerLanguage.Spanish; |
| | 302 | | case "swedish": |
| 0 | 303 | | return MicrosoftStemmingTokenizerLanguage.Swedish; |
| | 304 | | case "tamil": |
| 0 | 305 | | return MicrosoftStemmingTokenizerLanguage.Tamil; |
| | 306 | | case "telugu": |
| 0 | 307 | | return MicrosoftStemmingTokenizerLanguage.Telugu; |
| | 308 | | case "turkish": |
| 0 | 309 | | return MicrosoftStemmingTokenizerLanguage.Turkish; |
| | 310 | | case "ukrainian": |
| 0 | 311 | | return MicrosoftStemmingTokenizerLanguage.Ukrainian; |
| | 312 | | case "urdu": |
| 0 | 313 | | return MicrosoftStemmingTokenizerLanguage.Urdu; |
| | 314 | | } |
| 0 | 315 | | return null; |
| | 316 | | } |
| | 317 | | } |
| | 318 | | } |