mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-10-19 07:55:07 +00:00
155 lines
7.5 KiB
Go
155 lines
7.5 KiB
Go
|
// The MIT License
|
||
|
//
|
||
|
// Copyright (c) 2020 Temporal Technologies Inc. All rights reserved.
|
||
|
//
|
||
|
// 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/api/enums/v1/command_type.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
|
||
|
|
||
|
// Whenever this list of command types is changed do change the function shouldBufferEvent in mutableStateBuilder.go to make sure to do the correct event ordering.
|
||
|
type CommandType int32
|
||
|
|
||
|
const (
|
||
|
COMMAND_TYPE_UNSPECIFIED CommandType = 0
|
||
|
COMMAND_TYPE_SCHEDULE_ACTIVITY_TASK CommandType = 1
|
||
|
COMMAND_TYPE_REQUEST_CANCEL_ACTIVITY_TASK CommandType = 2
|
||
|
COMMAND_TYPE_START_TIMER CommandType = 3
|
||
|
COMMAND_TYPE_COMPLETE_WORKFLOW_EXECUTION CommandType = 4
|
||
|
COMMAND_TYPE_FAIL_WORKFLOW_EXECUTION CommandType = 5
|
||
|
COMMAND_TYPE_CANCEL_TIMER CommandType = 6
|
||
|
COMMAND_TYPE_CANCEL_WORKFLOW_EXECUTION CommandType = 7
|
||
|
COMMAND_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION CommandType = 8
|
||
|
COMMAND_TYPE_RECORD_MARKER CommandType = 9
|
||
|
COMMAND_TYPE_CONTINUE_AS_NEW_WORKFLOW_EXECUTION CommandType = 10
|
||
|
COMMAND_TYPE_START_CHILD_WORKFLOW_EXECUTION CommandType = 11
|
||
|
COMMAND_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION CommandType = 12
|
||
|
COMMAND_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES CommandType = 13
|
||
|
)
|
||
|
|
||
|
var CommandType_name = map[int32]string{
|
||
|
0: "Unspecified",
|
||
|
1: "ScheduleActivityTask",
|
||
|
2: "RequestCancelActivityTask",
|
||
|
3: "StartTimer",
|
||
|
4: "CompleteWorkflowExecution",
|
||
|
5: "FailWorkflowExecution",
|
||
|
6: "CancelTimer",
|
||
|
7: "CancelWorkflowExecution",
|
||
|
8: "RequestCancelExternalWorkflowExecution",
|
||
|
9: "RecordMarker",
|
||
|
10: "ContinueAsNewWorkflowExecution",
|
||
|
11: "StartChildWorkflowExecution",
|
||
|
12: "SignalExternalWorkflowExecution",
|
||
|
13: "UpsertWorkflowSearchAttributes",
|
||
|
}
|
||
|
|
||
|
var CommandType_value = map[string]int32{
|
||
|
"Unspecified": 0,
|
||
|
"ScheduleActivityTask": 1,
|
||
|
"RequestCancelActivityTask": 2,
|
||
|
"StartTimer": 3,
|
||
|
"CompleteWorkflowExecution": 4,
|
||
|
"FailWorkflowExecution": 5,
|
||
|
"CancelTimer": 6,
|
||
|
"CancelWorkflowExecution": 7,
|
||
|
"RequestCancelExternalWorkflowExecution": 8,
|
||
|
"RecordMarker": 9,
|
||
|
"ContinueAsNewWorkflowExecution": 10,
|
||
|
"StartChildWorkflowExecution": 11,
|
||
|
"SignalExternalWorkflowExecution": 12,
|
||
|
"UpsertWorkflowSearchAttributes": 13,
|
||
|
}
|
||
|
|
||
|
func (CommandType) EnumDescriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_e70af5ad8bd10de0, []int{0}
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterEnum("temporal.api.enums.v1.CommandType", CommandType_name, CommandType_value)
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterFile("temporal/api/enums/v1/command_type.proto", fileDescriptor_e70af5ad8bd10de0)
|
||
|
}
|
||
|
|
||
|
var fileDescriptor_e70af5ad8bd10de0 = []byte{
|
||
|
// 483 bytes of a gzipped FileDescriptorProto
|
||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0xc1, 0x6e, 0xd3, 0x40,
|
||
|
0x10, 0x86, 0xbd, 0xa1, 0x14, 0xd8, 0x82, 0x64, 0xad, 0x54, 0x29, 0x20, 0x58, 0x09, 0x81, 0x20,
|
||
|
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0x94, 0xa2, 0x6f, 0x39, 0x45, 0x3f, 0x72,
|
||
|
0x8a, 0x7e, 0xe7, 0x14, 0x4d, 0x72, 0x8a, 0xfe, 0xe4, 0x14, 0xfd, 0xcd, 0xa9, 0x35, 0xcf, 0x29,
|
||
|
0xfa, 0x3e, 0xa3, 0xd6, 0x64, 0x46, 0xad, 0xd3, 0x19, 0xb5, 0x70, 0x35, 0x49, 0x9d, 0xd2, 0x0c,
|
||
|
0x37, 0xec, 0x0b, 0x01, 0x8e, 0xce, 0xc2, 0x1e, 0xa1, 0x77, 0x0f, 0x3f, 0x5d, 0xa0, 0x93, 0xb4,
|
||
|
0x70, 0x1e, 0x7b, 0x8b, 0x8f, 0x9f, 0x95, 0x6d, 0xbd, 0x02, 0x58, 0x96, 0x38, 0xb0, 0xb0, 0xeb,
|
||
|
0xd5, 0xff, 0x55, 0xaa, 0xab, 0xff, 0x9e, 0xc7, 0xb2, 0xc4, 0xf3, 0x16, 0x8a, 0xe7, 0xf5, 0xea,
|
||
|
0xef, 0x37, 0x17, 0xb7, 0xb4, 0xfb, 0x3f, 0x00, 0x00, 0xff, 0xff, 0x84, 0xd9, 0xe9, 0xe7, 0x77,
|
||
|
0x03, 0x00, 0x00,
|
||
|
}
|
||
|
|
||
|
func (x CommandType) String() string {
|
||
|
s, ok := CommandType_name[int32(x)]
|
||
|
if ok {
|
||
|
return s
|
||
|
}
|
||
|
return strconv.Itoa(int(x))
|
||
|
}
|