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