< Summary

Class:Azure.Search.Documents.Indexes.Models.OcrSkillLanguage
Assembly:Azure.Search.Documents
File(s):C:\Git\azure-sdk-for-net\sdk\search\Azure.Search.Documents\src\Generated\Models\OcrSkillLanguage.cs
Covered lines:0
Uncovered lines:35
Coverable lines:35
Total lines:123
Line coverage:0% (0 of 35)
Covered branches:0
Total branches:6
Branch coverage:0% (0 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
get_ZhHans()-0%100%
get_ZhHant()-0%100%
get_Cs()-0%100%
get_Da()-0%100%
get_Nl()-0%100%
get_En()-0%100%
get_Fi()-0%100%
get_Fr()-0%100%
get_De()-0%100%
get_El()-0%100%
get_Hu()-0%100%
get_It()-0%100%
get_Ja()-0%100%
get_Ko()-0%100%
get_Nb()-0%100%
get_Pl()-0%100%
get_Pt()-0%100%
get_Ru()-0%100%
get_Es()-0%100%
get_Sv()-0%100%
get_Tr()-0%100%
get_Ar()-0%100%
get_Ro()-0%100%
get_SrCyrl()-0%100%
get_SrLatn()-0%100%
get_Sk()-0%100%
op_Equality(...)-0%100%
op_Inequality(...)-0%100%
op_Implicit(...)-0%100%
Equals(...)-0%0%
Equals(...)-0%100%
GetHashCode()-0%0%
ToString()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Azure.Search.Documents\src\Generated\Models\OcrSkillLanguage.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 by OcrSkill. </summary>
 14    public readonly partial struct OcrSkillLanguage : IEquatable<OcrSkillLanguage>
 15    {
 16        private readonly string _value;
 17
 18        /// <summary> Determines if two <see cref="OcrSkillLanguage"/> values are the same. </summary>
 19        /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception>
 20        public OcrSkillLanguage(string value)
 21        {
 022            _value = value ?? throw new ArgumentNullException(nameof(value));
 023        }
 24
 25        private const string ZhHansValue = "zh-Hans";
 26        private const string ZhHantValue = "zh-Hant";
 27        private const string CsValue = "cs";
 28        private const string DaValue = "da";
 29        private const string NlValue = "nl";
 30        private const string EnValue = "en";
 31        private const string FiValue = "fi";
 32        private const string FrValue = "fr";
 33        private const string DeValue = "de";
 34        private const string ElValue = "el";
 35        private const string HuValue = "hu";
 36        private const string ItValue = "it";
 37        private const string JaValue = "ja";
 38        private const string KoValue = "ko";
 39        private const string NbValue = "nb";
 40        private const string PlValue = "pl";
 41        private const string PtValue = "pt";
 42        private const string RuValue = "ru";
 43        private const string EsValue = "es";
 44        private const string SvValue = "sv";
 45        private const string TrValue = "tr";
 46        private const string ArValue = "ar";
 47        private const string RoValue = "ro";
 48        private const string SrCyrlValue = "sr-Cyrl";
 49        private const string SrLatnValue = "sr-Latn";
 50        private const string SkValue = "sk";
 51
 52        /// <summary> Chinese-Simplified. </summary>
 053        public static OcrSkillLanguage ZhHans { get; } = new OcrSkillLanguage(ZhHansValue);
 54        /// <summary> Chinese-Traditional. </summary>
 055        public static OcrSkillLanguage ZhHant { get; } = new OcrSkillLanguage(ZhHantValue);
 56        /// <summary> Czech. </summary>
 057        public static OcrSkillLanguage Cs { get; } = new OcrSkillLanguage(CsValue);
 58        /// <summary> Danish. </summary>
 059        public static OcrSkillLanguage Da { get; } = new OcrSkillLanguage(DaValue);
 60        /// <summary> Dutch. </summary>
 061        public static OcrSkillLanguage Nl { get; } = new OcrSkillLanguage(NlValue);
 62        /// <summary> English. </summary>
 063        public static OcrSkillLanguage En { get; } = new OcrSkillLanguage(EnValue);
 64        /// <summary> Finnish. </summary>
 065        public static OcrSkillLanguage Fi { get; } = new OcrSkillLanguage(FiValue);
 66        /// <summary> French. </summary>
 067        public static OcrSkillLanguage Fr { get; } = new OcrSkillLanguage(FrValue);
 68        /// <summary> German. </summary>
 069        public static OcrSkillLanguage De { get; } = new OcrSkillLanguage(DeValue);
 70        /// <summary> Greek. </summary>
 071        public static OcrSkillLanguage El { get; } = new OcrSkillLanguage(ElValue);
 72        /// <summary> Hungarian. </summary>
 073        public static OcrSkillLanguage Hu { get; } = new OcrSkillLanguage(HuValue);
 74        /// <summary> Italian. </summary>
 075        public static OcrSkillLanguage It { get; } = new OcrSkillLanguage(ItValue);
 76        /// <summary> Japanese. </summary>
 077        public static OcrSkillLanguage Ja { get; } = new OcrSkillLanguage(JaValue);
 78        /// <summary> Korean. </summary>
 079        public static OcrSkillLanguage Ko { get; } = new OcrSkillLanguage(KoValue);
 80        /// <summary> Norwegian (Bokmaal). </summary>
 081        public static OcrSkillLanguage Nb { get; } = new OcrSkillLanguage(NbValue);
 82        /// <summary> Polish. </summary>
 083        public static OcrSkillLanguage Pl { get; } = new OcrSkillLanguage(PlValue);
 84        /// <summary> Portuguese. </summary>
 085        public static OcrSkillLanguage Pt { get; } = new OcrSkillLanguage(PtValue);
 86        /// <summary> Russian. </summary>
 087        public static OcrSkillLanguage Ru { get; } = new OcrSkillLanguage(RuValue);
 88        /// <summary> Spanish. </summary>
 089        public static OcrSkillLanguage Es { get; } = new OcrSkillLanguage(EsValue);
 90        /// <summary> Swedish. </summary>
 091        public static OcrSkillLanguage Sv { get; } = new OcrSkillLanguage(SvValue);
 92        /// <summary> Turkish. </summary>
 093        public static OcrSkillLanguage Tr { get; } = new OcrSkillLanguage(TrValue);
 94        /// <summary> Arabic. </summary>
 095        public static OcrSkillLanguage Ar { get; } = new OcrSkillLanguage(ArValue);
 96        /// <summary> Romanian. </summary>
 097        public static OcrSkillLanguage Ro { get; } = new OcrSkillLanguage(RoValue);
 98        /// <summary> Serbian (Cyrillic, Serbia). </summary>
 099        public static OcrSkillLanguage SrCyrl { get; } = new OcrSkillLanguage(SrCyrlValue);
 100        /// <summary> Serbian (Latin, Serbia). </summary>
 0101        public static OcrSkillLanguage SrLatn { get; } = new OcrSkillLanguage(SrLatnValue);
 102        /// <summary> Slovak. </summary>
 0103        public static OcrSkillLanguage Sk { get; } = new OcrSkillLanguage(SkValue);
 104        /// <summary> Determines if two <see cref="OcrSkillLanguage"/> values are the same. </summary>
 0105        public static bool operator ==(OcrSkillLanguage left, OcrSkillLanguage right) => left.Equals(right);
 106        /// <summary> Determines if two <see cref="OcrSkillLanguage"/> values are not the same. </summary>
 0107        public static bool operator !=(OcrSkillLanguage left, OcrSkillLanguage right) => !left.Equals(right);
 108        /// <summary> Converts a string to a <see cref="OcrSkillLanguage"/>. </summary>
 0109        public static implicit operator OcrSkillLanguage(string value) => new OcrSkillLanguage(value);
 110
 111        /// <inheritdoc />
 112        [EditorBrowsable(EditorBrowsableState.Never)]
 0113        public override bool Equals(object obj) => obj is OcrSkillLanguage other && Equals(other);
 114        /// <inheritdoc />
 0115        public bool Equals(OcrSkillLanguage other) => string.Equals(_value, other._value, StringComparison.InvariantCult
 116
 117        /// <inheritdoc />
 118        [EditorBrowsable(EditorBrowsableState.Never)]
 0119        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 120        /// <inheritdoc />
 0121        public override string ToString() => _value;
 122    }
 123}