// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

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

        private protected StreamingResponseUpdate(InternalResponseStreamEventType kind, int sequenceNumber)
        {
            Kind = kind;
            SequenceNumber = sequenceNumber;
        }

        internal StreamingResponseUpdate(InternalResponseStreamEventType kind, int sequenceNumber, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            Kind = kind;
            SequenceNumber = sequenceNumber;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        internal InternalResponseStreamEventType Kind { get; set; }

        public int SequenceNumber { get; }

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