mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
Note: This commit came from a feature branch and is not expected to build.
168 lines
6.9 KiB
Go
168 lines
6.9 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/replication.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 ReplicationTaskType int32
|
|
|
|
const (
|
|
REPLICATION_TASK_TYPE_UNSPECIFIED ReplicationTaskType = 0
|
|
REPLICATION_TASK_TYPE_NAMESPACE_TASK ReplicationTaskType = 1
|
|
REPLICATION_TASK_TYPE_HISTORY_TASK ReplicationTaskType = 2
|
|
REPLICATION_TASK_TYPE_SYNC_SHARD_STATUS_TASK ReplicationTaskType = 3
|
|
REPLICATION_TASK_TYPE_SYNC_ACTIVITY_TASK ReplicationTaskType = 4
|
|
REPLICATION_TASK_TYPE_HISTORY_METADATA_TASK ReplicationTaskType = 5
|
|
REPLICATION_TASK_TYPE_HISTORY_V2_TASK ReplicationTaskType = 6
|
|
REPLICATION_TASK_TYPE_SYNC_WORKFLOW_STATE_TASK ReplicationTaskType = 7
|
|
REPLICATION_TASK_TYPE_TASK_QUEUE_USER_DATA ReplicationTaskType = 8
|
|
)
|
|
|
|
var ReplicationTaskType_name = map[int32]string{
|
|
0: "Unspecified",
|
|
1: "NamespaceTask",
|
|
2: "HistoryTask",
|
|
3: "SyncShardStatusTask",
|
|
4: "SyncActivityTask",
|
|
5: "HistoryMetadataTask",
|
|
6: "HistoryV2Task",
|
|
7: "SyncWorkflowStateTask",
|
|
8: "TaskQueueUserData",
|
|
}
|
|
|
|
var ReplicationTaskType_value = map[string]int32{
|
|
"Unspecified": 0,
|
|
"NamespaceTask": 1,
|
|
"HistoryTask": 2,
|
|
"SyncShardStatusTask": 3,
|
|
"SyncActivityTask": 4,
|
|
"HistoryMetadataTask": 5,
|
|
"HistoryV2Task": 6,
|
|
"SyncWorkflowStateTask": 7,
|
|
"TaskQueueUserData": 8,
|
|
}
|
|
|
|
func (ReplicationTaskType) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_3f4df3039790445d, []int{0}
|
|
}
|
|
|
|
type NamespaceOperation int32
|
|
|
|
const (
|
|
NAMESPACE_OPERATION_UNSPECIFIED NamespaceOperation = 0
|
|
NAMESPACE_OPERATION_CREATE NamespaceOperation = 1
|
|
NAMESPACE_OPERATION_UPDATE NamespaceOperation = 2
|
|
)
|
|
|
|
var NamespaceOperation_name = map[int32]string{
|
|
0: "Unspecified",
|
|
1: "Create",
|
|
2: "Update",
|
|
}
|
|
|
|
var NamespaceOperation_value = map[string]int32{
|
|
"Unspecified": 0,
|
|
"Create": 1,
|
|
"Update": 2,
|
|
}
|
|
|
|
func (NamespaceOperation) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_3f4df3039790445d, []int{1}
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("temporal.server.api.enums.v1.ReplicationTaskType", ReplicationTaskType_name, ReplicationTaskType_value)
|
|
proto.RegisterEnum("temporal.server.api.enums.v1.NamespaceOperation", NamespaceOperation_name, NamespaceOperation_value)
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("temporal/server/api/enums/v1/replication.proto", fileDescriptor_3f4df3039790445d)
|
|
}
|
|
|
|
var fileDescriptor_3f4df3039790445d = []byte{
|
|
// 414 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xbf, 0xae, 0xd3, 0x30,
|
|
0x14, 0x87, 0xe3, 0x7b, 0xe1, 0x82, 0x3c, 0x45, 0x66, 0x43, 0xc8, 0x88, 0x3f, 0x17, 0x95, 0x72,
|
|
0xe5, 0x70, 0x2f, 0x23, 0x93, 0x49, 0x5c, 0x35, 0x6a, 0x9b, 0x04, 0xdb, 0x69, 0x55, 0x06, 0xa2,
|
|
0x50, 0x59, 0x28, 0xa2, 0x6d, 0xac, 0xa4, 0x54, 0xea, 0xc6, 0x23, 0xf0, 0x18, 0x4c, 0x3c, 0x07,
|
|
0x63, 0xc7, 0x8e, 0x34, 0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, 0xa1, 0x92, 0x56, 0xc2, 0x6d, 0xf4, 0x1c, 0x5e, 0x36, 0x0b, 0xc3,
|
|
0x9b, 0x0a, 0xbd, 0x40, 0x37, 0x90, 0x34, 0x24, 0x19, 0xf9, 0xbc, 0xd7, 0xe9, 0xfb, 0xa3, 0x32,
|
|
0xfe, 0x71, 0x2e, 0x77, 0x10, 0x81, 0xed, 0x7a, 0xa7, 0x7c, 0xbd, 0x0d, 0x59, 0xc8, 0xa2, 0x50,
|
|
0x30, 0x1e, 0x1d, 0x32, 0x99, 0x77, 0xdb, 0x2b, 0x88, 0xbc, 0x78, 0xa6, 0x72, 0x1d, 0x4f, 0x94,
|
|
0xaf, 0x55, 0x56, 0xae, 0x0d, 0x3d, 0x81, 0x0f, 0x4f, 0x13, 0xf7, 0x03, 0xc6, 0xab, 0x6e, 0xff,
|
|
0x2e, 0x0b, 0xc3, 0xfb, 0x75, 0x90, 0xcd, 0x19, 0x95, 0xcc, 0x04, 0xff, 0xab, 0x87, 0x81, 0x73,
|
|
0xa8, 0x9f, 0xbd, 0x79, 0xbf, 0xde, 0x62, 0x63, 0xb3, 0xc5, 0xc6, 0x7e, 0x8b, 0xc1, 0x97, 0x02,
|
|
0x83, 0x6f, 0x05, 0x06, 0x3f, 0x0a, 0x0c, 0xd6, 0x05, 0x06, 0x3f, 0x0b, 0x0c, 0x7e, 0x15, 0xd8,
|
|
0xd8, 0x17, 0x18, 0x7c, 0xdd, 0x61, 0x63, 0xbd, 0xc3, 0xc6, 0x66, 0x87, 0x8d, 0x77, 0xad, 0x8f,
|
|
0xe9, 0xdf, 0x93, 0x25, 0x49, 0x5a, 0x77, 0xb5, 0xaf, 0xcb, 0xc7, 0x87, 0x8b, 0xf2, 0x60, 0x5f,
|
|
0xfd, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xf6, 0x2c, 0x6a, 0x08, 0xe2, 0x02, 0x00, 0x00,
|
|
}
|
|
|
|
func (x ReplicationTaskType) String() string {
|
|
s, ok := ReplicationTaskType_name[int32(x)]
|
|
if ok {
|
|
return s
|
|
}
|
|
return strconv.Itoa(int(x))
|
|
}
|
|
func (x NamespaceOperation) String() string {
|
|
s, ok := NamespaceOperation_name[int32(x)]
|
|
if ok {
|
|
return s
|
|
}
|
|
return strconv.Itoa(int(x))
|
|
}
|