All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.mediaconvert.serde.M2tsSettingsDocumentSerializer.kt Maven / Gradle / Ivy

There is a newer version: 1.3.34
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.mediaconvert.serde

import aws.sdk.kotlin.services.mediaconvert.model.M2tsSettings
import aws.smithy.kotlin.runtime.serde.SdkFieldDescriptor
import aws.smithy.kotlin.runtime.serde.SdkObjectDescriptor
import aws.smithy.kotlin.runtime.serde.SerialKind
import aws.smithy.kotlin.runtime.serde.Serializer
import aws.smithy.kotlin.runtime.serde.asSdkSerializable
import aws.smithy.kotlin.runtime.serde.deserializeList
import aws.smithy.kotlin.runtime.serde.deserializeMap
import aws.smithy.kotlin.runtime.serde.deserializeStruct
import aws.smithy.kotlin.runtime.serde.field
import aws.smithy.kotlin.runtime.serde.json.JsonDeserializer
import aws.smithy.kotlin.runtime.serde.json.JsonSerialName
import aws.smithy.kotlin.runtime.serde.serializeList
import aws.smithy.kotlin.runtime.serde.serializeMap
import aws.smithy.kotlin.runtime.serde.serializeStruct

internal fun serializeM2tsSettingsDocument(serializer: Serializer, input: M2tsSettings) {
    val AUDIOBUFFERMODEL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("audioBufferModel"))
    val AUDIODURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("audioDuration"))
    val AUDIOFRAMESPERPES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("audioFramesPerPes"))
    val AUDIOPIDS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("audioPids"))
    val BITRATE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("bitrate"))
    val BUFFERMODEL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("bufferModel"))
    val DATAPTSCONTROL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("dataPTSControl"))
    val DVBNITSETTINGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("dvbNitSettings"))
    val DVBSDTSETTINGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("dvbSdtSettings"))
    val DVBSUBPIDS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("dvbSubPids"))
    val DVBTDTSETTINGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("dvbTdtSettings"))
    val DVBTELETEXTPID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("dvbTeletextPid"))
    val EBPAUDIOINTERVAL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("ebpAudioInterval"))
    val EBPPLACEMENT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("ebpPlacement"))
    val ESRATEINPES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("esRateInPes"))
    val FORCETSVIDEOEBPORDER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("forceTsVideoEbpOrder"))
    val FRAGMENTTIME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Double, JsonSerialName("fragmentTime"))
    val KLVMETADATA_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("klvMetadata"))
    val MAXPCRINTERVAL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("maxPcrInterval"))
    val MINEBPINTERVAL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("minEbpInterval"))
    val NIELSENID3_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("nielsenId3"))
    val NULLPACKETBITRATE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Double, JsonSerialName("nullPacketBitrate"))
    val PATINTERVAL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("patInterval"))
    val PCRCONTROL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("pcrControl"))
    val PCRPID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("pcrPid"))
    val PMTINTERVAL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("pmtInterval"))
    val PMTPID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("pmtPid"))
    val PREVENTBUFFERUNDERFLOW_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("preventBufferUnderflow"))
    val PRIVATEMETADATAPID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("privateMetadataPid"))
    val PROGRAMNUMBER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("programNumber"))
    val PTSOFFSET_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("ptsOffset"))
    val PTSOFFSETMODE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("ptsOffsetMode"))
    val RATEMODE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("rateMode"))
    val SCTE35ESAM_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("scte35Esam"))
    val SCTE35PID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("scte35Pid"))
    val SCTE35SOURCE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("scte35Source"))
    val SEGMENTATIONMARKERS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("segmentationMarkers"))
    val SEGMENTATIONSTYLE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("segmentationStyle"))
    val SEGMENTATIONTIME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Double, JsonSerialName("segmentationTime"))
    val TIMEDMETADATAPID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("timedMetadataPid"))
    val TRANSPORTSTREAMID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("transportStreamId"))
    val VIDEOPID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("videoPid"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(AUDIOBUFFERMODEL_DESCRIPTOR)
        field(AUDIODURATION_DESCRIPTOR)
        field(AUDIOFRAMESPERPES_DESCRIPTOR)
        field(AUDIOPIDS_DESCRIPTOR)
        field(BITRATE_DESCRIPTOR)
        field(BUFFERMODEL_DESCRIPTOR)
        field(DATAPTSCONTROL_DESCRIPTOR)
        field(DVBNITSETTINGS_DESCRIPTOR)
        field(DVBSDTSETTINGS_DESCRIPTOR)
        field(DVBSUBPIDS_DESCRIPTOR)
        field(DVBTDTSETTINGS_DESCRIPTOR)
        field(DVBTELETEXTPID_DESCRIPTOR)
        field(EBPAUDIOINTERVAL_DESCRIPTOR)
        field(EBPPLACEMENT_DESCRIPTOR)
        field(ESRATEINPES_DESCRIPTOR)
        field(FORCETSVIDEOEBPORDER_DESCRIPTOR)
        field(FRAGMENTTIME_DESCRIPTOR)
        field(KLVMETADATA_DESCRIPTOR)
        field(MAXPCRINTERVAL_DESCRIPTOR)
        field(MINEBPINTERVAL_DESCRIPTOR)
        field(NIELSENID3_DESCRIPTOR)
        field(NULLPACKETBITRATE_DESCRIPTOR)
        field(PATINTERVAL_DESCRIPTOR)
        field(PCRCONTROL_DESCRIPTOR)
        field(PCRPID_DESCRIPTOR)
        field(PMTINTERVAL_DESCRIPTOR)
        field(PMTPID_DESCRIPTOR)
        field(PREVENTBUFFERUNDERFLOW_DESCRIPTOR)
        field(PRIVATEMETADATAPID_DESCRIPTOR)
        field(PROGRAMNUMBER_DESCRIPTOR)
        field(PTSOFFSET_DESCRIPTOR)
        field(PTSOFFSETMODE_DESCRIPTOR)
        field(RATEMODE_DESCRIPTOR)
        field(SCTE35ESAM_DESCRIPTOR)
        field(SCTE35PID_DESCRIPTOR)
        field(SCTE35SOURCE_DESCRIPTOR)
        field(SEGMENTATIONMARKERS_DESCRIPTOR)
        field(SEGMENTATIONSTYLE_DESCRIPTOR)
        field(SEGMENTATIONTIME_DESCRIPTOR)
        field(TIMEDMETADATAPID_DESCRIPTOR)
        field(TRANSPORTSTREAMID_DESCRIPTOR)
        field(VIDEOPID_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        input.audioBufferModel?.let { field(AUDIOBUFFERMODEL_DESCRIPTOR, it.value) }
        input.audioDuration?.let { field(AUDIODURATION_DESCRIPTOR, it.value) }
        input.audioFramesPerPes?.let { field(AUDIOFRAMESPERPES_DESCRIPTOR, it) }
        if (input.audioPids != null) {
            listField(AUDIOPIDS_DESCRIPTOR) {
                for (el0 in input.audioPids) {
                    serializeInt(el0)
                }
            }
        }
        input.bitrate?.let { field(BITRATE_DESCRIPTOR, it) }
        input.bufferModel?.let { field(BUFFERMODEL_DESCRIPTOR, it.value) }
        input.dataPtsControl?.let { field(DATAPTSCONTROL_DESCRIPTOR, it.value) }
        input.dvbNitSettings?.let { field(DVBNITSETTINGS_DESCRIPTOR, it, ::serializeDvbNitSettingsDocument) }
        input.dvbSdtSettings?.let { field(DVBSDTSETTINGS_DESCRIPTOR, it, ::serializeDvbSdtSettingsDocument) }
        if (input.dvbSubPids != null) {
            listField(DVBSUBPIDS_DESCRIPTOR) {
                for (el0 in input.dvbSubPids) {
                    serializeInt(el0)
                }
            }
        }
        input.dvbTdtSettings?.let { field(DVBTDTSETTINGS_DESCRIPTOR, it, ::serializeDvbTdtSettingsDocument) }
        input.dvbTeletextPid?.let { field(DVBTELETEXTPID_DESCRIPTOR, it) }
        input.ebpAudioInterval?.let { field(EBPAUDIOINTERVAL_DESCRIPTOR, it.value) }
        input.ebpPlacement?.let { field(EBPPLACEMENT_DESCRIPTOR, it.value) }
        input.esRateInPes?.let { field(ESRATEINPES_DESCRIPTOR, it.value) }
        input.forceTsVideoEbpOrder?.let { field(FORCETSVIDEOEBPORDER_DESCRIPTOR, it.value) }
        input.fragmentTime?.let { field(FRAGMENTTIME_DESCRIPTOR, it) }
        input.klvMetadata?.let { field(KLVMETADATA_DESCRIPTOR, it.value) }
        input.maxPcrInterval?.let { field(MAXPCRINTERVAL_DESCRIPTOR, it) }
        input.minEbpInterval?.let { field(MINEBPINTERVAL_DESCRIPTOR, it) }
        input.nielsenId3?.let { field(NIELSENID3_DESCRIPTOR, it.value) }
        input.nullPacketBitrate?.let { field(NULLPACKETBITRATE_DESCRIPTOR, it) }
        input.patInterval?.let { field(PATINTERVAL_DESCRIPTOR, it) }
        input.pcrControl?.let { field(PCRCONTROL_DESCRIPTOR, it.value) }
        input.pcrPid?.let { field(PCRPID_DESCRIPTOR, it) }
        input.pmtInterval?.let { field(PMTINTERVAL_DESCRIPTOR, it) }
        input.pmtPid?.let { field(PMTPID_DESCRIPTOR, it) }
        input.preventBufferUnderflow?.let { field(PREVENTBUFFERUNDERFLOW_DESCRIPTOR, it.value) }
        input.privateMetadataPid?.let { field(PRIVATEMETADATAPID_DESCRIPTOR, it) }
        input.programNumber?.let { field(PROGRAMNUMBER_DESCRIPTOR, it) }
        input.ptsOffset?.let { field(PTSOFFSET_DESCRIPTOR, it) }
        input.ptsOffsetMode?.let { field(PTSOFFSETMODE_DESCRIPTOR, it.value) }
        input.rateMode?.let { field(RATEMODE_DESCRIPTOR, it.value) }
        input.scte35Esam?.let { field(SCTE35ESAM_DESCRIPTOR, it, ::serializeM2tsScte35EsamDocument) }
        input.scte35Pid?.let { field(SCTE35PID_DESCRIPTOR, it) }
        input.scte35Source?.let { field(SCTE35SOURCE_DESCRIPTOR, it.value) }
        input.segmentationMarkers?.let { field(SEGMENTATIONMARKERS_DESCRIPTOR, it.value) }
        input.segmentationStyle?.let { field(SEGMENTATIONSTYLE_DESCRIPTOR, it.value) }
        input.segmentationTime?.let { field(SEGMENTATIONTIME_DESCRIPTOR, it) }
        input.timedMetadataPid?.let { field(TIMEDMETADATAPID_DESCRIPTOR, it) }
        input.transportStreamId?.let { field(TRANSPORTSTREAMID_DESCRIPTOR, it) }
        input.videoPid?.let { field(VIDEOPID_DESCRIPTOR, it) }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy