// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using OpenAI;

namespace OpenAI.Realtime
{
    [Experimental("OPENAI002")]
    public partial class InputAudioTranscriptionFinishedUpdate : RealtimeUpdate
    {
        internal InputAudioTranscriptionFinishedUpdate(string itemId, int contentIndex, string transcript) : base(RealtimeUpdateKind.InputTranscriptionFinished)
        {
            ItemId = itemId;
            ContentIndex = contentIndex;
            Transcript = transcript;
            Logprobs = new ChangeTrackingList<InternalDotNetRealtimeLogProbProperties>();
        }

        internal InputAudioTranscriptionFinishedUpdate(RealtimeUpdateKind kind, string eventId, IDictionary<string, BinaryData> additionalBinaryDataProperties, string itemId, int contentIndex, string transcript, IList<InternalDotNetRealtimeLogProbProperties> logprobs) : base(kind, eventId, additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            ItemId = itemId;
            ContentIndex = contentIndex;
            Transcript = transcript;
            Logprobs = logprobs ?? new ChangeTrackingList<InternalDotNetRealtimeLogProbProperties>();
        }

        public string ItemId { get; }

        public int ContentIndex { get; }

        public string Transcript { get; }
    }
}
