// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

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

        public InternalRealtimeTranscriptionSessionCreateRequestTurnDetection()
        {
        }

        internal InternalRealtimeTranscriptionSessionCreateRequestTurnDetection(InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionType? kind, InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness? eagerness, float? threshold, int? prefixPaddingMs, int? silenceDurationMs, bool? createResponse, bool? interruptResponse, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            Kind = kind;
            Eagerness = eagerness;
            Threshold = threshold;
            PrefixPaddingMs = prefixPaddingMs;
            SilenceDurationMs = silenceDurationMs;
            CreateResponse = createResponse;
            InterruptResponse = interruptResponse;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        internal InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionType? Kind { get; set; }

        internal InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness? Eagerness { get; set; }

        public float? Threshold { get; set; }

        public int? PrefixPaddingMs { get; set; }

        public int? SilenceDurationMs { get; set; }

        public bool? CreateResponse { get; set; }

        public bool? InterruptResponse { get; set; }

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