// <auto-generated/>

#nullable disable

using System;
using System.ComponentModel;
using OpenAI;

namespace OpenAI.Responses
{
    internal readonly partial struct InternalReasoningGenerateSummary : IEquatable<InternalReasoningGenerateSummary>
    {
        private readonly string _value;
        private const string AutoValue = "auto";
        private const string ConciseValue = "concise";
        private const string DetailedValue = "detailed";

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

            _value = value;
        }

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

        internal static InternalReasoningGenerateSummary Concise { get; } = new InternalReasoningGenerateSummary(ConciseValue);

        internal static InternalReasoningGenerateSummary Detailed { get; } = new InternalReasoningGenerateSummary(DetailedValue);

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

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

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

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

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