// <auto-generated/>

#nullable disable

using System;
using System.ComponentModel;

namespace OpenAI.RealtimeConversation
{
    internal readonly partial struct InternalRealtimeRequestModel : IEquatable<InternalRealtimeRequestModel>
    {
        private readonly string _value;

        public InternalRealtimeRequestModel(string value)
        {
            _value = value ?? throw new ArgumentNullException(nameof(value));
        }

        private const string Gpt4oRealtimeValue = "gpt-4o-realtime";

        public static InternalRealtimeRequestModel Gpt4oRealtime { get; } = new InternalRealtimeRequestModel(Gpt4oRealtimeValue);
        public static bool operator ==(InternalRealtimeRequestModel left, InternalRealtimeRequestModel right) => left.Equals(right);
        public static bool operator !=(InternalRealtimeRequestModel left, InternalRealtimeRequestModel right) => !left.Equals(right);
        public static implicit operator InternalRealtimeRequestModel(string value) => new InternalRealtimeRequestModel(value);

        [EditorBrowsable(EditorBrowsableState.Never)]
        public override bool Equals(object obj) => obj is InternalRealtimeRequestModel other && Equals(other);
        public bool Equals(InternalRealtimeRequestModel 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;
    }
}
