
commonMain.aws.sdk.kotlin.services.swf.serde.HistoryEventDocumentDeserializer.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.swf.serde
import aws.sdk.kotlin.services.swf.model.EventType
import aws.sdk.kotlin.services.swf.model.HistoryEvent
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
import aws.smithy.kotlin.runtime.time.Instant
import aws.smithy.kotlin.runtime.time.TimestampFormat
internal fun deserializeHistoryEventDocument(deserializer: Deserializer): HistoryEvent {
val builder = HistoryEvent.Builder()
val ACTIVITYTASKCANCELREQUESTEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("activityTaskCancelRequestedEventAttributes"))
val ACTIVITYTASKCANCELEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("activityTaskCanceledEventAttributes"))
val ACTIVITYTASKCOMPLETEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("activityTaskCompletedEventAttributes"))
val ACTIVITYTASKFAILEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("activityTaskFailedEventAttributes"))
val ACTIVITYTASKSCHEDULEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("activityTaskScheduledEventAttributes"))
val ACTIVITYTASKSTARTEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("activityTaskStartedEventAttributes"))
val ACTIVITYTASKTIMEDOUTEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("activityTaskTimedOutEventAttributes"))
val CANCELTIMERFAILEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("cancelTimerFailedEventAttributes"))
val CANCELWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("cancelWorkflowExecutionFailedEventAttributes"))
val CHILDWORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("childWorkflowExecutionCanceledEventAttributes"))
val CHILDWORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("childWorkflowExecutionCompletedEventAttributes"))
val CHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("childWorkflowExecutionFailedEventAttributes"))
val CHILDWORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("childWorkflowExecutionStartedEventAttributes"))
val CHILDWORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("childWorkflowExecutionTerminatedEventAttributes"))
val CHILDWORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("childWorkflowExecutionTimedOutEventAttributes"))
val COMPLETEWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("completeWorkflowExecutionFailedEventAttributes"))
val CONTINUEASNEWWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("continueAsNewWorkflowExecutionFailedEventAttributes"))
val DECISIONTASKCOMPLETEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("decisionTaskCompletedEventAttributes"))
val DECISIONTASKSCHEDULEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("decisionTaskScheduledEventAttributes"))
val DECISIONTASKSTARTEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("decisionTaskStartedEventAttributes"))
val DECISIONTASKTIMEDOUTEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("decisionTaskTimedOutEventAttributes"))
val EVENTID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("eventId"))
val EVENTTIMESTAMP_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Timestamp, JsonSerialName("eventTimestamp"))
val EVENTTYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("eventType"))
val EXTERNALWORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("externalWorkflowExecutionCancelRequestedEventAttributes"))
val EXTERNALWORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("externalWorkflowExecutionSignaledEventAttributes"))
val FAILWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("failWorkflowExecutionFailedEventAttributes"))
val LAMBDAFUNCTIONCOMPLETEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("lambdaFunctionCompletedEventAttributes"))
val LAMBDAFUNCTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("lambdaFunctionFailedEventAttributes"))
val LAMBDAFUNCTIONSCHEDULEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("lambdaFunctionScheduledEventAttributes"))
val LAMBDAFUNCTIONSTARTEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("lambdaFunctionStartedEventAttributes"))
val LAMBDAFUNCTIONTIMEDOUTEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("lambdaFunctionTimedOutEventAttributes"))
val MARKERRECORDEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("markerRecordedEventAttributes"))
val RECORDMARKERFAILEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("recordMarkerFailedEventAttributes"))
val REQUESTCANCELACTIVITYTASKFAILEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("requestCancelActivityTaskFailedEventAttributes"))
val REQUESTCANCELEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("requestCancelExternalWorkflowExecutionFailedEventAttributes"))
val REQUESTCANCELEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("requestCancelExternalWorkflowExecutionInitiatedEventAttributes"))
val SCHEDULEACTIVITYTASKFAILEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("scheduleActivityTaskFailedEventAttributes"))
val SCHEDULELAMBDAFUNCTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("scheduleLambdaFunctionFailedEventAttributes"))
val SIGNALEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("signalExternalWorkflowExecutionFailedEventAttributes"))
val SIGNALEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("signalExternalWorkflowExecutionInitiatedEventAttributes"))
val STARTCHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("startChildWorkflowExecutionFailedEventAttributes"))
val STARTCHILDWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("startChildWorkflowExecutionInitiatedEventAttributes"))
val STARTLAMBDAFUNCTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("startLambdaFunctionFailedEventAttributes"))
val STARTTIMERFAILEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("startTimerFailedEventAttributes"))
val TIMERCANCELEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("timerCanceledEventAttributes"))
val TIMERFIREDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("timerFiredEventAttributes"))
val TIMERSTARTEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("timerStartedEventAttributes"))
val WORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("workflowExecutionCancelRequestedEventAttributes"))
val WORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("workflowExecutionCanceledEventAttributes"))
val WORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("workflowExecutionCompletedEventAttributes"))
val WORKFLOWEXECUTIONCONTINUEDASNEWEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("workflowExecutionContinuedAsNewEventAttributes"))
val WORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("workflowExecutionFailedEventAttributes"))
val WORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("workflowExecutionSignaledEventAttributes"))
val WORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("workflowExecutionStartedEventAttributes"))
val WORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("workflowExecutionTerminatedEventAttributes"))
val WORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("workflowExecutionTimedOutEventAttributes"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(ACTIVITYTASKCANCELREQUESTEDEVENTATTRIBUTES_DESCRIPTOR)
field(ACTIVITYTASKCANCELEDEVENTATTRIBUTES_DESCRIPTOR)
field(ACTIVITYTASKCOMPLETEDEVENTATTRIBUTES_DESCRIPTOR)
field(ACTIVITYTASKFAILEDEVENTATTRIBUTES_DESCRIPTOR)
field(ACTIVITYTASKSCHEDULEDEVENTATTRIBUTES_DESCRIPTOR)
field(ACTIVITYTASKSTARTEDEVENTATTRIBUTES_DESCRIPTOR)
field(ACTIVITYTASKTIMEDOUTEVENTATTRIBUTES_DESCRIPTOR)
field(CANCELTIMERFAILEDEVENTATTRIBUTES_DESCRIPTOR)
field(CANCELWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR)
field(CHILDWORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES_DESCRIPTOR)
field(CHILDWORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES_DESCRIPTOR)
field(CHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR)
field(CHILDWORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES_DESCRIPTOR)
field(CHILDWORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES_DESCRIPTOR)
field(CHILDWORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES_DESCRIPTOR)
field(COMPLETEWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR)
field(CONTINUEASNEWWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR)
field(DECISIONTASKCOMPLETEDEVENTATTRIBUTES_DESCRIPTOR)
field(DECISIONTASKSCHEDULEDEVENTATTRIBUTES_DESCRIPTOR)
field(DECISIONTASKSTARTEDEVENTATTRIBUTES_DESCRIPTOR)
field(DECISIONTASKTIMEDOUTEVENTATTRIBUTES_DESCRIPTOR)
field(EVENTID_DESCRIPTOR)
field(EVENTTIMESTAMP_DESCRIPTOR)
field(EVENTTYPE_DESCRIPTOR)
field(EXTERNALWORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES_DESCRIPTOR)
field(EXTERNALWORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES_DESCRIPTOR)
field(FAILWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR)
field(LAMBDAFUNCTIONCOMPLETEDEVENTATTRIBUTES_DESCRIPTOR)
field(LAMBDAFUNCTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR)
field(LAMBDAFUNCTIONSCHEDULEDEVENTATTRIBUTES_DESCRIPTOR)
field(LAMBDAFUNCTIONSTARTEDEVENTATTRIBUTES_DESCRIPTOR)
field(LAMBDAFUNCTIONTIMEDOUTEVENTATTRIBUTES_DESCRIPTOR)
field(MARKERRECORDEDEVENTATTRIBUTES_DESCRIPTOR)
field(RECORDMARKERFAILEDEVENTATTRIBUTES_DESCRIPTOR)
field(REQUESTCANCELACTIVITYTASKFAILEDEVENTATTRIBUTES_DESCRIPTOR)
field(REQUESTCANCELEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR)
field(REQUESTCANCELEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES_DESCRIPTOR)
field(SCHEDULEACTIVITYTASKFAILEDEVENTATTRIBUTES_DESCRIPTOR)
field(SCHEDULELAMBDAFUNCTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR)
field(SIGNALEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR)
field(SIGNALEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES_DESCRIPTOR)
field(STARTCHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR)
field(STARTCHILDWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES_DESCRIPTOR)
field(STARTLAMBDAFUNCTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR)
field(STARTTIMERFAILEDEVENTATTRIBUTES_DESCRIPTOR)
field(TIMERCANCELEDEVENTATTRIBUTES_DESCRIPTOR)
field(TIMERFIREDEVENTATTRIBUTES_DESCRIPTOR)
field(TIMERSTARTEDEVENTATTRIBUTES_DESCRIPTOR)
field(WORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES_DESCRIPTOR)
field(WORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES_DESCRIPTOR)
field(WORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES_DESCRIPTOR)
field(WORKFLOWEXECUTIONCONTINUEDASNEWEVENTATTRIBUTES_DESCRIPTOR)
field(WORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR)
field(WORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES_DESCRIPTOR)
field(WORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES_DESCRIPTOR)
field(WORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES_DESCRIPTOR)
field(WORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES_DESCRIPTOR)
}
deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
loop@while (true) {
when (findNextFieldIndex()) {
ACTIVITYTASKCANCELREQUESTEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.activityTaskCancelRequestedEventAttributes = deserializeActivityTaskCancelRequestedEventAttributesDocument(deserializer)
ACTIVITYTASKCANCELEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.activityTaskCanceledEventAttributes = deserializeActivityTaskCanceledEventAttributesDocument(deserializer)
ACTIVITYTASKCOMPLETEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.activityTaskCompletedEventAttributes = deserializeActivityTaskCompletedEventAttributesDocument(deserializer)
ACTIVITYTASKFAILEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.activityTaskFailedEventAttributes = deserializeActivityTaskFailedEventAttributesDocument(deserializer)
ACTIVITYTASKSCHEDULEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.activityTaskScheduledEventAttributes = deserializeActivityTaskScheduledEventAttributesDocument(deserializer)
ACTIVITYTASKSTARTEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.activityTaskStartedEventAttributes = deserializeActivityTaskStartedEventAttributesDocument(deserializer)
ACTIVITYTASKTIMEDOUTEVENTATTRIBUTES_DESCRIPTOR.index -> builder.activityTaskTimedOutEventAttributes = deserializeActivityTaskTimedOutEventAttributesDocument(deserializer)
CANCELTIMERFAILEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.cancelTimerFailedEventAttributes = deserializeCancelTimerFailedEventAttributesDocument(deserializer)
CANCELWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.cancelWorkflowExecutionFailedEventAttributes = deserializeCancelWorkflowExecutionFailedEventAttributesDocument(deserializer)
CHILDWORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.childWorkflowExecutionCanceledEventAttributes = deserializeChildWorkflowExecutionCanceledEventAttributesDocument(deserializer)
CHILDWORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.childWorkflowExecutionCompletedEventAttributes = deserializeChildWorkflowExecutionCompletedEventAttributesDocument(deserializer)
CHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.childWorkflowExecutionFailedEventAttributes = deserializeChildWorkflowExecutionFailedEventAttributesDocument(deserializer)
CHILDWORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.childWorkflowExecutionStartedEventAttributes = deserializeChildWorkflowExecutionStartedEventAttributesDocument(deserializer)
CHILDWORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.childWorkflowExecutionTerminatedEventAttributes = deserializeChildWorkflowExecutionTerminatedEventAttributesDocument(deserializer)
CHILDWORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES_DESCRIPTOR.index -> builder.childWorkflowExecutionTimedOutEventAttributes = deserializeChildWorkflowExecutionTimedOutEventAttributesDocument(deserializer)
COMPLETEWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.completeWorkflowExecutionFailedEventAttributes = deserializeCompleteWorkflowExecutionFailedEventAttributesDocument(deserializer)
CONTINUEASNEWWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.continueAsNewWorkflowExecutionFailedEventAttributes = deserializeContinueAsNewWorkflowExecutionFailedEventAttributesDocument(deserializer)
DECISIONTASKCOMPLETEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.decisionTaskCompletedEventAttributes = deserializeDecisionTaskCompletedEventAttributesDocument(deserializer)
DECISIONTASKSCHEDULEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.decisionTaskScheduledEventAttributes = deserializeDecisionTaskScheduledEventAttributesDocument(deserializer)
DECISIONTASKSTARTEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.decisionTaskStartedEventAttributes = deserializeDecisionTaskStartedEventAttributesDocument(deserializer)
DECISIONTASKTIMEDOUTEVENTATTRIBUTES_DESCRIPTOR.index -> builder.decisionTaskTimedOutEventAttributes = deserializeDecisionTaskTimedOutEventAttributesDocument(deserializer)
EVENTID_DESCRIPTOR.index -> builder.eventId = deserializeLong()
EVENTTIMESTAMP_DESCRIPTOR.index -> builder.eventTimestamp = deserializeInstant(TimestampFormat.EPOCH_SECONDS)
EVENTTYPE_DESCRIPTOR.index -> builder.eventType = deserializeString().let { EventType.fromValue(it) }
EXTERNALWORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.externalWorkflowExecutionCancelRequestedEventAttributes = deserializeExternalWorkflowExecutionCancelRequestedEventAttributesDocument(deserializer)
EXTERNALWORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.externalWorkflowExecutionSignaledEventAttributes = deserializeExternalWorkflowExecutionSignaledEventAttributesDocument(deserializer)
FAILWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.failWorkflowExecutionFailedEventAttributes = deserializeFailWorkflowExecutionFailedEventAttributesDocument(deserializer)
LAMBDAFUNCTIONCOMPLETEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.lambdaFunctionCompletedEventAttributes = deserializeLambdaFunctionCompletedEventAttributesDocument(deserializer)
LAMBDAFUNCTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.lambdaFunctionFailedEventAttributes = deserializeLambdaFunctionFailedEventAttributesDocument(deserializer)
LAMBDAFUNCTIONSCHEDULEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.lambdaFunctionScheduledEventAttributes = deserializeLambdaFunctionScheduledEventAttributesDocument(deserializer)
LAMBDAFUNCTIONSTARTEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.lambdaFunctionStartedEventAttributes = deserializeLambdaFunctionStartedEventAttributesDocument(deserializer)
LAMBDAFUNCTIONTIMEDOUTEVENTATTRIBUTES_DESCRIPTOR.index -> builder.lambdaFunctionTimedOutEventAttributes = deserializeLambdaFunctionTimedOutEventAttributesDocument(deserializer)
MARKERRECORDEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.markerRecordedEventAttributes = deserializeMarkerRecordedEventAttributesDocument(deserializer)
RECORDMARKERFAILEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.recordMarkerFailedEventAttributes = deserializeRecordMarkerFailedEventAttributesDocument(deserializer)
REQUESTCANCELACTIVITYTASKFAILEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.requestCancelActivityTaskFailedEventAttributes = deserializeRequestCancelActivityTaskFailedEventAttributesDocument(deserializer)
REQUESTCANCELEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.requestCancelExternalWorkflowExecutionFailedEventAttributes = deserializeRequestCancelExternalWorkflowExecutionFailedEventAttributesDocument(deserializer)
REQUESTCANCELEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.requestCancelExternalWorkflowExecutionInitiatedEventAttributes = deserializeRequestCancelExternalWorkflowExecutionInitiatedEventAttributesDocument(deserializer)
SCHEDULEACTIVITYTASKFAILEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.scheduleActivityTaskFailedEventAttributes = deserializeScheduleActivityTaskFailedEventAttributesDocument(deserializer)
SCHEDULELAMBDAFUNCTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.scheduleLambdaFunctionFailedEventAttributes = deserializeScheduleLambdaFunctionFailedEventAttributesDocument(deserializer)
SIGNALEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.signalExternalWorkflowExecutionFailedEventAttributes = deserializeSignalExternalWorkflowExecutionFailedEventAttributesDocument(deserializer)
SIGNALEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.signalExternalWorkflowExecutionInitiatedEventAttributes = deserializeSignalExternalWorkflowExecutionInitiatedEventAttributesDocument(deserializer)
STARTCHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.startChildWorkflowExecutionFailedEventAttributes = deserializeStartChildWorkflowExecutionFailedEventAttributesDocument(deserializer)
STARTCHILDWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.startChildWorkflowExecutionInitiatedEventAttributes = deserializeStartChildWorkflowExecutionInitiatedEventAttributesDocument(deserializer)
STARTLAMBDAFUNCTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.startLambdaFunctionFailedEventAttributes = deserializeStartLambdaFunctionFailedEventAttributesDocument(deserializer)
STARTTIMERFAILEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.startTimerFailedEventAttributes = deserializeStartTimerFailedEventAttributesDocument(deserializer)
TIMERCANCELEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.timerCanceledEventAttributes = deserializeTimerCanceledEventAttributesDocument(deserializer)
TIMERFIREDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.timerFiredEventAttributes = deserializeTimerFiredEventAttributesDocument(deserializer)
TIMERSTARTEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.timerStartedEventAttributes = deserializeTimerStartedEventAttributesDocument(deserializer)
WORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.workflowExecutionCancelRequestedEventAttributes = deserializeWorkflowExecutionCancelRequestedEventAttributesDocument(deserializer)
WORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.workflowExecutionCanceledEventAttributes = deserializeWorkflowExecutionCanceledEventAttributesDocument(deserializer)
WORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.workflowExecutionCompletedEventAttributes = deserializeWorkflowExecutionCompletedEventAttributesDocument(deserializer)
WORKFLOWEXECUTIONCONTINUEDASNEWEVENTATTRIBUTES_DESCRIPTOR.index -> builder.workflowExecutionContinuedAsNewEventAttributes = deserializeWorkflowExecutionContinuedAsNewEventAttributesDocument(deserializer)
WORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.workflowExecutionFailedEventAttributes = deserializeWorkflowExecutionFailedEventAttributesDocument(deserializer)
WORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.workflowExecutionSignaledEventAttributes = deserializeWorkflowExecutionSignaledEventAttributesDocument(deserializer)
WORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.workflowExecutionStartedEventAttributes = deserializeWorkflowExecutionStartedEventAttributesDocument(deserializer)
WORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES_DESCRIPTOR.index -> builder.workflowExecutionTerminatedEventAttributes = deserializeWorkflowExecutionTerminatedEventAttributesDocument(deserializer)
WORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES_DESCRIPTOR.index -> builder.workflowExecutionTimedOutEventAttributes = deserializeWorkflowExecutionTimedOutEventAttributesDocument(deserializer)
null -> break@loop
else -> skipValue()
}
}
}
builder.correctErrors()
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy