| | 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 StopwordsList. |
| | 20 | | /// </summary> |
| | 21 | | [JsonConverter(typeof(StringEnumConverter))] |
| | 22 | | public enum StopwordsList |
| | 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 = "english")] |
| | 43 | | English, |
| | 44 | | [EnumMember(Value = "finnish")] |
| | 45 | | Finnish, |
| | 46 | | [EnumMember(Value = "french")] |
| | 47 | | French, |
| | 48 | | [EnumMember(Value = "galician")] |
| | 49 | | Galician, |
| | 50 | | [EnumMember(Value = "german")] |
| | 51 | | German, |
| | 52 | | [EnumMember(Value = "greek")] |
| | 53 | | Greek, |
| | 54 | | [EnumMember(Value = "hindi")] |
| | 55 | | Hindi, |
| | 56 | | [EnumMember(Value = "hungarian")] |
| | 57 | | Hungarian, |
| | 58 | | [EnumMember(Value = "indonesian")] |
| | 59 | | Indonesian, |
| | 60 | | [EnumMember(Value = "irish")] |
| | 61 | | Irish, |
| | 62 | | [EnumMember(Value = "italian")] |
| | 63 | | Italian, |
| | 64 | | [EnumMember(Value = "latvian")] |
| | 65 | | Latvian, |
| | 66 | | [EnumMember(Value = "norwegian")] |
| | 67 | | Norwegian, |
| | 68 | | [EnumMember(Value = "persian")] |
| | 69 | | Persian, |
| | 70 | | [EnumMember(Value = "portuguese")] |
| | 71 | | Portuguese, |
| | 72 | | [EnumMember(Value = "romanian")] |
| | 73 | | Romanian, |
| | 74 | | [EnumMember(Value = "russian")] |
| | 75 | | Russian, |
| | 76 | | [EnumMember(Value = "sorani")] |
| | 77 | | Sorani, |
| | 78 | | [EnumMember(Value = "spanish")] |
| | 79 | | Spanish, |
| | 80 | | [EnumMember(Value = "swedish")] |
| | 81 | | Swedish, |
| | 82 | | [EnumMember(Value = "thai")] |
| | 83 | | Thai, |
| | 84 | | [EnumMember(Value = "turkish")] |
| | 85 | | Turkish |
| | 86 | | } |
| | 87 | | internal static class StopwordsListEnumExtension |
| | 88 | | { |
| | 89 | | internal static string ToSerializedValue(this StopwordsList? value) |
| | 90 | | { |
| 0 | 91 | | return value == null ? null : ((StopwordsList)value).ToSerializedValue(); |
| | 92 | | } |
| | 93 | |
|
| | 94 | | internal static string ToSerializedValue(this StopwordsList value) |
| | 95 | | { |
| | 96 | | switch( value ) |
| | 97 | | { |
| | 98 | | case StopwordsList.Arabic: |
| 0 | 99 | | return "arabic"; |
| | 100 | | case StopwordsList.Armenian: |
| 0 | 101 | | return "armenian"; |
| | 102 | | case StopwordsList.Basque: |
| 0 | 103 | | return "basque"; |
| | 104 | | case StopwordsList.Brazilian: |
| 0 | 105 | | return "brazilian"; |
| | 106 | | case StopwordsList.Bulgarian: |
| 0 | 107 | | return "bulgarian"; |
| | 108 | | case StopwordsList.Catalan: |
| 0 | 109 | | return "catalan"; |
| | 110 | | case StopwordsList.Czech: |
| 0 | 111 | | return "czech"; |
| | 112 | | case StopwordsList.Danish: |
| 0 | 113 | | return "danish"; |
| | 114 | | case StopwordsList.Dutch: |
| 0 | 115 | | return "dutch"; |
| | 116 | | case StopwordsList.English: |
| 0 | 117 | | return "english"; |
| | 118 | | case StopwordsList.Finnish: |
| 0 | 119 | | return "finnish"; |
| | 120 | | case StopwordsList.French: |
| 0 | 121 | | return "french"; |
| | 122 | | case StopwordsList.Galician: |
| 0 | 123 | | return "galician"; |
| | 124 | | case StopwordsList.German: |
| 0 | 125 | | return "german"; |
| | 126 | | case StopwordsList.Greek: |
| 0 | 127 | | return "greek"; |
| | 128 | | case StopwordsList.Hindi: |
| 0 | 129 | | return "hindi"; |
| | 130 | | case StopwordsList.Hungarian: |
| 0 | 131 | | return "hungarian"; |
| | 132 | | case StopwordsList.Indonesian: |
| 0 | 133 | | return "indonesian"; |
| | 134 | | case StopwordsList.Irish: |
| 0 | 135 | | return "irish"; |
| | 136 | | case StopwordsList.Italian: |
| 0 | 137 | | return "italian"; |
| | 138 | | case StopwordsList.Latvian: |
| 0 | 139 | | return "latvian"; |
| | 140 | | case StopwordsList.Norwegian: |
| 0 | 141 | | return "norwegian"; |
| | 142 | | case StopwordsList.Persian: |
| 0 | 143 | | return "persian"; |
| | 144 | | case StopwordsList.Portuguese: |
| 0 | 145 | | return "portuguese"; |
| | 146 | | case StopwordsList.Romanian: |
| 0 | 147 | | return "romanian"; |
| | 148 | | case StopwordsList.Russian: |
| 0 | 149 | | return "russian"; |
| | 150 | | case StopwordsList.Sorani: |
| 0 | 151 | | return "sorani"; |
| | 152 | | case StopwordsList.Spanish: |
| 0 | 153 | | return "spanish"; |
| | 154 | | case StopwordsList.Swedish: |
| 0 | 155 | | return "swedish"; |
| | 156 | | case StopwordsList.Thai: |
| 0 | 157 | | return "thai"; |
| | 158 | | case StopwordsList.Turkish: |
| 0 | 159 | | return "turkish"; |
| | 160 | | } |
| 0 | 161 | | return null; |
| | 162 | | } |
| | 163 | |
|
| | 164 | | internal static StopwordsList? ParseStopwordsList(this string value) |
| | 165 | | { |
| | 166 | | switch( value ) |
| | 167 | | { |
| | 168 | | case "arabic": |
| 0 | 169 | | return StopwordsList.Arabic; |
| | 170 | | case "armenian": |
| 0 | 171 | | return StopwordsList.Armenian; |
| | 172 | | case "basque": |
| 0 | 173 | | return StopwordsList.Basque; |
| | 174 | | case "brazilian": |
| 0 | 175 | | return StopwordsList.Brazilian; |
| | 176 | | case "bulgarian": |
| 0 | 177 | | return StopwordsList.Bulgarian; |
| | 178 | | case "catalan": |
| 0 | 179 | | return StopwordsList.Catalan; |
| | 180 | | case "czech": |
| 0 | 181 | | return StopwordsList.Czech; |
| | 182 | | case "danish": |
| 0 | 183 | | return StopwordsList.Danish; |
| | 184 | | case "dutch": |
| 0 | 185 | | return StopwordsList.Dutch; |
| | 186 | | case "english": |
| 0 | 187 | | return StopwordsList.English; |
| | 188 | | case "finnish": |
| 0 | 189 | | return StopwordsList.Finnish; |
| | 190 | | case "french": |
| 0 | 191 | | return StopwordsList.French; |
| | 192 | | case "galician": |
| 0 | 193 | | return StopwordsList.Galician; |
| | 194 | | case "german": |
| 0 | 195 | | return StopwordsList.German; |
| | 196 | | case "greek": |
| 0 | 197 | | return StopwordsList.Greek; |
| | 198 | | case "hindi": |
| 0 | 199 | | return StopwordsList.Hindi; |
| | 200 | | case "hungarian": |
| 0 | 201 | | return StopwordsList.Hungarian; |
| | 202 | | case "indonesian": |
| 0 | 203 | | return StopwordsList.Indonesian; |
| | 204 | | case "irish": |
| 0 | 205 | | return StopwordsList.Irish; |
| | 206 | | case "italian": |
| 0 | 207 | | return StopwordsList.Italian; |
| | 208 | | case "latvian": |
| 0 | 209 | | return StopwordsList.Latvian; |
| | 210 | | case "norwegian": |
| 0 | 211 | | return StopwordsList.Norwegian; |
| | 212 | | case "persian": |
| 0 | 213 | | return StopwordsList.Persian; |
| | 214 | | case "portuguese": |
| 0 | 215 | | return StopwordsList.Portuguese; |
| | 216 | | case "romanian": |
| 0 | 217 | | return StopwordsList.Romanian; |
| | 218 | | case "russian": |
| 0 | 219 | | return StopwordsList.Russian; |
| | 220 | | case "sorani": |
| 0 | 221 | | return StopwordsList.Sorani; |
| | 222 | | case "spanish": |
| 0 | 223 | | return StopwordsList.Spanish; |
| | 224 | | case "swedish": |
| 0 | 225 | | return StopwordsList.Swedish; |
| | 226 | | case "thai": |
| 0 | 227 | | return StopwordsList.Thai; |
| | 228 | | case "turkish": |
| 0 | 229 | | return StopwordsList.Turkish; |
| | 230 | | } |
| 0 | 231 | | return null; |
| | 232 | | } |
| | 233 | | } |
| | 234 | | } |