< Summary

Class:Microsoft.Azure.Search.Models.SnowballTokenFilterLanguageEnumExtension
Assembly:Microsoft.Azure.Search.Service
File(s):C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Service\src\Generated\Models\SnowballTokenFilterLanguage.cs
Covered lines:0
Uncovered lines:47
Coverable lines:47
Total lines:180
Line coverage:0% (0 of 47)
Covered branches:0
Total branches:127
Branch coverage:0% (0 of 127)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Service\src\Generated\Models\SnowballTokenFilterLanguage.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 SnowballTokenFilterLanguage.
 20    /// </summary>
 21    [JsonConverter(typeof(StringEnumConverter))]
 22    public enum SnowballTokenFilterLanguage
 23    {
 24        [EnumMember(Value = "armenian")]
 25        Armenian,
 26        [EnumMember(Value = "basque")]
 27        Basque,
 28        [EnumMember(Value = "catalan")]
 29        Catalan,
 30        [EnumMember(Value = "danish")]
 31        Danish,
 32        [EnumMember(Value = "dutch")]
 33        Dutch,
 34        [EnumMember(Value = "english")]
 35        English,
 36        [EnumMember(Value = "finnish")]
 37        Finnish,
 38        [EnumMember(Value = "french")]
 39        French,
 40        [EnumMember(Value = "german")]
 41        German,
 42        [EnumMember(Value = "german2")]
 43        German2,
 44        [EnumMember(Value = "hungarian")]
 45        Hungarian,
 46        [EnumMember(Value = "italian")]
 47        Italian,
 48        [EnumMember(Value = "kp")]
 49        Kp,
 50        [EnumMember(Value = "lovins")]
 51        Lovins,
 52        [EnumMember(Value = "norwegian")]
 53        Norwegian,
 54        [EnumMember(Value = "porter")]
 55        Porter,
 56        [EnumMember(Value = "portuguese")]
 57        Portuguese,
 58        [EnumMember(Value = "romanian")]
 59        Romanian,
 60        [EnumMember(Value = "russian")]
 61        Russian,
 62        [EnumMember(Value = "spanish")]
 63        Spanish,
 64        [EnumMember(Value = "swedish")]
 65        Swedish,
 66        [EnumMember(Value = "turkish")]
 67        Turkish
 68    }
 69    internal static class SnowballTokenFilterLanguageEnumExtension
 70    {
 71        internal static string ToSerializedValue(this SnowballTokenFilterLanguage? value)
 72        {
 073            return value == null ? null : ((SnowballTokenFilterLanguage)value).ToSerializedValue();
 74        }
 75
 76        internal static string ToSerializedValue(this SnowballTokenFilterLanguage value)
 77        {
 78            switch( value )
 79            {
 80                case SnowballTokenFilterLanguage.Armenian:
 081                    return "armenian";
 82                case SnowballTokenFilterLanguage.Basque:
 083                    return "basque";
 84                case SnowballTokenFilterLanguage.Catalan:
 085                    return "catalan";
 86                case SnowballTokenFilterLanguage.Danish:
 087                    return "danish";
 88                case SnowballTokenFilterLanguage.Dutch:
 089                    return "dutch";
 90                case SnowballTokenFilterLanguage.English:
 091                    return "english";
 92                case SnowballTokenFilterLanguage.Finnish:
 093                    return "finnish";
 94                case SnowballTokenFilterLanguage.French:
 095                    return "french";
 96                case SnowballTokenFilterLanguage.German:
 097                    return "german";
 98                case SnowballTokenFilterLanguage.German2:
 099                    return "german2";
 100                case SnowballTokenFilterLanguage.Hungarian:
 0101                    return "hungarian";
 102                case SnowballTokenFilterLanguage.Italian:
 0103                    return "italian";
 104                case SnowballTokenFilterLanguage.Kp:
 0105                    return "kp";
 106                case SnowballTokenFilterLanguage.Lovins:
 0107                    return "lovins";
 108                case SnowballTokenFilterLanguage.Norwegian:
 0109                    return "norwegian";
 110                case SnowballTokenFilterLanguage.Porter:
 0111                    return "porter";
 112                case SnowballTokenFilterLanguage.Portuguese:
 0113                    return "portuguese";
 114                case SnowballTokenFilterLanguage.Romanian:
 0115                    return "romanian";
 116                case SnowballTokenFilterLanguage.Russian:
 0117                    return "russian";
 118                case SnowballTokenFilterLanguage.Spanish:
 0119                    return "spanish";
 120                case SnowballTokenFilterLanguage.Swedish:
 0121                    return "swedish";
 122                case SnowballTokenFilterLanguage.Turkish:
 0123                    return "turkish";
 124            }
 0125            return null;
 126        }
 127
 128        internal static SnowballTokenFilterLanguage? ParseSnowballTokenFilterLanguage(this string value)
 129        {
 130            switch( value )
 131            {
 132                case "armenian":
 0133                    return SnowballTokenFilterLanguage.Armenian;
 134                case "basque":
 0135                    return SnowballTokenFilterLanguage.Basque;
 136                case "catalan":
 0137                    return SnowballTokenFilterLanguage.Catalan;
 138                case "danish":
 0139                    return SnowballTokenFilterLanguage.Danish;
 140                case "dutch":
 0141                    return SnowballTokenFilterLanguage.Dutch;
 142                case "english":
 0143                    return SnowballTokenFilterLanguage.English;
 144                case "finnish":
 0145                    return SnowballTokenFilterLanguage.Finnish;
 146                case "french":
 0147                    return SnowballTokenFilterLanguage.French;
 148                case "german":
 0149                    return SnowballTokenFilterLanguage.German;
 150                case "german2":
 0151                    return SnowballTokenFilterLanguage.German2;
 152                case "hungarian":
 0153                    return SnowballTokenFilterLanguage.Hungarian;
 154                case "italian":
 0155                    return SnowballTokenFilterLanguage.Italian;
 156                case "kp":
 0157                    return SnowballTokenFilterLanguage.Kp;
 158                case "lovins":
 0159                    return SnowballTokenFilterLanguage.Lovins;
 160                case "norwegian":
 0161                    return SnowballTokenFilterLanguage.Norwegian;
 162                case "porter":
 0163                    return SnowballTokenFilterLanguage.Porter;
 164                case "portuguese":
 0165                    return SnowballTokenFilterLanguage.Portuguese;
 166                case "romanian":
 0167                    return SnowballTokenFilterLanguage.Romanian;
 168                case "russian":
 0169                    return SnowballTokenFilterLanguage.Russian;
 170                case "spanish":
 0171                    return SnowballTokenFilterLanguage.Spanish;
 172                case "swedish":
 0173                    return SnowballTokenFilterLanguage.Swedish;
 174                case "turkish":
 0175                    return SnowballTokenFilterLanguage.Turkish;
 176            }
 0177            return null;
 178        }
 179    }
 180}