< Summary

Class:Azure.Search.Documents.Indexes.Models.TextTranslationSkillLanguage
Assembly:Azure.Search.Documents
File(s):C:\Git\azure-sdk-for-net\sdk\search\Azure.Search.Documents\src\Generated\Models\TextTranslationSkillLanguage.cs
Covered lines:5
Uncovered lines:67
Coverable lines:72
Total lines:234
Line coverage:6.9% (5 of 72)
Covered branches:1
Total branches:6
Branch coverage:16.6% (1 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%50%
get_Af()-0%100%
get_Ar()-0%100%
get_Bn()-0%100%
get_Bs()-0%100%
get_Bg()-0%100%
get_Yue()-0%100%
get_Ca()-0%100%
get_ZhHans()-0%100%
get_ZhHant()-0%100%
get_Hr()-0%100%
get_Cs()-0%100%
get_Da()-0%100%
get_Nl()-0%100%
get_En()-100%100%
get_Et()-0%100%
get_Fj()-0%100%
get_Fil()-0%100%
get_Fi()-0%100%
get_Fr()-100%100%
get_De()-0%100%
get_El()-0%100%
get_Ht()-0%100%
get_He()-0%100%
get_Hi()-0%100%
get_Mww()-0%100%
get_Hu()-0%100%
get_Is()-0%100%
get_Id()-0%100%
get_It()-0%100%
get_Ja()-0%100%
get_Sw()-0%100%
get_Tlh()-0%100%
get_Ko()-0%100%
get_Lv()-0%100%
get_Lt()-0%100%
get_Mg()-0%100%
get_Ms()-0%100%
get_Mt()-0%100%
get_Nb()-0%100%
get_Fa()-0%100%
get_Pl()-0%100%
get_Pt()-0%100%
get_Otq()-0%100%
get_Ro()-0%100%
get_Ru()-0%100%
get_Sm()-0%100%
get_SrCyrl()-0%100%
get_SrLatn()-0%100%
get_Sk()-0%100%
get_Sl()-0%100%
get_Es()-0%100%
get_Sv()-0%100%
get_Ty()-0%100%
get_Ta()-0%100%
get_Te()-0%100%
get_Th()-0%100%
get_To()-0%100%
get_Tr()-0%100%
get_Uk()-0%100%
get_Ur()-0%100%
get_Vi()-0%100%
get_Cy()-0%100%
get_Yua()-0%100%
op_Equality(...)-0%100%
op_Inequality(...)-0%100%
op_Implicit(...)-0%100%
Equals(...)-0%0%
Equals(...)-0%100%
GetHashCode()-0%0%
ToString()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Azure.Search.Documents\src\Generated\Models\TextTranslationSkillLanguage.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System;
 9using System.ComponentModel;
 10
 11namespace Azure.Search.Documents.Indexes.Models
 12{
 13    /// <summary> The language codes supported for input text by TextTranslationSkill. </summary>
 14    public readonly partial struct TextTranslationSkillLanguage : IEquatable<TextTranslationSkillLanguage>
 15    {
 16        private readonly string _value;
 17
 18        /// <summary> Determines if two <see cref="TextTranslationSkillLanguage"/> values are the same. </summary>
 19        /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception>
 20        public TextTranslationSkillLanguage(string value)
 21        {
 6522            _value = value ?? throw new ArgumentNullException(nameof(value));
 6523        }
 24
 25        private const string AfValue = "af";
 26        private const string ArValue = "ar";
 27        private const string BnValue = "bn";
 28        private const string BsValue = "bs";
 29        private const string BgValue = "bg";
 30        private const string YueValue = "yue";
 31        private const string CaValue = "ca";
 32        private const string ZhHansValue = "zh-Hans";
 33        private const string ZhHantValue = "zh-Hant";
 34        private const string HrValue = "hr";
 35        private const string CsValue = "cs";
 36        private const string DaValue = "da";
 37        private const string NlValue = "nl";
 38        private const string EnValue = "en";
 39        private const string EtValue = "et";
 40        private const string FjValue = "fj";
 41        private const string FilValue = "fil";
 42        private const string FiValue = "fi";
 43        private const string FrValue = "fr";
 44        private const string DeValue = "de";
 45        private const string ElValue = "el";
 46        private const string HtValue = "ht";
 47        private const string HeValue = "he";
 48        private const string HiValue = "hi";
 49        private const string MwwValue = "mww";
 50        private const string HuValue = "hu";
 51        private const string IsValue = "is";
 52        private const string IdValue = "id";
 53        private const string ItValue = "it";
 54        private const string JaValue = "ja";
 55        private const string SwValue = "sw";
 56        private const string TlhValue = "tlh";
 57        private const string KoValue = "ko";
 58        private const string LvValue = "lv";
 59        private const string LtValue = "lt";
 60        private const string MgValue = "mg";
 61        private const string MsValue = "ms";
 62        private const string MtValue = "mt";
 63        private const string NbValue = "nb";
 64        private const string FaValue = "fa";
 65        private const string PlValue = "pl";
 66        private const string PtValue = "pt";
 67        private const string OtqValue = "otq";
 68        private const string RoValue = "ro";
 69        private const string RuValue = "ru";
 70        private const string SmValue = "sm";
 71        private const string SrCyrlValue = "sr-Cyrl";
 72        private const string SrLatnValue = "sr-Latn";
 73        private const string SkValue = "sk";
 74        private const string SlValue = "sl";
 75        private const string EsValue = "es";
 76        private const string SvValue = "sv";
 77        private const string TyValue = "ty";
 78        private const string TaValue = "ta";
 79        private const string TeValue = "te";
 80        private const string ThValue = "th";
 81        private const string ToValue = "to";
 82        private const string TrValue = "tr";
 83        private const string UkValue = "uk";
 84        private const string UrValue = "ur";
 85        private const string ViValue = "vi";
 86        private const string CyValue = "cy";
 87        private const string YuaValue = "yua";
 88
 89        /// <summary> Afrikaans. </summary>
 090        public static TextTranslationSkillLanguage Af { get; } = new TextTranslationSkillLanguage(AfValue);
 91        /// <summary> Arabic. </summary>
 092        public static TextTranslationSkillLanguage Ar { get; } = new TextTranslationSkillLanguage(ArValue);
 93        /// <summary> Bangla. </summary>
 094        public static TextTranslationSkillLanguage Bn { get; } = new TextTranslationSkillLanguage(BnValue);
 95        /// <summary> Bosnian (Latin). </summary>
 096        public static TextTranslationSkillLanguage Bs { get; } = new TextTranslationSkillLanguage(BsValue);
 97        /// <summary> Bulgarian. </summary>
 098        public static TextTranslationSkillLanguage Bg { get; } = new TextTranslationSkillLanguage(BgValue);
 99        /// <summary> Cantonese (Traditional). </summary>
 0100        public static TextTranslationSkillLanguage Yue { get; } = new TextTranslationSkillLanguage(YueValue);
 101        /// <summary> Catalan. </summary>
 0102        public static TextTranslationSkillLanguage Ca { get; } = new TextTranslationSkillLanguage(CaValue);
 103        /// <summary> Chinese Simplified. </summary>
 0104        public static TextTranslationSkillLanguage ZhHans { get; } = new TextTranslationSkillLanguage(ZhHansValue);
 105        /// <summary> Chinese Traditional. </summary>
 0106        public static TextTranslationSkillLanguage ZhHant { get; } = new TextTranslationSkillLanguage(ZhHantValue);
 107        /// <summary> Croatian. </summary>
 0108        public static TextTranslationSkillLanguage Hr { get; } = new TextTranslationSkillLanguage(HrValue);
 109        /// <summary> Czech. </summary>
 0110        public static TextTranslationSkillLanguage Cs { get; } = new TextTranslationSkillLanguage(CsValue);
 111        /// <summary> Danish. </summary>
 0112        public static TextTranslationSkillLanguage Da { get; } = new TextTranslationSkillLanguage(DaValue);
 113        /// <summary> Dutch. </summary>
 0114        public static TextTranslationSkillLanguage Nl { get; } = new TextTranslationSkillLanguage(NlValue);
 115        /// <summary> English. </summary>
 2116        public static TextTranslationSkillLanguage En { get; } = new TextTranslationSkillLanguage(EnValue);
 117        /// <summary> Estonian. </summary>
 0118        public static TextTranslationSkillLanguage Et { get; } = new TextTranslationSkillLanguage(EtValue);
 119        /// <summary> Fijian. </summary>
 0120        public static TextTranslationSkillLanguage Fj { get; } = new TextTranslationSkillLanguage(FjValue);
 121        /// <summary> Filipino. </summary>
 0122        public static TextTranslationSkillLanguage Fil { get; } = new TextTranslationSkillLanguage(FilValue);
 123        /// <summary> Finnish. </summary>
 0124        public static TextTranslationSkillLanguage Fi { get; } = new TextTranslationSkillLanguage(FiValue);
 125        /// <summary> French. </summary>
 2126        public static TextTranslationSkillLanguage Fr { get; } = new TextTranslationSkillLanguage(FrValue);
 127        /// <summary> German. </summary>
 0128        public static TextTranslationSkillLanguage De { get; } = new TextTranslationSkillLanguage(DeValue);
 129        /// <summary> Greek. </summary>
 0130        public static TextTranslationSkillLanguage El { get; } = new TextTranslationSkillLanguage(ElValue);
 131        /// <summary> Haitian Creole. </summary>
 0132        public static TextTranslationSkillLanguage Ht { get; } = new TextTranslationSkillLanguage(HtValue);
 133        /// <summary> Hebrew. </summary>
 0134        public static TextTranslationSkillLanguage He { get; } = new TextTranslationSkillLanguage(HeValue);
 135        /// <summary> Hindi. </summary>
 0136        public static TextTranslationSkillLanguage Hi { get; } = new TextTranslationSkillLanguage(HiValue);
 137        /// <summary> Hmong Daw. </summary>
 0138        public static TextTranslationSkillLanguage Mww { get; } = new TextTranslationSkillLanguage(MwwValue);
 139        /// <summary> Hungarian. </summary>
 0140        public static TextTranslationSkillLanguage Hu { get; } = new TextTranslationSkillLanguage(HuValue);
 141        /// <summary> Icelandic. </summary>
 0142        public static TextTranslationSkillLanguage Is { get; } = new TextTranslationSkillLanguage(IsValue);
 143        /// <summary> Indonesian. </summary>
 0144        public static TextTranslationSkillLanguage Id { get; } = new TextTranslationSkillLanguage(IdValue);
 145        /// <summary> Italian. </summary>
 0146        public static TextTranslationSkillLanguage It { get; } = new TextTranslationSkillLanguage(ItValue);
 147        /// <summary> Japanese. </summary>
 0148        public static TextTranslationSkillLanguage Ja { get; } = new TextTranslationSkillLanguage(JaValue);
 149        /// <summary> Kiswahili. </summary>
 0150        public static TextTranslationSkillLanguage Sw { get; } = new TextTranslationSkillLanguage(SwValue);
 151        /// <summary> Klingon. </summary>
 0152        public static TextTranslationSkillLanguage Tlh { get; } = new TextTranslationSkillLanguage(TlhValue);
 153        /// <summary> Korean. </summary>
 0154        public static TextTranslationSkillLanguage Ko { get; } = new TextTranslationSkillLanguage(KoValue);
 155        /// <summary> Latvian. </summary>
 0156        public static TextTranslationSkillLanguage Lv { get; } = new TextTranslationSkillLanguage(LvValue);
 157        /// <summary> Lithuanian. </summary>
 0158        public static TextTranslationSkillLanguage Lt { get; } = new TextTranslationSkillLanguage(LtValue);
 159        /// <summary> Malagasy. </summary>
 0160        public static TextTranslationSkillLanguage Mg { get; } = new TextTranslationSkillLanguage(MgValue);
 161        /// <summary> Malay. </summary>
 0162        public static TextTranslationSkillLanguage Ms { get; } = new TextTranslationSkillLanguage(MsValue);
 163        /// <summary> Maltese. </summary>
 0164        public static TextTranslationSkillLanguage Mt { get; } = new TextTranslationSkillLanguage(MtValue);
 165        /// <summary> Norwegian. </summary>
 0166        public static TextTranslationSkillLanguage Nb { get; } = new TextTranslationSkillLanguage(NbValue);
 167        /// <summary> Persian. </summary>
 0168        public static TextTranslationSkillLanguage Fa { get; } = new TextTranslationSkillLanguage(FaValue);
 169        /// <summary> Polish. </summary>
 0170        public static TextTranslationSkillLanguage Pl { get; } = new TextTranslationSkillLanguage(PlValue);
 171        /// <summary> Portuguese. </summary>
 0172        public static TextTranslationSkillLanguage Pt { get; } = new TextTranslationSkillLanguage(PtValue);
 173        /// <summary> Queretaro Otomi. </summary>
 0174        public static TextTranslationSkillLanguage Otq { get; } = new TextTranslationSkillLanguage(OtqValue);
 175        /// <summary> Romanian. </summary>
 0176        public static TextTranslationSkillLanguage Ro { get; } = new TextTranslationSkillLanguage(RoValue);
 177        /// <summary> Russian. </summary>
 0178        public static TextTranslationSkillLanguage Ru { get; } = new TextTranslationSkillLanguage(RuValue);
 179        /// <summary> Samoan. </summary>
 0180        public static TextTranslationSkillLanguage Sm { get; } = new TextTranslationSkillLanguage(SmValue);
 181        /// <summary> Serbian (Cyrillic). </summary>
 0182        public static TextTranslationSkillLanguage SrCyrl { get; } = new TextTranslationSkillLanguage(SrCyrlValue);
 183        /// <summary> Serbian (Latin). </summary>
 0184        public static TextTranslationSkillLanguage SrLatn { get; } = new TextTranslationSkillLanguage(SrLatnValue);
 185        /// <summary> Slovak. </summary>
 0186        public static TextTranslationSkillLanguage Sk { get; } = new TextTranslationSkillLanguage(SkValue);
 187        /// <summary> Slovenian. </summary>
 0188        public static TextTranslationSkillLanguage Sl { get; } = new TextTranslationSkillLanguage(SlValue);
 189        /// <summary> Spanish. </summary>
 0190        public static TextTranslationSkillLanguage Es { get; } = new TextTranslationSkillLanguage(EsValue);
 191        /// <summary> Swedish. </summary>
 0192        public static TextTranslationSkillLanguage Sv { get; } = new TextTranslationSkillLanguage(SvValue);
 193        /// <summary> Tahitian. </summary>
 0194        public static TextTranslationSkillLanguage Ty { get; } = new TextTranslationSkillLanguage(TyValue);
 195        /// <summary> Tamil. </summary>
 0196        public static TextTranslationSkillLanguage Ta { get; } = new TextTranslationSkillLanguage(TaValue);
 197        /// <summary> Telugu. </summary>
 0198        public static TextTranslationSkillLanguage Te { get; } = new TextTranslationSkillLanguage(TeValue);
 199        /// <summary> Thai. </summary>
 0200        public static TextTranslationSkillLanguage Th { get; } = new TextTranslationSkillLanguage(ThValue);
 201        /// <summary> Tongan. </summary>
 0202        public static TextTranslationSkillLanguage To { get; } = new TextTranslationSkillLanguage(ToValue);
 203        /// <summary> Turkish. </summary>
 0204        public static TextTranslationSkillLanguage Tr { get; } = new TextTranslationSkillLanguage(TrValue);
 205        /// <summary> Ukrainian. </summary>
 0206        public static TextTranslationSkillLanguage Uk { get; } = new TextTranslationSkillLanguage(UkValue);
 207        /// <summary> Urdu. </summary>
 0208        public static TextTranslationSkillLanguage Ur { get; } = new TextTranslationSkillLanguage(UrValue);
 209        /// <summary> Vietnamese. </summary>
 0210        public static TextTranslationSkillLanguage Vi { get; } = new TextTranslationSkillLanguage(ViValue);
 211        /// <summary> Welsh. </summary>
 0212        public static TextTranslationSkillLanguage Cy { get; } = new TextTranslationSkillLanguage(CyValue);
 213        /// <summary> Yucatec Maya. </summary>
 0214        public static TextTranslationSkillLanguage Yua { get; } = new TextTranslationSkillLanguage(YuaValue);
 215        /// <summary> Determines if two <see cref="TextTranslationSkillLanguage"/> values are the same. </summary>
 0216        public static bool operator ==(TextTranslationSkillLanguage left, TextTranslationSkillLanguage right) => left.Eq
 217        /// <summary> Determines if two <see cref="TextTranslationSkillLanguage"/> values are not the same. </summary>
 0218        public static bool operator !=(TextTranslationSkillLanguage left, TextTranslationSkillLanguage right) => !left.E
 219        /// <summary> Converts a string to a <see cref="TextTranslationSkillLanguage"/>. </summary>
 0220        public static implicit operator TextTranslationSkillLanguage(string value) => new TextTranslationSkillLanguage(v
 221
 222        /// <inheritdoc />
 223        [EditorBrowsable(EditorBrowsableState.Never)]
 0224        public override bool Equals(object obj) => obj is TextTranslationSkillLanguage other && Equals(other);
 225        /// <inheritdoc />
 0226        public bool Equals(TextTranslationSkillLanguage other) => string.Equals(_value, other._value, StringComparison.I
 227
 228        /// <inheritdoc />
 229        [EditorBrowsable(EditorBrowsableState.Never)]
 0230        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 231        /// <inheritdoc />
 2232        public override string ToString() => _value;
 233    }
 234}