// <auto-generated/>

#nullable disable

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

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

        internal VectorStoreFileAssociation(DateTimeOffset createdAt, string vectorStoreId, VectorStoreFileAssociationStatus status, VectorStoreFileAssociationError lastError, string fileId, int size)
        {
            CreatedAt = createdAt;
            VectorStoreId = vectorStoreId;
            Status = status;
            LastError = lastError;
            FileId = fileId;
            Size = size;
            Attributes = new ChangeTrackingDictionary<string, BinaryData>();
        }

        internal VectorStoreFileAssociation(DateTimeOffset createdAt, string vectorStoreId, VectorStoreFileAssociationStatus status, VectorStoreFileAssociationError lastError, string @object, string fileId, int size, IDictionary<string, BinaryData> attributes, FileChunkingStrategy chunkingStrategy, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            CreatedAt = createdAt;
            VectorStoreId = vectorStoreId;
            Status = status;
            LastError = lastError;
            Object = @object;
            FileId = fileId;
            Size = size;
            Attributes = attributes ?? new ChangeTrackingDictionary<string, BinaryData>();
            ChunkingStrategy = chunkingStrategy;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public DateTimeOffset CreatedAt { get; }

        public string VectorStoreId { get; }

        public VectorStoreFileAssociationStatus Status { get; }

        public VectorStoreFileAssociationError LastError { get; }

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