< Summary

Class:Azure.Search.Documents.Indexes.Models.SentimentSkillLanguage
Assembly:Azure.Search.Documents
File(s):C:\Git\azure-sdk-for-net\sdk\search\Azure.Search.Documents\src\Generated\Models\SentimentSkillLanguage.cs
Covered lines:4
Uncovered lines:20
Coverable lines:24
Total lines:90
Line coverage:16.6% (4 of 24)
Covered branches:1
Total branches:6
Branch coverage:16.6% (1 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%50%
get_Da()-0%100%
get_Nl()-0%100%
get_En()-100%100%
get_Fi()-0%100%
get_Fr()-0%100%
get_De()-0%100%
get_El()-0%100%
get_It()-0%100%
get_No()-0%100%
get_Pl()-0%100%
get_PtPT()-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()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Azure.Search.Documents\src\Generated\Models\SentimentSkillLanguage.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 SentimentSkill. </summary>
 14    public readonly partial struct SentimentSkillLanguage : IEquatable<SentimentSkillLanguage>
 15    {
 16        private readonly string _value;
 17
 18        /// <summary> Determines if two <see cref="SentimentSkillLanguage"/> values are the same. </summary>
 19        /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception>
 20        public SentimentSkillLanguage(string value)
 21        {
 2122            _value = value ?? throw new ArgumentNullException(nameof(value));
 2123        }
 24
 25        private const string DaValue = "da";
 26        private const string NlValue = "nl";
 27        private const string EnValue = "en";
 28        private const string FiValue = "fi";
 29        private const string FrValue = "fr";
 30        private const string DeValue = "de";
 31        private const string ElValue = "el";
 32        private const string ItValue = "it";
 33        private const string NoValue = "no";
 34        private const string PlValue = "pl";
 35        private const string PtPTValue = "pt-PT";
 36        private const string RuValue = "ru";
 37        private const string EsValue = "es";
 38        private const string SvValue = "sv";
 39        private const string TrValue = "tr";
 40
 41        /// <summary> Danish. </summary>
 042        public static SentimentSkillLanguage Da { get; } = new SentimentSkillLanguage(DaValue);
 43        /// <summary> Dutch. </summary>
 044        public static SentimentSkillLanguage Nl { get; } = new SentimentSkillLanguage(NlValue);
 45        /// <summary> English. </summary>
 346        public static SentimentSkillLanguage En { get; } = new SentimentSkillLanguage(EnValue);
 47        /// <summary> Finnish. </summary>
 048        public static SentimentSkillLanguage Fi { get; } = new SentimentSkillLanguage(FiValue);
 49        /// <summary> French. </summary>
 050        public static SentimentSkillLanguage Fr { get; } = new SentimentSkillLanguage(FrValue);
 51        /// <summary> German. </summary>
 052        public static SentimentSkillLanguage De { get; } = new SentimentSkillLanguage(DeValue);
 53        /// <summary> Greek. </summary>
 054        public static SentimentSkillLanguage El { get; } = new SentimentSkillLanguage(ElValue);
 55        /// <summary> Italian. </summary>
 056        public static SentimentSkillLanguage It { get; } = new SentimentSkillLanguage(ItValue);
 57        /// <summary> Norwegian (Bokmaal). </summary>
 058        public static SentimentSkillLanguage No { get; } = new SentimentSkillLanguage(NoValue);
 59        /// <summary> Polish. </summary>
 060        public static SentimentSkillLanguage Pl { get; } = new SentimentSkillLanguage(PlValue);
 61        /// <summary> Portuguese (Portugal). </summary>
 062        public static SentimentSkillLanguage PtPT { get; } = new SentimentSkillLanguage(PtPTValue);
 63        /// <summary> Russian. </summary>
 064        public static SentimentSkillLanguage Ru { get; } = new SentimentSkillLanguage(RuValue);
 65        /// <summary> Spanish. </summary>
 066        public static SentimentSkillLanguage Es { get; } = new SentimentSkillLanguage(EsValue);
 67        /// <summary> Swedish. </summary>
 068        public static SentimentSkillLanguage Sv { get; } = new SentimentSkillLanguage(SvValue);
 69        /// <summary> Turkish. </summary>
 070        public static SentimentSkillLanguage Tr { get; } = new SentimentSkillLanguage(TrValue);
 71        /// <summary> Determines if two <see cref="SentimentSkillLanguage"/> values are the same. </summary>
 072        public static bool operator ==(SentimentSkillLanguage left, SentimentSkillLanguage right) => left.Equals(right);
 73        /// <summary> Determines if two <see cref="SentimentSkillLanguage"/> values are not the same. </summary>
 074        public static bool operator !=(SentimentSkillLanguage left, SentimentSkillLanguage right) => !left.Equals(right)
 75        /// <summary> Converts a string to a <see cref="SentimentSkillLanguage"/>. </summary>
 076        public static implicit operator SentimentSkillLanguage(string value) => new SentimentSkillLanguage(value);
 77
 78        /// <inheritdoc />
 79        [EditorBrowsable(EditorBrowsableState.Never)]
 080        public override bool Equals(object obj) => obj is SentimentSkillLanguage other && Equals(other);
 81        /// <inheritdoc />
 082        public bool Equals(SentimentSkillLanguage other) => string.Equals(_value, other._value, StringComparison.Invaria
 83
 84        /// <inheritdoc />
 85        [EditorBrowsable(EditorBrowsableState.Never)]
 086        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 87        /// <inheritdoc />
 488        public override string ToString() => _value;
 89    }
 90}