| | 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 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 | | { |
| 21 | 22 | | _value = value ?? throw new ArgumentNullException(nameof(value)); |
| 21 | 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 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> |
| 0 | 42 | | public static SentimentSkillLanguage Da { get; } = new SentimentSkillLanguage(DaValue); |
| | 43 | | /// <summary> Dutch. </summary> |
| 0 | 44 | | public static SentimentSkillLanguage Nl { get; } = new SentimentSkillLanguage(NlValue); |
| | 45 | | /// <summary> English. </summary> |
| 3 | 46 | | public static SentimentSkillLanguage En { get; } = new SentimentSkillLanguage(EnValue); |
| | 47 | | /// <summary> Finnish. </summary> |
| 0 | 48 | | public static SentimentSkillLanguage Fi { get; } = new SentimentSkillLanguage(FiValue); |
| | 49 | | /// <summary> French. </summary> |
| 0 | 50 | | public static SentimentSkillLanguage Fr { get; } = new SentimentSkillLanguage(FrValue); |
| | 51 | | /// <summary> German. </summary> |
| 0 | 52 | | public static SentimentSkillLanguage De { get; } = new SentimentSkillLanguage(DeValue); |
| | 53 | | /// <summary> Greek. </summary> |
| 0 | 54 | | public static SentimentSkillLanguage El { get; } = new SentimentSkillLanguage(ElValue); |
| | 55 | | /// <summary> Italian. </summary> |
| 0 | 56 | | public static SentimentSkillLanguage It { get; } = new SentimentSkillLanguage(ItValue); |
| | 57 | | /// <summary> Norwegian (Bokmaal). </summary> |
| 0 | 58 | | public static SentimentSkillLanguage No { get; } = new SentimentSkillLanguage(NoValue); |
| | 59 | | /// <summary> Polish. </summary> |
| 0 | 60 | | public static SentimentSkillLanguage Pl { get; } = new SentimentSkillLanguage(PlValue); |
| | 61 | | /// <summary> Portuguese (Portugal). </summary> |
| 0 | 62 | | public static SentimentSkillLanguage PtPT { get; } = new SentimentSkillLanguage(PtPTValue); |
| | 63 | | /// <summary> Russian. </summary> |
| 0 | 64 | | public static SentimentSkillLanguage Ru { get; } = new SentimentSkillLanguage(RuValue); |
| | 65 | | /// <summary> Spanish. </summary> |
| 0 | 66 | | public static SentimentSkillLanguage Es { get; } = new SentimentSkillLanguage(EsValue); |
| | 67 | | /// <summary> Swedish. </summary> |
| 0 | 68 | | public static SentimentSkillLanguage Sv { get; } = new SentimentSkillLanguage(SvValue); |
| | 69 | | /// <summary> Turkish. </summary> |
| 0 | 70 | | public static SentimentSkillLanguage Tr { get; } = new SentimentSkillLanguage(TrValue); |
| | 71 | | /// <summary> Determines if two <see cref="SentimentSkillLanguage"/> values are the same. </summary> |
| 0 | 72 | | 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> |
| 0 | 74 | | public static bool operator !=(SentimentSkillLanguage left, SentimentSkillLanguage right) => !left.Equals(right) |
| | 75 | | /// <summary> Converts a string to a <see cref="SentimentSkillLanguage"/>. </summary> |
| 0 | 76 | | public static implicit operator SentimentSkillLanguage(string value) => new SentimentSkillLanguage(value); |
| | 77 | |
|
| | 78 | | /// <inheritdoc /> |
| | 79 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 80 | | public override bool Equals(object obj) => obj is SentimentSkillLanguage other && Equals(other); |
| | 81 | | /// <inheritdoc /> |
| 0 | 82 | | public bool Equals(SentimentSkillLanguage other) => string.Equals(_value, other._value, StringComparison.Invaria |
| | 83 | |
|
| | 84 | | /// <inheritdoc /> |
| | 85 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 86 | | public override int GetHashCode() => _value?.GetHashCode() ?? 0; |
| | 87 | | /// <inheritdoc /> |
| 4 | 88 | | public override string ToString() => _value; |
| | 89 | | } |
| | 90 | | } |