// <auto-generated/>

#nullable disable

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

namespace OpenAI.Realtime
{
    [Experimental("OPENAI002")]
    public partial class TranscriptionSessionOptions
    {
        private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;

        public TranscriptionSessionOptions() : this(null, default, null, null, null, null, null, null)
        {
        }

        internal TranscriptionSessionOptions(InternalRealtimeTranscriptionSessionCreateRequestClientSecret clientSecret, RealtimeAudioFormat? inputAudioFormat, InputTranscriptionOptions inputTranscriptionOptions, TurnDetectionOptions turnDetectionOptions, InputNoiseReductionOptions inputNoiseReductionOptions, IList<string> include, IList<InternalRealtimeRequestSessionModality> internalModalities, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            ClientSecret = clientSecret;
            InputAudioFormat = inputAudioFormat;
            InputTranscriptionOptions = inputTranscriptionOptions;
            TurnDetectionOptions = turnDetectionOptions;
            InputNoiseReductionOptions = inputNoiseReductionOptions;
            Include = include ?? new ChangeTrackingList<string>();
            _internalModalities = internalModalities ?? new ChangeTrackingList<InternalRealtimeRequestSessionModality>();
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        internal InternalRealtimeTranscriptionSessionCreateRequestClientSecret ClientSecret { get; set; }

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