mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
281 lines
11 KiB
Go
281 lines
11 KiB
Go
// The MIT License
|
|
//
|
|
// Copyright (c) 2020 Temporal Technologies Inc. All rights reserved.
|
|
//
|
|
// Copyright (c) 2020 Uber Technologies, Inc.
|
|
//
|
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
// of this software and associated documentation files (the "Software"), to deal
|
|
// in the Software without restriction, including without limitation the rights
|
|
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
// copies of the Software, and to permit persons to whom the Software is
|
|
// furnished to do so, subject to the following conditions:
|
|
//
|
|
// The above copyright notice and this permission notice shall be included in
|
|
// all copies or substantial portions of the Software.
|
|
//
|
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
// THE SOFTWARE.
|
|
|
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: temporal/server/api/enums/v1/task.proto
|
|
|
|
package enums
|
|
|
|
import (
|
|
fmt "fmt"
|
|
math "math"
|
|
strconv "strconv"
|
|
|
|
proto "github.com/gogo/protobuf/proto"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
// TaskSource is the source from which a task was produced.
|
|
type TaskSource int32
|
|
|
|
const (
|
|
TASK_SOURCE_UNSPECIFIED TaskSource = 0
|
|
// Task produced by history service.
|
|
TASK_SOURCE_HISTORY TaskSource = 1
|
|
// Task produced from matching db backlog.
|
|
TASK_SOURCE_DB_BACKLOG TaskSource = 2
|
|
)
|
|
|
|
var TaskSource_name = map[int32]string{
|
|
0: "Unspecified",
|
|
1: "History",
|
|
2: "DbBacklog",
|
|
}
|
|
|
|
var TaskSource_value = map[string]int32{
|
|
"Unspecified": 0,
|
|
"History": 1,
|
|
"DbBacklog": 2,
|
|
}
|
|
|
|
func (TaskSource) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_36a3d3674ca3cfa6, []int{0}
|
|
}
|
|
|
|
type TaskCategory int32
|
|
|
|
const (
|
|
TASK_CATEGORY_UNSPECIFIED TaskCategory = 0
|
|
// Transfer is the task type for transfer task.
|
|
TASK_CATEGORY_TRANSFER TaskCategory = 1
|
|
// Timer is the task type for timer task.
|
|
TASK_CATEGORY_TIMER TaskCategory = 2
|
|
// Replication is the task type for replication task.
|
|
TASK_CATEGORY_REPLICATION TaskCategory = 3
|
|
// Visibility is the task type for visibility task.
|
|
TASK_CATEGORY_VISIBILITY TaskCategory = 4
|
|
// Archival is the task type for workflow archival tasks.
|
|
TASK_CATEGORY_ARCHIVAL TaskCategory = 5
|
|
// Memory timer is the task type for in memory timer task. Currently used for speculative workflow task timeouts only.
|
|
TASK_CATEGORY_MEMORY_TIMER TaskCategory = 6
|
|
)
|
|
|
|
var TaskCategory_name = map[int32]string{
|
|
0: "Unspecified",
|
|
1: "Transfer",
|
|
2: "Timer",
|
|
3: "Replication",
|
|
4: "Visibility",
|
|
5: "Archival",
|
|
6: "MemoryTimer",
|
|
}
|
|
|
|
var TaskCategory_value = map[string]int32{
|
|
"Unspecified": 0,
|
|
"Transfer": 1,
|
|
"Timer": 2,
|
|
"Replication": 3,
|
|
"Visibility": 4,
|
|
"Archival": 5,
|
|
"MemoryTimer": 6,
|
|
}
|
|
|
|
func (TaskCategory) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_36a3d3674ca3cfa6, []int{1}
|
|
}
|
|
|
|
type TaskType int32
|
|
|
|
const (
|
|
TASK_TYPE_UNSPECIFIED TaskType = 0
|
|
TASK_TYPE_REPLICATION_HISTORY TaskType = 1
|
|
TASK_TYPE_REPLICATION_SYNC_ACTIVITY TaskType = 2
|
|
TASK_TYPE_TRANSFER_WORKFLOW_TASK TaskType = 3
|
|
TASK_TYPE_TRANSFER_ACTIVITY_TASK TaskType = 4
|
|
TASK_TYPE_TRANSFER_CLOSE_EXECUTION TaskType = 5
|
|
TASK_TYPE_TRANSFER_CANCEL_EXECUTION TaskType = 6
|
|
TASK_TYPE_TRANSFER_START_CHILD_EXECUTION TaskType = 7
|
|
TASK_TYPE_TRANSFER_SIGNAL_EXECUTION TaskType = 8
|
|
TASK_TYPE_TRANSFER_RESET_WORKFLOW TaskType = 10
|
|
TASK_TYPE_WORKFLOW_TASK_TIMEOUT TaskType = 12
|
|
TASK_TYPE_ACTIVITY_TIMEOUT TaskType = 13
|
|
TASK_TYPE_USER_TIMER TaskType = 14
|
|
TASK_TYPE_WORKFLOW_RUN_TIMEOUT TaskType = 15
|
|
TASK_TYPE_DELETE_HISTORY_EVENT TaskType = 16
|
|
TASK_TYPE_ACTIVITY_RETRY_TIMER TaskType = 17
|
|
TASK_TYPE_WORKFLOW_BACKOFF_TIMER TaskType = 18
|
|
TASK_TYPE_VISIBILITY_START_EXECUTION TaskType = 19
|
|
TASK_TYPE_VISIBILITY_UPSERT_EXECUTION TaskType = 20
|
|
TASK_TYPE_VISIBILITY_CLOSE_EXECUTION TaskType = 21
|
|
TASK_TYPE_VISIBILITY_DELETE_EXECUTION TaskType = 22
|
|
TASK_TYPE_TRANSFER_DELETE_EXECUTION TaskType = 24
|
|
TASK_TYPE_REPLICATION_SYNC_WORKFLOW_STATE TaskType = 25
|
|
TASK_TYPE_ARCHIVAL_ARCHIVE_EXECUTION TaskType = 26
|
|
)
|
|
|
|
var TaskType_name = map[int32]string{
|
|
0: "Unspecified",
|
|
1: "ReplicationHistory",
|
|
2: "ReplicationSyncActivity",
|
|
3: "TransferWorkflowTask",
|
|
4: "TransferActivityTask",
|
|
5: "TransferCloseExecution",
|
|
6: "TransferCancelExecution",
|
|
7: "TransferStartChildExecution",
|
|
8: "TransferSignalExecution",
|
|
10: "TransferResetWorkflow",
|
|
12: "WorkflowTaskTimeout",
|
|
13: "ActivityTimeout",
|
|
14: "UserTimer",
|
|
15: "WorkflowRunTimeout",
|
|
16: "DeleteHistoryEvent",
|
|
17: "ActivityRetryTimer",
|
|
18: "WorkflowBackoffTimer",
|
|
19: "VisibilityStartExecution",
|
|
20: "VisibilityUpsertExecution",
|
|
21: "VisibilityCloseExecution",
|
|
22: "VisibilityDeleteExecution",
|
|
24: "TransferDeleteExecution",
|
|
25: "ReplicationSyncWorkflowState",
|
|
26: "ArchivalArchiveExecution",
|
|
}
|
|
|
|
var TaskType_value = map[string]int32{
|
|
"Unspecified": 0,
|
|
"ReplicationHistory": 1,
|
|
"ReplicationSyncActivity": 2,
|
|
"TransferWorkflowTask": 3,
|
|
"TransferActivityTask": 4,
|
|
"TransferCloseExecution": 5,
|
|
"TransferCancelExecution": 6,
|
|
"TransferStartChildExecution": 7,
|
|
"TransferSignalExecution": 8,
|
|
"TransferResetWorkflow": 10,
|
|
"WorkflowTaskTimeout": 12,
|
|
"ActivityTimeout": 13,
|
|
"UserTimer": 14,
|
|
"WorkflowRunTimeout": 15,
|
|
"DeleteHistoryEvent": 16,
|
|
"ActivityRetryTimer": 17,
|
|
"WorkflowBackoffTimer": 18,
|
|
"VisibilityStartExecution": 19,
|
|
"VisibilityUpsertExecution": 20,
|
|
"VisibilityCloseExecution": 21,
|
|
"VisibilityDeleteExecution": 22,
|
|
"TransferDeleteExecution": 24,
|
|
"ReplicationSyncWorkflowState": 25,
|
|
"ArchivalArchiveExecution": 26,
|
|
}
|
|
|
|
func (TaskType) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_36a3d3674ca3cfa6, []int{2}
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("temporal.server.api.enums.v1.TaskSource", TaskSource_name, TaskSource_value)
|
|
proto.RegisterEnum("temporal.server.api.enums.v1.TaskCategory", TaskCategory_name, TaskCategory_value)
|
|
proto.RegisterEnum("temporal.server.api.enums.v1.TaskType", TaskType_name, TaskType_value)
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("temporal/server/api/enums/v1/task.proto", fileDescriptor_36a3d3674ca3cfa6)
|
|
}
|
|
|
|
var fileDescriptor_36a3d3674ca3cfa6 = []byte{
|
|
// 651 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0xcd, 0x4e, 0xdb, 0x4a,
|
|
0x14, 0xc7, 0x6d, 0x08, 0x10, 0x0e, 0xdc, 0x7b, 0xe7, 0x0e, 0x1f, 0x01, 0x0a, 0xd3, 0x12, 0xa0,
|
|
0x7c, 0xa8, 0x4d, 0x84, 0xba, 0xec, 0xca, 0x99, 0x4c, 0x60, 0x84, 0xb1, 0xa3, 0x99, 0x49, 0x68,
|
|
0xba, 0xc0, 0x4a, 0x2b, 0x0b, 0x21, 0x4a, 0x1d, 0x25, 0x01, 0x89, 0x5d, 0x1f, 0xa1, 0x8f, 0xd1,
|
|
0x77, 0xe8, 0x0b, 0x74, 0xc9, 0x12, 0xa9, 0x9b, 0x62, 0x36, 0x5d, 0xf2, 0x08, 0x55, 0x4c, 0xe2,
|
|
0x0f, 0x70, 0xba, 0xb3, 0xf4, 0xff, 0xf9, 0x7f, 0xce, 0xfc, 0xcf, 0x9c, 0x81, 0xcd, 0xae, 0x7b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
0x9e, 0x7a, 0x69, 0xcf, 0xef, 0xdb, 0xe0, 0xe3, 0xc3, 0x78, 0xf0, 0x00, 0xbf, 0xf9, 0x13, 0x00,
|
|
0x00, 0xff, 0xff, 0x28, 0xe0, 0x87, 0x8e, 0xab, 0x05, 0x00, 0x00,
|
|
}
|
|
|
|
func (x TaskSource) String() string {
|
|
s, ok := TaskSource_name[int32(x)]
|
|
if ok {
|
|
return s
|
|
}
|
|
return strconv.Itoa(int(x))
|
|
}
|
|
func (x TaskCategory) String() string {
|
|
s, ok := TaskCategory_name[int32(x)]
|
|
if ok {
|
|
return s
|
|
}
|
|
return strconv.Itoa(int(x))
|
|
}
|
|
func (x TaskType) String() string {
|
|
s, ok := TaskType_name[int32(x)]
|
|
if ok {
|
|
return s
|
|
}
|
|
return strconv.Itoa(int(x))
|
|
}
|