// <auto-generated/>

#nullable disable

using System;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using OpenAI;

namespace OpenAI.Realtime
{
    [Experimental("OPENAI002")]
    public readonly partial struct SemanticEagernessLevel : IEquatable<SemanticEagernessLevel>
    {
        private readonly string _value;
        private const string LowValue = "low";
        private const string MediumValue = "medium";
        private const string HighValue = "high";
        private const string AutoValue = "auto";

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

            _value = value;
        }

        public static SemanticEagernessLevel Low { get; } = new SemanticEagernessLevel(LowValue);

        public static SemanticEagernessLevel Medium { get; } = new SemanticEagernessLevel(MediumValue);

        public static SemanticEagernessLevel High { get; } = new SemanticEagernessLevel(HighValue);

        public static SemanticEagernessLevel Auto { get; } = new SemanticEagernessLevel(AutoValue);

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

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

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

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

        public bool Equals(SemanticEagernessLevel 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;
    }
}
