// <auto-generated/>

#nullable disable

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

namespace OpenAI.VectorStores
{
    internal partial class InternalCreateVectorStoreFileRequest
    {
        private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;

        public InternalCreateVectorStoreFileRequest(string fileId)
        {
            Argument.AssertNotNull(fileId, nameof(fileId));

            FileId = fileId;
            Attributes = new ChangeTrackingDictionary<string, BinaryData>();
        }

        internal InternalCreateVectorStoreFileRequest(string fileId, IDictionary<string, BinaryData> attributes, FileChunkingStrategy chunkingStrategy, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            FileId = fileId;
            Attributes = attributes ?? new ChangeTrackingDictionary<string, BinaryData>();
            ChunkingStrategy = chunkingStrategy;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public string FileId { get; }

        public IDictionary<string, BinaryData> Attributes { get; set; }

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