// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;
using System.Linq;
using OpenAI;

namespace OpenAI.Responses
{
    internal abstract partial class InternalCompoundFilter
    {
        private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;

        private protected InternalCompoundFilter(InternalCompoundFilterType kind, IEnumerable<BinaryData> filters)
        {
            Kind = kind;
            Filters = filters.ToList();
        }

        internal InternalCompoundFilter(InternalCompoundFilterType kind, IList<BinaryData> filters, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            Kind = kind;
            Filters = filters ?? new ChangeTrackingList<BinaryData>();
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        internal InternalCompoundFilterType Kind { get; set; }

        public IList<BinaryData> Filters { get; }

        internal IDictionary<string, BinaryData> SerializedAdditionalRawData
        {
            get => _additionalBinaryDataProperties;
            set => _additionalBinaryDataProperties = value;
        }
    }
}
