mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## What changed?
<!-- Describe what has changed in this PR -->
Remove license header from every file. Because it is really hard to
follow in this PR here is the summary:
1. License header is removed from all `.go` and `.proto` files
:fireworks::fireworks:🎆.
2. `LICENSE` file in the root directory has only Temporal and Uber
copyrights.
3. 5 other `LICENSE` files added to the packages which have copyrights
different from Temporal and Uber: Datadog, Xargin, "Mat Ryer, Tyler
Bunnell and contributors".
4. `license_file` flag is removed from all code generation tools.
5. `copyright_file` flag is removed from `go:generate mockgen`
directive.
6. All copyright related targets are removed from `Makefile`.
7. Updated Temporal copyright year to 2025 everywhere.
## Why?
<!-- Tell your future self why have you made these changes -->
I double checked with legal department that it is not needed to have
license header in every file. One file per repo is enough. I put all
copyrights to the root `LICENSE` file and removed header from all other
files. Also updated tools and `Makefile`.
300 lines
10 KiB
Go
300 lines
10 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// plugins:
|
|
// protoc-gen-go
|
|
// protoc
|
|
// source: temporal/server/api/enums/v1/workflow.proto
|
|
|
|
package enums
|
|
|
|
import (
|
|
reflect "reflect"
|
|
"strconv"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type WorkflowExecutionState int32
|
|
|
|
const (
|
|
WORKFLOW_EXECUTION_STATE_UNSPECIFIED WorkflowExecutionState = 0
|
|
WORKFLOW_EXECUTION_STATE_CREATED WorkflowExecutionState = 1
|
|
WORKFLOW_EXECUTION_STATE_RUNNING WorkflowExecutionState = 2
|
|
WORKFLOW_EXECUTION_STATE_COMPLETED WorkflowExecutionState = 3
|
|
WORKFLOW_EXECUTION_STATE_ZOMBIE WorkflowExecutionState = 4
|
|
WORKFLOW_EXECUTION_STATE_VOID WorkflowExecutionState = 5
|
|
WORKFLOW_EXECUTION_STATE_CORRUPTED WorkflowExecutionState = 6
|
|
)
|
|
|
|
// Enum value maps for WorkflowExecutionState.
|
|
var (
|
|
WorkflowExecutionState_name = map[int32]string{
|
|
0: "WORKFLOW_EXECUTION_STATE_UNSPECIFIED",
|
|
1: "WORKFLOW_EXECUTION_STATE_CREATED",
|
|
2: "WORKFLOW_EXECUTION_STATE_RUNNING",
|
|
3: "WORKFLOW_EXECUTION_STATE_COMPLETED",
|
|
4: "WORKFLOW_EXECUTION_STATE_ZOMBIE",
|
|
5: "WORKFLOW_EXECUTION_STATE_VOID",
|
|
6: "WORKFLOW_EXECUTION_STATE_CORRUPTED",
|
|
}
|
|
WorkflowExecutionState_value = map[string]int32{
|
|
"WORKFLOW_EXECUTION_STATE_UNSPECIFIED": 0,
|
|
"WORKFLOW_EXECUTION_STATE_CREATED": 1,
|
|
"WORKFLOW_EXECUTION_STATE_RUNNING": 2,
|
|
"WORKFLOW_EXECUTION_STATE_COMPLETED": 3,
|
|
"WORKFLOW_EXECUTION_STATE_ZOMBIE": 4,
|
|
"WORKFLOW_EXECUTION_STATE_VOID": 5,
|
|
"WORKFLOW_EXECUTION_STATE_CORRUPTED": 6,
|
|
}
|
|
)
|
|
|
|
func (x WorkflowExecutionState) Enum() *WorkflowExecutionState {
|
|
p := new(WorkflowExecutionState)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x WorkflowExecutionState) String() string {
|
|
switch x {
|
|
case WORKFLOW_EXECUTION_STATE_UNSPECIFIED:
|
|
return "Unspecified"
|
|
case WORKFLOW_EXECUTION_STATE_CREATED:
|
|
return "Created"
|
|
case WORKFLOW_EXECUTION_STATE_RUNNING:
|
|
return "Running"
|
|
case WORKFLOW_EXECUTION_STATE_COMPLETED:
|
|
return "Completed"
|
|
case WORKFLOW_EXECUTION_STATE_ZOMBIE:
|
|
return "Zombie"
|
|
case WORKFLOW_EXECUTION_STATE_VOID:
|
|
return "Void"
|
|
case WORKFLOW_EXECUTION_STATE_CORRUPTED:
|
|
return "Corrupted"
|
|
default:
|
|
return strconv.Itoa(int(x))
|
|
}
|
|
|
|
}
|
|
|
|
func (WorkflowExecutionState) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_temporal_server_api_enums_v1_workflow_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (WorkflowExecutionState) Type() protoreflect.EnumType {
|
|
return &file_temporal_server_api_enums_v1_workflow_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x WorkflowExecutionState) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use WorkflowExecutionState.Descriptor instead.
|
|
func (WorkflowExecutionState) EnumDescriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_enums_v1_workflow_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type WorkflowBackoffType int32
|
|
|
|
const (
|
|
WORKFLOW_BACKOFF_TYPE_UNSPECIFIED WorkflowBackoffType = 0
|
|
WORKFLOW_BACKOFF_TYPE_RETRY WorkflowBackoffType = 1
|
|
WORKFLOW_BACKOFF_TYPE_CRON WorkflowBackoffType = 2
|
|
WORKFLOW_BACKOFF_TYPE_DELAY_START WorkflowBackoffType = 3
|
|
)
|
|
|
|
// Enum value maps for WorkflowBackoffType.
|
|
var (
|
|
WorkflowBackoffType_name = map[int32]string{
|
|
0: "WORKFLOW_BACKOFF_TYPE_UNSPECIFIED",
|
|
1: "WORKFLOW_BACKOFF_TYPE_RETRY",
|
|
2: "WORKFLOW_BACKOFF_TYPE_CRON",
|
|
3: "WORKFLOW_BACKOFF_TYPE_DELAY_START",
|
|
}
|
|
WorkflowBackoffType_value = map[string]int32{
|
|
"WORKFLOW_BACKOFF_TYPE_UNSPECIFIED": 0,
|
|
"WORKFLOW_BACKOFF_TYPE_RETRY": 1,
|
|
"WORKFLOW_BACKOFF_TYPE_CRON": 2,
|
|
"WORKFLOW_BACKOFF_TYPE_DELAY_START": 3,
|
|
}
|
|
)
|
|
|
|
func (x WorkflowBackoffType) Enum() *WorkflowBackoffType {
|
|
p := new(WorkflowBackoffType)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x WorkflowBackoffType) String() string {
|
|
switch x {
|
|
case WORKFLOW_BACKOFF_TYPE_UNSPECIFIED:
|
|
return "Unspecified"
|
|
case WORKFLOW_BACKOFF_TYPE_RETRY:
|
|
return "Retry"
|
|
case WORKFLOW_BACKOFF_TYPE_CRON:
|
|
return "Cron"
|
|
case WORKFLOW_BACKOFF_TYPE_DELAY_START:
|
|
return "DelayStart"
|
|
default:
|
|
return strconv.Itoa(int(x))
|
|
}
|
|
|
|
}
|
|
|
|
func (WorkflowBackoffType) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_temporal_server_api_enums_v1_workflow_proto_enumTypes[1].Descriptor()
|
|
}
|
|
|
|
func (WorkflowBackoffType) Type() protoreflect.EnumType {
|
|
return &file_temporal_server_api_enums_v1_workflow_proto_enumTypes[1]
|
|
}
|
|
|
|
func (x WorkflowBackoffType) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use WorkflowBackoffType.Descriptor instead.
|
|
func (WorkflowBackoffType) EnumDescriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_enums_v1_workflow_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
type PausedWorkflowEntityType int32
|
|
|
|
const (
|
|
PAUSED_WORKFLOW_ENTITY_TYPE_UNSPECIFIED PausedWorkflowEntityType = 0
|
|
PAUSED_WORKFLOW_ENTITY_TYPE_ACTIVITY PausedWorkflowEntityType = 1
|
|
PAUSED_WORKFLOW_ENTITY_TYPE_WORKFLOW PausedWorkflowEntityType = 2
|
|
)
|
|
|
|
// Enum value maps for PausedWorkflowEntityType.
|
|
var (
|
|
PausedWorkflowEntityType_name = map[int32]string{
|
|
0: "PAUSED_WORKFLOW_ENTITY_TYPE_UNSPECIFIED",
|
|
1: "PAUSED_WORKFLOW_ENTITY_TYPE_ACTIVITY",
|
|
2: "PAUSED_WORKFLOW_ENTITY_TYPE_WORKFLOW",
|
|
}
|
|
PausedWorkflowEntityType_value = map[string]int32{
|
|
"PAUSED_WORKFLOW_ENTITY_TYPE_UNSPECIFIED": 0,
|
|
"PAUSED_WORKFLOW_ENTITY_TYPE_ACTIVITY": 1,
|
|
"PAUSED_WORKFLOW_ENTITY_TYPE_WORKFLOW": 2,
|
|
}
|
|
)
|
|
|
|
func (x PausedWorkflowEntityType) Enum() *PausedWorkflowEntityType {
|
|
p := new(PausedWorkflowEntityType)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x PausedWorkflowEntityType) String() string {
|
|
switch x {
|
|
case PAUSED_WORKFLOW_ENTITY_TYPE_UNSPECIFIED:
|
|
return "Unspecified"
|
|
case PAUSED_WORKFLOW_ENTITY_TYPE_ACTIVITY:
|
|
return "Activity"
|
|
case PAUSED_WORKFLOW_ENTITY_TYPE_WORKFLOW:
|
|
return "Workflow"
|
|
default:
|
|
return strconv.Itoa(int(x))
|
|
}
|
|
|
|
}
|
|
|
|
func (PausedWorkflowEntityType) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_temporal_server_api_enums_v1_workflow_proto_enumTypes[2].Descriptor()
|
|
}
|
|
|
|
func (PausedWorkflowEntityType) Type() protoreflect.EnumType {
|
|
return &file_temporal_server_api_enums_v1_workflow_proto_enumTypes[2]
|
|
}
|
|
|
|
func (x PausedWorkflowEntityType) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use PausedWorkflowEntityType.Descriptor instead.
|
|
func (PausedWorkflowEntityType) EnumDescriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_enums_v1_workflow_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
var File_temporal_server_api_enums_v1_workflow_proto protoreflect.FileDescriptor
|
|
|
|
const file_temporal_server_api_enums_v1_workflow_proto_rawDesc = "" +
|
|
"\n" +
|
|
"+temporal/server/api/enums/v1/workflow.proto\x12\x1ctemporal.server.api.enums.v1*\xa6\x02\n" +
|
|
"\x16WorkflowExecutionState\x12(\n" +
|
|
"$WORKFLOW_EXECUTION_STATE_UNSPECIFIED\x10\x00\x12$\n" +
|
|
" WORKFLOW_EXECUTION_STATE_CREATED\x10\x01\x12$\n" +
|
|
" WORKFLOW_EXECUTION_STATE_RUNNING\x10\x02\x12&\n" +
|
|
"\"WORKFLOW_EXECUTION_STATE_COMPLETED\x10\x03\x12#\n" +
|
|
"\x1fWORKFLOW_EXECUTION_STATE_ZOMBIE\x10\x04\x12!\n" +
|
|
"\x1dWORKFLOW_EXECUTION_STATE_VOID\x10\x05\x12&\n" +
|
|
"\"WORKFLOW_EXECUTION_STATE_CORRUPTED\x10\x06*\xa4\x01\n" +
|
|
"\x13WorkflowBackoffType\x12%\n" +
|
|
"!WORKFLOW_BACKOFF_TYPE_UNSPECIFIED\x10\x00\x12\x1f\n" +
|
|
"\x1bWORKFLOW_BACKOFF_TYPE_RETRY\x10\x01\x12\x1e\n" +
|
|
"\x1aWORKFLOW_BACKOFF_TYPE_CRON\x10\x02\x12%\n" +
|
|
"!WORKFLOW_BACKOFF_TYPE_DELAY_START\x10\x03*\x9b\x01\n" +
|
|
"\x18PausedWorkflowEntityType\x12+\n" +
|
|
"'PAUSED_WORKFLOW_ENTITY_TYPE_UNSPECIFIED\x10\x00\x12(\n" +
|
|
"$PAUSED_WORKFLOW_ENTITY_TYPE_ACTIVITY\x10\x01\x12(\n" +
|
|
"$PAUSED_WORKFLOW_ENTITY_TYPE_WORKFLOW\x10\x02B*Z(go.temporal.io/server/api/enums/v1;enumsb\x06proto3"
|
|
|
|
var (
|
|
file_temporal_server_api_enums_v1_workflow_proto_rawDescOnce sync.Once
|
|
file_temporal_server_api_enums_v1_workflow_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_temporal_server_api_enums_v1_workflow_proto_rawDescGZIP() []byte {
|
|
file_temporal_server_api_enums_v1_workflow_proto_rawDescOnce.Do(func() {
|
|
file_temporal_server_api_enums_v1_workflow_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_server_api_enums_v1_workflow_proto_rawDesc), len(file_temporal_server_api_enums_v1_workflow_proto_rawDesc)))
|
|
})
|
|
return file_temporal_server_api_enums_v1_workflow_proto_rawDescData
|
|
}
|
|
|
|
var file_temporal_server_api_enums_v1_workflow_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
|
|
var file_temporal_server_api_enums_v1_workflow_proto_goTypes = []any{
|
|
(WorkflowExecutionState)(0), // 0: temporal.server.api.enums.v1.WorkflowExecutionState
|
|
(WorkflowBackoffType)(0), // 1: temporal.server.api.enums.v1.WorkflowBackoffType
|
|
(PausedWorkflowEntityType)(0), // 2: temporal.server.api.enums.v1.PausedWorkflowEntityType
|
|
}
|
|
var file_temporal_server_api_enums_v1_workflow_proto_depIdxs = []int32{
|
|
0, // [0:0] is the sub-list for method output_type
|
|
0, // [0:0] is the sub-list for method input_type
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
0, // [0:0] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_temporal_server_api_enums_v1_workflow_proto_init() }
|
|
func file_temporal_server_api_enums_v1_workflow_proto_init() {
|
|
if File_temporal_server_api_enums_v1_workflow_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_server_api_enums_v1_workflow_proto_rawDesc), len(file_temporal_server_api_enums_v1_workflow_proto_rawDesc)),
|
|
NumEnums: 3,
|
|
NumMessages: 0,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_temporal_server_api_enums_v1_workflow_proto_goTypes,
|
|
DependencyIndexes: file_temporal_server_api_enums_v1_workflow_proto_depIdxs,
|
|
EnumInfos: file_temporal_server_api_enums_v1_workflow_proto_enumTypes,
|
|
}.Build()
|
|
File_temporal_server_api_enums_v1_workflow_proto = out.File
|
|
file_temporal_server_api_enums_v1_workflow_proto_goTypes = nil
|
|
file_temporal_server_api_enums_v1_workflow_proto_depIdxs = nil
|
|
}
|