// <auto-generated/>

#nullable disable

using System;
using System.ComponentModel;
using OpenAI;

namespace OpenAI.Responses
{
    internal readonly partial struct InternalDotNetCombinedChunkingStrategyParamType2 : IEquatable<InternalDotNetCombinedChunkingStrategyParamType2>
    {
        private readonly string _value;
        private const string AutoValue = "auto";
        private const string StaticValue = "static";
        private const string OtherValue = "other";

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

            _value = value;
        }

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

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

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

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

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

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

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

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