< Summary

Class:Azure.Search.Documents.Indexes.Models.KeyPhraseExtractionSkillLanguage
Assembly:Azure.Search.Documents
File(s):C:\Git\azure-sdk-for-net\sdk\search\Azure.Search.Documents\src\Generated\Models\KeyPhraseExtractionSkillLanguage.cs
Covered lines:4
Uncovered lines:21
Coverable lines:25
Total lines:93
Line coverage:16% (4 of 25)
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_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%
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\KeyPhraseExtractionSkillLanguage.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 KeyPhraseExtractionSkill. </summary>
 14    public readonly partial struct KeyPhraseExtractionSkillLanguage : IEquatable<KeyPhraseExtractionSkillLanguage>
 15    {
 16        private readonly string _value;
 17
 18        /// <summary> Determines if two <see cref="KeyPhraseExtractionSkillLanguage"/> values are the same. </summary>
 19        /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception>
 20        public KeyPhraseExtractionSkillLanguage(string value)
 21        {
 2222            _value = value ?? throw new ArgumentNullException(nameof(value));
 2223        }
 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 ItValue = "it";
 32        private const string JaValue = "ja";
 33        private const string KoValue = "ko";
 34        private const string NoValue = "no";
 35        private const string PlValue = "pl";
 36        private const string PtPTValue = "pt-PT";
 37        private const string PtBRValue = "pt-BR";
 38        private const string RuValue = "ru";
 39        private const string EsValue = "es";
 40        private const string SvValue = "sv";
 41
 42        /// <summary> Danish. </summary>
 043        public static KeyPhraseExtractionSkillLanguage Da { get; } = new KeyPhraseExtractionSkillLanguage(DaValue);
 44        /// <summary> Dutch. </summary>
 045        public static KeyPhraseExtractionSkillLanguage Nl { get; } = new KeyPhraseExtractionSkillLanguage(NlValue);
 46        /// <summary> English. </summary>
 347        public static KeyPhraseExtractionSkillLanguage En { get; } = new KeyPhraseExtractionSkillLanguage(EnValue);
 48        /// <summary> Finnish. </summary>
 049        public static KeyPhraseExtractionSkillLanguage Fi { get; } = new KeyPhraseExtractionSkillLanguage(FiValue);
 50        /// <summary> French. </summary>
 051        public static KeyPhraseExtractionSkillLanguage Fr { get; } = new KeyPhraseExtractionSkillLanguage(FrValue);
 52        /// <summary> German. </summary>
 053        public static KeyPhraseExtractionSkillLanguage De { get; } = new KeyPhraseExtractionSkillLanguage(DeValue);
 54        /// <summary> Italian. </summary>
 055        public static KeyPhraseExtractionSkillLanguage It { get; } = new KeyPhraseExtractionSkillLanguage(ItValue);
 56        /// <summary> Japanese. </summary>
 057        public static KeyPhraseExtractionSkillLanguage Ja { get; } = new KeyPhraseExtractionSkillLanguage(JaValue);
 58        /// <summary> Korean. </summary>
 059        public static KeyPhraseExtractionSkillLanguage Ko { get; } = new KeyPhraseExtractionSkillLanguage(KoValue);
 60        /// <summary> Norwegian (Bokmaal). </summary>
 061        public static KeyPhraseExtractionSkillLanguage No { get; } = new KeyPhraseExtractionSkillLanguage(NoValue);
 62        /// <summary> Polish. </summary>
 063        public static KeyPhraseExtractionSkillLanguage Pl { get; } = new KeyPhraseExtractionSkillLanguage(PlValue);
 64        /// <summary> Portuguese (Portugal). </summary>
 065        public static KeyPhraseExtractionSkillLanguage PtPT { get; } = new KeyPhraseExtractionSkillLanguage(PtPTValue);
 66        /// <summary> Portuguese (Brazil). </summary>
 067        public static KeyPhraseExtractionSkillLanguage PtBR { get; } = new KeyPhraseExtractionSkillLanguage(PtBRValue);
 68        /// <summary> Russian. </summary>
 069        public static KeyPhraseExtractionSkillLanguage Ru { get; } = new KeyPhraseExtractionSkillLanguage(RuValue);
 70        /// <summary> Spanish. </summary>
 071        public static KeyPhraseExtractionSkillLanguage Es { get; } = new KeyPhraseExtractionSkillLanguage(EsValue);
 72        /// <summary> Swedish. </summary>
 073        public static KeyPhraseExtractionSkillLanguage Sv { get; } = new KeyPhraseExtractionSkillLanguage(SvValue);
 74        /// <summary> Determines if two <see cref="KeyPhraseExtractionSkillLanguage"/> values are the same. </summary>
 075        public static bool operator ==(KeyPhraseExtractionSkillLanguage left, KeyPhraseExtractionSkillLanguage right) =>
 76        /// <summary> Determines if two <see cref="KeyPhraseExtractionSkillLanguage"/> values are not the same. </summar
 077        public static bool operator !=(KeyPhraseExtractionSkillLanguage left, KeyPhraseExtractionSkillLanguage right) =>
 78        /// <summary> Converts a string to a <see cref="KeyPhraseExtractionSkillLanguage"/>. </summary>
 079        public static implicit operator KeyPhraseExtractionSkillLanguage(string value) => new KeyPhraseExtractionSkillLa
 80
 81        /// <inheritdoc />
 82        [EditorBrowsable(EditorBrowsableState.Never)]
 083        public override bool Equals(object obj) => obj is KeyPhraseExtractionSkillLanguage other && Equals(other);
 84        /// <inheritdoc />
 085        public bool Equals(KeyPhraseExtractionSkillLanguage other) => string.Equals(_value, other._value, StringComparis
 86
 87        /// <inheritdoc />
 88        [EditorBrowsable(EditorBrowsableState.Never)]
 089        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 90        /// <inheritdoc />
 491        public override string ToString() => _value;
 92    }
 93}