// <auto-generated/>

#nullable disable

using System;
using System.ComponentModel;
using OpenAI;

namespace OpenAI.RealtimeConversation
{
    internal readonly partial struct InternalRealtimeResponseVoice : IEquatable<InternalRealtimeResponseVoice>
    {
        private readonly string _value;
        private const string AlloyValue = "alloy";
        private const string AshValue = "ash";
        private const string BalladValue = "ballad";
        private const string CoralValue = "coral";
        private const string EchoValue = "echo";
        private const string SageValue = "sage";
        private const string ShimmerValue = "shimmer";
        private const string VerseValue = "verse";

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

            _value = value;
        }

        public static InternalRealtimeResponseVoice Alloy { get; } = new InternalRealtimeResponseVoice(AlloyValue);

        public static InternalRealtimeResponseVoice Ash { get; } = new InternalRealtimeResponseVoice(AshValue);

        public static InternalRealtimeResponseVoice Ballad { get; } = new InternalRealtimeResponseVoice(BalladValue);

        public static InternalRealtimeResponseVoice Coral { get; } = new InternalRealtimeResponseVoice(CoralValue);

        public static InternalRealtimeResponseVoice Echo { get; } = new InternalRealtimeResponseVoice(EchoValue);

        public static InternalRealtimeResponseVoice Sage { get; } = new InternalRealtimeResponseVoice(SageValue);

        public static InternalRealtimeResponseVoice Shimmer { get; } = new InternalRealtimeResponseVoice(ShimmerValue);

        public static InternalRealtimeResponseVoice Verse { get; } = new InternalRealtimeResponseVoice(VerseValue);

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

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

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

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

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