< Summary

Class:Microsoft.Azure.Search.Models.StopwordsListEnumExtension
Assembly:Microsoft.Azure.Search.Service
File(s):C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Service\src\Generated\Models\StopwordsList.cs
Covered lines:0
Uncovered lines:65
Coverable lines:65
Total lines:234
Line coverage:0% (0 of 65)
Covered branches:0
Total branches:186
Branch coverage:0% (0 of 186)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Service\src\Generated\Models\StopwordsList.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 StopwordsList.
 20    /// </summary>
 21    [JsonConverter(typeof(StringEnumConverter))]
 22    public enum StopwordsList
 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 = "english")]
 43        English,
 44        [EnumMember(Value = "finnish")]
 45        Finnish,
 46        [EnumMember(Value = "french")]
 47        French,
 48        [EnumMember(Value = "galician")]
 49        Galician,
 50        [EnumMember(Value = "german")]
 51        German,
 52        [EnumMember(Value = "greek")]
 53        Greek,
 54        [EnumMember(Value = "hindi")]
 55        Hindi,
 56        [EnumMember(Value = "hungarian")]
 57        Hungarian,
 58        [EnumMember(Value = "indonesian")]
 59        Indonesian,
 60        [EnumMember(Value = "irish")]
 61        Irish,
 62        [EnumMember(Value = "italian")]
 63        Italian,
 64        [EnumMember(Value = "latvian")]
 65        Latvian,
 66        [EnumMember(Value = "norwegian")]
 67        Norwegian,
 68        [EnumMember(Value = "persian")]
 69        Persian,
 70        [EnumMember(Value = "portuguese")]
 71        Portuguese,
 72        [EnumMember(Value = "romanian")]
 73        Romanian,
 74        [EnumMember(Value = "russian")]
 75        Russian,
 76        [EnumMember(Value = "sorani")]
 77        Sorani,
 78        [EnumMember(Value = "spanish")]
 79        Spanish,
 80        [EnumMember(Value = "swedish")]
 81        Swedish,
 82        [EnumMember(Value = "thai")]
 83        Thai,
 84        [EnumMember(Value = "turkish")]
 85        Turkish
 86    }
 87    internal static class StopwordsListEnumExtension
 88    {
 89        internal static string ToSerializedValue(this StopwordsList? value)
 90        {
 091            return value == null ? null : ((StopwordsList)value).ToSerializedValue();
 92        }
 93
 94        internal static string ToSerializedValue(this StopwordsList value)
 95        {
 96            switch( value )
 97            {
 98                case StopwordsList.Arabic:
 099                    return "arabic";
 100                case StopwordsList.Armenian:
 0101                    return "armenian";
 102                case StopwordsList.Basque:
 0103                    return "basque";
 104                case StopwordsList.Brazilian:
 0105                    return "brazilian";
 106                case StopwordsList.Bulgarian:
 0107                    return "bulgarian";
 108                case StopwordsList.Catalan:
 0109                    return "catalan";
 110                case StopwordsList.Czech:
 0111                    return "czech";
 112                case StopwordsList.Danish:
 0113                    return "danish";
 114                case StopwordsList.Dutch:
 0115                    return "dutch";
 116                case StopwordsList.English:
 0117                    return "english";
 118                case StopwordsList.Finnish:
 0119                    return "finnish";
 120                case StopwordsList.French:
 0121                    return "french";
 122                case StopwordsList.Galician:
 0123                    return "galician";
 124                case StopwordsList.German:
 0125                    return "german";
 126                case StopwordsList.Greek:
 0127                    return "greek";
 128                case StopwordsList.Hindi:
 0129                    return "hindi";
 130                case StopwordsList.Hungarian:
 0131                    return "hungarian";
 132                case StopwordsList.Indonesian:
 0133                    return "indonesian";
 134                case StopwordsList.Irish:
 0135                    return "irish";
 136                case StopwordsList.Italian:
 0137                    return "italian";
 138                case StopwordsList.Latvian:
 0139                    return "latvian";
 140                case StopwordsList.Norwegian:
 0141                    return "norwegian";
 142                case StopwordsList.Persian:
 0143                    return "persian";
 144                case StopwordsList.Portuguese:
 0145                    return "portuguese";
 146                case StopwordsList.Romanian:
 0147                    return "romanian";
 148                case StopwordsList.Russian:
 0149                    return "russian";
 150                case StopwordsList.Sorani:
 0151                    return "sorani";
 152                case StopwordsList.Spanish:
 0153                    return "spanish";
 154                case StopwordsList.Swedish:
 0155                    return "swedish";
 156                case StopwordsList.Thai:
 0157                    return "thai";
 158                case StopwordsList.Turkish:
 0159                    return "turkish";
 160            }
 0161            return null;
 162        }
 163
 164        internal static StopwordsList? ParseStopwordsList(this string value)
 165        {
 166            switch( value )
 167            {
 168                case "arabic":
 0169                    return StopwordsList.Arabic;
 170                case "armenian":
 0171                    return StopwordsList.Armenian;
 172                case "basque":
 0173                    return StopwordsList.Basque;
 174                case "brazilian":
 0175                    return StopwordsList.Brazilian;
 176                case "bulgarian":
 0177                    return StopwordsList.Bulgarian;
 178                case "catalan":
 0179                    return StopwordsList.Catalan;
 180                case "czech":
 0181                    return StopwordsList.Czech;
 182                case "danish":
 0183                    return StopwordsList.Danish;
 184                case "dutch":
 0185                    return StopwordsList.Dutch;
 186                case "english":
 0187                    return StopwordsList.English;
 188                case "finnish":
 0189                    return StopwordsList.Finnish;
 190                case "french":
 0191                    return StopwordsList.French;
 192                case "galician":
 0193                    return StopwordsList.Galician;
 194                case "german":
 0195                    return StopwordsList.German;
 196                case "greek":
 0197                    return StopwordsList.Greek;
 198                case "hindi":
 0199                    return StopwordsList.Hindi;
 200                case "hungarian":
 0201                    return StopwordsList.Hungarian;
 202                case "indonesian":
 0203                    return StopwordsList.Indonesian;
 204                case "irish":
 0205                    return StopwordsList.Irish;
 206                case "italian":
 0207                    return StopwordsList.Italian;
 208                case "latvian":
 0209                    return StopwordsList.Latvian;
 210                case "norwegian":
 0211                    return StopwordsList.Norwegian;
 212                case "persian":
 0213                    return StopwordsList.Persian;
 214                case "portuguese":
 0215                    return StopwordsList.Portuguese;
 216                case "romanian":
 0217                    return StopwordsList.Romanian;
 218                case "russian":
 0219                    return StopwordsList.Russian;
 220                case "sorani":
 0221                    return StopwordsList.Sorani;
 222                case "spanish":
 0223                    return StopwordsList.Spanish;
 224                case "swedish":
 0225                    return StopwordsList.Swedish;
 226                case "thai":
 0227                    return StopwordsList.Thai;
 228                case "turkish":
 0229                    return StopwordsList.Turkish;
 230            }
 0231            return null;
 232        }
 233    }
 234}