< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
get_Ar()-0%100%
get_Cs()-0%100%
get_ZhHans()-0%100%
get_ZhHant()-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_No()-0%100%
get_Pl()-0%100%
get_PtPT()-0%100%
get_PtBR()-0%100%
get_Ru()-0%100%
get_Es()-0%100%
get_Sv()-0%100%
get_Tr()-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\EntityRecognitionSkillLanguage.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 EntityRecognitionSkill. </summary>
 14    public readonly partial struct EntityRecognitionSkillLanguage : IEquatable<EntityRecognitionSkillLanguage>
 15    {
 16        private readonly string _value;
 17
 18        /// <summary> Determines if two <see cref="EntityRecognitionSkillLanguage"/> values are the same. </summary>
 19        /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception>
 20        public EntityRecognitionSkillLanguage(string value)
 21        {
 022            _value = value ?? throw new ArgumentNullException(nameof(value));
 023        }
 24
 25        private const string ArValue = "ar";
 26        private const string CsValue = "cs";
 27        private const string ZhHansValue = "zh-Hans";
 28        private const string ZhHantValue = "zh-Hant";
 29        private const string DaValue = "da";
 30        private const string NlValue = "nl";
 31        private const string EnValue = "en";
 32        private const string FiValue = "fi";
 33        private const string FrValue = "fr";
 34        private const string DeValue = "de";
 35        private const string ElValue = "el";
 36        private const string HuValue = "hu";
 37        private const string ItValue = "it";
 38        private const string JaValue = "ja";
 39        private const string KoValue = "ko";
 40        private const string NoValue = "no";
 41        private const string PlValue = "pl";
 42        private const string PtPTValue = "pt-PT";
 43        private const string PtBRValue = "pt-BR";
 44        private const string RuValue = "ru";
 45        private const string EsValue = "es";
 46        private const string SvValue = "sv";
 47        private const string TrValue = "tr";
 48
 49        /// <summary> Arabic. </summary>
 050        public static EntityRecognitionSkillLanguage Ar { get; } = new EntityRecognitionSkillLanguage(ArValue);
 51        /// <summary> Czech. </summary>
 052        public static EntityRecognitionSkillLanguage Cs { get; } = new EntityRecognitionSkillLanguage(CsValue);
 53        /// <summary> Chinese-Simplified. </summary>
 054        public static EntityRecognitionSkillLanguage ZhHans { get; } = new EntityRecognitionSkillLanguage(ZhHansValue);
 55        /// <summary> Chinese-Traditional. </summary>
 056        public static EntityRecognitionSkillLanguage ZhHant { get; } = new EntityRecognitionSkillLanguage(ZhHantValue);
 57        /// <summary> Danish. </summary>
 058        public static EntityRecognitionSkillLanguage Da { get; } = new EntityRecognitionSkillLanguage(DaValue);
 59        /// <summary> Dutch. </summary>
 060        public static EntityRecognitionSkillLanguage Nl { get; } = new EntityRecognitionSkillLanguage(NlValue);
 61        /// <summary> English. </summary>
 062        public static EntityRecognitionSkillLanguage En { get; } = new EntityRecognitionSkillLanguage(EnValue);
 63        /// <summary> Finnish. </summary>
 064        public static EntityRecognitionSkillLanguage Fi { get; } = new EntityRecognitionSkillLanguage(FiValue);
 65        /// <summary> French. </summary>
 066        public static EntityRecognitionSkillLanguage Fr { get; } = new EntityRecognitionSkillLanguage(FrValue);
 67        /// <summary> German. </summary>
 068        public static EntityRecognitionSkillLanguage De { get; } = new EntityRecognitionSkillLanguage(DeValue);
 69        /// <summary> Greek. </summary>
 070        public static EntityRecognitionSkillLanguage El { get; } = new EntityRecognitionSkillLanguage(ElValue);
 71        /// <summary> Hungarian. </summary>
 072        public static EntityRecognitionSkillLanguage Hu { get; } = new EntityRecognitionSkillLanguage(HuValue);
 73        /// <summary> Italian. </summary>
 074        public static EntityRecognitionSkillLanguage It { get; } = new EntityRecognitionSkillLanguage(ItValue);
 75        /// <summary> Japanese. </summary>
 076        public static EntityRecognitionSkillLanguage Ja { get; } = new EntityRecognitionSkillLanguage(JaValue);
 77        /// <summary> Korean. </summary>
 078        public static EntityRecognitionSkillLanguage Ko { get; } = new EntityRecognitionSkillLanguage(KoValue);
 79        /// <summary> Norwegian (Bokmaal). </summary>
 080        public static EntityRecognitionSkillLanguage No { get; } = new EntityRecognitionSkillLanguage(NoValue);
 81        /// <summary> Polish. </summary>
 082        public static EntityRecognitionSkillLanguage Pl { get; } = new EntityRecognitionSkillLanguage(PlValue);
 83        /// <summary> Portuguese (Portugal). </summary>
 084        public static EntityRecognitionSkillLanguage PtPT { get; } = new EntityRecognitionSkillLanguage(PtPTValue);
 85        /// <summary> Portuguese (Brazil). </summary>
 086        public static EntityRecognitionSkillLanguage PtBR { get; } = new EntityRecognitionSkillLanguage(PtBRValue);
 87        /// <summary> Russian. </summary>
 088        public static EntityRecognitionSkillLanguage Ru { get; } = new EntityRecognitionSkillLanguage(RuValue);
 89        /// <summary> Spanish. </summary>
 090        public static EntityRecognitionSkillLanguage Es { get; } = new EntityRecognitionSkillLanguage(EsValue);
 91        /// <summary> Swedish. </summary>
 092        public static EntityRecognitionSkillLanguage Sv { get; } = new EntityRecognitionSkillLanguage(SvValue);
 93        /// <summary> Turkish. </summary>
 094        public static EntityRecognitionSkillLanguage Tr { get; } = new EntityRecognitionSkillLanguage(TrValue);
 95        /// <summary> Determines if two <see cref="EntityRecognitionSkillLanguage"/> values are the same. </summary>
 096        public static bool operator ==(EntityRecognitionSkillLanguage left, EntityRecognitionSkillLanguage right) => lef
 97        /// <summary> Determines if two <see cref="EntityRecognitionSkillLanguage"/> values are not the same. </summary>
 098        public static bool operator !=(EntityRecognitionSkillLanguage left, EntityRecognitionSkillLanguage right) => !le
 99        /// <summary> Converts a string to a <see cref="EntityRecognitionSkillLanguage"/>. </summary>
 0100        public static implicit operator EntityRecognitionSkillLanguage(string value) => new EntityRecognitionSkillLangua
 101
 102        /// <inheritdoc />
 103        [EditorBrowsable(EditorBrowsableState.Never)]
 0104        public override bool Equals(object obj) => obj is EntityRecognitionSkillLanguage other && Equals(other);
 105        /// <inheritdoc />
 0106        public bool Equals(EntityRecognitionSkillLanguage other) => string.Equals(_value, other._value, StringComparison
 107
 108        /// <inheritdoc />
 109        [EditorBrowsable(EditorBrowsableState.Never)]
 0110        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 111        /// <inheritdoc />
 0112        public override string ToString() => _value;
 113    }
 114}