| | 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 SentimentSkillLanguage. |
| | 20 | | /// </summary> |
| | 21 | | [JsonConverter(typeof(StringEnumConverter))] |
| | 22 | | public enum SentimentSkillLanguage |
| | 23 | | { |
| | 24 | | [EnumMember(Value = "da")] |
| | 25 | | Da, |
| | 26 | | [EnumMember(Value = "nl")] |
| | 27 | | Nl, |
| | 28 | | [EnumMember(Value = "en")] |
| | 29 | | En, |
| | 30 | | [EnumMember(Value = "fi")] |
| | 31 | | Fi, |
| | 32 | | [EnumMember(Value = "fr")] |
| | 33 | | Fr, |
| | 34 | | [EnumMember(Value = "de")] |
| | 35 | | De, |
| | 36 | | [EnumMember(Value = "el")] |
| | 37 | | El, |
| | 38 | | [EnumMember(Value = "it")] |
| | 39 | | It, |
| | 40 | | [EnumMember(Value = "no")] |
| | 41 | | No, |
| | 42 | | [EnumMember(Value = "pl")] |
| | 43 | | Pl, |
| | 44 | | [EnumMember(Value = "pt-PT")] |
| | 45 | | PtPT, |
| | 46 | | [EnumMember(Value = "ru")] |
| | 47 | | Ru, |
| | 48 | | [EnumMember(Value = "es")] |
| | 49 | | Es, |
| | 50 | | [EnumMember(Value = "sv")] |
| | 51 | | Sv, |
| | 52 | | [EnumMember(Value = "tr")] |
| | 53 | | Tr |
| | 54 | | } |
| | 55 | | internal static class SentimentSkillLanguageEnumExtension |
| | 56 | | { |
| | 57 | | internal static string ToSerializedValue(this SentimentSkillLanguage? value) |
| | 58 | | { |
| 0 | 59 | | return value == null ? null : ((SentimentSkillLanguage)value).ToSerializedValue(); |
| | 60 | | } |
| | 61 | |
|
| | 62 | | internal static string ToSerializedValue(this SentimentSkillLanguage value) |
| | 63 | | { |
| | 64 | | switch( value ) |
| | 65 | | { |
| | 66 | | case SentimentSkillLanguage.Da: |
| 0 | 67 | | return "da"; |
| | 68 | | case SentimentSkillLanguage.Nl: |
| 0 | 69 | | return "nl"; |
| | 70 | | case SentimentSkillLanguage.En: |
| 0 | 71 | | return "en"; |
| | 72 | | case SentimentSkillLanguage.Fi: |
| 0 | 73 | | return "fi"; |
| | 74 | | case SentimentSkillLanguage.Fr: |
| 0 | 75 | | return "fr"; |
| | 76 | | case SentimentSkillLanguage.De: |
| 0 | 77 | | return "de"; |
| | 78 | | case SentimentSkillLanguage.El: |
| 0 | 79 | | return "el"; |
| | 80 | | case SentimentSkillLanguage.It: |
| 0 | 81 | | return "it"; |
| | 82 | | case SentimentSkillLanguage.No: |
| 0 | 83 | | return "no"; |
| | 84 | | case SentimentSkillLanguage.Pl: |
| 0 | 85 | | return "pl"; |
| | 86 | | case SentimentSkillLanguage.PtPT: |
| 0 | 87 | | return "pt-PT"; |
| | 88 | | case SentimentSkillLanguage.Ru: |
| 0 | 89 | | return "ru"; |
| | 90 | | case SentimentSkillLanguage.Es: |
| 0 | 91 | | return "es"; |
| | 92 | | case SentimentSkillLanguage.Sv: |
| 0 | 93 | | return "sv"; |
| | 94 | | case SentimentSkillLanguage.Tr: |
| 0 | 95 | | return "tr"; |
| | 96 | | } |
| 0 | 97 | | return null; |
| | 98 | | } |
| | 99 | |
|
| | 100 | | internal static SentimentSkillLanguage? ParseSentimentSkillLanguage(this string value) |
| | 101 | | { |
| | 102 | | switch( value ) |
| | 103 | | { |
| | 104 | | case "da": |
| 0 | 105 | | return SentimentSkillLanguage.Da; |
| | 106 | | case "nl": |
| 0 | 107 | | return SentimentSkillLanguage.Nl; |
| | 108 | | case "en": |
| 0 | 109 | | return SentimentSkillLanguage.En; |
| | 110 | | case "fi": |
| 0 | 111 | | return SentimentSkillLanguage.Fi; |
| | 112 | | case "fr": |
| 0 | 113 | | return SentimentSkillLanguage.Fr; |
| | 114 | | case "de": |
| 0 | 115 | | return SentimentSkillLanguage.De; |
| | 116 | | case "el": |
| 0 | 117 | | return SentimentSkillLanguage.El; |
| | 118 | | case "it": |
| 0 | 119 | | return SentimentSkillLanguage.It; |
| | 120 | | case "no": |
| 0 | 121 | | return SentimentSkillLanguage.No; |
| | 122 | | case "pl": |
| 0 | 123 | | return SentimentSkillLanguage.Pl; |
| | 124 | | case "pt-PT": |
| 0 | 125 | | return SentimentSkillLanguage.PtPT; |
| | 126 | | case "ru": |
| 0 | 127 | | return SentimentSkillLanguage.Ru; |
| | 128 | | case "es": |
| 0 | 129 | | return SentimentSkillLanguage.Es; |
| | 130 | | case "sv": |
| 0 | 131 | | return SentimentSkillLanguage.Sv; |
| | 132 | | case "tr": |
| 0 | 133 | | return SentimentSkillLanguage.Tr; |
| | 134 | | } |
| 0 | 135 | | return null; |
| | 136 | | } |
| | 137 | | } |
| | 138 | | } |