mirror of
https://github.com/hanzoai/tasks.git
synced 2026-11-03 03:56:04 +00:00
Full module path rebrand from Temporal to Hanzo Tasks: - go.mod module: github.com/hanzoai/tasks - All internal Go imports updated (1906 files) - cmd/server renamed to cmd/tasksd - Binary name: tasksd (was temporal-server) - Docker images: hanzoai/tasks (was temporalio/server) - README rewritten with Hanzo Tasks branding - LLM.md created with integration notes - Makefile, goreleaser, CI workflows updated - go.temporal.io/sdk and go.temporal.io/api imports preserved (separate repos) Fork of Temporal.io (MIT license).
231 lines
8.6 KiB
Go
231 lines
8.6 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// plugins:
|
|
// protoc-gen-go
|
|
// protoc
|
|
// source: temporal/server/api/common/v1/api_category.proto
|
|
|
|
package commonspb
|
|
|
|
import (
|
|
reflect "reflect"
|
|
"strconv"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
descriptorpb "google.golang.org/protobuf/types/descriptorpb"
|
|
)
|
|
|
|
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 ApiCategory int32
|
|
|
|
const (
|
|
// Unspecified API category. Treated as standard API.
|
|
API_CATEGORY_UNSPECIFIED ApiCategory = 0
|
|
// Standard API with typical request/response patterns.
|
|
API_CATEGORY_STANDARD ApiCategory = 1
|
|
// Long-polling API that intentionally waits for state changes or external events.
|
|
// These APIs should be excluded from health signal tracking because their latency
|
|
// reflects client wait times and event availability rather than server health.
|
|
// Including them in health metrics would skew the data and could cause healthy
|
|
// nodes to appear unhealthy.
|
|
//
|
|
// Examples: PollMutableState, PollWorkflowExecutionUpdate, QueryWorkflow
|
|
API_CATEGORY_LONG_POLL ApiCategory = 2
|
|
API_CATEGORY_SYSTEM ApiCategory = 3
|
|
)
|
|
|
|
// Enum value maps for ApiCategory.
|
|
var (
|
|
ApiCategory_name = map[int32]string{
|
|
0: "API_CATEGORY_UNSPECIFIED",
|
|
1: "API_CATEGORY_STANDARD",
|
|
2: "API_CATEGORY_LONG_POLL",
|
|
3: "API_CATEGORY_SYSTEM",
|
|
}
|
|
ApiCategory_value = map[string]int32{
|
|
"API_CATEGORY_UNSPECIFIED": 0,
|
|
"API_CATEGORY_STANDARD": 1,
|
|
"API_CATEGORY_LONG_POLL": 2,
|
|
"API_CATEGORY_SYSTEM": 3,
|
|
}
|
|
)
|
|
|
|
func (x ApiCategory) Enum() *ApiCategory {
|
|
p := new(ApiCategory)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x ApiCategory) String() string {
|
|
switch x {
|
|
case API_CATEGORY_UNSPECIFIED:
|
|
return "Unspecified"
|
|
case API_CATEGORY_STANDARD:
|
|
return "Standard"
|
|
case API_CATEGORY_LONG_POLL:
|
|
return "LongPoll"
|
|
case API_CATEGORY_SYSTEM:
|
|
return "System"
|
|
default:
|
|
return strconv.Itoa(int(x))
|
|
}
|
|
|
|
}
|
|
|
|
func (ApiCategory) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_temporal_server_api_common_v1_api_category_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (ApiCategory) Type() protoreflect.EnumType {
|
|
return &file_temporal_server_api_common_v1_api_category_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x ApiCategory) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use ApiCategory.Descriptor instead.
|
|
func (ApiCategory) EnumDescriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_common_v1_api_category_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type ApiCategoryOptions struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The category of this API for health and observability purposes.
|
|
Category ApiCategory `protobuf:"varint,1,opt,name=category,proto3,enum=temporal.server.api.common.v1.ApiCategory" json:"category,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ApiCategoryOptions) Reset() {
|
|
*x = ApiCategoryOptions{}
|
|
mi := &file_temporal_server_api_common_v1_api_category_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ApiCategoryOptions) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ApiCategoryOptions) ProtoMessage() {}
|
|
|
|
func (x *ApiCategoryOptions) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_api_common_v1_api_category_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ApiCategoryOptions.ProtoReflect.Descriptor instead.
|
|
func (*ApiCategoryOptions) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_common_v1_api_category_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *ApiCategoryOptions) GetCategory() ApiCategory {
|
|
if x != nil {
|
|
return x.Category
|
|
}
|
|
return API_CATEGORY_UNSPECIFIED
|
|
}
|
|
|
|
var file_temporal_server_api_common_v1_api_category_proto_extTypes = []protoimpl.ExtensionInfo{
|
|
{
|
|
ExtendedType: (*descriptorpb.MethodOptions)(nil),
|
|
ExtensionType: (*ApiCategoryOptions)(nil),
|
|
Field: 50001,
|
|
Name: "temporal.server.api.common.v1.api_category",
|
|
Tag: "bytes,50001,opt,name=api_category",
|
|
Filename: "temporal/server/api/common/v1/api_category.proto",
|
|
},
|
|
}
|
|
|
|
// Extension fields to descriptorpb.MethodOptions.
|
|
var (
|
|
// optional temporal.server.api.common.v1.ApiCategoryOptions api_category = 50001;
|
|
E_ApiCategory = &file_temporal_server_api_common_v1_api_category_proto_extTypes[0]
|
|
)
|
|
|
|
var File_temporal_server_api_common_v1_api_category_proto protoreflect.FileDescriptor
|
|
|
|
const file_temporal_server_api_common_v1_api_category_proto_rawDesc = "" +
|
|
"\n" +
|
|
"0temporal/server/api/common/v1/api_category.proto\x12\x1dtemporal.server.api.common.v1\x1a google/protobuf/descriptor.proto\"\\\n" +
|
|
"\x12ApiCategoryOptions\x12F\n" +
|
|
"\bcategory\x18\x01 \x01(\x0e2*.temporal.server.api.common.v1.ApiCategoryR\bcategory*{\n" +
|
|
"\vApiCategory\x12\x1c\n" +
|
|
"\x18API_CATEGORY_UNSPECIFIED\x10\x00\x12\x19\n" +
|
|
"\x15API_CATEGORY_STANDARD\x10\x01\x12\x1a\n" +
|
|
"\x16API_CATEGORY_LONG_POLL\x10\x02\x12\x17\n" +
|
|
"\x13API_CATEGORY_SYSTEM\x10\x03:y\n" +
|
|
"\fapi_category\x12\x1e.google.protobuf.MethodOptions\x18ц\x03 \x01(\v21.temporal.server.api.common.v1.ApiCategoryOptionsR\vapiCategory\x88\x01\x01B/Z-github.com/hanzoai/tasks/api/common/v1;commonspbb\x06proto3"
|
|
|
|
var (
|
|
file_temporal_server_api_common_v1_api_category_proto_rawDescOnce sync.Once
|
|
file_temporal_server_api_common_v1_api_category_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_temporal_server_api_common_v1_api_category_proto_rawDescGZIP() []byte {
|
|
file_temporal_server_api_common_v1_api_category_proto_rawDescOnce.Do(func() {
|
|
file_temporal_server_api_common_v1_api_category_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_server_api_common_v1_api_category_proto_rawDesc), len(file_temporal_server_api_common_v1_api_category_proto_rawDesc)))
|
|
})
|
|
return file_temporal_server_api_common_v1_api_category_proto_rawDescData
|
|
}
|
|
|
|
var file_temporal_server_api_common_v1_api_category_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_temporal_server_api_common_v1_api_category_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
|
var file_temporal_server_api_common_v1_api_category_proto_goTypes = []any{
|
|
(ApiCategory)(0), // 0: temporal.server.api.common.v1.ApiCategory
|
|
(*ApiCategoryOptions)(nil), // 1: temporal.server.api.common.v1.ApiCategoryOptions
|
|
(*descriptorpb.MethodOptions)(nil), // 2: google.protobuf.MethodOptions
|
|
}
|
|
var file_temporal_server_api_common_v1_api_category_proto_depIdxs = []int32{
|
|
0, // 0: temporal.server.api.common.v1.ApiCategoryOptions.category:type_name -> temporal.server.api.common.v1.ApiCategory
|
|
2, // 1: temporal.server.api.common.v1.api_category:extendee -> google.protobuf.MethodOptions
|
|
1, // 2: temporal.server.api.common.v1.api_category:type_name -> temporal.server.api.common.v1.ApiCategoryOptions
|
|
3, // [3:3] is the sub-list for method output_type
|
|
3, // [3:3] is the sub-list for method input_type
|
|
2, // [2:3] is the sub-list for extension type_name
|
|
1, // [1:2] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_temporal_server_api_common_v1_api_category_proto_init() }
|
|
func file_temporal_server_api_common_v1_api_category_proto_init() {
|
|
if File_temporal_server_api_common_v1_api_category_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_server_api_common_v1_api_category_proto_rawDesc), len(file_temporal_server_api_common_v1_api_category_proto_rawDesc)),
|
|
NumEnums: 1,
|
|
NumMessages: 1,
|
|
NumExtensions: 1,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_temporal_server_api_common_v1_api_category_proto_goTypes,
|
|
DependencyIndexes: file_temporal_server_api_common_v1_api_category_proto_depIdxs,
|
|
EnumInfos: file_temporal_server_api_common_v1_api_category_proto_enumTypes,
|
|
MessageInfos: file_temporal_server_api_common_v1_api_category_proto_msgTypes,
|
|
ExtensionInfos: file_temporal_server_api_common_v1_api_category_proto_extTypes,
|
|
}.Build()
|
|
File_temporal_server_api_common_v1_api_category_proto = out.File
|
|
file_temporal_server_api_common_v1_api_category_proto_goTypes = nil
|
|
file_temporal_server_api_common_v1_api_category_proto_depIdxs = nil
|
|
}
|