in common/types/mapper/thrift/shared.go [2254:2387]
func ToEventType(t *shared.EventType) *types.EventType {
if t == nil {
return nil
}
switch *t {
case shared.EventTypeWorkflowExecutionStarted:
v := types.EventTypeWorkflowExecutionStarted
return &v
case shared.EventTypeWorkflowExecutionCompleted:
v := types.EventTypeWorkflowExecutionCompleted
return &v
case shared.EventTypeWorkflowExecutionFailed:
v := types.EventTypeWorkflowExecutionFailed
return &v
case shared.EventTypeWorkflowExecutionTimedOut:
v := types.EventTypeWorkflowExecutionTimedOut
return &v
case shared.EventTypeDecisionTaskScheduled:
v := types.EventTypeDecisionTaskScheduled
return &v
case shared.EventTypeDecisionTaskStarted:
v := types.EventTypeDecisionTaskStarted
return &v
case shared.EventTypeDecisionTaskCompleted:
v := types.EventTypeDecisionTaskCompleted
return &v
case shared.EventTypeDecisionTaskTimedOut:
v := types.EventTypeDecisionTaskTimedOut
return &v
case shared.EventTypeDecisionTaskFailed:
v := types.EventTypeDecisionTaskFailed
return &v
case shared.EventTypeActivityTaskScheduled:
v := types.EventTypeActivityTaskScheduled
return &v
case shared.EventTypeActivityTaskStarted:
v := types.EventTypeActivityTaskStarted
return &v
case shared.EventTypeActivityTaskCompleted:
v := types.EventTypeActivityTaskCompleted
return &v
case shared.EventTypeActivityTaskFailed:
v := types.EventTypeActivityTaskFailed
return &v
case shared.EventTypeActivityTaskTimedOut:
v := types.EventTypeActivityTaskTimedOut
return &v
case shared.EventTypeActivityTaskCancelRequested:
v := types.EventTypeActivityTaskCancelRequested
return &v
case shared.EventTypeRequestCancelActivityTaskFailed:
v := types.EventTypeRequestCancelActivityTaskFailed
return &v
case shared.EventTypeActivityTaskCanceled:
v := types.EventTypeActivityTaskCanceled
return &v
case shared.EventTypeTimerStarted:
v := types.EventTypeTimerStarted
return &v
case shared.EventTypeTimerFired:
v := types.EventTypeTimerFired
return &v
case shared.EventTypeCancelTimerFailed:
v := types.EventTypeCancelTimerFailed
return &v
case shared.EventTypeTimerCanceled:
v := types.EventTypeTimerCanceled
return &v
case shared.EventTypeWorkflowExecutionCancelRequested:
v := types.EventTypeWorkflowExecutionCancelRequested
return &v
case shared.EventTypeWorkflowExecutionCanceled:
v := types.EventTypeWorkflowExecutionCanceled
return &v
case shared.EventTypeRequestCancelExternalWorkflowExecutionInitiated:
v := types.EventTypeRequestCancelExternalWorkflowExecutionInitiated
return &v
case shared.EventTypeRequestCancelExternalWorkflowExecutionFailed:
v := types.EventTypeRequestCancelExternalWorkflowExecutionFailed
return &v
case shared.EventTypeExternalWorkflowExecutionCancelRequested:
v := types.EventTypeExternalWorkflowExecutionCancelRequested
return &v
case shared.EventTypeMarkerRecorded:
v := types.EventTypeMarkerRecorded
return &v
case shared.EventTypeWorkflowExecutionSignaled:
v := types.EventTypeWorkflowExecutionSignaled
return &v
case shared.EventTypeWorkflowExecutionTerminated:
v := types.EventTypeWorkflowExecutionTerminated
return &v
case shared.EventTypeWorkflowExecutionContinuedAsNew:
v := types.EventTypeWorkflowExecutionContinuedAsNew
return &v
case shared.EventTypeStartChildWorkflowExecutionInitiated:
v := types.EventTypeStartChildWorkflowExecutionInitiated
return &v
case shared.EventTypeStartChildWorkflowExecutionFailed:
v := types.EventTypeStartChildWorkflowExecutionFailed
return &v
case shared.EventTypeChildWorkflowExecutionStarted:
v := types.EventTypeChildWorkflowExecutionStarted
return &v
case shared.EventTypeChildWorkflowExecutionCompleted:
v := types.EventTypeChildWorkflowExecutionCompleted
return &v
case shared.EventTypeChildWorkflowExecutionFailed:
v := types.EventTypeChildWorkflowExecutionFailed
return &v
case shared.EventTypeChildWorkflowExecutionCanceled:
v := types.EventTypeChildWorkflowExecutionCanceled
return &v
case shared.EventTypeChildWorkflowExecutionTimedOut:
v := types.EventTypeChildWorkflowExecutionTimedOut
return &v
case shared.EventTypeChildWorkflowExecutionTerminated:
v := types.EventTypeChildWorkflowExecutionTerminated
return &v
case shared.EventTypeSignalExternalWorkflowExecutionInitiated:
v := types.EventTypeSignalExternalWorkflowExecutionInitiated
return &v
case shared.EventTypeSignalExternalWorkflowExecutionFailed:
v := types.EventTypeSignalExternalWorkflowExecutionFailed
return &v
case shared.EventTypeExternalWorkflowExecutionSignaled:
v := types.EventTypeExternalWorkflowExecutionSignaled
return &v
case shared.EventTypeUpsertWorkflowSearchAttributes:
v := types.EventTypeUpsertWorkflowSearchAttributes
return &v
}
panic("unexpected enum value")
}