// <auto-generated/>

#nullable disable

using System;
using System.ComponentModel;

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

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

        private const string UrlValue = "url";
        private const string B64JsonValue = "b64_json";

        public static InternalImageEditOptionsResponseFormat Url { get; } = new InternalImageEditOptionsResponseFormat(UrlValue);
        public static InternalImageEditOptionsResponseFormat B64Json { get; } = new InternalImageEditOptionsResponseFormat(B64JsonValue);
        public static bool operator ==(InternalImageEditOptionsResponseFormat left, InternalImageEditOptionsResponseFormat right) => left.Equals(right);
        public static bool operator !=(InternalImageEditOptionsResponseFormat left, InternalImageEditOptionsResponseFormat right) => !left.Equals(right);
        public static implicit operator InternalImageEditOptionsResponseFormat(string value) => new InternalImageEditOptionsResponseFormat(value);

        [EditorBrowsable(EditorBrowsableState.Never)]
        public override bool Equals(object obj) => obj is InternalImageEditOptionsResponseFormat other && Equals(other);
        public bool Equals(InternalImageEditOptionsResponseFormat other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);

        [EditorBrowsable(EditorBrowsableState.Never)]
        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
        public override string ToString() => _value;
    }
}
