< Summary

Class:Microsoft.Azure.Search.Models.MicrosoftStemmingTokenizerLanguageEnumExtension
Assembly:Microsoft.Azure.Search.Service
File(s):C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Service\src\Generated\Models\MicrosoftStemmingTokenizerLanguage.cs
Covered lines:0
Uncovered lines:93
Coverable lines:93
Total lines:318
Line coverage:0% (0 of 93)
Covered branches:0
Total branches:258
Branch coverage:0% (0 of 258)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Service\src\Generated\Models\MicrosoftStemmingTokenizerLanguage.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 MicrosoftStemmingTokenizerLanguage.
 20    /// </summary>
 21    [JsonConverter(typeof(StringEnumConverter))]
 22    public enum MicrosoftStemmingTokenizerLanguage
 23    {
 24        [EnumMember(Value = "arabic")]
 25        Arabic,
 26        [EnumMember(Value = "bangla")]
 27        Bangla,
 28        [EnumMember(Value = "bulgarian")]
 29        Bulgarian,
 30        [EnumMember(Value = "catalan")]
 31        Catalan,
 32        [EnumMember(Value = "croatian")]
 33        Croatian,
 34        [EnumMember(Value = "czech")]
 35        Czech,
 36        [EnumMember(Value = "danish")]
 37        Danish,
 38        [EnumMember(Value = "dutch")]
 39        Dutch,
 40        [EnumMember(Value = "english")]
 41        English,
 42        [EnumMember(Value = "estonian")]
 43        Estonian,
 44        [EnumMember(Value = "finnish")]
 45        Finnish,
 46        [EnumMember(Value = "french")]
 47        French,
 48        [EnumMember(Value = "german")]
 49        German,
 50        [EnumMember(Value = "greek")]
 51        Greek,
 52        [EnumMember(Value = "gujarati")]
 53        Gujarati,
 54        [EnumMember(Value = "hebrew")]
 55        Hebrew,
 56        [EnumMember(Value = "hindi")]
 57        Hindi,
 58        [EnumMember(Value = "hungarian")]
 59        Hungarian,
 60        [EnumMember(Value = "icelandic")]
 61        Icelandic,
 62        [EnumMember(Value = "indonesian")]
 63        Indonesian,
 64        [EnumMember(Value = "italian")]
 65        Italian,
 66        [EnumMember(Value = "kannada")]
 67        Kannada,
 68        [EnumMember(Value = "latvian")]
 69        Latvian,
 70        [EnumMember(Value = "lithuanian")]
 71        Lithuanian,
 72        [EnumMember(Value = "malay")]
 73        Malay,
 74        [EnumMember(Value = "malayalam")]
 75        Malayalam,
 76        [EnumMember(Value = "marathi")]
 77        Marathi,
 78        [EnumMember(Value = "norwegianBokmaal")]
 79        NorwegianBokmaal,
 80        [EnumMember(Value = "polish")]
 81        Polish,
 82        [EnumMember(Value = "portuguese")]
 83        Portuguese,
 84        [EnumMember(Value = "portugueseBrazilian")]
 85        PortugueseBrazilian,
 86        [EnumMember(Value = "punjabi")]
 87        Punjabi,
 88        [EnumMember(Value = "romanian")]
 89        Romanian,
 90        [EnumMember(Value = "russian")]
 91        Russian,
 92        [EnumMember(Value = "serbianCyrillic")]
 93        SerbianCyrillic,
 94        [EnumMember(Value = "serbianLatin")]
 95        SerbianLatin,
 96        [EnumMember(Value = "slovak")]
 97        Slovak,
 98        [EnumMember(Value = "slovenian")]
 99        Slovenian,
 100        [EnumMember(Value = "spanish")]
 101        Spanish,
 102        [EnumMember(Value = "swedish")]
 103        Swedish,
 104        [EnumMember(Value = "tamil")]
 105        Tamil,
 106        [EnumMember(Value = "telugu")]
 107        Telugu,
 108        [EnumMember(Value = "turkish")]
 109        Turkish,
 110        [EnumMember(Value = "ukrainian")]
 111        Ukrainian,
 112        [EnumMember(Value = "urdu")]
 113        Urdu
 114    }
 115    internal static class MicrosoftStemmingTokenizerLanguageEnumExtension
 116    {
 117        internal static string ToSerializedValue(this MicrosoftStemmingTokenizerLanguage? value)
 118        {
 0119            return value == null ? null : ((MicrosoftStemmingTokenizerLanguage)value).ToSerializedValue();
 120        }
 121
 122        internal static string ToSerializedValue(this MicrosoftStemmingTokenizerLanguage value)
 123        {
 124            switch( value )
 125            {
 126                case MicrosoftStemmingTokenizerLanguage.Arabic:
 0127                    return "arabic";
 128                case MicrosoftStemmingTokenizerLanguage.Bangla:
 0129                    return "bangla";
 130                case MicrosoftStemmingTokenizerLanguage.Bulgarian:
 0131                    return "bulgarian";
 132                case MicrosoftStemmingTokenizerLanguage.Catalan:
 0133                    return "catalan";
 134                case MicrosoftStemmingTokenizerLanguage.Croatian:
 0135                    return "croatian";
 136                case MicrosoftStemmingTokenizerLanguage.Czech:
 0137                    return "czech";
 138                case MicrosoftStemmingTokenizerLanguage.Danish:
 0139                    return "danish";
 140                case MicrosoftStemmingTokenizerLanguage.Dutch:
 0141                    return "dutch";
 142                case MicrosoftStemmingTokenizerLanguage.English:
 0143                    return "english";
 144                case MicrosoftStemmingTokenizerLanguage.Estonian:
 0145                    return "estonian";
 146                case MicrosoftStemmingTokenizerLanguage.Finnish:
 0147                    return "finnish";
 148                case MicrosoftStemmingTokenizerLanguage.French:
 0149                    return "french";
 150                case MicrosoftStemmingTokenizerLanguage.German:
 0151                    return "german";
 152                case MicrosoftStemmingTokenizerLanguage.Greek:
 0153                    return "greek";
 154                case MicrosoftStemmingTokenizerLanguage.Gujarati:
 0155                    return "gujarati";
 156                case MicrosoftStemmingTokenizerLanguage.Hebrew:
 0157                    return "hebrew";
 158                case MicrosoftStemmingTokenizerLanguage.Hindi:
 0159                    return "hindi";
 160                case MicrosoftStemmingTokenizerLanguage.Hungarian:
 0161                    return "hungarian";
 162                case MicrosoftStemmingTokenizerLanguage.Icelandic:
 0163                    return "icelandic";
 164                case MicrosoftStemmingTokenizerLanguage.Indonesian:
 0165                    return "indonesian";
 166                case MicrosoftStemmingTokenizerLanguage.Italian:
 0167                    return "italian";
 168                case MicrosoftStemmingTokenizerLanguage.Kannada:
 0169                    return "kannada";
 170                case MicrosoftStemmingTokenizerLanguage.Latvian:
 0171                    return "latvian";
 172                case MicrosoftStemmingTokenizerLanguage.Lithuanian:
 0173                    return "lithuanian";
 174                case MicrosoftStemmingTokenizerLanguage.Malay:
 0175                    return "malay";
 176                case MicrosoftStemmingTokenizerLanguage.Malayalam:
 0177                    return "malayalam";
 178                case MicrosoftStemmingTokenizerLanguage.Marathi:
 0179                    return "marathi";
 180                case MicrosoftStemmingTokenizerLanguage.NorwegianBokmaal:
 0181                    return "norwegianBokmaal";
 182                case MicrosoftStemmingTokenizerLanguage.Polish:
 0183                    return "polish";
 184                case MicrosoftStemmingTokenizerLanguage.Portuguese:
 0185                    return "portuguese";
 186                case MicrosoftStemmingTokenizerLanguage.PortugueseBrazilian:
 0187                    return "portugueseBrazilian";
 188                case MicrosoftStemmingTokenizerLanguage.Punjabi:
 0189                    return "punjabi";
 190                case MicrosoftStemmingTokenizerLanguage.Romanian:
 0191                    return "romanian";
 192                case MicrosoftStemmingTokenizerLanguage.Russian:
 0193                    return "russian";
 194                case MicrosoftStemmingTokenizerLanguage.SerbianCyrillic:
 0195                    return "serbianCyrillic";
 196                case MicrosoftStemmingTokenizerLanguage.SerbianLatin:
 0197                    return "serbianLatin";
 198                case MicrosoftStemmingTokenizerLanguage.Slovak:
 0199                    return "slovak";
 200                case MicrosoftStemmingTokenizerLanguage.Slovenian:
 0201                    return "slovenian";
 202                case MicrosoftStemmingTokenizerLanguage.Spanish:
 0203                    return "spanish";
 204                case MicrosoftStemmingTokenizerLanguage.Swedish:
 0205                    return "swedish";
 206                case MicrosoftStemmingTokenizerLanguage.Tamil:
 0207                    return "tamil";
 208                case MicrosoftStemmingTokenizerLanguage.Telugu:
 0209                    return "telugu";
 210                case MicrosoftStemmingTokenizerLanguage.Turkish:
 0211                    return "turkish";
 212                case MicrosoftStemmingTokenizerLanguage.Ukrainian:
 0213                    return "ukrainian";
 214                case MicrosoftStemmingTokenizerLanguage.Urdu:
 0215                    return "urdu";
 216            }
 0217            return null;
 218        }
 219
 220        internal static MicrosoftStemmingTokenizerLanguage? ParseMicrosoftStemmingTokenizerLanguage(this string value)
 221        {
 222            switch( value )
 223            {
 224                case "arabic":
 0225                    return MicrosoftStemmingTokenizerLanguage.Arabic;
 226                case "bangla":
 0227                    return MicrosoftStemmingTokenizerLanguage.Bangla;
 228                case "bulgarian":
 0229                    return MicrosoftStemmingTokenizerLanguage.Bulgarian;
 230                case "catalan":
 0231                    return MicrosoftStemmingTokenizerLanguage.Catalan;
 232                case "croatian":
 0233                    return MicrosoftStemmingTokenizerLanguage.Croatian;
 234                case "czech":
 0235                    return MicrosoftStemmingTokenizerLanguage.Czech;
 236                case "danish":
 0237                    return MicrosoftStemmingTokenizerLanguage.Danish;
 238                case "dutch":
 0239                    return MicrosoftStemmingTokenizerLanguage.Dutch;
 240                case "english":
 0241                    return MicrosoftStemmingTokenizerLanguage.English;
 242                case "estonian":
 0243                    return MicrosoftStemmingTokenizerLanguage.Estonian;
 244                case "finnish":
 0245                    return MicrosoftStemmingTokenizerLanguage.Finnish;
 246                case "french":
 0247                    return MicrosoftStemmingTokenizerLanguage.French;
 248                case "german":
 0249                    return MicrosoftStemmingTokenizerLanguage.German;
 250                case "greek":
 0251                    return MicrosoftStemmingTokenizerLanguage.Greek;
 252                case "gujarati":
 0253                    return MicrosoftStemmingTokenizerLanguage.Gujarati;
 254                case "hebrew":
 0255                    return MicrosoftStemmingTokenizerLanguage.Hebrew;
 256                case "hindi":
 0257                    return MicrosoftStemmingTokenizerLanguage.Hindi;
 258                case "hungarian":
 0259                    return MicrosoftStemmingTokenizerLanguage.Hungarian;
 260                case "icelandic":
 0261                    return MicrosoftStemmingTokenizerLanguage.Icelandic;
 262                case "indonesian":
 0263                    return MicrosoftStemmingTokenizerLanguage.Indonesian;
 264                case "italian":
 0265                    return MicrosoftStemmingTokenizerLanguage.Italian;
 266                case "kannada":
 0267                    return MicrosoftStemmingTokenizerLanguage.Kannada;
 268                case "latvian":
 0269                    return MicrosoftStemmingTokenizerLanguage.Latvian;
 270                case "lithuanian":
 0271                    return MicrosoftStemmingTokenizerLanguage.Lithuanian;
 272                case "malay":
 0273                    return MicrosoftStemmingTokenizerLanguage.Malay;
 274                case "malayalam":
 0275                    return MicrosoftStemmingTokenizerLanguage.Malayalam;
 276                case "marathi":
 0277                    return MicrosoftStemmingTokenizerLanguage.Marathi;
 278                case "norwegianBokmaal":
 0279                    return MicrosoftStemmingTokenizerLanguage.NorwegianBokmaal;
 280                case "polish":
 0281                    return MicrosoftStemmingTokenizerLanguage.Polish;
 282                case "portuguese":
 0283                    return MicrosoftStemmingTokenizerLanguage.Portuguese;
 284                case "portugueseBrazilian":
 0285                    return MicrosoftStemmingTokenizerLanguage.PortugueseBrazilian;
 286                case "punjabi":
 0287                    return MicrosoftStemmingTokenizerLanguage.Punjabi;
 288                case "romanian":
 0289                    return MicrosoftStemmingTokenizerLanguage.Romanian;
 290                case "russian":
 0291                    return MicrosoftStemmingTokenizerLanguage.Russian;
 292                case "serbianCyrillic":
 0293                    return MicrosoftStemmingTokenizerLanguage.SerbianCyrillic;
 294                case "serbianLatin":
 0295                    return MicrosoftStemmingTokenizerLanguage.SerbianLatin;
 296                case "slovak":
 0297                    return MicrosoftStemmingTokenizerLanguage.Slovak;
 298                case "slovenian":
 0299                    return MicrosoftStemmingTokenizerLanguage.Slovenian;
 300                case "spanish":
 0301                    return MicrosoftStemmingTokenizerLanguage.Spanish;
 302                case "swedish":
 0303                    return MicrosoftStemmingTokenizerLanguage.Swedish;
 304                case "tamil":
 0305                    return MicrosoftStemmingTokenizerLanguage.Tamil;
 306                case "telugu":
 0307                    return MicrosoftStemmingTokenizerLanguage.Telugu;
 308                case "turkish":
 0309                    return MicrosoftStemmingTokenizerLanguage.Turkish;
 310                case "ukrainian":
 0311                    return MicrosoftStemmingTokenizerLanguage.Ukrainian;
 312                case "urdu":
 0313                    return MicrosoftStemmingTokenizerLanguage.Urdu;
 314            }
 0315            return null;
 316        }
 317    }
 318}