mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-11-14 01:41:23 +00:00
145 lines
5.4 KiB
Go
145 lines
5.4 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/task_queue.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 TaskQueueKind int32
|
||
|
|
||
|
const (
|
||
|
TASK_QUEUE_KIND_UNSPECIFIED TaskQueueKind = 0
|
||
|
TASK_QUEUE_KIND_NORMAL TaskQueueKind = 1
|
||
|
TASK_QUEUE_KIND_STICKY TaskQueueKind = 2
|
||
|
)
|
||
|
|
||
|
var TaskQueueKind_name = map[int32]string{
|
||
|
0: "Unspecified",
|
||
|
1: "Normal",
|
||
|
2: "Sticky",
|
||
|
}
|
||
|
|
||
|
var TaskQueueKind_value = map[string]int32{
|
||
|
"Unspecified": 0,
|
||
|
"Normal": 1,
|
||
|
"Sticky": 2,
|
||
|
}
|
||
|
|
||
|
func (TaskQueueKind) EnumDescriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_cf13a6eba37ec772, []int{0}
|
||
|
}
|
||
|
|
||
|
type TaskQueueType int32
|
||
|
|
||
|
const (
|
||
|
TASK_QUEUE_TYPE_UNSPECIFIED TaskQueueType = 0
|
||
|
// Workflow type of task queue.
|
||
|
TASK_QUEUE_TYPE_WORKFLOW TaskQueueType = 1
|
||
|
// Activity type of task queue.
|
||
|
TASK_QUEUE_TYPE_ACTIVITY TaskQueueType = 2
|
||
|
)
|
||
|
|
||
|
var TaskQueueType_name = map[int32]string{
|
||
|
0: "Unspecified",
|
||
|
1: "Workflow",
|
||
|
2: "Activity",
|
||
|
}
|
||
|
|
||
|
var TaskQueueType_value = map[string]int32{
|
||
|
"Unspecified": 0,
|
||
|
"Workflow": 1,
|
||
|
"Activity": 2,
|
||
|
}
|
||
|
|
||
|
func (TaskQueueType) EnumDescriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_cf13a6eba37ec772, []int{1}
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterEnum("temporal.api.enums.v1.TaskQueueKind", TaskQueueKind_name, TaskQueueKind_value)
|
||
|
proto.RegisterEnum("temporal.api.enums.v1.TaskQueueType", TaskQueueType_name, TaskQueueType_value)
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterFile("temporal/api/enums/v1/task_queue.proto", fileDescriptor_cf13a6eba37ec772)
|
||
|
}
|
||
|
|
||
|
var fileDescriptor_cf13a6eba37ec772 = []byte{
|
||
|
// 321 bytes of a gzipped FileDescriptorProto
|
||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2b, 0x49, 0xcd, 0x2d,
|
||
|
0xc8, 0x2f, 0x4a, 0xcc, 0xd1, 0x4f, 0x2c, 0xc8, 0xd4, 0x4f, 0xcd, 0x2b, 0xcd, 0x2d, 0xd6, 0x2f,
|
||
|
0x33, 0xd4, 0x2f, 0x49, 0x2c, 0xce, 0x8e, 0x2f, 0x2c, 0x4d, 0x2d, 0x4d, 0xd5, 0x2b, 0x28, 0xca,
|
||
|
0x2f, 0xc9, 0x17, 0x12, 0x85, 0xa9, 0xd3, 0x4b, 0x2c, 0xc8, 0xd4, 0x03, 0xab, 0xd3, 0x2b, 0x33,
|
||
|
0xd4, 0xca, 0xe0, 0xe2, 0x0d, 0x49, 0x2c, 0xce, 0x0e, 0x04, 0xa9, 0xf4, 0xce, 0xcc, 0x4b, 0x11,
|
||
|
0x92, 0xe7, 0x92, 0x0e, 0x71, 0x0c, 0xf6, 0x8e, 0x0f, 0x0c, 0x75, 0x0d, 0x75, 0x8d, 0xf7, 0xf6,
|
||
|
0xf4, 0x73, 0x89, 0x0f, 0xf5, 0x0b, 0x0e, 0x70, 0x75, 0xf6, 0x74, 0xf3, 0x74, 0x75, 0x11, 0x60,
|
||
|
0x10, 0x92, 0xe2, 0x12, 0x43, 0x57, 0xe0, 0xe7, 0x1f, 0xe4, 0xeb, 0xe8, 0x23, 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 0xcc, 0x30, 0x89, 0x0d,
|
||
|
0x1c, 0x5d, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc0, 0x8a, 0x6c, 0x40, 0xd8, 0x01, 0x00,
|
||
|
0x00,
|
||
|
}
|
||
|
|
||
|
func (x TaskQueueKind) String() string {
|
||
|
s, ok := TaskQueueKind_name[int32(x)]
|
||
|
if ok {
|
||
|
return s
|
||
|
}
|
||
|
return strconv.Itoa(int(x))
|
||
|
}
|
||
|
func (x TaskQueueType) String() string {
|
||
|
s, ok := TaskQueueType_name[int32(x)]
|
||
|
if ok {
|
||
|
return s
|
||
|
}
|
||
|
return strconv.Itoa(int(x))
|
||
|
}
|