| | 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 SplitSkill. </summary> |
| | 14 | | public readonly partial struct SplitSkillLanguage : IEquatable<SplitSkillLanguage> |
| | 15 | | { |
| | 16 | | private readonly string _value; |
| | 17 | |
|
| | 18 | | /// <summary> Determines if two <see cref="SplitSkillLanguage"/> values are the same. </summary> |
| | 19 | | /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> |
| | 20 | | public SplitSkillLanguage(string value) |
| | 21 | | { |
| 15 | 22 | | _value = value ?? throw new ArgumentNullException(nameof(value)); |
| 15 | 23 | | } |
| | 24 | |
|
| | 25 | | private const string DaValue = "da"; |
| | 26 | | private const string DeValue = "de"; |
| | 27 | | private const string EnValue = "en"; |
| | 28 | | private const string EsValue = "es"; |
| | 29 | | private const string FiValue = "fi"; |
| | 30 | | private const string FrValue = "fr"; |
| | 31 | | private const string ItValue = "it"; |
| | 32 | | private const string KoValue = "ko"; |
| | 33 | | private const string PtValue = "pt"; |
| | 34 | |
|
| | 35 | | /// <summary> Danish. </summary> |
| 0 | 36 | | public static SplitSkillLanguage Da { get; } = new SplitSkillLanguage(DaValue); |
| | 37 | | /// <summary> German. </summary> |
| 0 | 38 | | public static SplitSkillLanguage De { get; } = new SplitSkillLanguage(DeValue); |
| | 39 | | /// <summary> English. </summary> |
| 3 | 40 | | public static SplitSkillLanguage En { get; } = new SplitSkillLanguage(EnValue); |
| | 41 | | /// <summary> Spanish. </summary> |
| 0 | 42 | | public static SplitSkillLanguage Es { get; } = new SplitSkillLanguage(EsValue); |
| | 43 | | /// <summary> Finnish. </summary> |
| 0 | 44 | | public static SplitSkillLanguage Fi { get; } = new SplitSkillLanguage(FiValue); |
| | 45 | | /// <summary> French. </summary> |
| 0 | 46 | | public static SplitSkillLanguage Fr { get; } = new SplitSkillLanguage(FrValue); |
| | 47 | | /// <summary> Italian. </summary> |
| 0 | 48 | | public static SplitSkillLanguage It { get; } = new SplitSkillLanguage(ItValue); |
| | 49 | | /// <summary> Korean. </summary> |
| 0 | 50 | | public static SplitSkillLanguage Ko { get; } = new SplitSkillLanguage(KoValue); |
| | 51 | | /// <summary> Portuguese. </summary> |
| 0 | 52 | | public static SplitSkillLanguage Pt { get; } = new SplitSkillLanguage(PtValue); |
| | 53 | | /// <summary> Determines if two <see cref="SplitSkillLanguage"/> values are the same. </summary> |
| 0 | 54 | | public static bool operator ==(SplitSkillLanguage left, SplitSkillLanguage right) => left.Equals(right); |
| | 55 | | /// <summary> Determines if two <see cref="SplitSkillLanguage"/> values are not the same. </summary> |
| 0 | 56 | | public static bool operator !=(SplitSkillLanguage left, SplitSkillLanguage right) => !left.Equals(right); |
| | 57 | | /// <summary> Converts a string to a <see cref="SplitSkillLanguage"/>. </summary> |
| 0 | 58 | | public static implicit operator SplitSkillLanguage(string value) => new SplitSkillLanguage(value); |
| | 59 | |
|
| | 60 | | /// <inheritdoc /> |
| | 61 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 62 | | public override bool Equals(object obj) => obj is SplitSkillLanguage other && Equals(other); |
| | 63 | | /// <inheritdoc /> |
| 0 | 64 | | public bool Equals(SplitSkillLanguage other) => string.Equals(_value, other._value, StringComparison.InvariantCu |
| | 65 | |
|
| | 66 | | /// <inheritdoc /> |
| | 67 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 68 | | public override int GetHashCode() => _value?.GetHashCode() ?? 0; |
| | 69 | | /// <inheritdoc /> |
| 4 | 70 | | public override string ToString() => _value; |
| | 71 | | } |
| | 72 | | } |