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

commonMain.aws.sdk.kotlin.services.timestreaminfluxdb.serde.InfluxDbV2ParametersDocumentDeserializer.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.timestreaminfluxdb.serde

import aws.sdk.kotlin.services.timestreaminfluxdb.model.InfluxDbV2Parameters
import aws.sdk.kotlin.services.timestreaminfluxdb.model.LogLevel
import aws.sdk.kotlin.services.timestreaminfluxdb.model.TracingType
import aws.smithy.kotlin.runtime.serde.Deserializer
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.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 deserializeInfluxDbV2ParametersDocument(deserializer: Deserializer): InfluxDbV2Parameters {
    val builder = InfluxDbV2Parameters.Builder()
    val FLUXLOGENABLED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("fluxLogEnabled"))
    val HTTPIDLETIMEOUT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("httpIdleTimeout"))
    val HTTPREADHEADERTIMEOUT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("httpReadHeaderTimeout"))
    val HTTPREADTIMEOUT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("httpReadTimeout"))
    val HTTPWRITETIMEOUT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("httpWriteTimeout"))
    val INFLUXQLMAXSELECTBUCKETS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("influxqlMaxSelectBuckets"))
    val INFLUXQLMAXSELECTPOINT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("influxqlMaxSelectPoint"))
    val INFLUXQLMAXSELECTSERIES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("influxqlMaxSelectSeries"))
    val LOGLEVEL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("logLevel"))
    val METRICSDISABLED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("metricsDisabled"))
    val NOTASKS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("noTasks"))
    val PPROFDISABLED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("pprofDisabled"))
    val QUERYCONCURRENCY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("queryConcurrency"))
    val QUERYINITIALMEMORYBYTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("queryInitialMemoryBytes"))
    val QUERYMAXMEMORYBYTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("queryMaxMemoryBytes"))
    val QUERYMEMORYBYTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("queryMemoryBytes"))
    val QUERYQUEUESIZE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("queryQueueSize"))
    val SESSIONLENGTH_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("sessionLength"))
    val SESSIONRENEWDISABLED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("sessionRenewDisabled"))
    val STORAGECACHEMAXMEMORYSIZE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("storageCacheMaxMemorySize"))
    val STORAGECACHESNAPSHOTMEMORYSIZE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("storageCacheSnapshotMemorySize"))
    val STORAGECACHESNAPSHOTWRITECOLDDURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("storageCacheSnapshotWriteColdDuration"))
    val STORAGECOMPACTFULLWRITECOLDDURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("storageCompactFullWriteColdDuration"))
    val STORAGECOMPACTTHROUGHPUTBURST_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("storageCompactThroughputBurst"))
    val STORAGEMAXCONCURRENTCOMPACTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("storageMaxConcurrentCompactions"))
    val STORAGEMAXINDEXLOGFILESIZE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("storageMaxIndexLogFileSize"))
    val STORAGENOVALIDATEFIELDSIZE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("storageNoValidateFieldSize"))
    val STORAGERETENTIONCHECKINTERVAL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("storageRetentionCheckInterval"))
    val STORAGESERIESFILEMAXCONCURRENTSNAPSHOTCOMPACTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("storageSeriesFileMaxConcurrentSnapshotCompactions"))
    val STORAGESERIESIDSETCACHESIZE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("storageSeriesIdSetCacheSize"))
    val STORAGEWALMAXCONCURRENTWRITES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("storageWalMaxConcurrentWrites"))
    val STORAGEWALMAXWRITEDELAY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("storageWalMaxWriteDelay"))
    val TRACINGTYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("tracingType"))
    val UIDISABLED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("uiDisabled"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(FLUXLOGENABLED_DESCRIPTOR)
        field(HTTPIDLETIMEOUT_DESCRIPTOR)
        field(HTTPREADHEADERTIMEOUT_DESCRIPTOR)
        field(HTTPREADTIMEOUT_DESCRIPTOR)
        field(HTTPWRITETIMEOUT_DESCRIPTOR)
        field(INFLUXQLMAXSELECTBUCKETS_DESCRIPTOR)
        field(INFLUXQLMAXSELECTPOINT_DESCRIPTOR)
        field(INFLUXQLMAXSELECTSERIES_DESCRIPTOR)
        field(LOGLEVEL_DESCRIPTOR)
        field(METRICSDISABLED_DESCRIPTOR)
        field(NOTASKS_DESCRIPTOR)
        field(PPROFDISABLED_DESCRIPTOR)
        field(QUERYCONCURRENCY_DESCRIPTOR)
        field(QUERYINITIALMEMORYBYTES_DESCRIPTOR)
        field(QUERYMAXMEMORYBYTES_DESCRIPTOR)
        field(QUERYMEMORYBYTES_DESCRIPTOR)
        field(QUERYQUEUESIZE_DESCRIPTOR)
        field(SESSIONLENGTH_DESCRIPTOR)
        field(SESSIONRENEWDISABLED_DESCRIPTOR)
        field(STORAGECACHEMAXMEMORYSIZE_DESCRIPTOR)
        field(STORAGECACHESNAPSHOTMEMORYSIZE_DESCRIPTOR)
        field(STORAGECACHESNAPSHOTWRITECOLDDURATION_DESCRIPTOR)
        field(STORAGECOMPACTFULLWRITECOLDDURATION_DESCRIPTOR)
        field(STORAGECOMPACTTHROUGHPUTBURST_DESCRIPTOR)
        field(STORAGEMAXCONCURRENTCOMPACTIONS_DESCRIPTOR)
        field(STORAGEMAXINDEXLOGFILESIZE_DESCRIPTOR)
        field(STORAGENOVALIDATEFIELDSIZE_DESCRIPTOR)
        field(STORAGERETENTIONCHECKINTERVAL_DESCRIPTOR)
        field(STORAGESERIESFILEMAXCONCURRENTSNAPSHOTCOMPACTIONS_DESCRIPTOR)
        field(STORAGESERIESIDSETCACHESIZE_DESCRIPTOR)
        field(STORAGEWALMAXCONCURRENTWRITES_DESCRIPTOR)
        field(STORAGEWALMAXWRITEDELAY_DESCRIPTOR)
        field(TRACINGTYPE_DESCRIPTOR)
        field(UIDISABLED_DESCRIPTOR)
    }

    deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
        loop@while (true) {
            when (findNextFieldIndex()) {
                FLUXLOGENABLED_DESCRIPTOR.index -> builder.fluxLogEnabled = deserializeBoolean()
                HTTPIDLETIMEOUT_DESCRIPTOR.index -> builder.httpIdleTimeout = deserializeDurationDocument(deserializer)
                HTTPREADHEADERTIMEOUT_DESCRIPTOR.index -> builder.httpReadHeaderTimeout = deserializeDurationDocument(deserializer)
                HTTPREADTIMEOUT_DESCRIPTOR.index -> builder.httpReadTimeout = deserializeDurationDocument(deserializer)
                HTTPWRITETIMEOUT_DESCRIPTOR.index -> builder.httpWriteTimeout = deserializeDurationDocument(deserializer)
                INFLUXQLMAXSELECTBUCKETS_DESCRIPTOR.index -> builder.influxqlMaxSelectBuckets = deserializeLong()
                INFLUXQLMAXSELECTPOINT_DESCRIPTOR.index -> builder.influxqlMaxSelectPoint = deserializeLong()
                INFLUXQLMAXSELECTSERIES_DESCRIPTOR.index -> builder.influxqlMaxSelectSeries = deserializeLong()
                LOGLEVEL_DESCRIPTOR.index -> builder.logLevel = deserializeString().let { LogLevel.fromValue(it) }
                METRICSDISABLED_DESCRIPTOR.index -> builder.metricsDisabled = deserializeBoolean()
                NOTASKS_DESCRIPTOR.index -> builder.noTasks = deserializeBoolean()
                PPROFDISABLED_DESCRIPTOR.index -> builder.pprofDisabled = deserializeBoolean()
                QUERYCONCURRENCY_DESCRIPTOR.index -> builder.queryConcurrency = deserializeInt()
                QUERYINITIALMEMORYBYTES_DESCRIPTOR.index -> builder.queryInitialMemoryBytes = deserializeLong()
                QUERYMAXMEMORYBYTES_DESCRIPTOR.index -> builder.queryMaxMemoryBytes = deserializeLong()
                QUERYMEMORYBYTES_DESCRIPTOR.index -> builder.queryMemoryBytes = deserializeLong()
                QUERYQUEUESIZE_DESCRIPTOR.index -> builder.queryQueueSize = deserializeInt()
                SESSIONLENGTH_DESCRIPTOR.index -> builder.sessionLength = deserializeInt()
                SESSIONRENEWDISABLED_DESCRIPTOR.index -> builder.sessionRenewDisabled = deserializeBoolean()
                STORAGECACHEMAXMEMORYSIZE_DESCRIPTOR.index -> builder.storageCacheMaxMemorySize = deserializeLong()
                STORAGECACHESNAPSHOTMEMORYSIZE_DESCRIPTOR.index -> builder.storageCacheSnapshotMemorySize = deserializeLong()
                STORAGECACHESNAPSHOTWRITECOLDDURATION_DESCRIPTOR.index -> builder.storageCacheSnapshotWriteColdDuration = deserializeDurationDocument(deserializer)
                STORAGECOMPACTFULLWRITECOLDDURATION_DESCRIPTOR.index -> builder.storageCompactFullWriteColdDuration = deserializeDurationDocument(deserializer)
                STORAGECOMPACTTHROUGHPUTBURST_DESCRIPTOR.index -> builder.storageCompactThroughputBurst = deserializeLong()
                STORAGEMAXCONCURRENTCOMPACTIONS_DESCRIPTOR.index -> builder.storageMaxConcurrentCompactions = deserializeInt()
                STORAGEMAXINDEXLOGFILESIZE_DESCRIPTOR.index -> builder.storageMaxIndexLogFileSize = deserializeLong()
                STORAGENOVALIDATEFIELDSIZE_DESCRIPTOR.index -> builder.storageNoValidateFieldSize = deserializeBoolean()
                STORAGERETENTIONCHECKINTERVAL_DESCRIPTOR.index -> builder.storageRetentionCheckInterval = deserializeDurationDocument(deserializer)
                STORAGESERIESFILEMAXCONCURRENTSNAPSHOTCOMPACTIONS_DESCRIPTOR.index -> builder.storageSeriesFileMaxConcurrentSnapshotCompactions = deserializeInt()
                STORAGESERIESIDSETCACHESIZE_DESCRIPTOR.index -> builder.storageSeriesIdSetCacheSize = deserializeLong()
                STORAGEWALMAXCONCURRENTWRITES_DESCRIPTOR.index -> builder.storageWalMaxConcurrentWrites = deserializeInt()
                STORAGEWALMAXWRITEDELAY_DESCRIPTOR.index -> builder.storageWalMaxWriteDelay = deserializeDurationDocument(deserializer)
                TRACINGTYPE_DESCRIPTOR.index -> builder.tracingType = deserializeString().let { TracingType.fromValue(it) }
                UIDISABLED_DESCRIPTOR.index -> builder.uiDisabled = deserializeBoolean()
                null -> break@loop
                else -> skipValue()
            }
        }
    }
    builder.correctErrors()
    return builder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy