< Summary

Class:Microsoft.Azure.Search.Models.KeyPhraseExtractionSkillLanguageEnumExtension
Assembly:Microsoft.Azure.Search.Service
File(s):C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Service\src\Generated\Models\KeyPhraseExtractionSkillLanguage.cs
Covered lines:0
Uncovered lines:35
Coverable lines:35
Total lines:144
Line coverage:0% (0 of 35)
Covered branches:0
Total branches:97
Branch coverage:0% (0 of 97)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Service\src\Generated\Models\KeyPhraseExtractionSkillLanguage.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 KeyPhraseExtractionSkillLanguage.
 20    /// </summary>
 21    [JsonConverter(typeof(StringEnumConverter))]
 22    public enum KeyPhraseExtractionSkillLanguage
 23    {
 24        [EnumMember(Value = "da")]
 25        Da,
 26        [EnumMember(Value = "nl")]
 27        Nl,
 28        [EnumMember(Value = "en")]
 29        En,
 30        [EnumMember(Value = "fi")]
 31        Fi,
 32        [EnumMember(Value = "fr")]
 33        Fr,
 34        [EnumMember(Value = "de")]
 35        De,
 36        [EnumMember(Value = "it")]
 37        It,
 38        [EnumMember(Value = "ja")]
 39        Ja,
 40        [EnumMember(Value = "ko")]
 41        Ko,
 42        [EnumMember(Value = "no")]
 43        No,
 44        [EnumMember(Value = "pl")]
 45        Pl,
 46        [EnumMember(Value = "pt-PT")]
 47        PtPT,
 48        [EnumMember(Value = "pt-BR")]
 49        PtBR,
 50        [EnumMember(Value = "ru")]
 51        Ru,
 52        [EnumMember(Value = "es")]
 53        Es,
 54        [EnumMember(Value = "sv")]
 55        Sv
 56    }
 57    internal static class KeyPhraseExtractionSkillLanguageEnumExtension
 58    {
 59        internal static string ToSerializedValue(this KeyPhraseExtractionSkillLanguage? value)
 60        {
 061            return value == null ? null : ((KeyPhraseExtractionSkillLanguage)value).ToSerializedValue();
 62        }
 63
 64        internal static string ToSerializedValue(this KeyPhraseExtractionSkillLanguage value)
 65        {
 66            switch( value )
 67            {
 68                case KeyPhraseExtractionSkillLanguage.Da:
 069                    return "da";
 70                case KeyPhraseExtractionSkillLanguage.Nl:
 071                    return "nl";
 72                case KeyPhraseExtractionSkillLanguage.En:
 073                    return "en";
 74                case KeyPhraseExtractionSkillLanguage.Fi:
 075                    return "fi";
 76                case KeyPhraseExtractionSkillLanguage.Fr:
 077                    return "fr";
 78                case KeyPhraseExtractionSkillLanguage.De:
 079                    return "de";
 80                case KeyPhraseExtractionSkillLanguage.It:
 081                    return "it";
 82                case KeyPhraseExtractionSkillLanguage.Ja:
 083                    return "ja";
 84                case KeyPhraseExtractionSkillLanguage.Ko:
 085                    return "ko";
 86                case KeyPhraseExtractionSkillLanguage.No:
 087                    return "no";
 88                case KeyPhraseExtractionSkillLanguage.Pl:
 089                    return "pl";
 90                case KeyPhraseExtractionSkillLanguage.PtPT:
 091                    return "pt-PT";
 92                case KeyPhraseExtractionSkillLanguage.PtBR:
 093                    return "pt-BR";
 94                case KeyPhraseExtractionSkillLanguage.Ru:
 095                    return "ru";
 96                case KeyPhraseExtractionSkillLanguage.Es:
 097                    return "es";
 98                case KeyPhraseExtractionSkillLanguage.Sv:
 099                    return "sv";
 100            }
 0101            return null;
 102        }
 103
 104        internal static KeyPhraseExtractionSkillLanguage? ParseKeyPhraseExtractionSkillLanguage(this string value)
 105        {
 106            switch( value )
 107            {
 108                case "da":
 0109                    return KeyPhraseExtractionSkillLanguage.Da;
 110                case "nl":
 0111                    return KeyPhraseExtractionSkillLanguage.Nl;
 112                case "en":
 0113                    return KeyPhraseExtractionSkillLanguage.En;
 114                case "fi":
 0115                    return KeyPhraseExtractionSkillLanguage.Fi;
 116                case "fr":
 0117                    return KeyPhraseExtractionSkillLanguage.Fr;
 118                case "de":
 0119                    return KeyPhraseExtractionSkillLanguage.De;
 120                case "it":
 0121                    return KeyPhraseExtractionSkillLanguage.It;
 122                case "ja":
 0123                    return KeyPhraseExtractionSkillLanguage.Ja;
 124                case "ko":
 0125                    return KeyPhraseExtractionSkillLanguage.Ko;
 126                case "no":
 0127                    return KeyPhraseExtractionSkillLanguage.No;
 128                case "pl":
 0129                    return KeyPhraseExtractionSkillLanguage.Pl;
 130                case "pt-PT":
 0131                    return KeyPhraseExtractionSkillLanguage.PtPT;
 132                case "pt-BR":
 0133                    return KeyPhraseExtractionSkillLanguage.PtBR;
 134                case "ru":
 0135                    return KeyPhraseExtractionSkillLanguage.Ru;
 136                case "es":
 0137                    return KeyPhraseExtractionSkillLanguage.Es;
 138                case "sv":
 0139                    return KeyPhraseExtractionSkillLanguage.Sv;
 140            }
 0141            return null;
 142        }
 143    }
 144}