mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
159 lines
6.3 KiB
Go
159 lines
6.3 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/workflow.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
|
|
|
|
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
|
|
)
|
|
|
|
var WorkflowExecutionState_name = map[int32]string{
|
|
0: "Unspecified",
|
|
1: "Created",
|
|
2: "Running",
|
|
3: "Completed",
|
|
4: "Zombie",
|
|
5: "Void",
|
|
6: "Corrupted",
|
|
}
|
|
|
|
var WorkflowExecutionState_value = map[string]int32{
|
|
"Unspecified": 0,
|
|
"Created": 1,
|
|
"Running": 2,
|
|
"Completed": 3,
|
|
"Zombie": 4,
|
|
"Void": 5,
|
|
"Corrupted": 6,
|
|
}
|
|
|
|
func (WorkflowExecutionState) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_004b7fefe981a755, []int{0}
|
|
}
|
|
|
|
type WorkflowBackoffType int32
|
|
|
|
const (
|
|
WORKFLOW_BACKOFF_TYPE_UNSPECIFIED WorkflowBackoffType = 0
|
|
WORKFLOW_BACKOFF_TYPE_RETRY WorkflowBackoffType = 1
|
|
WORKFLOW_BACKOFF_TYPE_CRON WorkflowBackoffType = 2
|
|
)
|
|
|
|
var WorkflowBackoffType_name = map[int32]string{
|
|
0: "Unspecified",
|
|
1: "Retry",
|
|
2: "Cron",
|
|
}
|
|
|
|
var WorkflowBackoffType_value = map[string]int32{
|
|
"Unspecified": 0,
|
|
"Retry": 1,
|
|
"Cron": 2,
|
|
}
|
|
|
|
func (WorkflowBackoffType) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_004b7fefe981a755, []int{1}
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("temporal.server.api.enums.v1.WorkflowExecutionState", WorkflowExecutionState_name, WorkflowExecutionState_value)
|
|
proto.RegisterEnum("temporal.server.api.enums.v1.WorkflowBackoffType", WorkflowBackoffType_name, WorkflowBackoffType_value)
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("temporal/server/api/enums/v1/workflow.proto", fileDescriptor_004b7fefe981a755)
|
|
}
|
|
|
|
var fileDescriptor_004b7fefe981a755 = []byte{
|
|
// 366 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x2e, 0x49, 0xcd, 0x2d,
|
|
0xc8, 0x2f, 0x4a, 0xcc, 0xd1, 0x2f, 0x4e, 0x2d, 0x2a, 0x4b, 0x2d, 0xd2, 0x4f, 0x2c, 0xc8, 0xd4,
|
|
0x4f, 0xcd, 0x2b, 0xcd, 0x2d, 0xd6, 0x2f, 0x33, 0xd4, 0x2f, 0xcf, 0x2f, 0xca, 0x4e, 0xcb, 0xc9,
|
|
0x2f, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x81, 0x29, 0xd6, 0x83, 0x28, 0xd6, 0x4b,
|
|
0x2c, 0xc8, 0xd4, 0x03, 0x2b, 0xd6, 0x2b, 0x33, 0xd4, 0x5a, 0xc6, 0xc4, 0x25, 0x16, 0x0e, 0xd5,
|
|
0xe0, 0x5a, 0x91, 0x9a, 0x5c, 0x5a, 0x92, 0x99, 0x9f, 0x17, 0x5c, 0x92, 0x58, 0x92, 0x2a, 0xa4,
|
|
0xc1, 0xa5, 0x12, 0xee, 0x1f, 0xe4, 0xed, 0xe6, 0xe3,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e, 0x3c, 0x94, 0x63, 0xf8, 0xf0, 0x50,
|
|
0x8e, 0xb1, 0xe1, 0x91, 0x1c, 0xe3, 0x8a, 0x47, 0x72, 0x8c, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78,
|
|
0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x8b, 0x47, 0x72, 0x0c, 0x1f, 0x1e, 0xc9, 0x31, 0x4e,
|
|
0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0x1a, 0xe9, 0xf9,
|
|
0x7a, 0xf0, 0xe8, 0xcf, 0xcc, 0xc7, 0x96, 0x5c, 0xac, 0xc1, 0x8c, 0x24, 0x36, 0x70, 0x62, 0x31,
|
|
0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xfd, 0x0f, 0x05, 0x23, 0x5b, 0x02, 0x00, 0x00,
|
|
}
|
|
|
|
func (x WorkflowExecutionState) String() string {
|
|
s, ok := WorkflowExecutionState_name[int32(x)]
|
|
if ok {
|
|
return s
|
|
}
|
|
return strconv.Itoa(int(x))
|
|
}
|
|
func (x WorkflowBackoffType) String() string {
|
|
s, ok := WorkflowBackoffType_name[int32(x)]
|
|
if ok {
|
|
return s
|
|
}
|
|
return strconv.Itoa(int(x))
|
|
}
|