go17/skills/protobuf/hello.pb.go

485 lines
16 KiB
Go
Raw Normal View History

2025-02-16 14:56:06 +08:00
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.5
// protoc v5.29.3
// source: skills/protobuf/hello.proto
package protobuf
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
2025-02-16 16:14:23 +08:00
anypb "google.golang.org/protobuf/types/known/anypb"
2025-02-16 14:56:06 +08:00
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)
)
2025-02-16 16:14:23 +08:00
type DESCRIBE_BY int32
const (
DESCRIBE_BY_ID DESCRIBE_BY = 0
DESCRIBE_BY_NAME DESCRIBE_BY = 1
)
// Enum value maps for DESCRIBE_BY.
var (
DESCRIBE_BY_name = map[int32]string{
0: "ID",
1: "NAME",
}
DESCRIBE_BY_value = map[string]int32{
"ID": 0,
"NAME": 1,
}
)
func (x DESCRIBE_BY) Enum() *DESCRIBE_BY {
p := new(DESCRIBE_BY)
*p = x
return p
}
func (x DESCRIBE_BY) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (DESCRIBE_BY) Descriptor() protoreflect.EnumDescriptor {
return file_skills_protobuf_hello_proto_enumTypes[0].Descriptor()
}
func (DESCRIBE_BY) Type() protoreflect.EnumType {
return &file_skills_protobuf_hello_proto_enumTypes[0]
}
func (x DESCRIBE_BY) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use DESCRIBE_BY.Descriptor instead.
func (DESCRIBE_BY) EnumDescriptor() ([]byte, []int) {
return file_skills_protobuf_hello_proto_rawDescGZIP(), []int{0}
}
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_hello_proto_enumTypes[1].Descriptor()
}
func (EVENT_TYPE) Type() protoreflect.EnumType {
return &file_skills_protobuf_hello_proto_enumTypes[1]
}
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_hello_proto_rawDescGZIP(), []int{1}
}
2025-02-16 14:56:06 +08:00
type HelloRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
MyName string `protobuf:"bytes,1,opt,name=my_name,json=myName,proto3" json:"my_name,omitempty"`
2025-02-16 16:14:23 +08:00
Age int64 `protobuf:"varint,2,opt,name=age,proto3" json:"age,omitempty"`
MagicNumber []int64 `protobuf:"varint,3,rep,packed,name=magic_number,json=magicNumber,proto3" json:"magic_number,omitempty"`
Extras map[string]string `protobuf:"bytes,4,rep,name=extras,proto3" json:"extras,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
2025-02-16 14:56:06 +08:00
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *HelloRequest) Reset() {
*x = HelloRequest{}
mi := &file_skills_protobuf_hello_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *HelloRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HelloRequest) ProtoMessage() {}
func (x *HelloRequest) ProtoReflect() protoreflect.Message {
mi := &file_skills_protobuf_hello_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 HelloRequest.ProtoReflect.Descriptor instead.
func (*HelloRequest) Descriptor() ([]byte, []int) {
return file_skills_protobuf_hello_proto_rawDescGZIP(), []int{0}
}
func (x *HelloRequest) GetMyName() string {
if x != nil {
return x.MyName
}
return ""
}
2025-02-16 16:14:23 +08:00
func (x *HelloRequest) GetAge() int64 {
if x != nil {
return x.Age
}
return 0
}
func (x *HelloRequest) GetMagicNumber() []int64 {
if x != nil {
return x.MagicNumber
}
return nil
}
func (x *HelloRequest) GetExtras() map[string]string {
if x != nil {
return x.Extras
}
return nil
}
2025-02-16 14:56:06 +08:00
type HelloResponse 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 *HelloResponse) Reset() {
*x = HelloResponse{}
mi := &file_skills_protobuf_hello_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *HelloResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HelloResponse) ProtoMessage() {}
func (x *HelloResponse) ProtoReflect() protoreflect.Message {
mi := &file_skills_protobuf_hello_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 HelloResponse.ProtoReflect.Descriptor instead.
func (*HelloResponse) Descriptor() ([]byte, []int) {
return file_skills_protobuf_hello_proto_rawDescGZIP(), []int{1}
}
func (x *HelloResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
2025-02-16 16:14:23 +08:00
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_hello_proto_msgTypes[2]
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_hello_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_ECS.ProtoReflect.Descriptor instead.
func (*EVENT_ECS) Descriptor() ([]byte, []int) {
return file_skills_protobuf_hello_proto_rawDescGZIP(), []int{2}
}
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_hello_proto_msgTypes[3]
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_hello_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 EVENT_RDS.ProtoReflect.Descriptor instead.
func (*EVENT_RDS) Descriptor() ([]byte, []int) {
return file_skills_protobuf_hello_proto_rawDescGZIP(), []int{3}
}
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_hello_proto_msgTypes[4]
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_hello_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 Event.ProtoReflect.Descriptor instead.
func (*Event) Descriptor() ([]byte, []int) {
return file_skills_protobuf_hello_proto_rawDescGZIP(), []int{4}
}
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
}
2025-02-16 14:56:06 +08:00
var File_skills_protobuf_hello_proto protoreflect.FileDescriptor
var file_skills_protobuf_hello_proto_rawDesc = string([]byte{
0x0a, 0x1b, 0x73, 0x6b, 0x69, 0x6c, 0x6c, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2f, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x68,
2025-02-16 16:14:23 +08:00
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,
0xd0, 0x01, 0x0a, 0x0c, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x17, 0x0a, 0x07, 0x6d, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x06, 0x6d, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x67, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x61, 0x67, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6d,
0x61, 0x67, 0x69, 0x63, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28,
0x03, 0x52, 0x0b, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x37,
0x0a, 0x06, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f,
0x2e, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x72, 0x61, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
0x06, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x45, 0x78, 0x74, 0x72, 0x61,
0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
0x38, 0x01, 0x22, 0x29, 0x0a, 0x0d, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 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, 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, 0x1f, 0x0a, 0x0b, 0x44, 0x45, 0x53, 0x43, 0x52, 0x49, 0x42, 0x45, 0x5f,
0x42, 0x59, 0x12, 0x06, 0x0a, 0x02, 0x49, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x41,
0x4d, 0x45, 0x10, 0x01, 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,
2025-02-16 14:56:06 +08:00
})
var (
file_skills_protobuf_hello_proto_rawDescOnce sync.Once
file_skills_protobuf_hello_proto_rawDescData []byte
)
func file_skills_protobuf_hello_proto_rawDescGZIP() []byte {
file_skills_protobuf_hello_proto_rawDescOnce.Do(func() {
file_skills_protobuf_hello_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_skills_protobuf_hello_proto_rawDesc), len(file_skills_protobuf_hello_proto_rawDesc)))
})
return file_skills_protobuf_hello_proto_rawDescData
}
2025-02-16 16:14:23 +08:00
var file_skills_protobuf_hello_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_skills_protobuf_hello_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
2025-02-16 14:56:06 +08:00
var file_skills_protobuf_hello_proto_goTypes = []any{
2025-02-16 16:14:23 +08:00
(DESCRIBE_BY)(0), // 0: hello.DESCRIBE_BY
(EVENT_TYPE)(0), // 1: hello.EVENT_TYPE
(*HelloRequest)(nil), // 2: hello.HelloRequest
(*HelloResponse)(nil), // 3: hello.HelloResponse
(*EVENT_ECS)(nil), // 4: hello.EVENT_ECS
(*EVENT_RDS)(nil), // 5: hello.EVENT_RDS
(*Event)(nil), // 6: hello.Event
nil, // 7: hello.HelloRequest.ExtrasEntry
(*anypb.Any)(nil), // 8: google.protobuf.Any
2025-02-16 14:56:06 +08:00
}
var file_skills_protobuf_hello_proto_depIdxs = []int32{
2025-02-16 16:14:23 +08:00
7, // 0: hello.HelloRequest.extras:type_name -> hello.HelloRequest.ExtrasEntry
1, // 1: hello.Event.type:type_name -> hello.EVENT_TYPE
8, // 2: hello.Event.detail:type_name -> google.protobuf.Any
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
2025-02-16 14:56:06 +08:00
}
func init() { file_skills_protobuf_hello_proto_init() }
func file_skills_protobuf_hello_proto_init() {
if File_skills_protobuf_hello_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_hello_proto_rawDesc), len(file_skills_protobuf_hello_proto_rawDesc)),
2025-02-16 16:14:23 +08:00
NumEnums: 2,
NumMessages: 6,
2025-02-16 14:56:06 +08:00
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_skills_protobuf_hello_proto_goTypes,
DependencyIndexes: file_skills_protobuf_hello_proto_depIdxs,
2025-02-16 16:14:23 +08:00
EnumInfos: file_skills_protobuf_hello_proto_enumTypes,
2025-02-16 14:56:06 +08:00
MessageInfos: file_skills_protobuf_hello_proto_msgTypes,
}.Build()
File_skills_protobuf_hello_proto = out.File
file_skills_protobuf_hello_proto_goTypes = nil
file_skills_protobuf_hello_proto_depIdxs = nil
}