// <auto-generated/>

#nullable disable

using System;
using System.ComponentModel;
using OpenAI;

namespace OpenAI.Responses
{
    public readonly partial struct FileSearchToolRanker : IEquatable<FileSearchToolRanker>
    {
        private readonly string _value;
        private const string AutoValue = "auto";
        private const string Default20241115Value = "default-2024-11-15";

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

            _value = value;
        }

        public static FileSearchToolRanker Auto { get; } = new FileSearchToolRanker(AutoValue);

        public static FileSearchToolRanker Default20241115 { get; } = new FileSearchToolRanker(Default20241115Value);

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

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

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

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

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