// <auto-generated/>

#nullable disable

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

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

        internal InternalMessageDeltaContentTextObjectText() : this(null, null, null)
        {
        }

        internal InternalMessageDeltaContentTextObjectText(string value, IList<InternalMessageDeltaTextContentAnnotation> annotations, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            Value = value;
            Annotations = annotations ?? new ChangeTrackingList<InternalMessageDeltaTextContentAnnotation>();
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public string Value { get; }

        internal IList<InternalMessageDeltaTextContentAnnotation> Annotations { get; }

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