Files
tasks/api/enums/v1/common.go-helpers.pb.go
Lina JodoinandGitHub ded0e833b0 [Scheduled Actions] Remove old HSM scheduler code (#8274)
## 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)
2025-09-03 18:09:52 +00:00

66 lines
2.0 KiB
Go

// Code generated by protoc-gen-go-helpers. DO NOT EDIT.
package enums
import (
"fmt"
)
var (
DeadLetterQueueType_shorthandValue = map[string]int32{
"Unspecified": 0,
"Replication": 1,
"Namespace": 2,
}
)
// DeadLetterQueueTypeFromString parses a DeadLetterQueueType value from either the protojson
// canonical SCREAMING_CASE enum or the traditional temporal PascalCase enum to DeadLetterQueueType
func DeadLetterQueueTypeFromString(s string) (DeadLetterQueueType, error) {
if v, ok := DeadLetterQueueType_value[s]; ok {
return DeadLetterQueueType(v), nil
} else if v, ok := DeadLetterQueueType_shorthandValue[s]; ok {
return DeadLetterQueueType(v), nil
}
return DeadLetterQueueType(0), fmt.Errorf("%s is not a valid DeadLetterQueueType", s)
}
var (
ChecksumFlavor_shorthandValue = map[string]int32{
"Unspecified": 0,
"IeeeCrc32OverProto3Binary": 1,
}
)
// ChecksumFlavorFromString parses a ChecksumFlavor value from either the protojson
// canonical SCREAMING_CASE enum or the traditional temporal PascalCase enum to ChecksumFlavor
func ChecksumFlavorFromString(s string) (ChecksumFlavor, error) {
if v, ok := ChecksumFlavor_value[s]; ok {
return ChecksumFlavor(v), nil
} else if v, ok := ChecksumFlavor_shorthandValue[s]; ok {
return ChecksumFlavor(v), nil
}
return ChecksumFlavor(0), fmt.Errorf("%s is not a valid ChecksumFlavor", s)
}
var (
CallbackState_shorthandValue = map[string]int32{
"Unspecified": 0,
"Standby": 1,
"Scheduled": 2,
"BackingOff": 3,
"Failed": 4,
"Succeeded": 5,
}
)
// CallbackStateFromString parses a CallbackState value from either the protojson
// canonical SCREAMING_CASE enum or the traditional temporal PascalCase enum to CallbackState
func CallbackStateFromString(s string) (CallbackState, error) {
if v, ok := CallbackState_value[s]; ok {
return CallbackState(v), nil
} else if v, ok := CallbackState_shorthandValue[s]; ok {
return CallbackState(v), nil
}
return CallbackState(0), fmt.Errorf("%s is not a valid CallbackState", s)
}