mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
116 lines
4.6 KiB
Go
116 lines
4.6 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/cluster.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 ClusterMemberRole int32
|
|
|
|
const (
|
|
CLUSTER_MEMBER_ROLE_UNSPECIFIED ClusterMemberRole = 0
|
|
CLUSTER_MEMBER_ROLE_FRONTEND ClusterMemberRole = 1
|
|
CLUSTER_MEMBER_ROLE_HISTORY ClusterMemberRole = 2
|
|
CLUSTER_MEMBER_ROLE_MATCHING ClusterMemberRole = 3
|
|
CLUSTER_MEMBER_ROLE_WORKER ClusterMemberRole = 4
|
|
)
|
|
|
|
var ClusterMemberRole_name = map[int32]string{
|
|
0: "Unspecified",
|
|
1: "Frontend",
|
|
2: "History",
|
|
3: "Matching",
|
|
4: "Worker",
|
|
}
|
|
|
|
var ClusterMemberRole_value = map[string]int32{
|
|
"Unspecified": 0,
|
|
"Frontend": 1,
|
|
"History": 2,
|
|
"Matching": 3,
|
|
"Worker": 4,
|
|
}
|
|
|
|
func (ClusterMemberRole) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_09c2c440f2a7c314, []int{0}
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("temporal.server.api.enums.v1.ClusterMemberRole", ClusterMemberRole_name, ClusterMemberRole_value)
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("temporal/server/api/enums/v1/cluster.proto", fileDescriptor_09c2c440f2a7c314)
|
|
}
|
|
|
|
var fileDescriptor_09c2c440f2a7c314 = []byte{
|
|
// 276 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x2a, 0x49, 0xcd, 0x2d,
|
|
0xc8, 0x2f, 0x4a, 0xcc, 0xd1, 0x2f, 0x4e, 0x2d, 0x2a, 0x4b, 0x2d, 0xd2, 0x4f, 0x2c, 0xc8, 0xd4,
|
|
0x4f, 0xcd, 0x2b,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8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0xf8, 0xe2, 0x91, 0x1c,
|
|
0xc3, 0x87, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1,
|
|
0x1c, 0x43, 0x94, 0x46, 0x7a, 0xbe, 0x1e, 0x3c, 0x58, 0x32, 0xf3, 0xb1, 0x85, 0xa2, 0x35, 0x98,
|
|
0x91, 0xc4, 0x06, 0x0e, 0x44, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5a, 0xeb, 0x70, 0x15,
|
|
0x72, 0x01, 0x00, 0x00,
|
|
}
|
|
|
|
func (x ClusterMemberRole) String() string {
|
|
s, ok := ClusterMemberRole_name[int32(x)]
|
|
if ok {
|
|
return s
|
|
}
|
|
return strconv.Itoa(int(x))
|
|
}
|