| | 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 SnowballTokenFilterLanguage. |
| | 20 | | /// </summary> |
| | 21 | | [JsonConverter(typeof(StringEnumConverter))] |
| | 22 | | public enum SnowballTokenFilterLanguage |
| | 23 | | { |
| | 24 | | [EnumMember(Value = "armenian")] |
| | 25 | | Armenian, |
| | 26 | | [EnumMember(Value = "basque")] |
| | 27 | | Basque, |
| | 28 | | [EnumMember(Value = "catalan")] |
| | 29 | | Catalan, |
| | 30 | | [EnumMember(Value = "danish")] |
| | 31 | | Danish, |
| | 32 | | [EnumMember(Value = "dutch")] |
| | 33 | | Dutch, |
| | 34 | | [EnumMember(Value = "english")] |
| | 35 | | English, |
| | 36 | | [EnumMember(Value = "finnish")] |
| | 37 | | Finnish, |
| | 38 | | [EnumMember(Value = "french")] |
| | 39 | | French, |
| | 40 | | [EnumMember(Value = "german")] |
| | 41 | | German, |
| | 42 | | [EnumMember(Value = "german2")] |
| | 43 | | German2, |
| | 44 | | [EnumMember(Value = "hungarian")] |
| | 45 | | Hungarian, |
| | 46 | | [EnumMember(Value = "italian")] |
| | 47 | | Italian, |
| | 48 | | [EnumMember(Value = "kp")] |
| | 49 | | Kp, |
| | 50 | | [EnumMember(Value = "lovins")] |
| | 51 | | Lovins, |
| | 52 | | [EnumMember(Value = "norwegian")] |
| | 53 | | Norwegian, |
| | 54 | | [EnumMember(Value = "porter")] |
| | 55 | | Porter, |
| | 56 | | [EnumMember(Value = "portuguese")] |
| | 57 | | Portuguese, |
| | 58 | | [EnumMember(Value = "romanian")] |
| | 59 | | Romanian, |
| | 60 | | [EnumMember(Value = "russian")] |
| | 61 | | Russian, |
| | 62 | | [EnumMember(Value = "spanish")] |
| | 63 | | Spanish, |
| | 64 | | [EnumMember(Value = "swedish")] |
| | 65 | | Swedish, |
| | 66 | | [EnumMember(Value = "turkish")] |
| | 67 | | Turkish |
| | 68 | | } |
| | 69 | | internal static class SnowballTokenFilterLanguageEnumExtension |
| | 70 | | { |
| | 71 | | internal static string ToSerializedValue(this SnowballTokenFilterLanguage? value) |
| | 72 | | { |
| 0 | 73 | | return value == null ? null : ((SnowballTokenFilterLanguage)value).ToSerializedValue(); |
| | 74 | | } |
| | 75 | |
|
| | 76 | | internal static string ToSerializedValue(this SnowballTokenFilterLanguage value) |
| | 77 | | { |
| | 78 | | switch( value ) |
| | 79 | | { |
| | 80 | | case SnowballTokenFilterLanguage.Armenian: |
| 0 | 81 | | return "armenian"; |
| | 82 | | case SnowballTokenFilterLanguage.Basque: |
| 0 | 83 | | return "basque"; |
| | 84 | | case SnowballTokenFilterLanguage.Catalan: |
| 0 | 85 | | return "catalan"; |
| | 86 | | case SnowballTokenFilterLanguage.Danish: |
| 0 | 87 | | return "danish"; |
| | 88 | | case SnowballTokenFilterLanguage.Dutch: |
| 0 | 89 | | return "dutch"; |
| | 90 | | case SnowballTokenFilterLanguage.English: |
| 0 | 91 | | return "english"; |
| | 92 | | case SnowballTokenFilterLanguage.Finnish: |
| 0 | 93 | | return "finnish"; |
| | 94 | | case SnowballTokenFilterLanguage.French: |
| 0 | 95 | | return "french"; |
| | 96 | | case SnowballTokenFilterLanguage.German: |
| 0 | 97 | | return "german"; |
| | 98 | | case SnowballTokenFilterLanguage.German2: |
| 0 | 99 | | return "german2"; |
| | 100 | | case SnowballTokenFilterLanguage.Hungarian: |
| 0 | 101 | | return "hungarian"; |
| | 102 | | case SnowballTokenFilterLanguage.Italian: |
| 0 | 103 | | return "italian"; |
| | 104 | | case SnowballTokenFilterLanguage.Kp: |
| 0 | 105 | | return "kp"; |
| | 106 | | case SnowballTokenFilterLanguage.Lovins: |
| 0 | 107 | | return "lovins"; |
| | 108 | | case SnowballTokenFilterLanguage.Norwegian: |
| 0 | 109 | | return "norwegian"; |
| | 110 | | case SnowballTokenFilterLanguage.Porter: |
| 0 | 111 | | return "porter"; |
| | 112 | | case SnowballTokenFilterLanguage.Portuguese: |
| 0 | 113 | | return "portuguese"; |
| | 114 | | case SnowballTokenFilterLanguage.Romanian: |
| 0 | 115 | | return "romanian"; |
| | 116 | | case SnowballTokenFilterLanguage.Russian: |
| 0 | 117 | | return "russian"; |
| | 118 | | case SnowballTokenFilterLanguage.Spanish: |
| 0 | 119 | | return "spanish"; |
| | 120 | | case SnowballTokenFilterLanguage.Swedish: |
| 0 | 121 | | return "swedish"; |
| | 122 | | case SnowballTokenFilterLanguage.Turkish: |
| 0 | 123 | | return "turkish"; |
| | 124 | | } |
| 0 | 125 | | return null; |
| | 126 | | } |
| | 127 | |
|
| | 128 | | internal static SnowballTokenFilterLanguage? ParseSnowballTokenFilterLanguage(this string value) |
| | 129 | | { |
| | 130 | | switch( value ) |
| | 131 | | { |
| | 132 | | case "armenian": |
| 0 | 133 | | return SnowballTokenFilterLanguage.Armenian; |
| | 134 | | case "basque": |
| 0 | 135 | | return SnowballTokenFilterLanguage.Basque; |
| | 136 | | case "catalan": |
| 0 | 137 | | return SnowballTokenFilterLanguage.Catalan; |
| | 138 | | case "danish": |
| 0 | 139 | | return SnowballTokenFilterLanguage.Danish; |
| | 140 | | case "dutch": |
| 0 | 141 | | return SnowballTokenFilterLanguage.Dutch; |
| | 142 | | case "english": |
| 0 | 143 | | return SnowballTokenFilterLanguage.English; |
| | 144 | | case "finnish": |
| 0 | 145 | | return SnowballTokenFilterLanguage.Finnish; |
| | 146 | | case "french": |
| 0 | 147 | | return SnowballTokenFilterLanguage.French; |
| | 148 | | case "german": |
| 0 | 149 | | return SnowballTokenFilterLanguage.German; |
| | 150 | | case "german2": |
| 0 | 151 | | return SnowballTokenFilterLanguage.German2; |
| | 152 | | case "hungarian": |
| 0 | 153 | | return SnowballTokenFilterLanguage.Hungarian; |
| | 154 | | case "italian": |
| 0 | 155 | | return SnowballTokenFilterLanguage.Italian; |
| | 156 | | case "kp": |
| 0 | 157 | | return SnowballTokenFilterLanguage.Kp; |
| | 158 | | case "lovins": |
| 0 | 159 | | return SnowballTokenFilterLanguage.Lovins; |
| | 160 | | case "norwegian": |
| 0 | 161 | | return SnowballTokenFilterLanguage.Norwegian; |
| | 162 | | case "porter": |
| 0 | 163 | | return SnowballTokenFilterLanguage.Porter; |
| | 164 | | case "portuguese": |
| 0 | 165 | | return SnowballTokenFilterLanguage.Portuguese; |
| | 166 | | case "romanian": |
| 0 | 167 | | return SnowballTokenFilterLanguage.Romanian; |
| | 168 | | case "russian": |
| 0 | 169 | | return SnowballTokenFilterLanguage.Russian; |
| | 170 | | case "spanish": |
| 0 | 171 | | return SnowballTokenFilterLanguage.Spanish; |
| | 172 | | case "swedish": |
| 0 | 173 | | return SnowballTokenFilterLanguage.Swedish; |
| | 174 | | case "turkish": |
| 0 | 175 | | return SnowballTokenFilterLanguage.Turkish; |
| | 176 | | } |
| 0 | 177 | | return null; |
| | 178 | | } |
| | 179 | | } |
| | 180 | | } |