// <auto-generated/>

#nullable disable

using System;
using System.ComponentModel;
using OpenAI;

namespace OpenAI.VectorStores
{
    internal readonly partial struct InternalChunkingStrategyRequestParamType : IEquatable<InternalChunkingStrategyRequestParamType>
    {
        private readonly string _value;
        private const string AutoValue = "auto";
        private const string StaticValue = "static";

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

            _value = value;
        }

        internal static InternalChunkingStrategyRequestParamType Auto { get; } = new InternalChunkingStrategyRequestParamType(AutoValue);

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

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

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

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

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

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