// <auto-generated/>

#nullable disable

using System;
using System.ComponentModel;
using OpenAI;

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

            _value = value;
        }

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

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

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

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

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

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

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

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

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