Files
tasks/api/chasm/v1/message.pb.go
Rodrigo ZhouandGitHub 642e3e1c03 [Chasm] Introduce proto ChasmExecutionInfo for Visibility (#9652)
## What changed?
Introduce proto types for Visibility:
- `ChasmExecutionInfo`
- `ListChasmExecutionsRequest`
- `ListChasmExecutionsResponse`

Changed VisibilityManager API to use these protos.

## Why?
Make VisibilityManager API more accessible for potential external usage.

## How did you test it?
- [x] built
- [ ] run locally and tested manually
- [x] covered by existing tests
- [ ] added new unit test(s)
- [ ] added new functional test(s)

## Potential risks
2026-03-25 14:18:30 -07:00

231 lines
9.2 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// plugins:
// protoc-gen-go
// protoc
// source: temporal/server/api/chasm/v1/message.proto
package chasm
import (
reflect "reflect"
sync "sync"
unsafe "unsafe"
v1 "go.temporal.io/api/common/v1"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
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 VisibilityExecutionInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
BusinessId string `protobuf:"bytes,1,opt,name=business_id,json=businessId,proto3" json:"business_id,omitempty"`
RunId string `protobuf:"bytes,2,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"`
StartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
CloseTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=close_time,json=closeTime,proto3" json:"close_time,omitempty"`
HistoryLength int64 `protobuf:"varint,5,opt,name=history_length,json=historyLength,proto3" json:"history_length,omitempty"`
HistorySizeBytes int64 `protobuf:"varint,6,opt,name=history_size_bytes,json=historySizeBytes,proto3" json:"history_size_bytes,omitempty"`
StateTransitionCount int64 `protobuf:"varint,7,opt,name=state_transition_count,json=stateTransitionCount,proto3" json:"state_transition_count,omitempty"`
ChasmSearchAttributes *v1.SearchAttributes `protobuf:"bytes,8,opt,name=chasm_search_attributes,json=chasmSearchAttributes,proto3" json:"chasm_search_attributes,omitempty"`
CustomSearchAttributes *v1.SearchAttributes `protobuf:"bytes,9,opt,name=custom_search_attributes,json=customSearchAttributes,proto3" json:"custom_search_attributes,omitempty"`
Memo *v1.Memo `protobuf:"bytes,10,opt,name=memo,proto3" json:"memo,omitempty"`
ChasmMemo *v1.Payload `protobuf:"bytes,11,opt,name=chasm_memo,json=chasmMemo,proto3" json:"chasm_memo,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *VisibilityExecutionInfo) Reset() {
*x = VisibilityExecutionInfo{}
mi := &file_temporal_server_api_chasm_v1_message_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *VisibilityExecutionInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VisibilityExecutionInfo) ProtoMessage() {}
func (x *VisibilityExecutionInfo) ProtoReflect() protoreflect.Message {
mi := &file_temporal_server_api_chasm_v1_message_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 VisibilityExecutionInfo.ProtoReflect.Descriptor instead.
func (*VisibilityExecutionInfo) Descriptor() ([]byte, []int) {
return file_temporal_server_api_chasm_v1_message_proto_rawDescGZIP(), []int{0}
}
func (x *VisibilityExecutionInfo) GetBusinessId() string {
if x != nil {
return x.BusinessId
}
return ""
}
func (x *VisibilityExecutionInfo) GetRunId() string {
if x != nil {
return x.RunId
}
return ""
}
func (x *VisibilityExecutionInfo) GetStartTime() *timestamppb.Timestamp {
if x != nil {
return x.StartTime
}
return nil
}
func (x *VisibilityExecutionInfo) GetCloseTime() *timestamppb.Timestamp {
if x != nil {
return x.CloseTime
}
return nil
}
func (x *VisibilityExecutionInfo) GetHistoryLength() int64 {
if x != nil {
return x.HistoryLength
}
return 0
}
func (x *VisibilityExecutionInfo) GetHistorySizeBytes() int64 {
if x != nil {
return x.HistorySizeBytes
}
return 0
}
func (x *VisibilityExecutionInfo) GetStateTransitionCount() int64 {
if x != nil {
return x.StateTransitionCount
}
return 0
}
func (x *VisibilityExecutionInfo) GetChasmSearchAttributes() *v1.SearchAttributes {
if x != nil {
return x.ChasmSearchAttributes
}
return nil
}
func (x *VisibilityExecutionInfo) GetCustomSearchAttributes() *v1.SearchAttributes {
if x != nil {
return x.CustomSearchAttributes
}
return nil
}
func (x *VisibilityExecutionInfo) GetMemo() *v1.Memo {
if x != nil {
return x.Memo
}
return nil
}
func (x *VisibilityExecutionInfo) GetChasmMemo() *v1.Payload {
if x != nil {
return x.ChasmMemo
}
return nil
}
var File_temporal_server_api_chasm_v1_message_proto protoreflect.FileDescriptor
const file_temporal_server_api_chasm_v1_message_proto_rawDesc = "" +
"\n" +
"*temporal/server/api/chasm/v1/message.proto\x12\x1ctemporal.server.api.chasm.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\"\x8a\x05\n" +
"\x17VisibilityExecutionInfo\x12\x1f\n" +
"\vbusiness_id\x18\x01 \x01(\tR\n" +
"businessId\x12\x15\n" +
"\x06run_id\x18\x02 \x01(\tR\x05runId\x129\n" +
"\n" +
"start_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tstartTime\x129\n" +
"\n" +
"close_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\tcloseTime\x12%\n" +
"\x0ehistory_length\x18\x05 \x01(\x03R\rhistoryLength\x12,\n" +
"\x12history_size_bytes\x18\x06 \x01(\x03R\x10historySizeBytes\x124\n" +
"\x16state_transition_count\x18\a \x01(\x03R\x14stateTransitionCount\x12`\n" +
"\x17chasm_search_attributes\x18\b \x01(\v2(.temporal.api.common.v1.SearchAttributesR\x15chasmSearchAttributes\x12b\n" +
"\x18custom_search_attributes\x18\t \x01(\v2(.temporal.api.common.v1.SearchAttributesR\x16customSearchAttributes\x120\n" +
"\x04memo\x18\n" +
" \x01(\v2\x1c.temporal.api.common.v1.MemoR\x04memo\x12>\n" +
"\n" +
"chasm_memo\x18\v \x01(\v2\x1f.temporal.api.common.v1.PayloadR\tchasmMemoB*Z(go.temporal.io/server/api/chasm/v1;chasmb\x06proto3"
var (
file_temporal_server_api_chasm_v1_message_proto_rawDescOnce sync.Once
file_temporal_server_api_chasm_v1_message_proto_rawDescData []byte
)
func file_temporal_server_api_chasm_v1_message_proto_rawDescGZIP() []byte {
file_temporal_server_api_chasm_v1_message_proto_rawDescOnce.Do(func() {
file_temporal_server_api_chasm_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_server_api_chasm_v1_message_proto_rawDesc), len(file_temporal_server_api_chasm_v1_message_proto_rawDesc)))
})
return file_temporal_server_api_chasm_v1_message_proto_rawDescData
}
var file_temporal_server_api_chasm_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_temporal_server_api_chasm_v1_message_proto_goTypes = []any{
(*VisibilityExecutionInfo)(nil), // 0: temporal.server.api.chasm.v1.VisibilityExecutionInfo
(*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
(*v1.SearchAttributes)(nil), // 2: temporal.api.common.v1.SearchAttributes
(*v1.Memo)(nil), // 3: temporal.api.common.v1.Memo
(*v1.Payload)(nil), // 4: temporal.api.common.v1.Payload
}
var file_temporal_server_api_chasm_v1_message_proto_depIdxs = []int32{
1, // 0: temporal.server.api.chasm.v1.VisibilityExecutionInfo.start_time:type_name -> google.protobuf.Timestamp
1, // 1: temporal.server.api.chasm.v1.VisibilityExecutionInfo.close_time:type_name -> google.protobuf.Timestamp
2, // 2: temporal.server.api.chasm.v1.VisibilityExecutionInfo.chasm_search_attributes:type_name -> temporal.api.common.v1.SearchAttributes
2, // 3: temporal.server.api.chasm.v1.VisibilityExecutionInfo.custom_search_attributes:type_name -> temporal.api.common.v1.SearchAttributes
3, // 4: temporal.server.api.chasm.v1.VisibilityExecutionInfo.memo:type_name -> temporal.api.common.v1.Memo
4, // 5: temporal.server.api.chasm.v1.VisibilityExecutionInfo.chasm_memo:type_name -> temporal.api.common.v1.Payload
6, // [6:6] is the sub-list for method output_type
6, // [6:6] is the sub-list for method input_type
6, // [6:6] is the sub-list for extension type_name
6, // [6:6] is the sub-list for extension extendee
0, // [0:6] is the sub-list for field type_name
}
func init() { file_temporal_server_api_chasm_v1_message_proto_init() }
func file_temporal_server_api_chasm_v1_message_proto_init() {
if File_temporal_server_api_chasm_v1_message_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_chasm_v1_message_proto_rawDesc), len(file_temporal_server_api_chasm_v1_message_proto_rawDesc)),
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_temporal_server_api_chasm_v1_message_proto_goTypes,
DependencyIndexes: file_temporal_server_api_chasm_v1_message_proto_depIdxs,
MessageInfos: file_temporal_server_api_chasm_v1_message_proto_msgTypes,
}.Build()
File_temporal_server_api_chasm_v1_message_proto = out.File
file_temporal_server_api_chasm_v1_message_proto_goTypes = nil
file_temporal_server_api_chasm_v1_message_proto_depIdxs = nil
}