Files
tasks/api/visibilityservice/v1/request_response.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

427 lines
16 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// plugins:
// protoc-gen-go
// protoc
// source: temporal/server/api/visibilityservice/v1/request_response.proto
package visibilityservice
import (
reflect "reflect"
sync "sync"
unsafe "unsafe"
v11 "go.temporal.io/api/common/v1"
v1 "go.temporal.io/server/api/chasm/v1"
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 ListChasmExecutionsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// (-- api-linter: core::0141::forbidden-types=disabled --)
ArchetypeId uint32 `protobuf:"varint,1,opt,name=archetype_id,json=archetypeId,proto3" json:"archetype_id,omitempty"`
NamespaceId string `protobuf:"bytes,2,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"`
Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
Query string `protobuf:"bytes,4,opt,name=query,proto3" json:"query,omitempty"`
// Maximum number of executions per page
PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Token to continue reading next page of executions.
// Pass in empty slice for first page.
NextPageToken []byte `protobuf:"bytes,6,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListChasmExecutionsRequest) Reset() {
*x = ListChasmExecutionsRequest{}
mi := &file_temporal_server_api_visibilityservice_v1_request_response_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListChasmExecutionsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListChasmExecutionsRequest) ProtoMessage() {}
func (x *ListChasmExecutionsRequest) ProtoReflect() protoreflect.Message {
mi := &file_temporal_server_api_visibilityservice_v1_request_response_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 ListChasmExecutionsRequest.ProtoReflect.Descriptor instead.
func (*ListChasmExecutionsRequest) Descriptor() ([]byte, []int) {
return file_temporal_server_api_visibilityservice_v1_request_response_proto_rawDescGZIP(), []int{0}
}
func (x *ListChasmExecutionsRequest) GetArchetypeId() uint32 {
if x != nil {
return x.ArchetypeId
}
return 0
}
func (x *ListChasmExecutionsRequest) GetNamespaceId() string {
if x != nil {
return x.NamespaceId
}
return ""
}
func (x *ListChasmExecutionsRequest) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
func (x *ListChasmExecutionsRequest) GetQuery() string {
if x != nil {
return x.Query
}
return ""
}
func (x *ListChasmExecutionsRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListChasmExecutionsRequest) GetNextPageToken() []byte {
if x != nil {
return x.NextPageToken
}
return nil
}
type ListChasmExecutionsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Executions []*v1.VisibilityExecutionInfo `protobuf:"bytes,1,rep,name=executions,proto3" json:"executions,omitempty"`
NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListChasmExecutionsResponse) Reset() {
*x = ListChasmExecutionsResponse{}
mi := &file_temporal_server_api_visibilityservice_v1_request_response_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListChasmExecutionsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListChasmExecutionsResponse) ProtoMessage() {}
func (x *ListChasmExecutionsResponse) ProtoReflect() protoreflect.Message {
mi := &file_temporal_server_api_visibilityservice_v1_request_response_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 ListChasmExecutionsResponse.ProtoReflect.Descriptor instead.
func (*ListChasmExecutionsResponse) Descriptor() ([]byte, []int) {
return file_temporal_server_api_visibilityservice_v1_request_response_proto_rawDescGZIP(), []int{1}
}
func (x *ListChasmExecutionsResponse) GetExecutions() []*v1.VisibilityExecutionInfo {
if x != nil {
return x.Executions
}
return nil
}
func (x *ListChasmExecutionsResponse) GetNextPageToken() []byte {
if x != nil {
return x.NextPageToken
}
return nil
}
type CountChasmExecutionsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// (-- api-linter: core::0141::forbidden-types=disabled --)
ArchetypeId uint32 `protobuf:"varint,1,opt,name=archetype_id,json=archetypeId,proto3" json:"archetype_id,omitempty"`
NamespaceId string `protobuf:"bytes,2,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"`
Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
Query string `protobuf:"bytes,4,opt,name=query,proto3" json:"query,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CountChasmExecutionsRequest) Reset() {
*x = CountChasmExecutionsRequest{}
mi := &file_temporal_server_api_visibilityservice_v1_request_response_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CountChasmExecutionsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CountChasmExecutionsRequest) ProtoMessage() {}
func (x *CountChasmExecutionsRequest) ProtoReflect() protoreflect.Message {
mi := &file_temporal_server_api_visibilityservice_v1_request_response_proto_msgTypes[2]
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 CountChasmExecutionsRequest.ProtoReflect.Descriptor instead.
func (*CountChasmExecutionsRequest) Descriptor() ([]byte, []int) {
return file_temporal_server_api_visibilityservice_v1_request_response_proto_rawDescGZIP(), []int{2}
}
func (x *CountChasmExecutionsRequest) GetArchetypeId() uint32 {
if x != nil {
return x.ArchetypeId
}
return 0
}
func (x *CountChasmExecutionsRequest) GetNamespaceId() string {
if x != nil {
return x.NamespaceId
}
return ""
}
func (x *CountChasmExecutionsRequest) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
func (x *CountChasmExecutionsRequest) GetQuery() string {
if x != nil {
return x.Query
}
return ""
}
type CountChasmExecutionsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
// `groups` contains the groups if the request is grouping by a field.
// The list might not be complete, and the counts of each group are approximations.
Groups []*CountChasmExecutionsResponse_AggregationGroup `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CountChasmExecutionsResponse) Reset() {
*x = CountChasmExecutionsResponse{}
mi := &file_temporal_server_api_visibilityservice_v1_request_response_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CountChasmExecutionsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CountChasmExecutionsResponse) ProtoMessage() {}
func (x *CountChasmExecutionsResponse) ProtoReflect() protoreflect.Message {
mi := &file_temporal_server_api_visibilityservice_v1_request_response_proto_msgTypes[3]
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 CountChasmExecutionsResponse.ProtoReflect.Descriptor instead.
func (*CountChasmExecutionsResponse) Descriptor() ([]byte, []int) {
return file_temporal_server_api_visibilityservice_v1_request_response_proto_rawDescGZIP(), []int{3}
}
func (x *CountChasmExecutionsResponse) GetCount() int64 {
if x != nil {
return x.Count
}
return 0
}
func (x *CountChasmExecutionsResponse) GetGroups() []*CountChasmExecutionsResponse_AggregationGroup {
if x != nil {
return x.Groups
}
return nil
}
type CountChasmExecutionsResponse_AggregationGroup struct {
state protoimpl.MessageState `protogen:"open.v1"`
GroupValues []*v11.Payload `protobuf:"bytes,1,rep,name=group_values,json=groupValues,proto3" json:"group_values,omitempty"`
Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CountChasmExecutionsResponse_AggregationGroup) Reset() {
*x = CountChasmExecutionsResponse_AggregationGroup{}
mi := &file_temporal_server_api_visibilityservice_v1_request_response_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CountChasmExecutionsResponse_AggregationGroup) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CountChasmExecutionsResponse_AggregationGroup) ProtoMessage() {}
func (x *CountChasmExecutionsResponse_AggregationGroup) ProtoReflect() protoreflect.Message {
mi := &file_temporal_server_api_visibilityservice_v1_request_response_proto_msgTypes[4]
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 CountChasmExecutionsResponse_AggregationGroup.ProtoReflect.Descriptor instead.
func (*CountChasmExecutionsResponse_AggregationGroup) Descriptor() ([]byte, []int) {
return file_temporal_server_api_visibilityservice_v1_request_response_proto_rawDescGZIP(), []int{3, 0}
}
func (x *CountChasmExecutionsResponse_AggregationGroup) GetGroupValues() []*v11.Payload {
if x != nil {
return x.GroupValues
}
return nil
}
func (x *CountChasmExecutionsResponse_AggregationGroup) GetCount() int64 {
if x != nil {
return x.Count
}
return 0
}
var File_temporal_server_api_visibilityservice_v1_request_response_proto protoreflect.FileDescriptor
const file_temporal_server_api_visibilityservice_v1_request_response_proto_rawDesc = "" +
"\n" +
"?temporal/server/api/visibilityservice/v1/request_response.proto\x12(temporal.server.api.visibilityservice.v1\x1a$temporal/api/common/v1/message.proto\x1a*temporal/server/api/chasm/v1/message.proto\"\xdb\x01\n" +
"\x1aListChasmExecutionsRequest\x12!\n" +
"\farchetype_id\x18\x01 \x01(\rR\varchetypeId\x12!\n" +
"\fnamespace_id\x18\x02 \x01(\tR\vnamespaceId\x12\x1c\n" +
"\tnamespace\x18\x03 \x01(\tR\tnamespace\x12\x14\n" +
"\x05query\x18\x04 \x01(\tR\x05query\x12\x1b\n" +
"\tpage_size\x18\x05 \x01(\x05R\bpageSize\x12&\n" +
"\x0fnext_page_token\x18\x06 \x01(\fR\rnextPageToken\"\x9c\x01\n" +
"\x1bListChasmExecutionsResponse\x12U\n" +
"\n" +
"executions\x18\x01 \x03(\v25.temporal.server.api.chasm.v1.VisibilityExecutionInfoR\n" +
"executions\x12&\n" +
"\x0fnext_page_token\x18\x02 \x01(\fR\rnextPageToken\"\x97\x01\n" +
"\x1bCountChasmExecutionsRequest\x12!\n" +
"\farchetype_id\x18\x01 \x01(\rR\varchetypeId\x12!\n" +
"\fnamespace_id\x18\x02 \x01(\tR\vnamespaceId\x12\x1c\n" +
"\tnamespace\x18\x03 \x01(\tR\tnamespace\x12\x14\n" +
"\x05query\x18\x04 \x01(\tR\x05query\"\x93\x02\n" +
"\x1cCountChasmExecutionsResponse\x12\x14\n" +
"\x05count\x18\x01 \x01(\x03R\x05count\x12o\n" +
"\x06groups\x18\x02 \x03(\v2W.temporal.server.api.visibilityservice.v1.CountChasmExecutionsResponse.AggregationGroupR\x06groups\x1al\n" +
"\x10AggregationGroup\x12B\n" +
"\fgroup_values\x18\x01 \x03(\v2\x1f.temporal.api.common.v1.PayloadR\vgroupValues\x12\x14\n" +
"\x05count\x18\x02 \x01(\x03R\[email protected]/server/api/visibilityservice/v1;visibilityserviceb\x06proto3"
var (
file_temporal_server_api_visibilityservice_v1_request_response_proto_rawDescOnce sync.Once
file_temporal_server_api_visibilityservice_v1_request_response_proto_rawDescData []byte
)
func file_temporal_server_api_visibilityservice_v1_request_response_proto_rawDescGZIP() []byte {
file_temporal_server_api_visibilityservice_v1_request_response_proto_rawDescOnce.Do(func() {
file_temporal_server_api_visibilityservice_v1_request_response_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_server_api_visibilityservice_v1_request_response_proto_rawDesc), len(file_temporal_server_api_visibilityservice_v1_request_response_proto_rawDesc)))
})
return file_temporal_server_api_visibilityservice_v1_request_response_proto_rawDescData
}
var file_temporal_server_api_visibilityservice_v1_request_response_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_temporal_server_api_visibilityservice_v1_request_response_proto_goTypes = []any{
(*ListChasmExecutionsRequest)(nil), // 0: temporal.server.api.visibilityservice.v1.ListChasmExecutionsRequest
(*ListChasmExecutionsResponse)(nil), // 1: temporal.server.api.visibilityservice.v1.ListChasmExecutionsResponse
(*CountChasmExecutionsRequest)(nil), // 2: temporal.server.api.visibilityservice.v1.CountChasmExecutionsRequest
(*CountChasmExecutionsResponse)(nil), // 3: temporal.server.api.visibilityservice.v1.CountChasmExecutionsResponse
(*CountChasmExecutionsResponse_AggregationGroup)(nil), // 4: temporal.server.api.visibilityservice.v1.CountChasmExecutionsResponse.AggregationGroup
(*v1.VisibilityExecutionInfo)(nil), // 5: temporal.server.api.chasm.v1.VisibilityExecutionInfo
(*v11.Payload)(nil), // 6: temporal.api.common.v1.Payload
}
var file_temporal_server_api_visibilityservice_v1_request_response_proto_depIdxs = []int32{
5, // 0: temporal.server.api.visibilityservice.v1.ListChasmExecutionsResponse.executions:type_name -> temporal.server.api.chasm.v1.VisibilityExecutionInfo
4, // 1: temporal.server.api.visibilityservice.v1.CountChasmExecutionsResponse.groups:type_name -> temporal.server.api.visibilityservice.v1.CountChasmExecutionsResponse.AggregationGroup
6, // 2: temporal.server.api.visibilityservice.v1.CountChasmExecutionsResponse.AggregationGroup.group_values:type_name -> temporal.api.common.v1.Payload
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_temporal_server_api_visibilityservice_v1_request_response_proto_init() }
func file_temporal_server_api_visibilityservice_v1_request_response_proto_init() {
if File_temporal_server_api_visibilityservice_v1_request_response_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_visibilityservice_v1_request_response_proto_rawDesc), len(file_temporal_server_api_visibilityservice_v1_request_response_proto_rawDesc)),
NumEnums: 0,
NumMessages: 5,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_temporal_server_api_visibilityservice_v1_request_response_proto_goTypes,
DependencyIndexes: file_temporal_server_api_visibilityservice_v1_request_response_proto_depIdxs,
MessageInfos: file_temporal_server_api_visibilityservice_v1_request_response_proto_msgTypes,
}.Build()
File_temporal_server_api_visibilityservice_v1_request_response_proto = out.File
file_temporal_server_api_visibilityservice_v1_request_response_proto_goTypes = nil
file_temporal_server_api_visibilityservice_v1_request_response_proto_depIdxs = nil
}