| | 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 by OcrSkill. </summary> |
| | 14 | | public readonly partial struct OcrSkillLanguage : IEquatable<OcrSkillLanguage> |
| | 15 | | { |
| | 16 | | private readonly string _value; |
| | 17 | |
|
| | 18 | | /// <summary> Determines if two <see cref="OcrSkillLanguage"/> values are the same. </summary> |
| | 19 | | /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> |
| | 20 | | public OcrSkillLanguage(string value) |
| | 21 | | { |
| 0 | 22 | | _value = value ?? throw new ArgumentNullException(nameof(value)); |
| 0 | 23 | | } |
| | 24 | |
|
| | 25 | | private const string ZhHansValue = "zh-Hans"; |
| | 26 | | private const string ZhHantValue = "zh-Hant"; |
| | 27 | | private const string CsValue = "cs"; |
| | 28 | | private const string DaValue = "da"; |
| | 29 | | private const string NlValue = "nl"; |
| | 30 | | private const string EnValue = "en"; |
| | 31 | | private const string FiValue = "fi"; |
| | 32 | | private const string FrValue = "fr"; |
| | 33 | | private const string DeValue = "de"; |
| | 34 | | private const string ElValue = "el"; |
| | 35 | | private const string HuValue = "hu"; |
| | 36 | | private const string ItValue = "it"; |
| | 37 | | private const string JaValue = "ja"; |
| | 38 | | private const string KoValue = "ko"; |
| | 39 | | private const string NbValue = "nb"; |
| | 40 | | private const string PlValue = "pl"; |
| | 41 | | private const string PtValue = "pt"; |
| | 42 | | private const string RuValue = "ru"; |
| | 43 | | private const string EsValue = "es"; |
| | 44 | | private const string SvValue = "sv"; |
| | 45 | | private const string TrValue = "tr"; |
| | 46 | | private const string ArValue = "ar"; |
| | 47 | | private const string RoValue = "ro"; |
| | 48 | | private const string SrCyrlValue = "sr-Cyrl"; |
| | 49 | | private const string SrLatnValue = "sr-Latn"; |
| | 50 | | private const string SkValue = "sk"; |
| | 51 | |
|
| | 52 | | /// <summary> Chinese-Simplified. </summary> |
| 0 | 53 | | public static OcrSkillLanguage ZhHans { get; } = new OcrSkillLanguage(ZhHansValue); |
| | 54 | | /// <summary> Chinese-Traditional. </summary> |
| 0 | 55 | | public static OcrSkillLanguage ZhHant { get; } = new OcrSkillLanguage(ZhHantValue); |
| | 56 | | /// <summary> Czech. </summary> |
| 0 | 57 | | public static OcrSkillLanguage Cs { get; } = new OcrSkillLanguage(CsValue); |
| | 58 | | /// <summary> Danish. </summary> |
| 0 | 59 | | public static OcrSkillLanguage Da { get; } = new OcrSkillLanguage(DaValue); |
| | 60 | | /// <summary> Dutch. </summary> |
| 0 | 61 | | public static OcrSkillLanguage Nl { get; } = new OcrSkillLanguage(NlValue); |
| | 62 | | /// <summary> English. </summary> |
| 0 | 63 | | public static OcrSkillLanguage En { get; } = new OcrSkillLanguage(EnValue); |
| | 64 | | /// <summary> Finnish. </summary> |
| 0 | 65 | | public static OcrSkillLanguage Fi { get; } = new OcrSkillLanguage(FiValue); |
| | 66 | | /// <summary> French. </summary> |
| 0 | 67 | | public static OcrSkillLanguage Fr { get; } = new OcrSkillLanguage(FrValue); |
| | 68 | | /// <summary> German. </summary> |
| 0 | 69 | | public static OcrSkillLanguage De { get; } = new OcrSkillLanguage(DeValue); |
| | 70 | | /// <summary> Greek. </summary> |
| 0 | 71 | | public static OcrSkillLanguage El { get; } = new OcrSkillLanguage(ElValue); |
| | 72 | | /// <summary> Hungarian. </summary> |
| 0 | 73 | | public static OcrSkillLanguage Hu { get; } = new OcrSkillLanguage(HuValue); |
| | 74 | | /// <summary> Italian. </summary> |
| 0 | 75 | | public static OcrSkillLanguage It { get; } = new OcrSkillLanguage(ItValue); |
| | 76 | | /// <summary> Japanese. </summary> |
| 0 | 77 | | public static OcrSkillLanguage Ja { get; } = new OcrSkillLanguage(JaValue); |
| | 78 | | /// <summary> Korean. </summary> |
| 0 | 79 | | public static OcrSkillLanguage Ko { get; } = new OcrSkillLanguage(KoValue); |
| | 80 | | /// <summary> Norwegian (Bokmaal). </summary> |
| 0 | 81 | | public static OcrSkillLanguage Nb { get; } = new OcrSkillLanguage(NbValue); |
| | 82 | | /// <summary> Polish. </summary> |
| 0 | 83 | | public static OcrSkillLanguage Pl { get; } = new OcrSkillLanguage(PlValue); |
| | 84 | | /// <summary> Portuguese. </summary> |
| 0 | 85 | | public static OcrSkillLanguage Pt { get; } = new OcrSkillLanguage(PtValue); |
| | 86 | | /// <summary> Russian. </summary> |
| 0 | 87 | | public static OcrSkillLanguage Ru { get; } = new OcrSkillLanguage(RuValue); |
| | 88 | | /// <summary> Spanish. </summary> |
| 0 | 89 | | public static OcrSkillLanguage Es { get; } = new OcrSkillLanguage(EsValue); |
| | 90 | | /// <summary> Swedish. </summary> |
| 0 | 91 | | public static OcrSkillLanguage Sv { get; } = new OcrSkillLanguage(SvValue); |
| | 92 | | /// <summary> Turkish. </summary> |
| 0 | 93 | | public static OcrSkillLanguage Tr { get; } = new OcrSkillLanguage(TrValue); |
| | 94 | | /// <summary> Arabic. </summary> |
| 0 | 95 | | public static OcrSkillLanguage Ar { get; } = new OcrSkillLanguage(ArValue); |
| | 96 | | /// <summary> Romanian. </summary> |
| 0 | 97 | | public static OcrSkillLanguage Ro { get; } = new OcrSkillLanguage(RoValue); |
| | 98 | | /// <summary> Serbian (Cyrillic, Serbia). </summary> |
| 0 | 99 | | public static OcrSkillLanguage SrCyrl { get; } = new OcrSkillLanguage(SrCyrlValue); |
| | 100 | | /// <summary> Serbian (Latin, Serbia). </summary> |
| 0 | 101 | | public static OcrSkillLanguage SrLatn { get; } = new OcrSkillLanguage(SrLatnValue); |
| | 102 | | /// <summary> Slovak. </summary> |
| 0 | 103 | | public static OcrSkillLanguage Sk { get; } = new OcrSkillLanguage(SkValue); |
| | 104 | | /// <summary> Determines if two <see cref="OcrSkillLanguage"/> values are the same. </summary> |
| 0 | 105 | | public static bool operator ==(OcrSkillLanguage left, OcrSkillLanguage right) => left.Equals(right); |
| | 106 | | /// <summary> Determines if two <see cref="OcrSkillLanguage"/> values are not the same. </summary> |
| 0 | 107 | | public static bool operator !=(OcrSkillLanguage left, OcrSkillLanguage right) => !left.Equals(right); |
| | 108 | | /// <summary> Converts a string to a <see cref="OcrSkillLanguage"/>. </summary> |
| 0 | 109 | | public static implicit operator OcrSkillLanguage(string value) => new OcrSkillLanguage(value); |
| | 110 | |
|
| | 111 | | /// <inheritdoc /> |
| | 112 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 113 | | public override bool Equals(object obj) => obj is OcrSkillLanguage other && Equals(other); |
| | 114 | | /// <inheritdoc /> |
| 0 | 115 | | public bool Equals(OcrSkillLanguage other) => string.Equals(_value, other._value, StringComparison.InvariantCult |
| | 116 | |
|
| | 117 | | /// <inheritdoc /> |
| | 118 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 119 | | public override int GetHashCode() => _value?.GetHashCode() ?? 0; |
| | 120 | | /// <inheritdoc /> |
| 0 | 121 | | public override string ToString() => _value; |
| | 122 | | } |
| | 123 | | } |