mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## What changed?
- Removed old HSM code and cleaned up TODOs in the protos.
## Why?
- CHASM scheduler has landed 🎉
## How did you test it?
- [x] built
- [ ] run locally and tested manually
- [ ] covered by existing tests
- [ ] added new unit test(s)
- [ ] added new functional test(s)
289 lines
9.0 KiB
Go
289 lines
9.0 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// plugins:
|
|
// protoc-gen-go
|
|
// protoc
|
|
// source: temporal/server/api/enums/v1/common.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 DeadLetterQueueType int32
|
|
|
|
const (
|
|
DEAD_LETTER_QUEUE_TYPE_UNSPECIFIED DeadLetterQueueType = 0
|
|
DEAD_LETTER_QUEUE_TYPE_REPLICATION DeadLetterQueueType = 1
|
|
DEAD_LETTER_QUEUE_TYPE_NAMESPACE DeadLetterQueueType = 2
|
|
)
|
|
|
|
// Enum value maps for DeadLetterQueueType.
|
|
var (
|
|
DeadLetterQueueType_name = map[int32]string{
|
|
0: "DEAD_LETTER_QUEUE_TYPE_UNSPECIFIED",
|
|
1: "DEAD_LETTER_QUEUE_TYPE_REPLICATION",
|
|
2: "DEAD_LETTER_QUEUE_TYPE_NAMESPACE",
|
|
}
|
|
DeadLetterQueueType_value = map[string]int32{
|
|
"DEAD_LETTER_QUEUE_TYPE_UNSPECIFIED": 0,
|
|
"DEAD_LETTER_QUEUE_TYPE_REPLICATION": 1,
|
|
"DEAD_LETTER_QUEUE_TYPE_NAMESPACE": 2,
|
|
}
|
|
)
|
|
|
|
func (x DeadLetterQueueType) Enum() *DeadLetterQueueType {
|
|
p := new(DeadLetterQueueType)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x DeadLetterQueueType) String() string {
|
|
switch x {
|
|
case DEAD_LETTER_QUEUE_TYPE_UNSPECIFIED:
|
|
return "Unspecified"
|
|
case DEAD_LETTER_QUEUE_TYPE_REPLICATION:
|
|
return "Replication"
|
|
case DEAD_LETTER_QUEUE_TYPE_NAMESPACE:
|
|
return "Namespace"
|
|
default:
|
|
return strconv.Itoa(int(x))
|
|
}
|
|
|
|
}
|
|
|
|
func (DeadLetterQueueType) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_temporal_server_api_enums_v1_common_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (DeadLetterQueueType) Type() protoreflect.EnumType {
|
|
return &file_temporal_server_api_enums_v1_common_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x DeadLetterQueueType) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use DeadLetterQueueType.Descriptor instead.
|
|
func (DeadLetterQueueType) EnumDescriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_enums_v1_common_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type ChecksumFlavor int32
|
|
|
|
const (
|
|
CHECKSUM_FLAVOR_UNSPECIFIED ChecksumFlavor = 0
|
|
CHECKSUM_FLAVOR_IEEE_CRC32_OVER_PROTO3_BINARY ChecksumFlavor = 1
|
|
)
|
|
|
|
// Enum value maps for ChecksumFlavor.
|
|
var (
|
|
ChecksumFlavor_name = map[int32]string{
|
|
0: "CHECKSUM_FLAVOR_UNSPECIFIED",
|
|
1: "CHECKSUM_FLAVOR_IEEE_CRC32_OVER_PROTO3_BINARY",
|
|
}
|
|
ChecksumFlavor_value = map[string]int32{
|
|
"CHECKSUM_FLAVOR_UNSPECIFIED": 0,
|
|
"CHECKSUM_FLAVOR_IEEE_CRC32_OVER_PROTO3_BINARY": 1,
|
|
}
|
|
)
|
|
|
|
func (x ChecksumFlavor) Enum() *ChecksumFlavor {
|
|
p := new(ChecksumFlavor)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x ChecksumFlavor) String() string {
|
|
switch x {
|
|
case CHECKSUM_FLAVOR_UNSPECIFIED:
|
|
return "Unspecified"
|
|
case CHECKSUM_FLAVOR_IEEE_CRC32_OVER_PROTO3_BINARY:
|
|
return "IeeeCrc32OverProto3Binary"
|
|
default:
|
|
return strconv.Itoa(int(x))
|
|
}
|
|
|
|
}
|
|
|
|
func (ChecksumFlavor) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_temporal_server_api_enums_v1_common_proto_enumTypes[1].Descriptor()
|
|
}
|
|
|
|
func (ChecksumFlavor) Type() protoreflect.EnumType {
|
|
return &file_temporal_server_api_enums_v1_common_proto_enumTypes[1]
|
|
}
|
|
|
|
func (x ChecksumFlavor) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use ChecksumFlavor.Descriptor instead.
|
|
func (ChecksumFlavor) EnumDescriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_enums_v1_common_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
// State of a callback.
|
|
type CallbackState int32
|
|
|
|
const (
|
|
// Default value, unspecified state.
|
|
CALLBACK_STATE_UNSPECIFIED CallbackState = 0
|
|
// Callback is standing by, waiting to be triggered.
|
|
CALLBACK_STATE_STANDBY CallbackState = 1
|
|
// Callback is in the queue waiting to be executed or is currently executing.
|
|
CALLBACK_STATE_SCHEDULED CallbackState = 2
|
|
// Callback has failed with a retryable error and is backing off before the next attempt.
|
|
CALLBACK_STATE_BACKING_OFF CallbackState = 3
|
|
// Callback has failed.
|
|
CALLBACK_STATE_FAILED CallbackState = 4
|
|
// Callback has succeeded.
|
|
CALLBACK_STATE_SUCCEEDED CallbackState = 5
|
|
)
|
|
|
|
// Enum value maps for CallbackState.
|
|
var (
|
|
CallbackState_name = map[int32]string{
|
|
0: "CALLBACK_STATE_UNSPECIFIED",
|
|
1: "CALLBACK_STATE_STANDBY",
|
|
2: "CALLBACK_STATE_SCHEDULED",
|
|
3: "CALLBACK_STATE_BACKING_OFF",
|
|
4: "CALLBACK_STATE_FAILED",
|
|
5: "CALLBACK_STATE_SUCCEEDED",
|
|
}
|
|
CallbackState_value = map[string]int32{
|
|
"CALLBACK_STATE_UNSPECIFIED": 0,
|
|
"CALLBACK_STATE_STANDBY": 1,
|
|
"CALLBACK_STATE_SCHEDULED": 2,
|
|
"CALLBACK_STATE_BACKING_OFF": 3,
|
|
"CALLBACK_STATE_FAILED": 4,
|
|
"CALLBACK_STATE_SUCCEEDED": 5,
|
|
}
|
|
)
|
|
|
|
func (x CallbackState) Enum() *CallbackState {
|
|
p := new(CallbackState)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x CallbackState) String() string {
|
|
switch x {
|
|
case CALLBACK_STATE_UNSPECIFIED:
|
|
return "Unspecified"
|
|
case CALLBACK_STATE_STANDBY:
|
|
return "Standby"
|
|
case CALLBACK_STATE_SCHEDULED:
|
|
return "Scheduled"
|
|
case CALLBACK_STATE_BACKING_OFF:
|
|
return "BackingOff"
|
|
case CALLBACK_STATE_FAILED:
|
|
return "Failed"
|
|
case CALLBACK_STATE_SUCCEEDED:
|
|
return "Succeeded"
|
|
default:
|
|
return strconv.Itoa(int(x))
|
|
}
|
|
|
|
}
|
|
|
|
func (CallbackState) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_temporal_server_api_enums_v1_common_proto_enumTypes[2].Descriptor()
|
|
}
|
|
|
|
func (CallbackState) Type() protoreflect.EnumType {
|
|
return &file_temporal_server_api_enums_v1_common_proto_enumTypes[2]
|
|
}
|
|
|
|
func (x CallbackState) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use CallbackState.Descriptor instead.
|
|
func (CallbackState) EnumDescriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_enums_v1_common_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
var File_temporal_server_api_enums_v1_common_proto protoreflect.FileDescriptor
|
|
|
|
const file_temporal_server_api_enums_v1_common_proto_rawDesc = "" +
|
|
"\n" +
|
|
")temporal/server/api/enums/v1/common.proto\x12\x1ctemporal.server.api.enums.v1*\x8b\x01\n" +
|
|
"\x13DeadLetterQueueType\x12&\n" +
|
|
"\"DEAD_LETTER_QUEUE_TYPE_UNSPECIFIED\x10\x00\x12&\n" +
|
|
"\"DEAD_LETTER_QUEUE_TYPE_REPLICATION\x10\x01\x12$\n" +
|
|
" DEAD_LETTER_QUEUE_TYPE_NAMESPACE\x10\x02*d\n" +
|
|
"\x0eChecksumFlavor\x12\x1f\n" +
|
|
"\x1bCHECKSUM_FLAVOR_UNSPECIFIED\x10\x00\x121\n" +
|
|
"-CHECKSUM_FLAVOR_IEEE_CRC32_OVER_PROTO3_BINARY\x10\x01*\xc2\x01\n" +
|
|
"\rCallbackState\x12\x1e\n" +
|
|
"\x1aCALLBACK_STATE_UNSPECIFIED\x10\x00\x12\x1a\n" +
|
|
"\x16CALLBACK_STATE_STANDBY\x10\x01\x12\x1c\n" +
|
|
"\x18CALLBACK_STATE_SCHEDULED\x10\x02\x12\x1e\n" +
|
|
"\x1aCALLBACK_STATE_BACKING_OFF\x10\x03\x12\x19\n" +
|
|
"\x15CALLBACK_STATE_FAILED\x10\x04\x12\x1c\n" +
|
|
"\x18CALLBACK_STATE_SUCCEEDED\x10\x05B*Z(go.temporal.io/server/api/enums/v1;enumsb\x06proto3"
|
|
|
|
var (
|
|
file_temporal_server_api_enums_v1_common_proto_rawDescOnce sync.Once
|
|
file_temporal_server_api_enums_v1_common_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_temporal_server_api_enums_v1_common_proto_rawDescGZIP() []byte {
|
|
file_temporal_server_api_enums_v1_common_proto_rawDescOnce.Do(func() {
|
|
file_temporal_server_api_enums_v1_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_server_api_enums_v1_common_proto_rawDesc), len(file_temporal_server_api_enums_v1_common_proto_rawDesc)))
|
|
})
|
|
return file_temporal_server_api_enums_v1_common_proto_rawDescData
|
|
}
|
|
|
|
var file_temporal_server_api_enums_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
|
|
var file_temporal_server_api_enums_v1_common_proto_goTypes = []any{
|
|
(DeadLetterQueueType)(0), // 0: temporal.server.api.enums.v1.DeadLetterQueueType
|
|
(ChecksumFlavor)(0), // 1: temporal.server.api.enums.v1.ChecksumFlavor
|
|
(CallbackState)(0), // 2: temporal.server.api.enums.v1.CallbackState
|
|
}
|
|
var file_temporal_server_api_enums_v1_common_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_common_proto_init() }
|
|
func file_temporal_server_api_enums_v1_common_proto_init() {
|
|
if File_temporal_server_api_enums_v1_common_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_common_proto_rawDesc), len(file_temporal_server_api_enums_v1_common_proto_rawDesc)),
|
|
NumEnums: 3,
|
|
NumMessages: 0,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_temporal_server_api_enums_v1_common_proto_goTypes,
|
|
DependencyIndexes: file_temporal_server_api_enums_v1_common_proto_depIdxs,
|
|
EnumInfos: file_temporal_server_api_enums_v1_common_proto_enumTypes,
|
|
}.Build()
|
|
File_temporal_server_api_enums_v1_common_proto = out.File
|
|
file_temporal_server_api_enums_v1_common_proto_goTypes = nil
|
|
file_temporal_server_api_enums_v1_common_proto_depIdxs = nil
|
|
}
|