| | 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 StemmerTokenFilterLanguage. |
| | 20 | | /// </summary> |
| | 21 | | [JsonConverter(typeof(StringEnumConverter))] |
| | 22 | | public enum StemmerTokenFilterLanguage |
| | 23 | | { |
| | 24 | | [EnumMember(Value = "arabic")] |
| | 25 | | Arabic, |
| | 26 | | [EnumMember(Value = "armenian")] |
| | 27 | | Armenian, |
| | 28 | | [EnumMember(Value = "basque")] |
| | 29 | | Basque, |
| | 30 | | [EnumMember(Value = "brazilian")] |
| | 31 | | Brazilian, |
| | 32 | | [EnumMember(Value = "bulgarian")] |
| | 33 | | Bulgarian, |
| | 34 | | [EnumMember(Value = "catalan")] |
| | 35 | | Catalan, |
| | 36 | | [EnumMember(Value = "czech")] |
| | 37 | | Czech, |
| | 38 | | [EnumMember(Value = "danish")] |
| | 39 | | Danish, |
| | 40 | | [EnumMember(Value = "dutch")] |
| | 41 | | Dutch, |
| | 42 | | [EnumMember(Value = "dutchKp")] |
| | 43 | | DutchKp, |
| | 44 | | [EnumMember(Value = "english")] |
| | 45 | | English, |
| | 46 | | [EnumMember(Value = "lightEnglish")] |
| | 47 | | LightEnglish, |
| | 48 | | [EnumMember(Value = "minimalEnglish")] |
| | 49 | | MinimalEnglish, |
| | 50 | | [EnumMember(Value = "possessiveEnglish")] |
| | 51 | | PossessiveEnglish, |
| | 52 | | [EnumMember(Value = "porter2")] |
| | 53 | | Porter2, |
| | 54 | | [EnumMember(Value = "lovins")] |
| | 55 | | Lovins, |
| | 56 | | [EnumMember(Value = "finnish")] |
| | 57 | | Finnish, |
| | 58 | | [EnumMember(Value = "lightFinnish")] |
| | 59 | | LightFinnish, |
| | 60 | | [EnumMember(Value = "french")] |
| | 61 | | French, |
| | 62 | | [EnumMember(Value = "lightFrench")] |
| | 63 | | LightFrench, |
| | 64 | | [EnumMember(Value = "minimalFrench")] |
| | 65 | | MinimalFrench, |
| | 66 | | [EnumMember(Value = "galician")] |
| | 67 | | Galician, |
| | 68 | | [EnumMember(Value = "minimalGalician")] |
| | 69 | | MinimalGalician, |
| | 70 | | [EnumMember(Value = "german")] |
| | 71 | | German, |
| | 72 | | [EnumMember(Value = "german2")] |
| | 73 | | German2, |
| | 74 | | [EnumMember(Value = "lightGerman")] |
| | 75 | | LightGerman, |
| | 76 | | [EnumMember(Value = "minimalGerman")] |
| | 77 | | MinimalGerman, |
| | 78 | | [EnumMember(Value = "greek")] |
| | 79 | | Greek, |
| | 80 | | [EnumMember(Value = "hindi")] |
| | 81 | | Hindi, |
| | 82 | | [EnumMember(Value = "hungarian")] |
| | 83 | | Hungarian, |
| | 84 | | [EnumMember(Value = "lightHungarian")] |
| | 85 | | LightHungarian, |
| | 86 | | [EnumMember(Value = "indonesian")] |
| | 87 | | Indonesian, |
| | 88 | | [EnumMember(Value = "irish")] |
| | 89 | | Irish, |
| | 90 | | [EnumMember(Value = "italian")] |
| | 91 | | Italian, |
| | 92 | | [EnumMember(Value = "lightItalian")] |
| | 93 | | LightItalian, |
| | 94 | | [EnumMember(Value = "sorani")] |
| | 95 | | Sorani, |
| | 96 | | [EnumMember(Value = "latvian")] |
| | 97 | | Latvian, |
| | 98 | | [EnumMember(Value = "norwegian")] |
| | 99 | | Norwegian, |
| | 100 | | [EnumMember(Value = "lightNorwegian")] |
| | 101 | | LightNorwegian, |
| | 102 | | [EnumMember(Value = "minimalNorwegian")] |
| | 103 | | MinimalNorwegian, |
| | 104 | | [EnumMember(Value = "lightNynorsk")] |
| | 105 | | LightNynorsk, |
| | 106 | | [EnumMember(Value = "minimalNynorsk")] |
| | 107 | | MinimalNynorsk, |
| | 108 | | [EnumMember(Value = "portuguese")] |
| | 109 | | Portuguese, |
| | 110 | | [EnumMember(Value = "lightPortuguese")] |
| | 111 | | LightPortuguese, |
| | 112 | | [EnumMember(Value = "minimalPortuguese")] |
| | 113 | | MinimalPortuguese, |
| | 114 | | [EnumMember(Value = "portugueseRslp")] |
| | 115 | | PortugueseRslp, |
| | 116 | | [EnumMember(Value = "romanian")] |
| | 117 | | Romanian, |
| | 118 | | [EnumMember(Value = "russian")] |
| | 119 | | Russian, |
| | 120 | | [EnumMember(Value = "lightRussian")] |
| | 121 | | LightRussian, |
| | 122 | | [EnumMember(Value = "spanish")] |
| | 123 | | Spanish, |
| | 124 | | [EnumMember(Value = "lightSpanish")] |
| | 125 | | LightSpanish, |
| | 126 | | [EnumMember(Value = "swedish")] |
| | 127 | | Swedish, |
| | 128 | | [EnumMember(Value = "lightSwedish")] |
| | 129 | | LightSwedish, |
| | 130 | | [EnumMember(Value = "turkish")] |
| | 131 | | Turkish |
| | 132 | | } |
| | 133 | | internal static class StemmerTokenFilterLanguageEnumExtension |
| | 134 | | { |
| | 135 | | internal static string ToSerializedValue(this StemmerTokenFilterLanguage? value) |
| | 136 | | { |
| 0 | 137 | | return value == null ? null : ((StemmerTokenFilterLanguage)value).ToSerializedValue(); |
| | 138 | | } |
| | 139 | |
|
| | 140 | | internal static string ToSerializedValue(this StemmerTokenFilterLanguage value) |
| | 141 | | { |
| | 142 | | switch( value ) |
| | 143 | | { |
| | 144 | | case StemmerTokenFilterLanguage.Arabic: |
| 0 | 145 | | return "arabic"; |
| | 146 | | case StemmerTokenFilterLanguage.Armenian: |
| 0 | 147 | | return "armenian"; |
| | 148 | | case StemmerTokenFilterLanguage.Basque: |
| 0 | 149 | | return "basque"; |
| | 150 | | case StemmerTokenFilterLanguage.Brazilian: |
| 0 | 151 | | return "brazilian"; |
| | 152 | | case StemmerTokenFilterLanguage.Bulgarian: |
| 0 | 153 | | return "bulgarian"; |
| | 154 | | case StemmerTokenFilterLanguage.Catalan: |
| 0 | 155 | | return "catalan"; |
| | 156 | | case StemmerTokenFilterLanguage.Czech: |
| 0 | 157 | | return "czech"; |
| | 158 | | case StemmerTokenFilterLanguage.Danish: |
| 0 | 159 | | return "danish"; |
| | 160 | | case StemmerTokenFilterLanguage.Dutch: |
| 0 | 161 | | return "dutch"; |
| | 162 | | case StemmerTokenFilterLanguage.DutchKp: |
| 0 | 163 | | return "dutchKp"; |
| | 164 | | case StemmerTokenFilterLanguage.English: |
| 0 | 165 | | return "english"; |
| | 166 | | case StemmerTokenFilterLanguage.LightEnglish: |
| 0 | 167 | | return "lightEnglish"; |
| | 168 | | case StemmerTokenFilterLanguage.MinimalEnglish: |
| 0 | 169 | | return "minimalEnglish"; |
| | 170 | | case StemmerTokenFilterLanguage.PossessiveEnglish: |
| 0 | 171 | | return "possessiveEnglish"; |
| | 172 | | case StemmerTokenFilterLanguage.Porter2: |
| 0 | 173 | | return "porter2"; |
| | 174 | | case StemmerTokenFilterLanguage.Lovins: |
| 0 | 175 | | return "lovins"; |
| | 176 | | case StemmerTokenFilterLanguage.Finnish: |
| 0 | 177 | | return "finnish"; |
| | 178 | | case StemmerTokenFilterLanguage.LightFinnish: |
| 0 | 179 | | return "lightFinnish"; |
| | 180 | | case StemmerTokenFilterLanguage.French: |
| 0 | 181 | | return "french"; |
| | 182 | | case StemmerTokenFilterLanguage.LightFrench: |
| 0 | 183 | | return "lightFrench"; |
| | 184 | | case StemmerTokenFilterLanguage.MinimalFrench: |
| 0 | 185 | | return "minimalFrench"; |
| | 186 | | case StemmerTokenFilterLanguage.Galician: |
| 0 | 187 | | return "galician"; |
| | 188 | | case StemmerTokenFilterLanguage.MinimalGalician: |
| 0 | 189 | | return "minimalGalician"; |
| | 190 | | case StemmerTokenFilterLanguage.German: |
| 0 | 191 | | return "german"; |
| | 192 | | case StemmerTokenFilterLanguage.German2: |
| 0 | 193 | | return "german2"; |
| | 194 | | case StemmerTokenFilterLanguage.LightGerman: |
| 0 | 195 | | return "lightGerman"; |
| | 196 | | case StemmerTokenFilterLanguage.MinimalGerman: |
| 0 | 197 | | return "minimalGerman"; |
| | 198 | | case StemmerTokenFilterLanguage.Greek: |
| 0 | 199 | | return "greek"; |
| | 200 | | case StemmerTokenFilterLanguage.Hindi: |
| 0 | 201 | | return "hindi"; |
| | 202 | | case StemmerTokenFilterLanguage.Hungarian: |
| 0 | 203 | | return "hungarian"; |
| | 204 | | case StemmerTokenFilterLanguage.LightHungarian: |
| 0 | 205 | | return "lightHungarian"; |
| | 206 | | case StemmerTokenFilterLanguage.Indonesian: |
| 0 | 207 | | return "indonesian"; |
| | 208 | | case StemmerTokenFilterLanguage.Irish: |
| 0 | 209 | | return "irish"; |
| | 210 | | case StemmerTokenFilterLanguage.Italian: |
| 0 | 211 | | return "italian"; |
| | 212 | | case StemmerTokenFilterLanguage.LightItalian: |
| 0 | 213 | | return "lightItalian"; |
| | 214 | | case StemmerTokenFilterLanguage.Sorani: |
| 0 | 215 | | return "sorani"; |
| | 216 | | case StemmerTokenFilterLanguage.Latvian: |
| 0 | 217 | | return "latvian"; |
| | 218 | | case StemmerTokenFilterLanguage.Norwegian: |
| 0 | 219 | | return "norwegian"; |
| | 220 | | case StemmerTokenFilterLanguage.LightNorwegian: |
| 0 | 221 | | return "lightNorwegian"; |
| | 222 | | case StemmerTokenFilterLanguage.MinimalNorwegian: |
| 0 | 223 | | return "minimalNorwegian"; |
| | 224 | | case StemmerTokenFilterLanguage.LightNynorsk: |
| 0 | 225 | | return "lightNynorsk"; |
| | 226 | | case StemmerTokenFilterLanguage.MinimalNynorsk: |
| 0 | 227 | | return "minimalNynorsk"; |
| | 228 | | case StemmerTokenFilterLanguage.Portuguese: |
| 0 | 229 | | return "portuguese"; |
| | 230 | | case StemmerTokenFilterLanguage.LightPortuguese: |
| 0 | 231 | | return "lightPortuguese"; |
| | 232 | | case StemmerTokenFilterLanguage.MinimalPortuguese: |
| 0 | 233 | | return "minimalPortuguese"; |
| | 234 | | case StemmerTokenFilterLanguage.PortugueseRslp: |
| 0 | 235 | | return "portugueseRslp"; |
| | 236 | | case StemmerTokenFilterLanguage.Romanian: |
| 0 | 237 | | return "romanian"; |
| | 238 | | case StemmerTokenFilterLanguage.Russian: |
| 0 | 239 | | return "russian"; |
| | 240 | | case StemmerTokenFilterLanguage.LightRussian: |
| 0 | 241 | | return "lightRussian"; |
| | 242 | | case StemmerTokenFilterLanguage.Spanish: |
| 0 | 243 | | return "spanish"; |
| | 244 | | case StemmerTokenFilterLanguage.LightSpanish: |
| 0 | 245 | | return "lightSpanish"; |
| | 246 | | case StemmerTokenFilterLanguage.Swedish: |
| 0 | 247 | | return "swedish"; |
| | 248 | | case StemmerTokenFilterLanguage.LightSwedish: |
| 0 | 249 | | return "lightSwedish"; |
| | 250 | | case StemmerTokenFilterLanguage.Turkish: |
| 0 | 251 | | return "turkish"; |
| | 252 | | } |
| 0 | 253 | | return null; |
| | 254 | | } |
| | 255 | |
|
| | 256 | | internal static StemmerTokenFilterLanguage? ParseStemmerTokenFilterLanguage(this string value) |
| | 257 | | { |
| | 258 | | switch( value ) |
| | 259 | | { |
| | 260 | | case "arabic": |
| 0 | 261 | | return StemmerTokenFilterLanguage.Arabic; |
| | 262 | | case "armenian": |
| 0 | 263 | | return StemmerTokenFilterLanguage.Armenian; |
| | 264 | | case "basque": |
| 0 | 265 | | return StemmerTokenFilterLanguage.Basque; |
| | 266 | | case "brazilian": |
| 0 | 267 | | return StemmerTokenFilterLanguage.Brazilian; |
| | 268 | | case "bulgarian": |
| 0 | 269 | | return StemmerTokenFilterLanguage.Bulgarian; |
| | 270 | | case "catalan": |
| 0 | 271 | | return StemmerTokenFilterLanguage.Catalan; |
| | 272 | | case "czech": |
| 0 | 273 | | return StemmerTokenFilterLanguage.Czech; |
| | 274 | | case "danish": |
| 0 | 275 | | return StemmerTokenFilterLanguage.Danish; |
| | 276 | | case "dutch": |
| 0 | 277 | | return StemmerTokenFilterLanguage.Dutch; |
| | 278 | | case "dutchKp": |
| 0 | 279 | | return StemmerTokenFilterLanguage.DutchKp; |
| | 280 | | case "english": |
| 0 | 281 | | return StemmerTokenFilterLanguage.English; |
| | 282 | | case "lightEnglish": |
| 0 | 283 | | return StemmerTokenFilterLanguage.LightEnglish; |
| | 284 | | case "minimalEnglish": |
| 0 | 285 | | return StemmerTokenFilterLanguage.MinimalEnglish; |
| | 286 | | case "possessiveEnglish": |
| 0 | 287 | | return StemmerTokenFilterLanguage.PossessiveEnglish; |
| | 288 | | case "porter2": |
| 0 | 289 | | return StemmerTokenFilterLanguage.Porter2; |
| | 290 | | case "lovins": |
| 0 | 291 | | return StemmerTokenFilterLanguage.Lovins; |
| | 292 | | case "finnish": |
| 0 | 293 | | return StemmerTokenFilterLanguage.Finnish; |
| | 294 | | case "lightFinnish": |
| 0 | 295 | | return StemmerTokenFilterLanguage.LightFinnish; |
| | 296 | | case "french": |
| 0 | 297 | | return StemmerTokenFilterLanguage.French; |
| | 298 | | case "lightFrench": |
| 0 | 299 | | return StemmerTokenFilterLanguage.LightFrench; |
| | 300 | | case "minimalFrench": |
| 0 | 301 | | return StemmerTokenFilterLanguage.MinimalFrench; |
| | 302 | | case "galician": |
| 0 | 303 | | return StemmerTokenFilterLanguage.Galician; |
| | 304 | | case "minimalGalician": |
| 0 | 305 | | return StemmerTokenFilterLanguage.MinimalGalician; |
| | 306 | | case "german": |
| 0 | 307 | | return StemmerTokenFilterLanguage.German; |
| | 308 | | case "german2": |
| 0 | 309 | | return StemmerTokenFilterLanguage.German2; |
| | 310 | | case "lightGerman": |
| 0 | 311 | | return StemmerTokenFilterLanguage.LightGerman; |
| | 312 | | case "minimalGerman": |
| 0 | 313 | | return StemmerTokenFilterLanguage.MinimalGerman; |
| | 314 | | case "greek": |
| 0 | 315 | | return StemmerTokenFilterLanguage.Greek; |
| | 316 | | case "hindi": |
| 0 | 317 | | return StemmerTokenFilterLanguage.Hindi; |
| | 318 | | case "hungarian": |
| 0 | 319 | | return StemmerTokenFilterLanguage.Hungarian; |
| | 320 | | case "lightHungarian": |
| 0 | 321 | | return StemmerTokenFilterLanguage.LightHungarian; |
| | 322 | | case "indonesian": |
| 0 | 323 | | return StemmerTokenFilterLanguage.Indonesian; |
| | 324 | | case "irish": |
| 0 | 325 | | return StemmerTokenFilterLanguage.Irish; |
| | 326 | | case "italian": |
| 0 | 327 | | return StemmerTokenFilterLanguage.Italian; |
| | 328 | | case "lightItalian": |
| 0 | 329 | | return StemmerTokenFilterLanguage.LightItalian; |
| | 330 | | case "sorani": |
| 0 | 331 | | return StemmerTokenFilterLanguage.Sorani; |
| | 332 | | case "latvian": |
| 0 | 333 | | return StemmerTokenFilterLanguage.Latvian; |
| | 334 | | case "norwegian": |
| 0 | 335 | | return StemmerTokenFilterLanguage.Norwegian; |
| | 336 | | case "lightNorwegian": |
| 0 | 337 | | return StemmerTokenFilterLanguage.LightNorwegian; |
| | 338 | | case "minimalNorwegian": |
| 0 | 339 | | return StemmerTokenFilterLanguage.MinimalNorwegian; |
| | 340 | | case "lightNynorsk": |
| 0 | 341 | | return StemmerTokenFilterLanguage.LightNynorsk; |
| | 342 | | case "minimalNynorsk": |
| 0 | 343 | | return StemmerTokenFilterLanguage.MinimalNynorsk; |
| | 344 | | case "portuguese": |
| 0 | 345 | | return StemmerTokenFilterLanguage.Portuguese; |
| | 346 | | case "lightPortuguese": |
| 0 | 347 | | return StemmerTokenFilterLanguage.LightPortuguese; |
| | 348 | | case "minimalPortuguese": |
| 0 | 349 | | return StemmerTokenFilterLanguage.MinimalPortuguese; |
| | 350 | | case "portugueseRslp": |
| 0 | 351 | | return StemmerTokenFilterLanguage.PortugueseRslp; |
| | 352 | | case "romanian": |
| 0 | 353 | | return StemmerTokenFilterLanguage.Romanian; |
| | 354 | | case "russian": |
| 0 | 355 | | return StemmerTokenFilterLanguage.Russian; |
| | 356 | | case "lightRussian": |
| 0 | 357 | | return StemmerTokenFilterLanguage.LightRussian; |
| | 358 | | case "spanish": |
| 0 | 359 | | return StemmerTokenFilterLanguage.Spanish; |
| | 360 | | case "lightSpanish": |
| 0 | 361 | | return StemmerTokenFilterLanguage.LightSpanish; |
| | 362 | | case "swedish": |
| 0 | 363 | | return StemmerTokenFilterLanguage.Swedish; |
| | 364 | | case "lightSwedish": |
| 0 | 365 | | return StemmerTokenFilterLanguage.LightSwedish; |
| | 366 | | case "turkish": |
| 0 | 367 | | return StemmerTokenFilterLanguage.Turkish; |
| | 368 | | } |
| 0 | 369 | | return null; |
| | 370 | | } |
| | 371 | | } |
| | 372 | | } |