// <auto-generated/>

#nullable disable

using System;
using System.ComponentModel;
using OpenAI;

namespace OpenAI.Realtime
{
    internal readonly partial struct InternalRealtimeSemanticVadTurnDetectionEagerness : IEquatable<InternalRealtimeSemanticVadTurnDetectionEagerness>
    {
        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 InternalRealtimeSemanticVadTurnDetectionEagerness(string value)
        {
            Argument.AssertNotNull(value, nameof(value));

            _value = value;
        }

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

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

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

        internal static InternalRealtimeSemanticVadTurnDetectionEagerness Auto { get; } = new InternalRealtimeSemanticVadTurnDetectionEagerness(AutoValue);

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

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

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

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

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