componentRef []byte,
activityAttemptStamp int32,
return &tokenspb.Task{
NamespaceId: namespaceID,
WorkflowId: workflowID,
RunId: runID,
ScheduledEventId: scheduledEventID,
ActivityType: activityType,
Attempt: attempt,
ActivityId: activityId,
Clock: clock,
Version: version,
StartVersion: startVersion,
ComponentRef: componentRef,
ActivityAttemptStamp: activityAttemptStamp,
}
}