< Summary

Class:Microsoft.Azure.Search.Models.MicrosoftTokenizerLanguageEnumExtension
Assembly:Microsoft.Azure.Search.Service
File(s):C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Service\src\Generated\Models\MicrosoftTokenizerLanguage.cs
Covered lines:0
Uncovered lines:87
Coverable lines:87
Total lines:300
Line coverage:0% (0 of 87)
Covered branches:0
Total branches:243
Branch coverage:0% (0 of 243)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
ToSerializedValue(...)-0%0%
ToSerializedValue(...)-0%0%
ParseMicrosoftTokenizerLanguage(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Service\src\Generated\Models\MicrosoftTokenizerLanguage.cs

#LineLine coverage
 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
 11namespace 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 MicrosoftTokenizerLanguage.
 20    /// </summary>
 21    [JsonConverter(typeof(StringEnumConverter))]
 22    public enum MicrosoftTokenizerLanguage
 23    {
 24        [EnumMember(Value = "bangla")]
 25        Bangla,
 26        [EnumMember(Value = "bulgarian")]
 27        Bulgarian,
 28        [EnumMember(Value = "catalan")]
 29        Catalan,
 30        [EnumMember(Value = "chineseSimplified")]
 31        ChineseSimplified,
 32        [EnumMember(Value = "chineseTraditional")]
 33        ChineseTraditional,
 34        [EnumMember(Value = "croatian")]
 35        Croatian,
 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 = "french")]
 45        French,
 46        [EnumMember(Value = "german")]
 47        German,
 48        [EnumMember(Value = "greek")]
 49        Greek,
 50        [EnumMember(Value = "gujarati")]
 51        Gujarati,
 52        [EnumMember(Value = "hindi")]
 53        Hindi,
 54        [EnumMember(Value = "icelandic")]
 55        Icelandic,
 56        [EnumMember(Value = "indonesian")]
 57        Indonesian,
 58        [EnumMember(Value = "italian")]
 59        Italian,
 60        [EnumMember(Value = "japanese")]
 61        Japanese,
 62        [EnumMember(Value = "kannada")]
 63        Kannada,
 64        [EnumMember(Value = "korean")]
 65        Korean,
 66        [EnumMember(Value = "malay")]
 67        Malay,
 68        [EnumMember(Value = "malayalam")]
 69        Malayalam,
 70        [EnumMember(Value = "marathi")]
 71        Marathi,
 72        [EnumMember(Value = "norwegianBokmaal")]
 73        NorwegianBokmaal,
 74        [EnumMember(Value = "polish")]
 75        Polish,
 76        [EnumMember(Value = "portuguese")]
 77        Portuguese,
 78        [EnumMember(Value = "portugueseBrazilian")]
 79        PortugueseBrazilian,
 80        [EnumMember(Value = "punjabi")]
 81        Punjabi,
 82        [EnumMember(Value = "romanian")]
 83        Romanian,
 84        [EnumMember(Value = "russian")]
 85        Russian,
 86        [EnumMember(Value = "serbianCyrillic")]
 87        SerbianCyrillic,
 88        [EnumMember(Value = "serbianLatin")]
 89        SerbianLatin,
 90        [EnumMember(Value = "slovenian")]
 91        Slovenian,
 92        [EnumMember(Value = "spanish")]
 93        Spanish,
 94        [EnumMember(Value = "swedish")]
 95        Swedish,
 96        [EnumMember(Value = "tamil")]
 97        Tamil,
 98        [EnumMember(Value = "telugu")]
 99        Telugu,
 100        [EnumMember(Value = "thai")]
 101        Thai,
 102        [EnumMember(Value = "ukrainian")]
 103        Ukrainian,
 104        [EnumMember(Value = "urdu")]
 105        Urdu,
 106        [EnumMember(Value = "vietnamese")]
 107        Vietnamese
 108    }
 109    internal static class MicrosoftTokenizerLanguageEnumExtension
 110    {
 111        internal static string ToSerializedValue(this MicrosoftTokenizerLanguage? value)
 112        {
 0113            return value == null ? null : ((MicrosoftTokenizerLanguage)value).ToSerializedValue();
 114        }
 115
 116        internal static string ToSerializedValue(this MicrosoftTokenizerLanguage value)
 117        {
 118            switch( value )
 119            {
 120                case MicrosoftTokenizerLanguage.Bangla:
 0121                    return "bangla";
 122                case MicrosoftTokenizerLanguage.Bulgarian:
 0123                    return "bulgarian";
 124                case MicrosoftTokenizerLanguage.Catalan:
 0125                    return "catalan";
 126                case MicrosoftTokenizerLanguage.ChineseSimplified:
 0127                    return "chineseSimplified";
 128                case MicrosoftTokenizerLanguage.ChineseTraditional:
 0129                    return "chineseTraditional";
 130                case MicrosoftTokenizerLanguage.Croatian:
 0131                    return "croatian";
 132                case MicrosoftTokenizerLanguage.Czech:
 0133                    return "czech";
 134                case MicrosoftTokenizerLanguage.Danish:
 0135                    return "danish";
 136                case MicrosoftTokenizerLanguage.Dutch:
 0137                    return "dutch";
 138                case MicrosoftTokenizerLanguage.English:
 0139                    return "english";
 140                case MicrosoftTokenizerLanguage.French:
 0141                    return "french";
 142                case MicrosoftTokenizerLanguage.German:
 0143                    return "german";
 144                case MicrosoftTokenizerLanguage.Greek:
 0145                    return "greek";
 146                case MicrosoftTokenizerLanguage.Gujarati:
 0147                    return "gujarati";
 148                case MicrosoftTokenizerLanguage.Hindi:
 0149                    return "hindi";
 150                case MicrosoftTokenizerLanguage.Icelandic:
 0151                    return "icelandic";
 152                case MicrosoftTokenizerLanguage.Indonesian:
 0153                    return "indonesian";
 154                case MicrosoftTokenizerLanguage.Italian:
 0155                    return "italian";
 156                case MicrosoftTokenizerLanguage.Japanese:
 0157                    return "japanese";
 158                case MicrosoftTokenizerLanguage.Kannada:
 0159                    return "kannada";
 160                case MicrosoftTokenizerLanguage.Korean:
 0161                    return "korean";
 162                case MicrosoftTokenizerLanguage.Malay:
 0163                    return "malay";
 164                case MicrosoftTokenizerLanguage.Malayalam:
 0165                    return "malayalam";
 166                case MicrosoftTokenizerLanguage.Marathi:
 0167                    return "marathi";
 168                case MicrosoftTokenizerLanguage.NorwegianBokmaal:
 0169                    return "norwegianBokmaal";
 170                case MicrosoftTokenizerLanguage.Polish:
 0171                    return "polish";
 172                case MicrosoftTokenizerLanguage.Portuguese:
 0173                    return "portuguese";
 174                case MicrosoftTokenizerLanguage.PortugueseBrazilian:
 0175                    return "portugueseBrazilian";
 176                case MicrosoftTokenizerLanguage.Punjabi:
 0177                    return "punjabi";
 178                case MicrosoftTokenizerLanguage.Romanian:
 0179                    return "romanian";
 180                case MicrosoftTokenizerLanguage.Russian:
 0181                    return "russian";
 182                case MicrosoftTokenizerLanguage.SerbianCyrillic:
 0183                    return "serbianCyrillic";
 184                case MicrosoftTokenizerLanguage.SerbianLatin:
 0185                    return "serbianLatin";
 186                case MicrosoftTokenizerLanguage.Slovenian:
 0187                    return "slovenian";
 188                case MicrosoftTokenizerLanguage.Spanish:
 0189                    return "spanish";
 190                case MicrosoftTokenizerLanguage.Swedish:
 0191                    return "swedish";
 192                case MicrosoftTokenizerLanguage.Tamil:
 0193                    return "tamil";
 194                case MicrosoftTokenizerLanguage.Telugu:
 0195                    return "telugu";
 196                case MicrosoftTokenizerLanguage.Thai:
 0197                    return "thai";
 198                case MicrosoftTokenizerLanguage.Ukrainian:
 0199                    return "ukrainian";
 200                case MicrosoftTokenizerLanguage.Urdu:
 0201                    return "urdu";
 202                case MicrosoftTokenizerLanguage.Vietnamese:
 0203                    return "vietnamese";
 204            }
 0205            return null;
 206        }
 207
 208        internal static MicrosoftTokenizerLanguage? ParseMicrosoftTokenizerLanguage(this string value)
 209        {
 210            switch( value )
 211            {
 212                case "bangla":
 0213                    return MicrosoftTokenizerLanguage.Bangla;
 214                case "bulgarian":
 0215                    return MicrosoftTokenizerLanguage.Bulgarian;
 216                case "catalan":
 0217                    return MicrosoftTokenizerLanguage.Catalan;
 218                case "chineseSimplified":
 0219                    return MicrosoftTokenizerLanguage.ChineseSimplified;
 220                case "chineseTraditional":
 0221                    return MicrosoftTokenizerLanguage.ChineseTraditional;
 222                case "croatian":
 0223                    return MicrosoftTokenizerLanguage.Croatian;
 224                case "czech":
 0225                    return MicrosoftTokenizerLanguage.Czech;
 226                case "danish":
 0227                    return MicrosoftTokenizerLanguage.Danish;
 228                case "dutch":
 0229                    return MicrosoftTokenizerLanguage.Dutch;
 230                case "english":
 0231                    return MicrosoftTokenizerLanguage.English;
 232                case "french":
 0233                    return MicrosoftTokenizerLanguage.French;
 234                case "german":
 0235                    return MicrosoftTokenizerLanguage.German;
 236                case "greek":
 0237                    return MicrosoftTokenizerLanguage.Greek;
 238                case "gujarati":
 0239                    return MicrosoftTokenizerLanguage.Gujarati;
 240                case "hindi":
 0241                    return MicrosoftTokenizerLanguage.Hindi;
 242                case "icelandic":
 0243                    return MicrosoftTokenizerLanguage.Icelandic;
 244                case "indonesian":
 0245                    return MicrosoftTokenizerLanguage.Indonesian;
 246                case "italian":
 0247                    return MicrosoftTokenizerLanguage.Italian;
 248                case "japanese":
 0249                    return MicrosoftTokenizerLanguage.Japanese;
 250                case "kannada":
 0251                    return MicrosoftTokenizerLanguage.Kannada;
 252                case "korean":
 0253                    return MicrosoftTokenizerLanguage.Korean;
 254                case "malay":
 0255                    return MicrosoftTokenizerLanguage.Malay;
 256                case "malayalam":
 0257                    return MicrosoftTokenizerLanguage.Malayalam;
 258                case "marathi":
 0259                    return MicrosoftTokenizerLanguage.Marathi;
 260                case "norwegianBokmaal":
 0261                    return MicrosoftTokenizerLanguage.NorwegianBokmaal;
 262                case "polish":
 0263                    return MicrosoftTokenizerLanguage.Polish;
 264                case "portuguese":
 0265                    return MicrosoftTokenizerLanguage.Portuguese;
 266                case "portugueseBrazilian":
 0267                    return MicrosoftTokenizerLanguage.PortugueseBrazilian;
 268                case "punjabi":
 0269                    return MicrosoftTokenizerLanguage.Punjabi;
 270                case "romanian":
 0271                    return MicrosoftTokenizerLanguage.Romanian;
 272                case "russian":
 0273                    return MicrosoftTokenizerLanguage.Russian;
 274                case "serbianCyrillic":
 0275                    return MicrosoftTokenizerLanguage.SerbianCyrillic;
 276                case "serbianLatin":
 0277                    return MicrosoftTokenizerLanguage.SerbianLatin;
 278                case "slovenian":
 0279                    return MicrosoftTokenizerLanguage.Slovenian;
 280                case "spanish":
 0281                    return MicrosoftTokenizerLanguage.Spanish;
 282                case "swedish":
 0283                    return MicrosoftTokenizerLanguage.Swedish;
 284                case "tamil":
 0285                    return MicrosoftTokenizerLanguage.Tamil;
 286                case "telugu":
 0287                    return MicrosoftTokenizerLanguage.Telugu;
 288                case "thai":
 0289                    return MicrosoftTokenizerLanguage.Thai;
 290                case "ukrainian":
 0291                    return MicrosoftTokenizerLanguage.Ukrainian;
 292                case "urdu":
 0293                    return MicrosoftTokenizerLanguage.Urdu;
 294                case "vietnamese":
 0295                    return MicrosoftTokenizerLanguage.Vietnamese;
 296            }
 0297            return null;
 298        }
 299    }
 300}