< Summary

Class:Microsoft.Azure.Search.Models.StemmerTokenFilterLanguageEnumExtension
Assembly:Microsoft.Azure.Search.Service
File(s):C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Service\src\Generated\Models\StemmerTokenFilterLanguage.cs
Covered lines:0
Uncovered lines:111
Coverable lines:111
Total lines:372
Line coverage:0% (0 of 111)
Covered branches:0
Total branches:315
Branch coverage:0% (0 of 315)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Service\src\Generated\Models\StemmerTokenFilterLanguage.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 StemmerTokenFilterLanguage.
 20    /// </summary>
 21    [JsonConverter(typeof(StringEnumConverter))]
 22    public enum StemmerTokenFilterLanguage
 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 = "dutchKp")]
 43        DutchKp,
 44        [EnumMember(Value = "english")]
 45        English,
 46        [EnumMember(Value = "lightEnglish")]
 47        LightEnglish,
 48        [EnumMember(Value = "minimalEnglish")]
 49        MinimalEnglish,
 50        [EnumMember(Value = "possessiveEnglish")]
 51        PossessiveEnglish,
 52        [EnumMember(Value = "porter2")]
 53        Porter2,
 54        [EnumMember(Value = "lovins")]
 55        Lovins,
 56        [EnumMember(Value = "finnish")]
 57        Finnish,
 58        [EnumMember(Value = "lightFinnish")]
 59        LightFinnish,
 60        [EnumMember(Value = "french")]
 61        French,
 62        [EnumMember(Value = "lightFrench")]
 63        LightFrench,
 64        [EnumMember(Value = "minimalFrench")]
 65        MinimalFrench,
 66        [EnumMember(Value = "galician")]
 67        Galician,
 68        [EnumMember(Value = "minimalGalician")]
 69        MinimalGalician,
 70        [EnumMember(Value = "german")]
 71        German,
 72        [EnumMember(Value = "german2")]
 73        German2,
 74        [EnumMember(Value = "lightGerman")]
 75        LightGerman,
 76        [EnumMember(Value = "minimalGerman")]
 77        MinimalGerman,
 78        [EnumMember(Value = "greek")]
 79        Greek,
 80        [EnumMember(Value = "hindi")]
 81        Hindi,
 82        [EnumMember(Value = "hungarian")]
 83        Hungarian,
 84        [EnumMember(Value = "lightHungarian")]
 85        LightHungarian,
 86        [EnumMember(Value = "indonesian")]
 87        Indonesian,
 88        [EnumMember(Value = "irish")]
 89        Irish,
 90        [EnumMember(Value = "italian")]
 91        Italian,
 92        [EnumMember(Value = "lightItalian")]
 93        LightItalian,
 94        [EnumMember(Value = "sorani")]
 95        Sorani,
 96        [EnumMember(Value = "latvian")]
 97        Latvian,
 98        [EnumMember(Value = "norwegian")]
 99        Norwegian,
 100        [EnumMember(Value = "lightNorwegian")]
 101        LightNorwegian,
 102        [EnumMember(Value = "minimalNorwegian")]
 103        MinimalNorwegian,
 104        [EnumMember(Value = "lightNynorsk")]
 105        LightNynorsk,
 106        [EnumMember(Value = "minimalNynorsk")]
 107        MinimalNynorsk,
 108        [EnumMember(Value = "portuguese")]
 109        Portuguese,
 110        [EnumMember(Value = "lightPortuguese")]
 111        LightPortuguese,
 112        [EnumMember(Value = "minimalPortuguese")]
 113        MinimalPortuguese,
 114        [EnumMember(Value = "portugueseRslp")]
 115        PortugueseRslp,
 116        [EnumMember(Value = "romanian")]
 117        Romanian,
 118        [EnumMember(Value = "russian")]
 119        Russian,
 120        [EnumMember(Value = "lightRussian")]
 121        LightRussian,
 122        [EnumMember(Value = "spanish")]
 123        Spanish,
 124        [EnumMember(Value = "lightSpanish")]
 125        LightSpanish,
 126        [EnumMember(Value = "swedish")]
 127        Swedish,
 128        [EnumMember(Value = "lightSwedish")]
 129        LightSwedish,
 130        [EnumMember(Value = "turkish")]
 131        Turkish
 132    }
 133    internal static class StemmerTokenFilterLanguageEnumExtension
 134    {
 135        internal static string ToSerializedValue(this StemmerTokenFilterLanguage? value)
 136        {
 0137            return value == null ? null : ((StemmerTokenFilterLanguage)value).ToSerializedValue();
 138        }
 139
 140        internal static string ToSerializedValue(this StemmerTokenFilterLanguage value)
 141        {
 142            switch( value )
 143            {
 144                case StemmerTokenFilterLanguage.Arabic:
 0145                    return "arabic";
 146                case StemmerTokenFilterLanguage.Armenian:
 0147                    return "armenian";
 148                case StemmerTokenFilterLanguage.Basque:
 0149                    return "basque";
 150                case StemmerTokenFilterLanguage.Brazilian:
 0151                    return "brazilian";
 152                case StemmerTokenFilterLanguage.Bulgarian:
 0153                    return "bulgarian";
 154                case StemmerTokenFilterLanguage.Catalan:
 0155                    return "catalan";
 156                case StemmerTokenFilterLanguage.Czech:
 0157                    return "czech";
 158                case StemmerTokenFilterLanguage.Danish:
 0159                    return "danish";
 160                case StemmerTokenFilterLanguage.Dutch:
 0161                    return "dutch";
 162                case StemmerTokenFilterLanguage.DutchKp:
 0163                    return "dutchKp";
 164                case StemmerTokenFilterLanguage.English:
 0165                    return "english";
 166                case StemmerTokenFilterLanguage.LightEnglish:
 0167                    return "lightEnglish";
 168                case StemmerTokenFilterLanguage.MinimalEnglish:
 0169                    return "minimalEnglish";
 170                case StemmerTokenFilterLanguage.PossessiveEnglish:
 0171                    return "possessiveEnglish";
 172                case StemmerTokenFilterLanguage.Porter2:
 0173                    return "porter2";
 174                case StemmerTokenFilterLanguage.Lovins:
 0175                    return "lovins";
 176                case StemmerTokenFilterLanguage.Finnish:
 0177                    return "finnish";
 178                case StemmerTokenFilterLanguage.LightFinnish:
 0179                    return "lightFinnish";
 180                case StemmerTokenFilterLanguage.French:
 0181                    return "french";
 182                case StemmerTokenFilterLanguage.LightFrench:
 0183                    return "lightFrench";
 184                case StemmerTokenFilterLanguage.MinimalFrench:
 0185                    return "minimalFrench";
 186                case StemmerTokenFilterLanguage.Galician:
 0187                    return "galician";
 188                case StemmerTokenFilterLanguage.MinimalGalician:
 0189                    return "minimalGalician";
 190                case StemmerTokenFilterLanguage.German:
 0191                    return "german";
 192                case StemmerTokenFilterLanguage.German2:
 0193                    return "german2";
 194                case StemmerTokenFilterLanguage.LightGerman:
 0195                    return "lightGerman";
 196                case StemmerTokenFilterLanguage.MinimalGerman:
 0197                    return "minimalGerman";
 198                case StemmerTokenFilterLanguage.Greek:
 0199                    return "greek";
 200                case StemmerTokenFilterLanguage.Hindi:
 0201                    return "hindi";
 202                case StemmerTokenFilterLanguage.Hungarian:
 0203                    return "hungarian";
 204                case StemmerTokenFilterLanguage.LightHungarian:
 0205                    return "lightHungarian";
 206                case StemmerTokenFilterLanguage.Indonesian:
 0207                    return "indonesian";
 208                case StemmerTokenFilterLanguage.Irish:
 0209                    return "irish";
 210                case StemmerTokenFilterLanguage.Italian:
 0211                    return "italian";
 212                case StemmerTokenFilterLanguage.LightItalian:
 0213                    return "lightItalian";
 214                case StemmerTokenFilterLanguage.Sorani:
 0215                    return "sorani";
 216                case StemmerTokenFilterLanguage.Latvian:
 0217                    return "latvian";
 218                case StemmerTokenFilterLanguage.Norwegian:
 0219                    return "norwegian";
 220                case StemmerTokenFilterLanguage.LightNorwegian:
 0221                    return "lightNorwegian";
 222                case StemmerTokenFilterLanguage.MinimalNorwegian:
 0223                    return "minimalNorwegian";
 224                case StemmerTokenFilterLanguage.LightNynorsk:
 0225                    return "lightNynorsk";
 226                case StemmerTokenFilterLanguage.MinimalNynorsk:
 0227                    return "minimalNynorsk";
 228                case StemmerTokenFilterLanguage.Portuguese:
 0229                    return "portuguese";
 230                case StemmerTokenFilterLanguage.LightPortuguese:
 0231                    return "lightPortuguese";
 232                case StemmerTokenFilterLanguage.MinimalPortuguese:
 0233                    return "minimalPortuguese";
 234                case StemmerTokenFilterLanguage.PortugueseRslp:
 0235                    return "portugueseRslp";
 236                case StemmerTokenFilterLanguage.Romanian:
 0237                    return "romanian";
 238                case StemmerTokenFilterLanguage.Russian:
 0239                    return "russian";
 240                case StemmerTokenFilterLanguage.LightRussian:
 0241                    return "lightRussian";
 242                case StemmerTokenFilterLanguage.Spanish:
 0243                    return "spanish";
 244                case StemmerTokenFilterLanguage.LightSpanish:
 0245                    return "lightSpanish";
 246                case StemmerTokenFilterLanguage.Swedish:
 0247                    return "swedish";
 248                case StemmerTokenFilterLanguage.LightSwedish:
 0249                    return "lightSwedish";
 250                case StemmerTokenFilterLanguage.Turkish:
 0251                    return "turkish";
 252            }
 0253            return null;
 254        }
 255
 256        internal static StemmerTokenFilterLanguage? ParseStemmerTokenFilterLanguage(this string value)
 257        {
 258            switch( value )
 259            {
 260                case "arabic":
 0261                    return StemmerTokenFilterLanguage.Arabic;
 262                case "armenian":
 0263                    return StemmerTokenFilterLanguage.Armenian;
 264                case "basque":
 0265                    return StemmerTokenFilterLanguage.Basque;
 266                case "brazilian":
 0267                    return StemmerTokenFilterLanguage.Brazilian;
 268                case "bulgarian":
 0269                    return StemmerTokenFilterLanguage.Bulgarian;
 270                case "catalan":
 0271                    return StemmerTokenFilterLanguage.Catalan;
 272                case "czech":
 0273                    return StemmerTokenFilterLanguage.Czech;
 274                case "danish":
 0275                    return StemmerTokenFilterLanguage.Danish;
 276                case "dutch":
 0277                    return StemmerTokenFilterLanguage.Dutch;
 278                case "dutchKp":
 0279                    return StemmerTokenFilterLanguage.DutchKp;
 280                case "english":
 0281                    return StemmerTokenFilterLanguage.English;
 282                case "lightEnglish":
 0283                    return StemmerTokenFilterLanguage.LightEnglish;
 284                case "minimalEnglish":
 0285                    return StemmerTokenFilterLanguage.MinimalEnglish;
 286                case "possessiveEnglish":
 0287                    return StemmerTokenFilterLanguage.PossessiveEnglish;
 288                case "porter2":
 0289                    return StemmerTokenFilterLanguage.Porter2;
 290                case "lovins":
 0291                    return StemmerTokenFilterLanguage.Lovins;
 292                case "finnish":
 0293                    return StemmerTokenFilterLanguage.Finnish;
 294                case "lightFinnish":
 0295                    return StemmerTokenFilterLanguage.LightFinnish;
 296                case "french":
 0297                    return StemmerTokenFilterLanguage.French;
 298                case "lightFrench":
 0299                    return StemmerTokenFilterLanguage.LightFrench;
 300                case "minimalFrench":
 0301                    return StemmerTokenFilterLanguage.MinimalFrench;
 302                case "galician":
 0303                    return StemmerTokenFilterLanguage.Galician;
 304                case "minimalGalician":
 0305                    return StemmerTokenFilterLanguage.MinimalGalician;
 306                case "german":
 0307                    return StemmerTokenFilterLanguage.German;
 308                case "german2":
 0309                    return StemmerTokenFilterLanguage.German2;
 310                case "lightGerman":
 0311                    return StemmerTokenFilterLanguage.LightGerman;
 312                case "minimalGerman":
 0313                    return StemmerTokenFilterLanguage.MinimalGerman;
 314                case "greek":
 0315                    return StemmerTokenFilterLanguage.Greek;
 316                case "hindi":
 0317                    return StemmerTokenFilterLanguage.Hindi;
 318                case "hungarian":
 0319                    return StemmerTokenFilterLanguage.Hungarian;
 320                case "lightHungarian":
 0321                    return StemmerTokenFilterLanguage.LightHungarian;
 322                case "indonesian":
 0323                    return StemmerTokenFilterLanguage.Indonesian;
 324                case "irish":
 0325                    return StemmerTokenFilterLanguage.Irish;
 326                case "italian":
 0327                    return StemmerTokenFilterLanguage.Italian;
 328                case "lightItalian":
 0329                    return StemmerTokenFilterLanguage.LightItalian;
 330                case "sorani":
 0331                    return StemmerTokenFilterLanguage.Sorani;
 332                case "latvian":
 0333                    return StemmerTokenFilterLanguage.Latvian;
 334                case "norwegian":
 0335                    return StemmerTokenFilterLanguage.Norwegian;
 336                case "lightNorwegian":
 0337                    return StemmerTokenFilterLanguage.LightNorwegian;
 338                case "minimalNorwegian":
 0339                    return StemmerTokenFilterLanguage.MinimalNorwegian;
 340                case "lightNynorsk":
 0341                    return StemmerTokenFilterLanguage.LightNynorsk;
 342                case "minimalNynorsk":
 0343                    return StemmerTokenFilterLanguage.MinimalNynorsk;
 344                case "portuguese":
 0345                    return StemmerTokenFilterLanguage.Portuguese;
 346                case "lightPortuguese":
 0347                    return StemmerTokenFilterLanguage.LightPortuguese;
 348                case "minimalPortuguese":
 0349                    return StemmerTokenFilterLanguage.MinimalPortuguese;
 350                case "portugueseRslp":
 0351                    return StemmerTokenFilterLanguage.PortugueseRslp;
 352                case "romanian":
 0353                    return StemmerTokenFilterLanguage.Romanian;
 354                case "russian":
 0355                    return StemmerTokenFilterLanguage.Russian;
 356                case "lightRussian":
 0357                    return StemmerTokenFilterLanguage.LightRussian;
 358                case "spanish":
 0359                    return StemmerTokenFilterLanguage.Spanish;
 360                case "lightSpanish":
 0361                    return StemmerTokenFilterLanguage.LightSpanish;
 362                case "swedish":
 0363                    return StemmerTokenFilterLanguage.Swedish;
 364                case "lightSwedish":
 0365                    return StemmerTokenFilterLanguage.LightSwedish;
 366                case "turkish":
 0367                    return StemmerTokenFilterLanguage.Turkish;
 368            }
 0369            return null;
 370        }
 371    }
 372}