// <auto-generated/>

#nullable disable

using System;
using System.ComponentModel;

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

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

        private const string _256x256Value = "256x256";
        private const string _512x512Value = "512x512";
        private const string _1024x1024Value = "1024x1024";

        public static InternalImageEditOptionsSize _256x256 { get; } = new InternalImageEditOptionsSize(_256x256Value);
        public static InternalImageEditOptionsSize _512x512 { get; } = new InternalImageEditOptionsSize(_512x512Value);
        public static InternalImageEditOptionsSize _1024x1024 { get; } = new InternalImageEditOptionsSize(_1024x1024Value);
        public static bool operator ==(InternalImageEditOptionsSize left, InternalImageEditOptionsSize right) => left.Equals(right);
        public static bool operator !=(InternalImageEditOptionsSize left, InternalImageEditOptionsSize right) => !left.Equals(right);
        public static implicit operator InternalImageEditOptionsSize(string value) => new InternalImageEditOptionsSize(value);

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

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