Files
tasks/api/enums/v1/workflow.pb.go
4905469a86 Add TemporalPauseInfo search attribute (#6741)
## What changed?
Add PausedInfo search attribute

## Why?
To allow users find workflows with paused activities

## How did you test it?
make unit-test.

---------

Co-authored-by: Rodrigo Zhou <[email protected]>
2024-11-08 12:47:25 -08:00

351 lines
14 KiB
Go

// The MIT License
//
// Copyright (c) 2019 Temporal 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-go. DO NOT EDIT.
// plugins:
// protoc-gen-go
// protoc
// source: temporal/server/api/enums/v1/workflow.proto
package enums
import (
reflect "reflect"
"strconv"
sync "sync"
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 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
)
// Enum value maps for WorkflowExecutionState.
var (
WorkflowExecutionState_name = map[int32]string{
0: "WORKFLOW_EXECUTION_STATE_UNSPECIFIED",
1: "WORKFLOW_EXECUTION_STATE_CREATED",
2: "WORKFLOW_EXECUTION_STATE_RUNNING",
3: "WORKFLOW_EXECUTION_STATE_COMPLETED",
4: "WORKFLOW_EXECUTION_STATE_ZOMBIE",
5: "WORKFLOW_EXECUTION_STATE_VOID",
6: "WORKFLOW_EXECUTION_STATE_CORRUPTED",
}
WorkflowExecutionState_value = map[string]int32{
"WORKFLOW_EXECUTION_STATE_UNSPECIFIED": 0,
"WORKFLOW_EXECUTION_STATE_CREATED": 1,
"WORKFLOW_EXECUTION_STATE_RUNNING": 2,
"WORKFLOW_EXECUTION_STATE_COMPLETED": 3,
"WORKFLOW_EXECUTION_STATE_ZOMBIE": 4,
"WORKFLOW_EXECUTION_STATE_VOID": 5,
"WORKFLOW_EXECUTION_STATE_CORRUPTED": 6,
}
)
func (x WorkflowExecutionState) Enum() *WorkflowExecutionState {
p := new(WorkflowExecutionState)
*p = x
return p
}
func (x WorkflowExecutionState) String() string {
switch x {
case WORKFLOW_EXECUTION_STATE_UNSPECIFIED:
return "Unspecified"
case WORKFLOW_EXECUTION_STATE_CREATED:
return "Created"
case WORKFLOW_EXECUTION_STATE_RUNNING:
return "Running"
case WORKFLOW_EXECUTION_STATE_COMPLETED:
return "Completed"
case WORKFLOW_EXECUTION_STATE_ZOMBIE:
return "Zombie"
case WORKFLOW_EXECUTION_STATE_VOID:
return "Void"
case WORKFLOW_EXECUTION_STATE_CORRUPTED:
return "Corrupted"
default:
return strconv.Itoa(int(x))
}
}
func (WorkflowExecutionState) Descriptor() protoreflect.EnumDescriptor {
return file_temporal_server_api_enums_v1_workflow_proto_enumTypes[0].Descriptor()
}
func (WorkflowExecutionState) Type() protoreflect.EnumType {
return &file_temporal_server_api_enums_v1_workflow_proto_enumTypes[0]
}
func (x WorkflowExecutionState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use WorkflowExecutionState.Descriptor instead.
func (WorkflowExecutionState) EnumDescriptor() ([]byte, []int) {
return file_temporal_server_api_enums_v1_workflow_proto_rawDescGZIP(), []int{0}
}
type WorkflowBackoffType int32
const (
WORKFLOW_BACKOFF_TYPE_UNSPECIFIED WorkflowBackoffType = 0
WORKFLOW_BACKOFF_TYPE_RETRY WorkflowBackoffType = 1
WORKFLOW_BACKOFF_TYPE_CRON WorkflowBackoffType = 2
WORKFLOW_BACKOFF_TYPE_DELAY_START WorkflowBackoffType = 3
)
// Enum value maps for WorkflowBackoffType.
var (
WorkflowBackoffType_name = map[int32]string{
0: "WORKFLOW_BACKOFF_TYPE_UNSPECIFIED",
1: "WORKFLOW_BACKOFF_TYPE_RETRY",
2: "WORKFLOW_BACKOFF_TYPE_CRON",
3: "WORKFLOW_BACKOFF_TYPE_DELAY_START",
}
WorkflowBackoffType_value = map[string]int32{
"WORKFLOW_BACKOFF_TYPE_UNSPECIFIED": 0,
"WORKFLOW_BACKOFF_TYPE_RETRY": 1,
"WORKFLOW_BACKOFF_TYPE_CRON": 2,
"WORKFLOW_BACKOFF_TYPE_DELAY_START": 3,
}
)
func (x WorkflowBackoffType) Enum() *WorkflowBackoffType {
p := new(WorkflowBackoffType)
*p = x
return p
}
func (x WorkflowBackoffType) String() string {
switch x {
case WORKFLOW_BACKOFF_TYPE_UNSPECIFIED:
return "Unspecified"
case WORKFLOW_BACKOFF_TYPE_RETRY:
return "Retry"
case WORKFLOW_BACKOFF_TYPE_CRON:
return "Cron"
case WORKFLOW_BACKOFF_TYPE_DELAY_START:
return "DelayStart"
default:
return strconv.Itoa(int(x))
}
}
func (WorkflowBackoffType) Descriptor() protoreflect.EnumDescriptor {
return file_temporal_server_api_enums_v1_workflow_proto_enumTypes[1].Descriptor()
}
func (WorkflowBackoffType) Type() protoreflect.EnumType {
return &file_temporal_server_api_enums_v1_workflow_proto_enumTypes[1]
}
func (x WorkflowBackoffType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use WorkflowBackoffType.Descriptor instead.
func (WorkflowBackoffType) EnumDescriptor() ([]byte, []int) {
return file_temporal_server_api_enums_v1_workflow_proto_rawDescGZIP(), []int{1}
}
type PausedWorkflowEntityType int32
const (
PAUSED_WORKFLOW_ENTITY_TYPE_UNSPECIFIED PausedWorkflowEntityType = 0
PAUSED_WORKFLOW_ENTITY_TYPE_ACTIVITY PausedWorkflowEntityType = 1
PAUSED_WORKFLOW_ENTITY_TYPE_WORKFLOW PausedWorkflowEntityType = 2
)
// Enum value maps for PausedWorkflowEntityType.
var (
PausedWorkflowEntityType_name = map[int32]string{
0: "PAUSED_WORKFLOW_ENTITY_TYPE_UNSPECIFIED",
1: "PAUSED_WORKFLOW_ENTITY_TYPE_ACTIVITY",
2: "PAUSED_WORKFLOW_ENTITY_TYPE_WORKFLOW",
}
PausedWorkflowEntityType_value = map[string]int32{
"PAUSED_WORKFLOW_ENTITY_TYPE_UNSPECIFIED": 0,
"PAUSED_WORKFLOW_ENTITY_TYPE_ACTIVITY": 1,
"PAUSED_WORKFLOW_ENTITY_TYPE_WORKFLOW": 2,
}
)
func (x PausedWorkflowEntityType) Enum() *PausedWorkflowEntityType {
p := new(PausedWorkflowEntityType)
*p = x
return p
}
func (x PausedWorkflowEntityType) String() string {
switch x {
case PAUSED_WORKFLOW_ENTITY_TYPE_UNSPECIFIED:
return "Unspecified"
case PAUSED_WORKFLOW_ENTITY_TYPE_ACTIVITY:
return "Activity"
case PAUSED_WORKFLOW_ENTITY_TYPE_WORKFLOW:
return "Workflow"
default:
return strconv.Itoa(int(x))
}
}
func (PausedWorkflowEntityType) Descriptor() protoreflect.EnumDescriptor {
return file_temporal_server_api_enums_v1_workflow_proto_enumTypes[2].Descriptor()
}
func (PausedWorkflowEntityType) Type() protoreflect.EnumType {
return &file_temporal_server_api_enums_v1_workflow_proto_enumTypes[2]
}
func (x PausedWorkflowEntityType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PausedWorkflowEntityType.Descriptor instead.
func (PausedWorkflowEntityType) EnumDescriptor() ([]byte, []int) {
return file_temporal_server_api_enums_v1_workflow_proto_rawDescGZIP(), []int{2}
}
var File_temporal_server_api_enums_v1_workflow_proto protoreflect.FileDescriptor
var file_temporal_server_api_enums_v1_workflow_proto_rawDesc = []byte{
0x0a, 0x2b, 0x74, 0x65, 0x6d, 0x70, 0x6f, 0x72, 0x61, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65,
0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x77,
0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x74,
0x65, 0x6d, 0x70, 0x6f, 0x72, 0x61, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x76, 0x31, 0x2a, 0xa6, 0x02, 0x0a, 0x16,
0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f,
0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x28, 0x0a, 0x24, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c,
0x4f, 0x57, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41,
0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,
0x12, 0x24, 0x0a, 0x20, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x45, 0x58, 0x45,
0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x43, 0x52, 0x45,
0x41, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x24, 0x0a, 0x20, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c,
0x4f, 0x57, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41,
0x54, 0x45, 0x5f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x26, 0x0a, 0x22,
0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49,
0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54,
0x45, 0x44, 0x10, 0x03, 0x12, 0x23, 0x0a, 0x1f, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57,
0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45,
0x5f, 0x5a, 0x4f, 0x4d, 0x42, 0x49, 0x45, 0x10, 0x04, 0x12, 0x21, 0x0a, 0x1d, 0x57, 0x4f, 0x52,
0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f,
0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x56, 0x4f, 0x49, 0x44, 0x10, 0x05, 0x12, 0x26, 0x0a, 0x22,
0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49,
0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x43, 0x4f, 0x52, 0x52, 0x55, 0x50, 0x54,
0x45, 0x44, 0x10, 0x06, 0x2a, 0xa4, 0x01, 0x0a, 0x13, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f,
0x77, 0x42, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x54, 0x79, 0x70, 0x65, 0x12, 0x25, 0x0a, 0x21,
0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x42, 0x41, 0x43, 0x4b, 0x4f, 0x46, 0x46,
0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,
0x44, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f,
0x42, 0x41, 0x43, 0x4b, 0x4f, 0x46, 0x46, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x54,
0x52, 0x59, 0x10, 0x01, 0x12, 0x1e, 0x0a, 0x1a, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57,
0x5f, 0x42, 0x41, 0x43, 0x4b, 0x4f, 0x46, 0x46, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x52,
0x4f, 0x4e, 0x10, 0x02, 0x12, 0x25, 0x0a, 0x21, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57,
0x5f, 0x42, 0x41, 0x43, 0x4b, 0x4f, 0x46, 0x46, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x45,
0x4c, 0x41, 0x59, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x10, 0x03, 0x2a, 0x9b, 0x01, 0x0a, 0x18,
0x50, 0x61, 0x75, 0x73, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x6e,
0x74, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, 0x27, 0x50, 0x41, 0x55, 0x53,
0x45, 0x44, 0x5f, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x45, 0x4e, 0x54, 0x49,
0x54, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,
0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x28, 0x0a, 0x24, 0x50, 0x41, 0x55, 0x53, 0x45, 0x44, 0x5f,
0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x45, 0x4e, 0x54, 0x49, 0x54, 0x59, 0x5f,
0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x49, 0x54, 0x59, 0x10, 0x01, 0x12,
0x28, 0x0a, 0x24, 0x50, 0x41, 0x55, 0x53, 0x45, 0x44, 0x5f, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c,
0x4f, 0x57, 0x5f, 0x45, 0x4e, 0x54, 0x49, 0x54, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x57,
0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x10, 0x02, 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x6f, 0x2e,
0x74, 0x65, 0x6d, 0x70, 0x6f, 0x72, 0x61, 0x6c, 0x2e, 0x69, 0x6f, 0x2f, 0x73, 0x65, 0x72, 0x76,
0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x2f, 0x76, 0x31, 0x3b,
0x65, 0x6e, 0x75, 0x6d, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_temporal_server_api_enums_v1_workflow_proto_rawDescOnce sync.Once
file_temporal_server_api_enums_v1_workflow_proto_rawDescData = file_temporal_server_api_enums_v1_workflow_proto_rawDesc
)
func file_temporal_server_api_enums_v1_workflow_proto_rawDescGZIP() []byte {
file_temporal_server_api_enums_v1_workflow_proto_rawDescOnce.Do(func() {
file_temporal_server_api_enums_v1_workflow_proto_rawDescData = protoimpl.X.CompressGZIP(file_temporal_server_api_enums_v1_workflow_proto_rawDescData)
})
return file_temporal_server_api_enums_v1_workflow_proto_rawDescData
}
var file_temporal_server_api_enums_v1_workflow_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
var file_temporal_server_api_enums_v1_workflow_proto_goTypes = []interface{}{
(WorkflowExecutionState)(0), // 0: temporal.server.api.enums.v1.WorkflowExecutionState
(WorkflowBackoffType)(0), // 1: temporal.server.api.enums.v1.WorkflowBackoffType
(PausedWorkflowEntityType)(0), // 2: temporal.server.api.enums.v1.PausedWorkflowEntityType
}
var file_temporal_server_api_enums_v1_workflow_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_workflow_proto_init() }
func file_temporal_server_api_enums_v1_workflow_proto_init() {
if File_temporal_server_api_enums_v1_workflow_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_temporal_server_api_enums_v1_workflow_proto_rawDesc,
NumEnums: 3,
NumMessages: 0,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_temporal_server_api_enums_v1_workflow_proto_goTypes,
DependencyIndexes: file_temporal_server_api_enums_v1_workflow_proto_depIdxs,
EnumInfos: file_temporal_server_api_enums_v1_workflow_proto_enumTypes,
}.Build()
File_temporal_server_api_enums_v1_workflow_proto = out.File
file_temporal_server_api_enums_v1_workflow_proto_rawDesc = nil
file_temporal_server_api_enums_v1_workflow_proto_goTypes = nil
file_temporal_server_api_enums_v1_workflow_proto_depIdxs = nil
}