// <auto-generated/>

#nullable disable

using System;
using System.ComponentModel;
using OpenAI;

namespace OpenAI.VectorStores
{
    internal readonly partial struct InternalChunkingStrategyResponseParamType : IEquatable<InternalChunkingStrategyResponseParamType>
    {
        private readonly string _value;
        private const string StaticValue = "static";
        private const string OtherValue = "other";

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

            _value = value;
        }

        internal static InternalChunkingStrategyResponseParamType Static { get; } = new InternalChunkingStrategyResponseParamType(StaticValue);

        internal static InternalChunkingStrategyResponseParamType Other { get; } = new InternalChunkingStrategyResponseParamType(OtherValue);

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

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

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

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

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