< Summary

Class:Microsoft.Azure.Search.Models.TextTranslationSkillLanguageEnumExtension
Assembly:Microsoft.Azure.Search.Service
File(s):C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Service\src\Generated\Models\TextTranslationSkillLanguage.cs
Covered lines:0
Uncovered lines:129
Coverable lines:129
Total lines:426
Line coverage:0% (0 of 129)
Covered branches:0
Total branches:378
Branch coverage:0% (0 of 378)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Service\src\Generated\Models\TextTranslationSkillLanguage.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 TextTranslationSkillLanguage.
 20    /// </summary>
 21    [JsonConverter(typeof(StringEnumConverter))]
 22    public enum TextTranslationSkillLanguage
 23    {
 24        [EnumMember(Value = "af")]
 25        Af,
 26        [EnumMember(Value = "ar")]
 27        Ar,
 28        [EnumMember(Value = "bn")]
 29        Bn,
 30        [EnumMember(Value = "bs")]
 31        Bs,
 32        [EnumMember(Value = "bg")]
 33        Bg,
 34        [EnumMember(Value = "yue")]
 35        Yue,
 36        [EnumMember(Value = "ca")]
 37        Ca,
 38        [EnumMember(Value = "zh-Hans")]
 39        ZhHans,
 40        [EnumMember(Value = "zh-Hant")]
 41        ZhHant,
 42        [EnumMember(Value = "hr")]
 43        Hr,
 44        [EnumMember(Value = "cs")]
 45        Cs,
 46        [EnumMember(Value = "da")]
 47        Da,
 48        [EnumMember(Value = "nl")]
 49        Nl,
 50        [EnumMember(Value = "en")]
 51        En,
 52        [EnumMember(Value = "et")]
 53        Et,
 54        [EnumMember(Value = "fj")]
 55        Fj,
 56        [EnumMember(Value = "fil")]
 57        Fil,
 58        [EnumMember(Value = "fi")]
 59        Fi,
 60        [EnumMember(Value = "fr")]
 61        Fr,
 62        [EnumMember(Value = "de")]
 63        De,
 64        [EnumMember(Value = "el")]
 65        El,
 66        [EnumMember(Value = "ht")]
 67        Ht,
 68        [EnumMember(Value = "he")]
 69        He,
 70        [EnumMember(Value = "hi")]
 71        Hi,
 72        [EnumMember(Value = "mww")]
 73        Mww,
 74        [EnumMember(Value = "hu")]
 75        Hu,
 76        [EnumMember(Value = "is")]
 77        Is,
 78        [EnumMember(Value = "id")]
 79        Id,
 80        [EnumMember(Value = "it")]
 81        It,
 82        [EnumMember(Value = "ja")]
 83        Ja,
 84        [EnumMember(Value = "sw")]
 85        Sw,
 86        [EnumMember(Value = "tlh")]
 87        Tlh,
 88        [EnumMember(Value = "ko")]
 89        Ko,
 90        [EnumMember(Value = "lv")]
 91        Lv,
 92        [EnumMember(Value = "lt")]
 93        Lt,
 94        [EnumMember(Value = "mg")]
 95        Mg,
 96        [EnumMember(Value = "ms")]
 97        Ms,
 98        [EnumMember(Value = "mt")]
 99        Mt,
 100        [EnumMember(Value = "nb")]
 101        Nb,
 102        [EnumMember(Value = "fa")]
 103        Fa,
 104        [EnumMember(Value = "pl")]
 105        Pl,
 106        [EnumMember(Value = "pt")]
 107        Pt,
 108        [EnumMember(Value = "otq")]
 109        Otq,
 110        [EnumMember(Value = "ro")]
 111        Ro,
 112        [EnumMember(Value = "ru")]
 113        Ru,
 114        [EnumMember(Value = "sm")]
 115        Sm,
 116        [EnumMember(Value = "sr-Cyrl")]
 117        SrCyrl,
 118        [EnumMember(Value = "sr-Latn")]
 119        SrLatn,
 120        [EnumMember(Value = "sk")]
 121        Sk,
 122        [EnumMember(Value = "sl")]
 123        Sl,
 124        [EnumMember(Value = "es")]
 125        Es,
 126        [EnumMember(Value = "sv")]
 127        Sv,
 128        [EnumMember(Value = "ty")]
 129        Ty,
 130        [EnumMember(Value = "ta")]
 131        Ta,
 132        [EnumMember(Value = "te")]
 133        Te,
 134        [EnumMember(Value = "th")]
 135        Th,
 136        [EnumMember(Value = "to")]
 137        To,
 138        [EnumMember(Value = "tr")]
 139        Tr,
 140        [EnumMember(Value = "uk")]
 141        Uk,
 142        [EnumMember(Value = "ur")]
 143        Ur,
 144        [EnumMember(Value = "vi")]
 145        Vi,
 146        [EnumMember(Value = "cy")]
 147        Cy,
 148        [EnumMember(Value = "yua")]
 149        Yua
 150    }
 151    internal static class TextTranslationSkillLanguageEnumExtension
 152    {
 153        internal static string ToSerializedValue(this TextTranslationSkillLanguage? value)
 154        {
 0155            return value == null ? null : ((TextTranslationSkillLanguage)value).ToSerializedValue();
 156        }
 157
 158        internal static string ToSerializedValue(this TextTranslationSkillLanguage value)
 159        {
 160            switch( value )
 161            {
 162                case TextTranslationSkillLanguage.Af:
 0163                    return "af";
 164                case TextTranslationSkillLanguage.Ar:
 0165                    return "ar";
 166                case TextTranslationSkillLanguage.Bn:
 0167                    return "bn";
 168                case TextTranslationSkillLanguage.Bs:
 0169                    return "bs";
 170                case TextTranslationSkillLanguage.Bg:
 0171                    return "bg";
 172                case TextTranslationSkillLanguage.Yue:
 0173                    return "yue";
 174                case TextTranslationSkillLanguage.Ca:
 0175                    return "ca";
 176                case TextTranslationSkillLanguage.ZhHans:
 0177                    return "zh-Hans";
 178                case TextTranslationSkillLanguage.ZhHant:
 0179                    return "zh-Hant";
 180                case TextTranslationSkillLanguage.Hr:
 0181                    return "hr";
 182                case TextTranslationSkillLanguage.Cs:
 0183                    return "cs";
 184                case TextTranslationSkillLanguage.Da:
 0185                    return "da";
 186                case TextTranslationSkillLanguage.Nl:
 0187                    return "nl";
 188                case TextTranslationSkillLanguage.En:
 0189                    return "en";
 190                case TextTranslationSkillLanguage.Et:
 0191                    return "et";
 192                case TextTranslationSkillLanguage.Fj:
 0193                    return "fj";
 194                case TextTranslationSkillLanguage.Fil:
 0195                    return "fil";
 196                case TextTranslationSkillLanguage.Fi:
 0197                    return "fi";
 198                case TextTranslationSkillLanguage.Fr:
 0199                    return "fr";
 200                case TextTranslationSkillLanguage.De:
 0201                    return "de";
 202                case TextTranslationSkillLanguage.El:
 0203                    return "el";
 204                case TextTranslationSkillLanguage.Ht:
 0205                    return "ht";
 206                case TextTranslationSkillLanguage.He:
 0207                    return "he";
 208                case TextTranslationSkillLanguage.Hi:
 0209                    return "hi";
 210                case TextTranslationSkillLanguage.Mww:
 0211                    return "mww";
 212                case TextTranslationSkillLanguage.Hu:
 0213                    return "hu";
 214                case TextTranslationSkillLanguage.Is:
 0215                    return "is";
 216                case TextTranslationSkillLanguage.Id:
 0217                    return "id";
 218                case TextTranslationSkillLanguage.It:
 0219                    return "it";
 220                case TextTranslationSkillLanguage.Ja:
 0221                    return "ja";
 222                case TextTranslationSkillLanguage.Sw:
 0223                    return "sw";
 224                case TextTranslationSkillLanguage.Tlh:
 0225                    return "tlh";
 226                case TextTranslationSkillLanguage.Ko:
 0227                    return "ko";
 228                case TextTranslationSkillLanguage.Lv:
 0229                    return "lv";
 230                case TextTranslationSkillLanguage.Lt:
 0231                    return "lt";
 232                case TextTranslationSkillLanguage.Mg:
 0233                    return "mg";
 234                case TextTranslationSkillLanguage.Ms:
 0235                    return "ms";
 236                case TextTranslationSkillLanguage.Mt:
 0237                    return "mt";
 238                case TextTranslationSkillLanguage.Nb:
 0239                    return "nb";
 240                case TextTranslationSkillLanguage.Fa:
 0241                    return "fa";
 242                case TextTranslationSkillLanguage.Pl:
 0243                    return "pl";
 244                case TextTranslationSkillLanguage.Pt:
 0245                    return "pt";
 246                case TextTranslationSkillLanguage.Otq:
 0247                    return "otq";
 248                case TextTranslationSkillLanguage.Ro:
 0249                    return "ro";
 250                case TextTranslationSkillLanguage.Ru:
 0251                    return "ru";
 252                case TextTranslationSkillLanguage.Sm:
 0253                    return "sm";
 254                case TextTranslationSkillLanguage.SrCyrl:
 0255                    return "sr-Cyrl";
 256                case TextTranslationSkillLanguage.SrLatn:
 0257                    return "sr-Latn";
 258                case TextTranslationSkillLanguage.Sk:
 0259                    return "sk";
 260                case TextTranslationSkillLanguage.Sl:
 0261                    return "sl";
 262                case TextTranslationSkillLanguage.Es:
 0263                    return "es";
 264                case TextTranslationSkillLanguage.Sv:
 0265                    return "sv";
 266                case TextTranslationSkillLanguage.Ty:
 0267                    return "ty";
 268                case TextTranslationSkillLanguage.Ta:
 0269                    return "ta";
 270                case TextTranslationSkillLanguage.Te:
 0271                    return "te";
 272                case TextTranslationSkillLanguage.Th:
 0273                    return "th";
 274                case TextTranslationSkillLanguage.To:
 0275                    return "to";
 276                case TextTranslationSkillLanguage.Tr:
 0277                    return "tr";
 278                case TextTranslationSkillLanguage.Uk:
 0279                    return "uk";
 280                case TextTranslationSkillLanguage.Ur:
 0281                    return "ur";
 282                case TextTranslationSkillLanguage.Vi:
 0283                    return "vi";
 284                case TextTranslationSkillLanguage.Cy:
 0285                    return "cy";
 286                case TextTranslationSkillLanguage.Yua:
 0287                    return "yua";
 288            }
 0289            return null;
 290        }
 291
 292        internal static TextTranslationSkillLanguage? ParseTextTranslationSkillLanguage(this string value)
 293        {
 294            switch( value )
 295            {
 296                case "af":
 0297                    return TextTranslationSkillLanguage.Af;
 298                case "ar":
 0299                    return TextTranslationSkillLanguage.Ar;
 300                case "bn":
 0301                    return TextTranslationSkillLanguage.Bn;
 302                case "bs":
 0303                    return TextTranslationSkillLanguage.Bs;
 304                case "bg":
 0305                    return TextTranslationSkillLanguage.Bg;
 306                case "yue":
 0307                    return TextTranslationSkillLanguage.Yue;
 308                case "ca":
 0309                    return TextTranslationSkillLanguage.Ca;
 310                case "zh-Hans":
 0311                    return TextTranslationSkillLanguage.ZhHans;
 312                case "zh-Hant":
 0313                    return TextTranslationSkillLanguage.ZhHant;
 314                case "hr":
 0315                    return TextTranslationSkillLanguage.Hr;
 316                case "cs":
 0317                    return TextTranslationSkillLanguage.Cs;
 318                case "da":
 0319                    return TextTranslationSkillLanguage.Da;
 320                case "nl":
 0321                    return TextTranslationSkillLanguage.Nl;
 322                case "en":
 0323                    return TextTranslationSkillLanguage.En;
 324                case "et":
 0325                    return TextTranslationSkillLanguage.Et;
 326                case "fj":
 0327                    return TextTranslationSkillLanguage.Fj;
 328                case "fil":
 0329                    return TextTranslationSkillLanguage.Fil;
 330                case "fi":
 0331                    return TextTranslationSkillLanguage.Fi;
 332                case "fr":
 0333                    return TextTranslationSkillLanguage.Fr;
 334                case "de":
 0335                    return TextTranslationSkillLanguage.De;
 336                case "el":
 0337                    return TextTranslationSkillLanguage.El;
 338                case "ht":
 0339                    return TextTranslationSkillLanguage.Ht;
 340                case "he":
 0341                    return TextTranslationSkillLanguage.He;
 342                case "hi":
 0343                    return TextTranslationSkillLanguage.Hi;
 344                case "mww":
 0345                    return TextTranslationSkillLanguage.Mww;
 346                case "hu":
 0347                    return TextTranslationSkillLanguage.Hu;
 348                case "is":
 0349                    return TextTranslationSkillLanguage.Is;
 350                case "id":
 0351                    return TextTranslationSkillLanguage.Id;
 352                case "it":
 0353                    return TextTranslationSkillLanguage.It;
 354                case "ja":
 0355                    return TextTranslationSkillLanguage.Ja;
 356                case "sw":
 0357                    return TextTranslationSkillLanguage.Sw;
 358                case "tlh":
 0359                    return TextTranslationSkillLanguage.Tlh;
 360                case "ko":
 0361                    return TextTranslationSkillLanguage.Ko;
 362                case "lv":
 0363                    return TextTranslationSkillLanguage.Lv;
 364                case "lt":
 0365                    return TextTranslationSkillLanguage.Lt;
 366                case "mg":
 0367                    return TextTranslationSkillLanguage.Mg;
 368                case "ms":
 0369                    return TextTranslationSkillLanguage.Ms;
 370                case "mt":
 0371                    return TextTranslationSkillLanguage.Mt;
 372                case "nb":
 0373                    return TextTranslationSkillLanguage.Nb;
 374                case "fa":
 0375                    return TextTranslationSkillLanguage.Fa;
 376                case "pl":
 0377                    return TextTranslationSkillLanguage.Pl;
 378                case "pt":
 0379                    return TextTranslationSkillLanguage.Pt;
 380                case "otq":
 0381                    return TextTranslationSkillLanguage.Otq;
 382                case "ro":
 0383                    return TextTranslationSkillLanguage.Ro;
 384                case "ru":
 0385                    return TextTranslationSkillLanguage.Ru;
 386                case "sm":
 0387                    return TextTranslationSkillLanguage.Sm;
 388                case "sr-Cyrl":
 0389                    return TextTranslationSkillLanguage.SrCyrl;
 390                case "sr-Latn":
 0391                    return TextTranslationSkillLanguage.SrLatn;
 392                case "sk":
 0393                    return TextTranslationSkillLanguage.Sk;
 394                case "sl":
 0395                    return TextTranslationSkillLanguage.Sl;
 396                case "es":
 0397                    return TextTranslationSkillLanguage.Es;
 398                case "sv":
 0399                    return TextTranslationSkillLanguage.Sv;
 400                case "ty":
 0401                    return TextTranslationSkillLanguage.Ty;
 402                case "ta":
 0403                    return TextTranslationSkillLanguage.Ta;
 404                case "te":
 0405                    return TextTranslationSkillLanguage.Te;
 406                case "th":
 0407                    return TextTranslationSkillLanguage.Th;
 408                case "to":
 0409                    return TextTranslationSkillLanguage.To;
 410                case "tr":
 0411                    return TextTranslationSkillLanguage.Tr;
 412                case "uk":
 0413                    return TextTranslationSkillLanguage.Uk;
 414                case "ur":
 0415                    return TextTranslationSkillLanguage.Ur;
 416                case "vi":
 0417                    return TextTranslationSkillLanguage.Vi;
 418                case "cy":
 0419                    return TextTranslationSkillLanguage.Cy;
 420                case "yua":
 0421                    return TextTranslationSkillLanguage.Yua;
 422            }
 0423            return null;
 424        }
 425    }
 426}