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