// <auto-generated/>

#nullable disable

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

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

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

            Value = value;
            Annotations = new ChangeTrackingList<InternalMessageContentTextObjectAnnotation>();
        }

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

        public string Value { get; set; }

        internal IReadOnlyList<InternalMessageContentTextObjectAnnotation> Annotations { get; }

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