mirror of
https://github.com/temporalio/temporal.git
synced 2026-08-30 18:41:49 -07:00
## What changed? - Add CHASM built-in visibility component and task processing logic ## Why? - Basic chasm visibility work for unblocking Scheduler migration. ## How did you test it? - [x] built - [ ] run locally and tested manually - [ ] covered by existing tests - [x] added new unit test(s) - [x] added new functional test(s)
171 lines
6.5 KiB
Go
171 lines
6.5 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// plugins:
|
|
// protoc-gen-go
|
|
// protoc
|
|
// source: temporal/server/api/persistence/v1/chasm_visibility.proto
|
|
|
|
package persistence
|
|
|
|
import (
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
|
|
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 ChasmVisibilityData struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TransitionCount int64 `protobuf:"varint,1,opt,name=transition_count,json=transitionCount,proto3" json:"transition_count,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChasmVisibilityData) Reset() {
|
|
*x = ChasmVisibilityData{}
|
|
mi := &file_temporal_server_api_persistence_v1_chasm_visibility_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChasmVisibilityData) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChasmVisibilityData) ProtoMessage() {}
|
|
|
|
func (x *ChasmVisibilityData) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_api_persistence_v1_chasm_visibility_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 ChasmVisibilityData.ProtoReflect.Descriptor instead.
|
|
func (*ChasmVisibilityData) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_persistence_v1_chasm_visibility_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *ChasmVisibilityData) GetTransitionCount() int64 {
|
|
if x != nil {
|
|
return x.TransitionCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ChasmVisibilityTaskData struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TransitionCount int64 `protobuf:"varint,1,opt,name=transition_count,json=transitionCount,proto3" json:"transition_count,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChasmVisibilityTaskData) Reset() {
|
|
*x = ChasmVisibilityTaskData{}
|
|
mi := &file_temporal_server_api_persistence_v1_chasm_visibility_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChasmVisibilityTaskData) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChasmVisibilityTaskData) ProtoMessage() {}
|
|
|
|
func (x *ChasmVisibilityTaskData) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_api_persistence_v1_chasm_visibility_proto_msgTypes[1]
|
|
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 ChasmVisibilityTaskData.ProtoReflect.Descriptor instead.
|
|
func (*ChasmVisibilityTaskData) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_persistence_v1_chasm_visibility_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *ChasmVisibilityTaskData) GetTransitionCount() int64 {
|
|
if x != nil {
|
|
return x.TransitionCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_temporal_server_api_persistence_v1_chasm_visibility_proto protoreflect.FileDescriptor
|
|
|
|
const file_temporal_server_api_persistence_v1_chasm_visibility_proto_rawDesc = "" +
|
|
"\n" +
|
|
"9temporal/server/api/persistence/v1/chasm_visibility.proto\x12\"temporal.server.api.persistence.v1\"@\n" +
|
|
"\x13ChasmVisibilityData\x12)\n" +
|
|
"\x10transition_count\x18\x01 \x01(\x03R\x0ftransitionCount\"D\n" +
|
|
"\x17ChasmVisibilityTaskData\x12)\n" +
|
|
"\x10transition_count\x18\x01 \x01(\x03R\x0ftransitionCountB6Z4go.temporal.io/server/api/persistence/v1;persistenceb\x06proto3"
|
|
|
|
var (
|
|
file_temporal_server_api_persistence_v1_chasm_visibility_proto_rawDescOnce sync.Once
|
|
file_temporal_server_api_persistence_v1_chasm_visibility_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_temporal_server_api_persistence_v1_chasm_visibility_proto_rawDescGZIP() []byte {
|
|
file_temporal_server_api_persistence_v1_chasm_visibility_proto_rawDescOnce.Do(func() {
|
|
file_temporal_server_api_persistence_v1_chasm_visibility_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_server_api_persistence_v1_chasm_visibility_proto_rawDesc), len(file_temporal_server_api_persistence_v1_chasm_visibility_proto_rawDesc)))
|
|
})
|
|
return file_temporal_server_api_persistence_v1_chasm_visibility_proto_rawDescData
|
|
}
|
|
|
|
var file_temporal_server_api_persistence_v1_chasm_visibility_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
var file_temporal_server_api_persistence_v1_chasm_visibility_proto_goTypes = []any{
|
|
(*ChasmVisibilityData)(nil), // 0: temporal.server.api.persistence.v1.ChasmVisibilityData
|
|
(*ChasmVisibilityTaskData)(nil), // 1: temporal.server.api.persistence.v1.ChasmVisibilityTaskData
|
|
}
|
|
var file_temporal_server_api_persistence_v1_chasm_visibility_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_persistence_v1_chasm_visibility_proto_init() }
|
|
func file_temporal_server_api_persistence_v1_chasm_visibility_proto_init() {
|
|
if File_temporal_server_api_persistence_v1_chasm_visibility_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_persistence_v1_chasm_visibility_proto_rawDesc), len(file_temporal_server_api_persistence_v1_chasm_visibility_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 2,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_temporal_server_api_persistence_v1_chasm_visibility_proto_goTypes,
|
|
DependencyIndexes: file_temporal_server_api_persistence_v1_chasm_visibility_proto_depIdxs,
|
|
MessageInfos: file_temporal_server_api_persistence_v1_chasm_visibility_proto_msgTypes,
|
|
}.Build()
|
|
File_temporal_server_api_persistence_v1_chasm_visibility_proto = out.File
|
|
file_temporal_server_api_persistence_v1_chasm_visibility_proto_goTypes = nil
|
|
file_temporal_server_api_persistence_v1_chasm_visibility_proto_depIdxs = nil
|
|
}
|