peridot/vendor/go.temporal.io/api/enums/v1/event_type.pb.go

327 lines
17 KiB
Go
Raw Normal View History

2022-07-07 20:11:50 +00:00
// 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/event_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 events is changed do change the function shouldBufferEvent in mutableStateBuilder.go to make sure to do the correct event ordering
type EventType int32
const (
// Place holder and should never appear in a Workflow execution history
EVENT_TYPE_UNSPECIFIED EventType = 0
// Workflow execution has been triggered/started
// It contains Workflow execution inputs, as well as Workflow timeout configurations
EVENT_TYPE_WORKFLOW_EXECUTION_STARTED EventType = 1
// Workflow execution has successfully completed and contains Workflow execution results
EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED EventType = 2
// Workflow execution has unsuccessfully completed and contains the Workflow execution error
EVENT_TYPE_WORKFLOW_EXECUTION_FAILED EventType = 3
// Workflow execution has timed out by the Temporal Server
// Usually due to the Workflow having not been completed within timeout settings
EVENT_TYPE_WORKFLOW_EXECUTION_TIMED_OUT EventType = 4
// Workflow Task has been scheduled and the SDK client should now be able to process any new history events
EVENT_TYPE_WORKFLOW_TASK_SCHEDULED EventType = 5
// Workflow Task has started and the SDK client has picked up the Workflow Task and is processing new history events
EVENT_TYPE_WORKFLOW_TASK_STARTED EventType = 6
// Workflow Task has completed
// The SDK client picked up the Workflow Task and processed new history events
// SDK client may or may not ask the Temporal Server to do additional work, such as:
// EVENT_TYPE_ACTIVITY_TASK_SCHEDULED
// EVENT_TYPE_TIMER_STARTED
// EVENT_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES
// EVENT_TYPE_MARKER_RECORDED
// EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_INITIATED
// EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED
// EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED
// EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED
// EVENT_TYPE_WORKFLOW_EXECUTION_FAILED
// EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED
// EVENT_TYPE_WORKFLOW_EXECUTION_CONTINUED_AS_NEW
EVENT_TYPE_WORKFLOW_TASK_COMPLETED EventType = 7
// Workflow Task encountered a timeout
// Either an SDK client with a local cache was not available at the time, or it took too long for the SDK client to process the task
EVENT_TYPE_WORKFLOW_TASK_TIMED_OUT EventType = 8
// Workflow Task encountered a failure
// Usually this means that the Workflow was non-deterministic
// However, the Workflow reset functionality also uses this event
EVENT_TYPE_WORKFLOW_TASK_FAILED EventType = 9
// Activity Task was scheduled
// The SDK client should pick up this activity task and execute
// This event type contains activity inputs, as well as activity timeout configurations
EVENT_TYPE_ACTIVITY_TASK_SCHEDULED EventType = 10
// Activity Task has started executing
// The SDK client has picked up the Activity Task and is processing the Activity invocation
EVENT_TYPE_ACTIVITY_TASK_STARTED EventType = 11
// Activity Task has finished successfully
// The SDK client has picked up and successfully completed the Activity Task
// This event type contains Activity execution results
EVENT_TYPE_ACTIVITY_TASK_COMPLETED EventType = 12
// Activity Task has finished unsuccessfully
// The SDK picked up the Activity Task but unsuccessfully completed it
// This event type contains Activity execution errors
EVENT_TYPE_ACTIVITY_TASK_FAILED EventType = 13
// Activity has timed out according to the Temporal Server
// Activity did not complete within the timeout settings
EVENT_TYPE_ACTIVITY_TASK_TIMED_OUT EventType = 14
// A request to cancel the Activity has occurred
// The SDK client will be able to confirm cancellation of an Activity during an Activity heartbeat
EVENT_TYPE_ACTIVITY_TASK_CANCEL_REQUESTED EventType = 15
// Activity has been cancelled
EVENT_TYPE_ACTIVITY_TASK_CANCELED EventType = 16
// A timer has started
EVENT_TYPE_TIMER_STARTED EventType = 17
// A timer has fired
EVENT_TYPE_TIMER_FIRED EventType = 18
// A time has been cancelled
EVENT_TYPE_TIMER_CANCELED EventType = 19
// A request has been made to cancel the Workflow execution
EVENT_TYPE_WORKFLOW_EXECUTION_CANCEL_REQUESTED EventType = 20
// SDK client has confirmed the cancellation request and the Workflow execution has been cancelled
EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED EventType = 21
// Workflow has requested that the Temporal Server try to cancel another Workflow
EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED EventType = 22
// Temporal Server could not cancel the targeted Workflow
// This is usually because the target Workflow could not be found
EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED EventType = 23
// Temporal Server has successfully requested the cancellation of the target Workflow
EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_CANCEL_REQUESTED EventType = 24
// A marker has been recorded.
// This event type is transparent to the Temporal Server
// The Server will only store it and will not try to understand it.
EVENT_TYPE_MARKER_RECORDED EventType = 25
// Workflow has received a Signal event
// The event type contains the Signal name, as well as a Signal payload
EVENT_TYPE_WORKFLOW_EXECUTION_SIGNALED EventType = 26
// Workflow execution has been forcefully terminated
// This is usually because the terminate Workflow API was called
EVENT_TYPE_WORKFLOW_EXECUTION_TERMINATED EventType = 27
// Workflow has successfully completed and a new Workflow has been started within the same transaction
// Contains last Workflow execution results as well as new Workflow execution inputs
EVENT_TYPE_WORKFLOW_EXECUTION_CONTINUED_AS_NEW EventType = 28
// Temporal Server will try to start a child Workflow
EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_INITIATED EventType = 29
// Child Workflow execution cannot be started/triggered
// Usually due to a child Workflow ID collision
EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_FAILED EventType = 30
// Child Workflow execution has successfully started/triggered
EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_STARTED EventType = 31
// Child Workflow execution has successfully completed
EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_COMPLETED EventType = 32
// Child Workflow execution has unsuccessfully completed
EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_FAILED EventType = 33
// Child Workflow execution has been cancelled
EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_CANCELED EventType = 34
// Child Workflow execution has timed out by the Temporal Server
EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TIMED_OUT EventType = 35
// Child Workflow execution has been terminated
EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TERMINATED EventType = 36
// Temporal Server will try to Signal the targeted Workflow
// Contains the Signal name, as well as a Signal payload
EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED EventType = 37
// Temporal Server cannot Signal the targeted Workflow
// Usually because the Workflow could not be found
EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED EventType = 38
// Temporal Server has successfully Signaled the targeted Workflow
EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_SIGNALED EventType = 39
// Workflow search attributes should be updated and synchronized with the visibility store
EVENT_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES EventType = 40
)
var EventType_name = map[int32]string{
0: "Unspecified",
1: "WorkflowExecutionStarted",
2: "WorkflowExecutionCompleted",
3: "WorkflowExecutionFailed",
4: "WorkflowExecutionTimedOut",
5: "WorkflowTaskScheduled",
6: "WorkflowTaskStarted",
7: "WorkflowTaskCompleted",
8: "WorkflowTaskTimedOut",
9: "WorkflowTaskFailed",
10: "ActivityTaskScheduled",
11: "ActivityTaskStarted",
12: "ActivityTaskCompleted",
13: "ActivityTaskFailed",
14: "ActivityTaskTimedOut",
15: "ActivityTaskCancelRequested",
16: "ActivityTaskCanceled",
17: "TimerStarted",
18: "TimerFired",
19: "TimerCanceled",
20: "WorkflowExecutionCancelRequested",
21: "WorkflowExecutionCanceled",
22: "RequestCancelExternalWorkflowExecutionInitiated",
23: "RequestCancelExternalWorkflowExecutionFailed",
24: "ExternalWorkflowExecutionCancelRequested",
25: "MarkerRecorded",
26: "WorkflowExecutionSignaled",
27: "WorkflowExecutionTerminated",
28: "WorkflowExecutionContinuedAsNew",
29: "StartChildWorkflowExecutionInitiated",
30: "StartChildWorkflowExecutionFailed",
31: "ChildWorkflowExecutionStarted",
32: "ChildWorkflowExecutionCompleted",
33: "ChildWorkflowExecutionFailed",
34: "ChildWorkflowExecutionCanceled",
35: "ChildWorkflowExecutionTimedOut",
36: "ChildWorkflowExecutionTerminated",
37: "SignalExternalWorkflowExecutionInitiated",
38: "SignalExternalWorkflowExecutionFailed",
39: "ExternalWorkflowExecutionSignaled",
40: "UpsertWorkflowSearchAttributes",
}
var EventType_value = map[string]int32{
"Unspecified": 0,
"WorkflowExecutionStarted": 1,
"WorkflowExecutionCompleted": 2,
"WorkflowExecutionFailed": 3,
"WorkflowExecutionTimedOut": 4,
"WorkflowTaskScheduled": 5,
"WorkflowTaskStarted": 6,
"WorkflowTaskCompleted": 7,
"WorkflowTaskTimedOut": 8,
"WorkflowTaskFailed": 9,
"ActivityTaskScheduled": 10,
"ActivityTaskStarted": 11,
"ActivityTaskCompleted": 12,
"ActivityTaskFailed": 13,
"ActivityTaskTimedOut": 14,
"ActivityTaskCancelRequested": 15,
"ActivityTaskCanceled": 16,
"TimerStarted": 17,
"TimerFired": 18,
"TimerCanceled": 19,
"WorkflowExecutionCancelRequested": 20,
"WorkflowExecutionCanceled": 21,
"RequestCancelExternalWorkflowExecutionInitiated": 22,
"RequestCancelExternalWorkflowExecutionFailed": 23,
"ExternalWorkflowExecutionCancelRequested": 24,
"MarkerRecorded": 25,
"WorkflowExecutionSignaled": 26,
"WorkflowExecutionTerminated": 27,
"WorkflowExecutionContinuedAsNew": 28,
"StartChildWorkflowExecutionInitiated": 29,
"StartChildWorkflowExecutionFailed": 30,
"ChildWorkflowExecutionStarted": 31,
"ChildWorkflowExecutionCompleted": 32,
"ChildWorkflowExecutionFailed": 33,
"ChildWorkflowExecutionCanceled": 34,
"ChildWorkflowExecutionTimedOut": 35,
"ChildWorkflowExecutionTerminated": 36,
"SignalExternalWorkflowExecutionInitiated": 37,
"SignalExternalWorkflowExecutionFailed": 38,
"ExternalWorkflowExecutionSignaled": 39,
"UpsertWorkflowSearchAttributes": 40,
}
func (EventType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_b482d2737d9259e4, []int{0}
}
func init() {
proto.RegisterEnum("temporal.api.enums.v1.EventType", EventType_name, EventType_value)
}
func init() {
proto.RegisterFile("temporal/api/enums/v1/event_type.proto", fileDescriptor_b482d2737d9259e4)
}
var fileDescriptor_b482d2737d9259e4 = []byte{
// 718 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x96, 0x5f, 0x4f, 0xd3, 0x50,
0x18, 0xc6, 0x57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0x9a, 0x25, 0x03,
0x75, 0xee, 0x4b, 0x0c, 0x94, 0x75, 0x65, 0xc3, 0x92, 0x39, 0xd7, 0xd9, 0xba, 0xc9, 0xd1, 0x10,
0x67, 0xd6, 0xbf, 0x0b, 0xc7, 0xa7, 0x34, 0x71, 0x72, 0x4a, 0x13, 0xe7, 0xa7, 0x54, 0xf8, 0xdc,
0xa0, 0xc2, 0xd7, 0x06, 0x15, 0x7e, 0x34, 0xa8, 0x70, 0xdc, 0xa0, 0xc2, 0xaf, 0x06, 0x15, 0x7e,
0x37, 0x68, 0xe2, 0xbc, 0x41, 0x85, 0x2f, 0x67, 0x34, 0x71, 0x7c, 0x46, 0x13, 0x27, 0x67, 0x34,
0x01, 0xc9, 0x6a, 0x4d, 0xba, 0xf6, 0xa9, 0x5e, 0xef, 0x6d, 0xbd, 0xd3, 0x25, 0xe7, 0x45, 0x2f,
0x09, 0x6f, 0xc7, 0xde, 0x07, 0xd8, 0x6a, 0xed, 0xd2, 0x17, 0xc0, 0x9a, 0xfb, 0xe3, 0x5b, 0x57,
0x1f, 0x6f, 0x02, 0xb2, 0x5d, 0x95, 0xd0, 0x35, 0x2b, 0x67, 0xfe, 0x74, 0x25, 0x9b, 0xff, 0x67,
0xb3, 0xb2, 0x5d, 0xcd, 0x66, 0xdd, 0x95, 0x6c, 0xb6, 0x9c, 0x79, 0xd7, 0xed, 0x7e, 0x30, 0x2c,
0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xf4, 0xb2, 0x47, 0xa5, 0x5a, 0x08, 0x00, 0x00,
}
func (x EventType) String() string {
s, ok := EventType_name[int32(x)]
if ok {
return s
}
return strconv.Itoa(int(x))
}