123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.27.1
- // protoc v3.3.0
- // source: pb/chat.proto
- package Chat
- 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 ChatChannel int32
- const (
- // 系统频道
- ChatChannel_System ChatChannel = 0
- // 世界频道
- ChatChannel_World ChatChannel = 1
- // 公会频道
- ChatChannel_Guild ChatChannel = 2
- // 密语(单独发送给某人)
- ChatChannel_Single ChatChannel = 3
- )
- // Enum value maps for ChatChannel.
- var (
- ChatChannel_name = map[int32]string{
- 0: "System",
- 1: "World",
- 2: "Guild",
- 3: "Single",
- }
- ChatChannel_value = map[string]int32{
- "System": 0,
- "World": 1,
- "Guild": 2,
- "Single": 3,
- }
- )
- func (x ChatChannel) Enum() *ChatChannel {
- p := new(ChatChannel)
- *p = x
- return p
- }
- func (x ChatChannel) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (ChatChannel) Descriptor() protoreflect.EnumDescriptor {
- return file_pb_chat_proto_enumTypes[0].Descriptor()
- }
- func (ChatChannel) Type() protoreflect.EnumType {
- return &file_pb_chat_proto_enumTypes[0]
- }
- func (x ChatChannel) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use ChatChannel.Descriptor instead.
- func (ChatChannel) EnumDescriptor() ([]byte, []int) {
- return file_pb_chat_proto_rawDescGZIP(), []int{0}
- }
- // 错误码
- type SC_ChatLogin_ErrorCode int32
- const (
- // 成功
- SC_ChatLogin_OK SC_ChatLogin_ErrorCode = 0
- // 未知的UID
- SC_ChatLogin_AccIDInvalid SC_ChatLogin_ErrorCode = 1
- // 重复登入
- SC_ChatLogin_LoginRepeat SC_ChatLogin_ErrorCode = 2
- // 内部错误
- SC_ChatLogin_InnerError SC_ChatLogin_ErrorCode = 3
- )
- // Enum value maps for SC_ChatLogin_ErrorCode.
- var (
- SC_ChatLogin_ErrorCode_name = map[int32]string{
- 0: "OK",
- 1: "AccIDInvalid",
- 2: "LoginRepeat",
- 3: "InnerError",
- }
- SC_ChatLogin_ErrorCode_value = map[string]int32{
- "OK": 0,
- "AccIDInvalid": 1,
- "LoginRepeat": 2,
- "InnerError": 3,
- }
- )
- func (x SC_ChatLogin_ErrorCode) Enum() *SC_ChatLogin_ErrorCode {
- p := new(SC_ChatLogin_ErrorCode)
- *p = x
- return p
- }
- func (x SC_ChatLogin_ErrorCode) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (SC_ChatLogin_ErrorCode) Descriptor() protoreflect.EnumDescriptor {
- return file_pb_chat_proto_enumTypes[1].Descriptor()
- }
- func (SC_ChatLogin_ErrorCode) Type() protoreflect.EnumType {
- return &file_pb_chat_proto_enumTypes[1]
- }
- func (x SC_ChatLogin_ErrorCode) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use SC_ChatLogin_ErrorCode.Descriptor instead.
- func (SC_ChatLogin_ErrorCode) EnumDescriptor() ([]byte, []int) {
- return file_pb_chat_proto_rawDescGZIP(), []int{2, 0}
- }
- // 聊天, 登录
- type CS_ChatLogin struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Zoneid int32 `protobuf:"varint,1,opt,name=Zoneid,proto3" json:"Zoneid,omitempty"`
- Uid string `protobuf:"bytes,2,opt,name=Uid,proto3" json:"Uid,omitempty"`
- Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"`
- }
- func (x *CS_ChatLogin) Reset() {
- *x = CS_ChatLogin{}
- if protoimpl.UnsafeEnabled {
- mi := &file_pb_chat_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CS_ChatLogin) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CS_ChatLogin) ProtoMessage() {}
- func (x *CS_ChatLogin) ProtoReflect() protoreflect.Message {
- mi := &file_pb_chat_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 CS_ChatLogin.ProtoReflect.Descriptor instead.
- func (*CS_ChatLogin) Descriptor() ([]byte, []int) {
- return file_pb_chat_proto_rawDescGZIP(), []int{0}
- }
- func (x *CS_ChatLogin) GetZoneid() int32 {
- if x != nil {
- return x.Zoneid
- }
- return 0
- }
- func (x *CS_ChatLogin) GetUid() string {
- if x != nil {
- return x.Uid
- }
- return ""
- }
- func (x *CS_ChatLogin) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- // 聊天, 发送消息
- type CS_ChatSendMsg struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- ToChannel ChatChannel `protobuf:"varint,1,opt,name=ToChannel,proto3,enum=Chat.ChatChannel" json:"ToChannel,omitempty"`
- Msg string `protobuf:"bytes,2,opt,name=Msg,proto3" json:"Msg,omitempty"`
- ToNickName string `protobuf:"bytes,3,opt,name=ToNickName,proto3" json:"ToNickName,omitempty"`
- }
- func (x *CS_ChatSendMsg) Reset() {
- *x = CS_ChatSendMsg{}
- if protoimpl.UnsafeEnabled {
- mi := &file_pb_chat_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CS_ChatSendMsg) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CS_ChatSendMsg) ProtoMessage() {}
- func (x *CS_ChatSendMsg) ProtoReflect() protoreflect.Message {
- mi := &file_pb_chat_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 CS_ChatSendMsg.ProtoReflect.Descriptor instead.
- func (*CS_ChatSendMsg) Descriptor() ([]byte, []int) {
- return file_pb_chat_proto_rawDescGZIP(), []int{1}
- }
- func (x *CS_ChatSendMsg) GetToChannel() ChatChannel {
- if x != nil {
- return x.ToChannel
- }
- return ChatChannel_System
- }
- func (x *CS_ChatSendMsg) GetMsg() string {
- if x != nil {
- return x.Msg
- }
- return ""
- }
- func (x *CS_ChatSendMsg) GetToNickName() string {
- if x != nil {
- return x.ToNickName
- }
- return ""
- }
- // 聊天, 初始化返回值
- type SC_ChatLogin struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- // 错误码
- Code SC_ChatLogin_ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=Chat.SC_ChatLogin_ErrorCode" json:"code,omitempty"`
- }
- func (x *SC_ChatLogin) Reset() {
- *x = SC_ChatLogin{}
- if protoimpl.UnsafeEnabled {
- mi := &file_pb_chat_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *SC_ChatLogin) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*SC_ChatLogin) ProtoMessage() {}
- func (x *SC_ChatLogin) ProtoReflect() protoreflect.Message {
- mi := &file_pb_chat_proto_msgTypes[2]
- 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 SC_ChatLogin.ProtoReflect.Descriptor instead.
- func (*SC_ChatLogin) Descriptor() ([]byte, []int) {
- return file_pb_chat_proto_rawDescGZIP(), []int{2}
- }
- func (x *SC_ChatLogin) GetCode() SC_ChatLogin_ErrorCode {
- if x != nil {
- return x.Code
- }
- return SC_ChatLogin_OK
- }
- // 聊天, 新的消息
- type SC_ChatNewMsg struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- FromChannel ChatChannel `protobuf:"varint,1,opt,name=FromChannel,proto3,enum=Chat.ChatChannel" json:"FromChannel,omitempty"`
- Msg string `protobuf:"bytes,2,opt,name=Msg,proto3" json:"Msg,omitempty"`
- SenderName string `protobuf:"bytes,3,opt,name=SenderName,proto3" json:"SenderName,omitempty"`
- SenderUid string `protobuf:"bytes,4,opt,name=SenderUid,proto3" json:"SenderUid,omitempty"`
- }
- func (x *SC_ChatNewMsg) Reset() {
- *x = SC_ChatNewMsg{}
- if protoimpl.UnsafeEnabled {
- mi := &file_pb_chat_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *SC_ChatNewMsg) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*SC_ChatNewMsg) ProtoMessage() {}
- func (x *SC_ChatNewMsg) ProtoReflect() protoreflect.Message {
- mi := &file_pb_chat_proto_msgTypes[3]
- 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 SC_ChatNewMsg.ProtoReflect.Descriptor instead.
- func (*SC_ChatNewMsg) Descriptor() ([]byte, []int) {
- return file_pb_chat_proto_rawDescGZIP(), []int{3}
- }
- func (x *SC_ChatNewMsg) GetFromChannel() ChatChannel {
- if x != nil {
- return x.FromChannel
- }
- return ChatChannel_System
- }
- func (x *SC_ChatNewMsg) GetMsg() string {
- if x != nil {
- return x.Msg
- }
- return ""
- }
- func (x *SC_ChatNewMsg) GetSenderName() string {
- if x != nil {
- return x.SenderName
- }
- return ""
- }
- func (x *SC_ChatNewMsg) GetSenderUid() string {
- if x != nil {
- return x.SenderUid
- }
- return ""
- }
- var File_pb_chat_proto protoreflect.FileDescriptor
- var file_pb_chat_proto_rawDesc = []byte{
- 0x0a, 0x0d, 0x70, 0x62, 0x2f, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
- 0x04, 0x43, 0x68, 0x61, 0x74, 0x22, 0x4c, 0x0a, 0x0c, 0x43, 0x53, 0x5f, 0x43, 0x68, 0x61, 0x74,
- 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x5a, 0x6f, 0x6e, 0x65, 0x69, 0x64, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x5a, 0x6f, 0x6e, 0x65, 0x69, 0x64, 0x12, 0x10, 0x0a,
- 0x03, 0x55, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x55, 0x69, 0x64, 0x12,
- 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x4e,
- 0x61, 0x6d, 0x65, 0x22, 0x73, 0x0a, 0x0e, 0x43, 0x53, 0x5f, 0x43, 0x68, 0x61, 0x74, 0x53, 0x65,
- 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x12, 0x2f, 0x0a, 0x09, 0x54, 0x6f, 0x43, 0x68, 0x61, 0x6e, 0x6e,
- 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x43, 0x68, 0x61, 0x74, 0x2e,
- 0x43, 0x68, 0x61, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x09, 0x54, 0x6f, 0x43,
- 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x1e, 0x0a, 0x0a, 0x54, 0x6f, 0x4e, 0x69,
- 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x54, 0x6f,
- 0x4e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x88, 0x01, 0x0a, 0x0c, 0x53, 0x43, 0x5f,
- 0x43, 0x68, 0x61, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x30, 0x0a, 0x04, 0x63, 0x6f, 0x64,
- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x43, 0x68, 0x61, 0x74, 0x2e, 0x53,
- 0x43, 0x5f, 0x43, 0x68, 0x61, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x2e, 0x45, 0x72, 0x72, 0x6f,
- 0x72, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x46, 0x0a, 0x09, 0x45,
- 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b, 0x10, 0x00,
- 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x63, 0x63, 0x49, 0x44, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64,
- 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x70, 0x65, 0x61,
- 0x74, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f,
- 0x72, 0x10, 0x03, 0x22, 0x94, 0x01, 0x0a, 0x0d, 0x53, 0x43, 0x5f, 0x43, 0x68, 0x61, 0x74, 0x4e,
- 0x65, 0x77, 0x4d, 0x73, 0x67, 0x12, 0x33, 0x0a, 0x0b, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x68, 0x61,
- 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x43, 0x68, 0x61,
- 0x74, 0x2e, 0x43, 0x68, 0x61, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x0b, 0x46,
- 0x72, 0x6f, 0x6d, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73,
- 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x1e, 0x0a, 0x0a,
- 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x0a, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09,
- 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x55, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x09, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x55, 0x69, 0x64, 0x2a, 0x3b, 0x0a, 0x0b, 0x43, 0x68,
- 0x61, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x79, 0x73,
- 0x74, 0x65, 0x6d, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x10, 0x01,
- 0x12, 0x09, 0x0a, 0x05, 0x47, 0x75, 0x69, 0x6c, 0x64, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x53,
- 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x10, 0x03, 0x42, 0x09, 0x5a, 0x07, 0x70, 0x62, 0x2f, 0x43, 0x68,
- 0x61, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
- }
- var (
- file_pb_chat_proto_rawDescOnce sync.Once
- file_pb_chat_proto_rawDescData = file_pb_chat_proto_rawDesc
- )
- func file_pb_chat_proto_rawDescGZIP() []byte {
- file_pb_chat_proto_rawDescOnce.Do(func() {
- file_pb_chat_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_chat_proto_rawDescData)
- })
- return file_pb_chat_proto_rawDescData
- }
- var file_pb_chat_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
- var file_pb_chat_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
- var file_pb_chat_proto_goTypes = []interface{}{
- (ChatChannel)(0), // 0: Chat.ChatChannel
- (SC_ChatLogin_ErrorCode)(0), // 1: Chat.SC_ChatLogin.ErrorCode
- (*CS_ChatLogin)(nil), // 2: Chat.CS_ChatLogin
- (*CS_ChatSendMsg)(nil), // 3: Chat.CS_ChatSendMsg
- (*SC_ChatLogin)(nil), // 4: Chat.SC_ChatLogin
- (*SC_ChatNewMsg)(nil), // 5: Chat.SC_ChatNewMsg
- }
- var file_pb_chat_proto_depIdxs = []int32{
- 0, // 0: Chat.CS_ChatSendMsg.ToChannel:type_name -> Chat.ChatChannel
- 1, // 1: Chat.SC_ChatLogin.code:type_name -> Chat.SC_ChatLogin.ErrorCode
- 0, // 2: Chat.SC_ChatNewMsg.FromChannel:type_name -> Chat.ChatChannel
- 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_pb_chat_proto_init() }
- func file_pb_chat_proto_init() {
- if File_pb_chat_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_pb_chat_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CS_ChatLogin); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_pb_chat_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CS_ChatSendMsg); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_pb_chat_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*SC_ChatLogin); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_pb_chat_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*SC_ChatNewMsg); 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_pb_chat_proto_rawDesc,
- NumEnums: 2,
- NumMessages: 4,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_pb_chat_proto_goTypes,
- DependencyIndexes: file_pb_chat_proto_depIdxs,
- EnumInfos: file_pb_chat_proto_enumTypes,
- MessageInfos: file_pb_chat_proto_msgTypes,
- }.Build()
- File_pb_chat_proto = out.File
- file_pb_chat_proto_rawDesc = nil
- file_pb_chat_proto_goTypes = nil
- file_pb_chat_proto_depIdxs = nil
- }
|