| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. |
| | | 3 | | |
| | | 4 | | // <auto-generated/> |
| | | 5 | | |
| | | 6 | | #nullable disable |
| | | 7 | | |
| | | 8 | | using System; |
| | | 9 | | using System.ComponentModel; |
| | | 10 | | |
| | | 11 | | namespace 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 | | { |
| | 22 | 22 | | _value = value ?? throw new ArgumentNullException(nameof(value)); |
| | 22 | 23 | | } |
| | | 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> |
| | 0 | 43 | | public static KeyPhraseExtractionSkillLanguage Da { get; } = new KeyPhraseExtractionSkillLanguage(DaValue); |
| | | 44 | | /// <summary> Dutch. </summary> |
| | 0 | 45 | | public static KeyPhraseExtractionSkillLanguage Nl { get; } = new KeyPhraseExtractionSkillLanguage(NlValue); |
| | | 46 | | /// <summary> English. </summary> |
| | 3 | 47 | | public static KeyPhraseExtractionSkillLanguage En { get; } = new KeyPhraseExtractionSkillLanguage(EnValue); |
| | | 48 | | /// <summary> Finnish. </summary> |
| | 0 | 49 | | public static KeyPhraseExtractionSkillLanguage Fi { get; } = new KeyPhraseExtractionSkillLanguage(FiValue); |
| | | 50 | | /// <summary> French. </summary> |
| | 0 | 51 | | public static KeyPhraseExtractionSkillLanguage Fr { get; } = new KeyPhraseExtractionSkillLanguage(FrValue); |
| | | 52 | | /// <summary> German. </summary> |
| | 0 | 53 | | public static KeyPhraseExtractionSkillLanguage De { get; } = new KeyPhraseExtractionSkillLanguage(DeValue); |
| | | 54 | | /// <summary> Italian. </summary> |
| | 0 | 55 | | public static KeyPhraseExtractionSkillLanguage It { get; } = new KeyPhraseExtractionSkillLanguage(ItValue); |
| | | 56 | | /// <summary> Japanese. </summary> |
| | 0 | 57 | | public static KeyPhraseExtractionSkillLanguage Ja { get; } = new KeyPhraseExtractionSkillLanguage(JaValue); |
| | | 58 | | /// <summary> Korean. </summary> |
| | 0 | 59 | | public static KeyPhraseExtractionSkillLanguage Ko { get; } = new KeyPhraseExtractionSkillLanguage(KoValue); |
| | | 60 | | /// <summary> Norwegian (Bokmaal). </summary> |
| | 0 | 61 | | public static KeyPhraseExtractionSkillLanguage No { get; } = new KeyPhraseExtractionSkillLanguage(NoValue); |
| | | 62 | | /// <summary> Polish. </summary> |
| | 0 | 63 | | public static KeyPhraseExtractionSkillLanguage Pl { get; } = new KeyPhraseExtractionSkillLanguage(PlValue); |
| | | 64 | | /// <summary> Portuguese (Portugal). </summary> |
| | 0 | 65 | | public static KeyPhraseExtractionSkillLanguage PtPT { get; } = new KeyPhraseExtractionSkillLanguage(PtPTValue); |
| | | 66 | | /// <summary> Portuguese (Brazil). </summary> |
| | 0 | 67 | | public static KeyPhraseExtractionSkillLanguage PtBR { get; } = new KeyPhraseExtractionSkillLanguage(PtBRValue); |
| | | 68 | | /// <summary> Russian. </summary> |
| | 0 | 69 | | public static KeyPhraseExtractionSkillLanguage Ru { get; } = new KeyPhraseExtractionSkillLanguage(RuValue); |
| | | 70 | | /// <summary> Spanish. </summary> |
| | 0 | 71 | | public static KeyPhraseExtractionSkillLanguage Es { get; } = new KeyPhraseExtractionSkillLanguage(EsValue); |
| | | 72 | | /// <summary> Swedish. </summary> |
| | 0 | 73 | | public static KeyPhraseExtractionSkillLanguage Sv { get; } = new KeyPhraseExtractionSkillLanguage(SvValue); |
| | | 74 | | /// <summary> Determines if two <see cref="KeyPhraseExtractionSkillLanguage"/> values are the same. </summary> |
| | 0 | 75 | | public static bool operator ==(KeyPhraseExtractionSkillLanguage left, KeyPhraseExtractionSkillLanguage right) => |
| | | 76 | | /// <summary> Determines if two <see cref="KeyPhraseExtractionSkillLanguage"/> values are not the same. </summar |
| | 0 | 77 | | public static bool operator !=(KeyPhraseExtractionSkillLanguage left, KeyPhraseExtractionSkillLanguage right) => |
| | | 78 | | /// <summary> Converts a string to a <see cref="KeyPhraseExtractionSkillLanguage"/>. </summary> |
| | 0 | 79 | | public static implicit operator KeyPhraseExtractionSkillLanguage(string value) => new KeyPhraseExtractionSkillLa |
| | | 80 | | |
| | | 81 | | /// <inheritdoc /> |
| | | 82 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| | 0 | 83 | | public override bool Equals(object obj) => obj is KeyPhraseExtractionSkillLanguage other && Equals(other); |
| | | 84 | | /// <inheritdoc /> |
| | 0 | 85 | | public bool Equals(KeyPhraseExtractionSkillLanguage other) => string.Equals(_value, other._value, StringComparis |
| | | 86 | | |
| | | 87 | | /// <inheritdoc /> |
| | | 88 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| | 0 | 89 | | public override int GetHashCode() => _value?.GetHashCode() ?? 0; |
| | | 90 | | /// <inheritdoc /> |
| | 4 | 91 | | public override string ToString() => _value; |
| | | 92 | | } |
| | | 93 | | } |