// <auto-generated/>

#nullable disable

using System;
using System.ComponentModel;
using OpenAI;

namespace OpenAI.Realtime
{
    internal readonly partial struct InternalRealtimeSessionCreateRequestModel : IEquatable<InternalRealtimeSessionCreateRequestModel>
    {
        private readonly string _value;
        private const string Gpt4oRealtimePreviewValue = "gpt-4o-realtime-preview";
        private const string Gpt4oRealtimePreview20241001Value = "gpt-4o-realtime-preview-2024-10-01";
        private const string Gpt4oRealtimePreview20241217Value = "gpt-4o-realtime-preview-2024-12-17";
        private const string Gpt4oRealtimePreview20250603Value = "gpt-4o-realtime-preview-2025-06-03";
        private const string Gpt4oMiniRealtimePreviewValue = "gpt-4o-mini-realtime-preview";
        private const string Gpt4oMiniRealtimePreview20241217Value = "gpt-4o-mini-realtime-preview-2024-12-17";

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

            _value = value;
        }

        internal static InternalRealtimeSessionCreateRequestModel Gpt4oRealtimePreview { get; } = new InternalRealtimeSessionCreateRequestModel(Gpt4oRealtimePreviewValue);

        internal static InternalRealtimeSessionCreateRequestModel Gpt4oRealtimePreview20241001 { get; } = new InternalRealtimeSessionCreateRequestModel(Gpt4oRealtimePreview20241001Value);

        internal static InternalRealtimeSessionCreateRequestModel Gpt4oRealtimePreview20241217 { get; } = new InternalRealtimeSessionCreateRequestModel(Gpt4oRealtimePreview20241217Value);

        internal static InternalRealtimeSessionCreateRequestModel Gpt4oRealtimePreview20250603 { get; } = new InternalRealtimeSessionCreateRequestModel(Gpt4oRealtimePreview20250603Value);

        internal static InternalRealtimeSessionCreateRequestModel Gpt4oMiniRealtimePreview { get; } = new InternalRealtimeSessionCreateRequestModel(Gpt4oMiniRealtimePreviewValue);

        internal static InternalRealtimeSessionCreateRequestModel Gpt4oMiniRealtimePreview20241217 { get; } = new InternalRealtimeSessionCreateRequestModel(Gpt4oMiniRealtimePreview20241217Value);

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

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

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

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

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