// <auto-generated/>

#nullable disable

using System;
using System.ComponentModel;
using OpenAI;

namespace OpenAI.Responses
{
    internal readonly partial struct InternalCreateResponsesRequestIncludable : IEquatable<InternalCreateResponsesRequestIncludable>
    {
        private readonly string _value;
        private const string FileSearchCallResultsValue = "file_search_call.results";
        private const string ComputerCallOutputOutputImageUrlValue = "computer_call_output.output.image_url";
        private const string MessageInputImageImageUrlValue = "message.input_image.image_url";

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

            _value = value;
        }

        public static InternalCreateResponsesRequestIncludable FileSearchCallResults { get; } = new InternalCreateResponsesRequestIncludable(FileSearchCallResultsValue);

        public static InternalCreateResponsesRequestIncludable ComputerCallOutputOutputImageUrl { get; } = new InternalCreateResponsesRequestIncludable(ComputerCallOutputOutputImageUrlValue);

        public static InternalCreateResponsesRequestIncludable MessageInputImageImageUrl { get; } = new InternalCreateResponsesRequestIncludable(MessageInputImageImageUrlValue);

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

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

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

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

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