go17/skills/protobuf/event.pb.go
2025-02-16 16:42:14 +08:00

304 lines
9.7 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.5
// protoc v5.29.3
// source: skills/protobuf/event.proto
package protobuf
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
anypb "google.golang.org/protobuf/types/known/anypb"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
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 EVENT_TYPE int32
const (
EVENT_TYPE_ECS EVENT_TYPE = 0
EVENT_TYPE_RDS EVENT_TYPE = 1
)
// Enum value maps for EVENT_TYPE.
var (
EVENT_TYPE_name = map[int32]string{
0: "ECS",
1: "RDS",
}
EVENT_TYPE_value = map[string]int32{
"ECS": 0,
"RDS": 1,
}
)
func (x EVENT_TYPE) Enum() *EVENT_TYPE {
p := new(EVENT_TYPE)
*p = x
return p
}
func (x EVENT_TYPE) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (EVENT_TYPE) Descriptor() protoreflect.EnumDescriptor {
return file_skills_protobuf_event_proto_enumTypes[0].Descriptor()
}
func (EVENT_TYPE) Type() protoreflect.EnumType {
return &file_skills_protobuf_event_proto_enumTypes[0]
}
func (x EVENT_TYPE) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use EVENT_TYPE.Descriptor instead.
func (EVENT_TYPE) EnumDescriptor() ([]byte, []int) {
return file_skills_protobuf_event_proto_rawDescGZIP(), []int{0}
}
type EVENT_ECS struct {
state protoimpl.MessageState `protogen:"open.v1"`
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EVENT_ECS) Reset() {
*x = EVENT_ECS{}
mi := &file_skills_protobuf_event_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *EVENT_ECS) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EVENT_ECS) ProtoMessage() {}
func (x *EVENT_ECS) ProtoReflect() protoreflect.Message {
mi := &file_skills_protobuf_event_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 EVENT_ECS.ProtoReflect.Descriptor instead.
func (*EVENT_ECS) Descriptor() ([]byte, []int) {
return file_skills_protobuf_event_proto_rawDescGZIP(), []int{0}
}
func (x *EVENT_ECS) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
type EVENT_RDS struct {
state protoimpl.MessageState `protogen:"open.v1"`
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EVENT_RDS) Reset() {
*x = EVENT_RDS{}
mi := &file_skills_protobuf_event_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *EVENT_RDS) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EVENT_RDS) ProtoMessage() {}
func (x *EVENT_RDS) ProtoReflect() protoreflect.Message {
mi := &file_skills_protobuf_event_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 EVENT_RDS.ProtoReflect.Descriptor instead.
func (*EVENT_RDS) Descriptor() ([]byte, []int) {
return file_skills_protobuf_event_proto_rawDescGZIP(), []int{1}
}
func (x *EVENT_RDS) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
type Event struct {
state protoimpl.MessageState `protogen:"open.v1"`
// 事件类型(ECS/RDS/...)
// ECS
Type EVENT_TYPE `protobuf:"varint,1,opt,name=type,proto3,enum=hello.EVENT_TYPE" json:"type,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
Detail []*anypb.Any `protobuf:"bytes,3,rep,name=detail,proto3" json:"detail,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Event) Reset() {
*x = Event{}
mi := &file_skills_protobuf_event_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Event) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Event) ProtoMessage() {}
func (x *Event) ProtoReflect() protoreflect.Message {
mi := &file_skills_protobuf_event_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 Event.ProtoReflect.Descriptor instead.
func (*Event) Descriptor() ([]byte, []int) {
return file_skills_protobuf_event_proto_rawDescGZIP(), []int{2}
}
func (x *Event) GetType() EVENT_TYPE {
if x != nil {
return x.Type
}
return EVENT_TYPE_ECS
}
func (x *Event) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
func (x *Event) GetDetail() []*anypb.Any {
if x != nil {
return x.Detail
}
return nil
}
var File_skills_protobuf_event_proto protoreflect.FileDescriptor
var file_skills_protobuf_event_proto_rawDesc = string([]byte{
0x0a, 0x1b, 0x73, 0x6b, 0x69, 0x6c, 0x6c, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x68,
0x65, 0x6c, 0x6c, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
0x25, 0x0a, 0x09, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x45, 0x43, 0x53, 0x12, 0x18, 0x0a, 0x07,
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x25, 0x0a, 0x09, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f,
0x52, 0x44, 0x53, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x76, 0x0a,
0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x2e, 0x45, 0x56, 0x45,
0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a,
0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2c, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69,
0x6c, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x06, 0x64,
0x65, 0x74, 0x61, 0x69, 0x6c, 0x2a, 0x1e, 0x0a, 0x0a, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54,
0x59, 0x50, 0x45, 0x12, 0x07, 0x0a, 0x03, 0x45, 0x43, 0x53, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03,
0x52, 0x44, 0x53, 0x10, 0x01, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e,
0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x2d, 0x70, 0x72,
0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x67, 0x6f, 0x31, 0x37, 0x2f, 0x73, 0x6b, 0x69, 0x6c, 0x6c,
0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
})
var (
file_skills_protobuf_event_proto_rawDescOnce sync.Once
file_skills_protobuf_event_proto_rawDescData []byte
)
func file_skills_protobuf_event_proto_rawDescGZIP() []byte {
file_skills_protobuf_event_proto_rawDescOnce.Do(func() {
file_skills_protobuf_event_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_skills_protobuf_event_proto_rawDesc), len(file_skills_protobuf_event_proto_rawDesc)))
})
return file_skills_protobuf_event_proto_rawDescData
}
var file_skills_protobuf_event_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_skills_protobuf_event_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_skills_protobuf_event_proto_goTypes = []any{
(EVENT_TYPE)(0), // 0: hello.EVENT_TYPE
(*EVENT_ECS)(nil), // 1: hello.EVENT_ECS
(*EVENT_RDS)(nil), // 2: hello.EVENT_RDS
(*Event)(nil), // 3: hello.Event
(*anypb.Any)(nil), // 4: google.protobuf.Any
}
var file_skills_protobuf_event_proto_depIdxs = []int32{
0, // 0: hello.Event.type:type_name -> hello.EVENT_TYPE
4, // 1: hello.Event.detail:type_name -> google.protobuf.Any
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_skills_protobuf_event_proto_init() }
func file_skills_protobuf_event_proto_init() {
if File_skills_protobuf_event_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_skills_protobuf_event_proto_rawDesc), len(file_skills_protobuf_event_proto_rawDesc)),
NumEnums: 1,
NumMessages: 3,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_skills_protobuf_event_proto_goTypes,
DependencyIndexes: file_skills_protobuf_event_proto_depIdxs,
EnumInfos: file_skills_protobuf_event_proto_enumTypes,
MessageInfos: file_skills_protobuf_event_proto_msgTypes,
}.Build()
File_skills_protobuf_event_proto = out.File
file_skills_protobuf_event_proto_goTypes = nil
file_skills_protobuf_event_proto_depIdxs = nil
}