| | 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 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 | | { |
| 0 | 22 | | _value = value ?? throw new ArgumentNullException(nameof(value)); |
| 0 | 23 | | } |
| | 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> |
| 0 | 50 | | public static EntityRecognitionSkillLanguage Ar { get; } = new EntityRecognitionSkillLanguage(ArValue); |
| | 51 | | /// <summary> Czech. </summary> |
| 0 | 52 | | public static EntityRecognitionSkillLanguage Cs { get; } = new EntityRecognitionSkillLanguage(CsValue); |
| | 53 | | /// <summary> Chinese-Simplified. </summary> |
| 0 | 54 | | public static EntityRecognitionSkillLanguage ZhHans { get; } = new EntityRecognitionSkillLanguage(ZhHansValue); |
| | 55 | | /// <summary> Chinese-Traditional. </summary> |
| 0 | 56 | | public static EntityRecognitionSkillLanguage ZhHant { get; } = new EntityRecognitionSkillLanguage(ZhHantValue); |
| | 57 | | /// <summary> Danish. </summary> |
| 0 | 58 | | public static EntityRecognitionSkillLanguage Da { get; } = new EntityRecognitionSkillLanguage(DaValue); |
| | 59 | | /// <summary> Dutch. </summary> |
| 0 | 60 | | public static EntityRecognitionSkillLanguage Nl { get; } = new EntityRecognitionSkillLanguage(NlValue); |
| | 61 | | /// <summary> English. </summary> |
| 0 | 62 | | public static EntityRecognitionSkillLanguage En { get; } = new EntityRecognitionSkillLanguage(EnValue); |
| | 63 | | /// <summary> Finnish. </summary> |
| 0 | 64 | | public static EntityRecognitionSkillLanguage Fi { get; } = new EntityRecognitionSkillLanguage(FiValue); |
| | 65 | | /// <summary> French. </summary> |
| 0 | 66 | | public static EntityRecognitionSkillLanguage Fr { get; } = new EntityRecognitionSkillLanguage(FrValue); |
| | 67 | | /// <summary> German. </summary> |
| 0 | 68 | | public static EntityRecognitionSkillLanguage De { get; } = new EntityRecognitionSkillLanguage(DeValue); |
| | 69 | | /// <summary> Greek. </summary> |
| 0 | 70 | | public static EntityRecognitionSkillLanguage El { get; } = new EntityRecognitionSkillLanguage(ElValue); |
| | 71 | | /// <summary> Hungarian. </summary> |
| 0 | 72 | | public static EntityRecognitionSkillLanguage Hu { get; } = new EntityRecognitionSkillLanguage(HuValue); |
| | 73 | | /// <summary> Italian. </summary> |
| 0 | 74 | | public static EntityRecognitionSkillLanguage It { get; } = new EntityRecognitionSkillLanguage(ItValue); |
| | 75 | | /// <summary> Japanese. </summary> |
| 0 | 76 | | public static EntityRecognitionSkillLanguage Ja { get; } = new EntityRecognitionSkillLanguage(JaValue); |
| | 77 | | /// <summary> Korean. </summary> |
| 0 | 78 | | public static EntityRecognitionSkillLanguage Ko { get; } = new EntityRecognitionSkillLanguage(KoValue); |
| | 79 | | /// <summary> Norwegian (Bokmaal). </summary> |
| 0 | 80 | | public static EntityRecognitionSkillLanguage No { get; } = new EntityRecognitionSkillLanguage(NoValue); |
| | 81 | | /// <summary> Polish. </summary> |
| 0 | 82 | | public static EntityRecognitionSkillLanguage Pl { get; } = new EntityRecognitionSkillLanguage(PlValue); |
| | 83 | | /// <summary> Portuguese (Portugal). </summary> |
| 0 | 84 | | public static EntityRecognitionSkillLanguage PtPT { get; } = new EntityRecognitionSkillLanguage(PtPTValue); |
| | 85 | | /// <summary> Portuguese (Brazil). </summary> |
| 0 | 86 | | public static EntityRecognitionSkillLanguage PtBR { get; } = new EntityRecognitionSkillLanguage(PtBRValue); |
| | 87 | | /// <summary> Russian. </summary> |
| 0 | 88 | | public static EntityRecognitionSkillLanguage Ru { get; } = new EntityRecognitionSkillLanguage(RuValue); |
| | 89 | | /// <summary> Spanish. </summary> |
| 0 | 90 | | public static EntityRecognitionSkillLanguage Es { get; } = new EntityRecognitionSkillLanguage(EsValue); |
| | 91 | | /// <summary> Swedish. </summary> |
| 0 | 92 | | public static EntityRecognitionSkillLanguage Sv { get; } = new EntityRecognitionSkillLanguage(SvValue); |
| | 93 | | /// <summary> Turkish. </summary> |
| 0 | 94 | | public static EntityRecognitionSkillLanguage Tr { get; } = new EntityRecognitionSkillLanguage(TrValue); |
| | 95 | | /// <summary> Determines if two <see cref="EntityRecognitionSkillLanguage"/> values are the same. </summary> |
| 0 | 96 | | public static bool operator ==(EntityRecognitionSkillLanguage left, EntityRecognitionSkillLanguage right) => lef |
| | 97 | | /// <summary> Determines if two <see cref="EntityRecognitionSkillLanguage"/> values are not the same. </summary> |
| 0 | 98 | | public static bool operator !=(EntityRecognitionSkillLanguage left, EntityRecognitionSkillLanguage right) => !le |
| | 99 | | /// <summary> Converts a string to a <see cref="EntityRecognitionSkillLanguage"/>. </summary> |
| 0 | 100 | | public static implicit operator EntityRecognitionSkillLanguage(string value) => new EntityRecognitionSkillLangua |
| | 101 | |
|
| | 102 | | /// <inheritdoc /> |
| | 103 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 104 | | public override bool Equals(object obj) => obj is EntityRecognitionSkillLanguage other && Equals(other); |
| | 105 | | /// <inheritdoc /> |
| 0 | 106 | | public bool Equals(EntityRecognitionSkillLanguage other) => string.Equals(_value, other._value, StringComparison |
| | 107 | |
|
| | 108 | | /// <inheritdoc /> |
| | 109 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 110 | | public override int GetHashCode() => _value?.GetHashCode() ?? 0; |
| | 111 | | /// <inheritdoc /> |
| 0 | 112 | | public override string ToString() => _value; |
| | 113 | | } |
| | 114 | | } |