// <auto-generated/>

#nullable disable

using System;
using System.ComponentModel;
using OpenAI;

namespace OpenAI.FineTuning
{
    internal readonly partial struct InternalFineTuneReinforcementHyperparametersReasoningEffort : IEquatable<InternalFineTuneReinforcementHyperparametersReasoningEffort>
    {
        private readonly string _value;
        private const string DefaultValue = "default";
        private const string LowValue = "low";
        private const string MediumValue = "medium";
        private const string HighValue = "high";

        public InternalFineTuneReinforcementHyperparametersReasoningEffort(string value)
        {
            Argument.AssertNotNull(value, nameof(value));

            _value = value;
        }

        internal static InternalFineTuneReinforcementHyperparametersReasoningEffort Default { get; } = new InternalFineTuneReinforcementHyperparametersReasoningEffort(DefaultValue);

        internal static InternalFineTuneReinforcementHyperparametersReasoningEffort Low { get; } = new InternalFineTuneReinforcementHyperparametersReasoningEffort(LowValue);

        internal static InternalFineTuneReinforcementHyperparametersReasoningEffort Medium { get; } = new InternalFineTuneReinforcementHyperparametersReasoningEffort(MediumValue);

        internal static InternalFineTuneReinforcementHyperparametersReasoningEffort High { get; } = new InternalFineTuneReinforcementHyperparametersReasoningEffort(HighValue);

        public static bool operator ==(InternalFineTuneReinforcementHyperparametersReasoningEffort left, InternalFineTuneReinforcementHyperparametersReasoningEffort right) => left.Equals(right);

        public static bool operator !=(InternalFineTuneReinforcementHyperparametersReasoningEffort left, InternalFineTuneReinforcementHyperparametersReasoningEffort right) => !left.Equals(right);

        public static implicit operator InternalFineTuneReinforcementHyperparametersReasoningEffort(string value) => new InternalFineTuneReinforcementHyperparametersReasoningEffort(value);

        [EditorBrowsable(EditorBrowsableState.Never)]
        public override bool Equals(object obj) => obj is InternalFineTuneReinforcementHyperparametersReasoningEffort other && Equals(other);

        public bool Equals(InternalFineTuneReinforcementHyperparametersReasoningEffort other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);

        [EditorBrowsable(EditorBrowsableState.Never)]
        public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;

        public override string ToString() => _value;
    }
}
