// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.34.1 // protoc v4.25.2 // source: internal.proto package internal import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) 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 MsgId int32 const ( MsgId_Unknown MsgId = 0 MsgId_Internal MsgId = -1 // 玩家申请进入房间 ) // Enum value maps for MsgId. var ( MsgId_name = map[int32]string{ 0: "Unknown", -1: "Internal", } MsgId_value = map[string]int32{ "Unknown": 0, "Internal": -1, } ) func (x MsgId) Enum() *MsgId { p := new(MsgId) *p = x return p } func (x MsgId) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (MsgId) Descriptor() protoreflect.EnumDescriptor { return file_internal_proto_enumTypes[0].Descriptor() } func (MsgId) Type() protoreflect.EnumType { return &file_internal_proto_enumTypes[0] } func (x MsgId) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use MsgId.Descriptor instead. func (MsgId) EnumDescriptor() ([]byte, []int) { return file_internal_proto_rawDescGZIP(), []int{0} } type InternalMsg struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 玩家id MsgId int32 `protobuf:"varint,2,opt,name=msg_id,json=msgId,proto3" json:"msg_id,omitempty"` // 消息id Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` // 消息 } func (x *InternalMsg) Reset() { *x = InternalMsg{} if protoimpl.UnsafeEnabled { mi := &file_internal_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *InternalMsg) String() string { return protoimpl.X.MessageStringOf(x) } func (*InternalMsg) ProtoMessage() {} func (x *InternalMsg) ProtoReflect() protoreflect.Message { mi := &file_internal_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use InternalMsg.ProtoReflect.Descriptor instead. func (*InternalMsg) Descriptor() ([]byte, []int) { return file_internal_proto_rawDescGZIP(), []int{0} } func (x *InternalMsg) GetUserId() int64 { if x != nil { return x.UserId } return 0 } func (x *InternalMsg) GetMsgId() int32 { if x != nil { return x.MsgId } return 0 } func (x *InternalMsg) GetMsg() []byte { if x != nil { return x.Msg } return nil } // 网关解包客户端消息 type C2SMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields ServiceType int32 `protobuf:"varint,1,opt,name=service_type,json=serviceType,proto3" json:"service_type,omitempty"` // 服务类型,通过该值判断发往lobby,game,chat等内部服务 MsgId int32 `protobuf:"varint,2,opt,name=msg_id,json=msgId,proto3" json:"msg_id,omitempty"` // 消息id UserId int64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 玩家id Msg []byte `protobuf:"bytes,4,opt,name=msg,proto3" json:"msg,omitempty"` // 消息 } func (x *C2SMessage) Reset() { *x = C2SMessage{} if protoimpl.UnsafeEnabled { mi := &file_internal_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *C2SMessage) String() string { return protoimpl.X.MessageStringOf(x) } func (*C2SMessage) ProtoMessage() {} func (x *C2SMessage) ProtoReflect() protoreflect.Message { mi := &file_internal_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use C2SMessage.ProtoReflect.Descriptor instead. func (*C2SMessage) Descriptor() ([]byte, []int) { return file_internal_proto_rawDescGZIP(), []int{1} } func (x *C2SMessage) GetServiceType() int32 { if x != nil { return x.ServiceType } return 0 } func (x *C2SMessage) GetMsgId() int32 { if x != nil { return x.MsgId } return 0 } func (x *C2SMessage) GetUserId() int64 { if x != nil { return x.UserId } return 0 } func (x *C2SMessage) GetMsg() []byte { if x != nil { return x.Msg } return nil } var File_internal_proto protoreflect.FileDescriptor var file_internal_proto_rawDesc = []byte{ 0x0a, 0x0e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x22, 0x4f, 0x0a, 0x0b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x6d, 0x73, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6d, 0x73, 0x67, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x71, 0x0a, 0x0a, 0x43, 0x32, 0x53, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x6d, 0x73, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6d, 0x73, 0x67, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x2a, 0x2b, 0x0a, 0x05, 0x4d, 0x73, 0x67, 0x49, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x08, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x10, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x42, 0x17, 0x5a, 0x15, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_internal_proto_rawDescOnce sync.Once file_internal_proto_rawDescData = file_internal_proto_rawDesc ) func file_internal_proto_rawDescGZIP() []byte { file_internal_proto_rawDescOnce.Do(func() { file_internal_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_proto_rawDescData) }) return file_internal_proto_rawDescData } var file_internal_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_internal_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_internal_proto_goTypes = []interface{}{ (MsgId)(0), // 0: internal.MsgId (*InternalMsg)(nil), // 1: internal.InternalMsg (*C2SMessage)(nil), // 2: internal.C2SMessage } var file_internal_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_internal_proto_init() } func file_internal_proto_init() { if File_internal_proto != nil { return } if !protoimpl.UnsafeEnabled { file_internal_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*InternalMsg); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_internal_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*C2SMessage); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_internal_proto_rawDesc, NumEnums: 1, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, GoTypes: file_internal_proto_goTypes, DependencyIndexes: file_internal_proto_depIdxs, EnumInfos: file_internal_proto_enumTypes, MessageInfos: file_internal_proto_msgTypes, }.Build() File_internal_proto = out.File file_internal_proto_rawDesc = nil file_internal_proto_goTypes = nil file_internal_proto_depIdxs = nil }