chat.pb.go 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.27.1
  4. // protoc v3.3.0
  5. // source: pb/chat.proto
  6. package Chat
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. // 频道
  20. type ChatChannel int32
  21. const (
  22. // 系统频道
  23. ChatChannel_System ChatChannel = 0
  24. // 世界频道
  25. ChatChannel_World ChatChannel = 1
  26. // 公会频道
  27. ChatChannel_Guild ChatChannel = 2
  28. // 密语(单独发送给某人)
  29. ChatChannel_Single ChatChannel = 3
  30. )
  31. // Enum value maps for ChatChannel.
  32. var (
  33. ChatChannel_name = map[int32]string{
  34. 0: "System",
  35. 1: "World",
  36. 2: "Guild",
  37. 3: "Single",
  38. }
  39. ChatChannel_value = map[string]int32{
  40. "System": 0,
  41. "World": 1,
  42. "Guild": 2,
  43. "Single": 3,
  44. }
  45. )
  46. func (x ChatChannel) Enum() *ChatChannel {
  47. p := new(ChatChannel)
  48. *p = x
  49. return p
  50. }
  51. func (x ChatChannel) String() string {
  52. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  53. }
  54. func (ChatChannel) Descriptor() protoreflect.EnumDescriptor {
  55. return file_pb_chat_proto_enumTypes[0].Descriptor()
  56. }
  57. func (ChatChannel) Type() protoreflect.EnumType {
  58. return &file_pb_chat_proto_enumTypes[0]
  59. }
  60. func (x ChatChannel) Number() protoreflect.EnumNumber {
  61. return protoreflect.EnumNumber(x)
  62. }
  63. // Deprecated: Use ChatChannel.Descriptor instead.
  64. func (ChatChannel) EnumDescriptor() ([]byte, []int) {
  65. return file_pb_chat_proto_rawDescGZIP(), []int{0}
  66. }
  67. // 错误码
  68. type SC_ChatLogin_ErrorCode int32
  69. const (
  70. // 成功
  71. SC_ChatLogin_OK SC_ChatLogin_ErrorCode = 0
  72. // 未知的UID
  73. SC_ChatLogin_AccIDInvalid SC_ChatLogin_ErrorCode = 1
  74. // 重复登入
  75. SC_ChatLogin_LoginRepeat SC_ChatLogin_ErrorCode = 2
  76. // 内部错误
  77. SC_ChatLogin_InnerError SC_ChatLogin_ErrorCode = 3
  78. )
  79. // Enum value maps for SC_ChatLogin_ErrorCode.
  80. var (
  81. SC_ChatLogin_ErrorCode_name = map[int32]string{
  82. 0: "OK",
  83. 1: "AccIDInvalid",
  84. 2: "LoginRepeat",
  85. 3: "InnerError",
  86. }
  87. SC_ChatLogin_ErrorCode_value = map[string]int32{
  88. "OK": 0,
  89. "AccIDInvalid": 1,
  90. "LoginRepeat": 2,
  91. "InnerError": 3,
  92. }
  93. )
  94. func (x SC_ChatLogin_ErrorCode) Enum() *SC_ChatLogin_ErrorCode {
  95. p := new(SC_ChatLogin_ErrorCode)
  96. *p = x
  97. return p
  98. }
  99. func (x SC_ChatLogin_ErrorCode) String() string {
  100. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  101. }
  102. func (SC_ChatLogin_ErrorCode) Descriptor() protoreflect.EnumDescriptor {
  103. return file_pb_chat_proto_enumTypes[1].Descriptor()
  104. }
  105. func (SC_ChatLogin_ErrorCode) Type() protoreflect.EnumType {
  106. return &file_pb_chat_proto_enumTypes[1]
  107. }
  108. func (x SC_ChatLogin_ErrorCode) Number() protoreflect.EnumNumber {
  109. return protoreflect.EnumNumber(x)
  110. }
  111. // Deprecated: Use SC_ChatLogin_ErrorCode.Descriptor instead.
  112. func (SC_ChatLogin_ErrorCode) EnumDescriptor() ([]byte, []int) {
  113. return file_pb_chat_proto_rawDescGZIP(), []int{2, 0}
  114. }
  115. // 聊天, 登录
  116. type CS_ChatLogin struct {
  117. state protoimpl.MessageState
  118. sizeCache protoimpl.SizeCache
  119. unknownFields protoimpl.UnknownFields
  120. Zoneid int32 `protobuf:"varint,1,opt,name=Zoneid,proto3" json:"Zoneid,omitempty"`
  121. Uid string `protobuf:"bytes,2,opt,name=Uid,proto3" json:"Uid,omitempty"`
  122. Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"`
  123. }
  124. func (x *CS_ChatLogin) Reset() {
  125. *x = CS_ChatLogin{}
  126. if protoimpl.UnsafeEnabled {
  127. mi := &file_pb_chat_proto_msgTypes[0]
  128. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  129. ms.StoreMessageInfo(mi)
  130. }
  131. }
  132. func (x *CS_ChatLogin) String() string {
  133. return protoimpl.X.MessageStringOf(x)
  134. }
  135. func (*CS_ChatLogin) ProtoMessage() {}
  136. func (x *CS_ChatLogin) ProtoReflect() protoreflect.Message {
  137. mi := &file_pb_chat_proto_msgTypes[0]
  138. if protoimpl.UnsafeEnabled && x != nil {
  139. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  140. if ms.LoadMessageInfo() == nil {
  141. ms.StoreMessageInfo(mi)
  142. }
  143. return ms
  144. }
  145. return mi.MessageOf(x)
  146. }
  147. // Deprecated: Use CS_ChatLogin.ProtoReflect.Descriptor instead.
  148. func (*CS_ChatLogin) Descriptor() ([]byte, []int) {
  149. return file_pb_chat_proto_rawDescGZIP(), []int{0}
  150. }
  151. func (x *CS_ChatLogin) GetZoneid() int32 {
  152. if x != nil {
  153. return x.Zoneid
  154. }
  155. return 0
  156. }
  157. func (x *CS_ChatLogin) GetUid() string {
  158. if x != nil {
  159. return x.Uid
  160. }
  161. return ""
  162. }
  163. func (x *CS_ChatLogin) GetName() string {
  164. if x != nil {
  165. return x.Name
  166. }
  167. return ""
  168. }
  169. // 聊天, 发送消息
  170. type CS_ChatSendMsg struct {
  171. state protoimpl.MessageState
  172. sizeCache protoimpl.SizeCache
  173. unknownFields protoimpl.UnknownFields
  174. ToChannel ChatChannel `protobuf:"varint,1,opt,name=ToChannel,proto3,enum=Chat.ChatChannel" json:"ToChannel,omitempty"`
  175. Msg string `protobuf:"bytes,2,opt,name=Msg,proto3" json:"Msg,omitempty"`
  176. ToNickName string `protobuf:"bytes,3,opt,name=ToNickName,proto3" json:"ToNickName,omitempty"`
  177. }
  178. func (x *CS_ChatSendMsg) Reset() {
  179. *x = CS_ChatSendMsg{}
  180. if protoimpl.UnsafeEnabled {
  181. mi := &file_pb_chat_proto_msgTypes[1]
  182. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  183. ms.StoreMessageInfo(mi)
  184. }
  185. }
  186. func (x *CS_ChatSendMsg) String() string {
  187. return protoimpl.X.MessageStringOf(x)
  188. }
  189. func (*CS_ChatSendMsg) ProtoMessage() {}
  190. func (x *CS_ChatSendMsg) ProtoReflect() protoreflect.Message {
  191. mi := &file_pb_chat_proto_msgTypes[1]
  192. if protoimpl.UnsafeEnabled && x != nil {
  193. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  194. if ms.LoadMessageInfo() == nil {
  195. ms.StoreMessageInfo(mi)
  196. }
  197. return ms
  198. }
  199. return mi.MessageOf(x)
  200. }
  201. // Deprecated: Use CS_ChatSendMsg.ProtoReflect.Descriptor instead.
  202. func (*CS_ChatSendMsg) Descriptor() ([]byte, []int) {
  203. return file_pb_chat_proto_rawDescGZIP(), []int{1}
  204. }
  205. func (x *CS_ChatSendMsg) GetToChannel() ChatChannel {
  206. if x != nil {
  207. return x.ToChannel
  208. }
  209. return ChatChannel_System
  210. }
  211. func (x *CS_ChatSendMsg) GetMsg() string {
  212. if x != nil {
  213. return x.Msg
  214. }
  215. return ""
  216. }
  217. func (x *CS_ChatSendMsg) GetToNickName() string {
  218. if x != nil {
  219. return x.ToNickName
  220. }
  221. return ""
  222. }
  223. // 聊天, 初始化返回值
  224. type SC_ChatLogin struct {
  225. state protoimpl.MessageState
  226. sizeCache protoimpl.SizeCache
  227. unknownFields protoimpl.UnknownFields
  228. // 错误码
  229. Code SC_ChatLogin_ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=Chat.SC_ChatLogin_ErrorCode" json:"code,omitempty"`
  230. }
  231. func (x *SC_ChatLogin) Reset() {
  232. *x = SC_ChatLogin{}
  233. if protoimpl.UnsafeEnabled {
  234. mi := &file_pb_chat_proto_msgTypes[2]
  235. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  236. ms.StoreMessageInfo(mi)
  237. }
  238. }
  239. func (x *SC_ChatLogin) String() string {
  240. return protoimpl.X.MessageStringOf(x)
  241. }
  242. func (*SC_ChatLogin) ProtoMessage() {}
  243. func (x *SC_ChatLogin) ProtoReflect() protoreflect.Message {
  244. mi := &file_pb_chat_proto_msgTypes[2]
  245. if protoimpl.UnsafeEnabled && x != nil {
  246. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  247. if ms.LoadMessageInfo() == nil {
  248. ms.StoreMessageInfo(mi)
  249. }
  250. return ms
  251. }
  252. return mi.MessageOf(x)
  253. }
  254. // Deprecated: Use SC_ChatLogin.ProtoReflect.Descriptor instead.
  255. func (*SC_ChatLogin) Descriptor() ([]byte, []int) {
  256. return file_pb_chat_proto_rawDescGZIP(), []int{2}
  257. }
  258. func (x *SC_ChatLogin) GetCode() SC_ChatLogin_ErrorCode {
  259. if x != nil {
  260. return x.Code
  261. }
  262. return SC_ChatLogin_OK
  263. }
  264. // 聊天, 新的消息
  265. type SC_ChatNewMsg struct {
  266. state protoimpl.MessageState
  267. sizeCache protoimpl.SizeCache
  268. unknownFields protoimpl.UnknownFields
  269. FromChannel ChatChannel `protobuf:"varint,1,opt,name=FromChannel,proto3,enum=Chat.ChatChannel" json:"FromChannel,omitempty"`
  270. Msg string `protobuf:"bytes,2,opt,name=Msg,proto3" json:"Msg,omitempty"`
  271. SenderName string `protobuf:"bytes,3,opt,name=SenderName,proto3" json:"SenderName,omitempty"`
  272. SenderUid string `protobuf:"bytes,4,opt,name=SenderUid,proto3" json:"SenderUid,omitempty"`
  273. }
  274. func (x *SC_ChatNewMsg) Reset() {
  275. *x = SC_ChatNewMsg{}
  276. if protoimpl.UnsafeEnabled {
  277. mi := &file_pb_chat_proto_msgTypes[3]
  278. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  279. ms.StoreMessageInfo(mi)
  280. }
  281. }
  282. func (x *SC_ChatNewMsg) String() string {
  283. return protoimpl.X.MessageStringOf(x)
  284. }
  285. func (*SC_ChatNewMsg) ProtoMessage() {}
  286. func (x *SC_ChatNewMsg) ProtoReflect() protoreflect.Message {
  287. mi := &file_pb_chat_proto_msgTypes[3]
  288. if protoimpl.UnsafeEnabled && x != nil {
  289. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  290. if ms.LoadMessageInfo() == nil {
  291. ms.StoreMessageInfo(mi)
  292. }
  293. return ms
  294. }
  295. return mi.MessageOf(x)
  296. }
  297. // Deprecated: Use SC_ChatNewMsg.ProtoReflect.Descriptor instead.
  298. func (*SC_ChatNewMsg) Descriptor() ([]byte, []int) {
  299. return file_pb_chat_proto_rawDescGZIP(), []int{3}
  300. }
  301. func (x *SC_ChatNewMsg) GetFromChannel() ChatChannel {
  302. if x != nil {
  303. return x.FromChannel
  304. }
  305. return ChatChannel_System
  306. }
  307. func (x *SC_ChatNewMsg) GetMsg() string {
  308. if x != nil {
  309. return x.Msg
  310. }
  311. return ""
  312. }
  313. func (x *SC_ChatNewMsg) GetSenderName() string {
  314. if x != nil {
  315. return x.SenderName
  316. }
  317. return ""
  318. }
  319. func (x *SC_ChatNewMsg) GetSenderUid() string {
  320. if x != nil {
  321. return x.SenderUid
  322. }
  323. return ""
  324. }
  325. var File_pb_chat_proto protoreflect.FileDescriptor
  326. var file_pb_chat_proto_rawDesc = []byte{
  327. 0x0a, 0x0d, 0x70, 0x62, 0x2f, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  328. 0x04, 0x43, 0x68, 0x61, 0x74, 0x22, 0x4c, 0x0a, 0x0c, 0x43, 0x53, 0x5f, 0x43, 0x68, 0x61, 0x74,
  329. 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x5a, 0x6f, 0x6e, 0x65, 0x69, 0x64, 0x18,
  330. 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x5a, 0x6f, 0x6e, 0x65, 0x69, 0x64, 0x12, 0x10, 0x0a,
  331. 0x03, 0x55, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x55, 0x69, 0x64, 0x12,
  332. 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x4e,
  333. 0x61, 0x6d, 0x65, 0x22, 0x73, 0x0a, 0x0e, 0x43, 0x53, 0x5f, 0x43, 0x68, 0x61, 0x74, 0x53, 0x65,
  334. 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x12, 0x2f, 0x0a, 0x09, 0x54, 0x6f, 0x43, 0x68, 0x61, 0x6e, 0x6e,
  335. 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x43, 0x68, 0x61, 0x74, 0x2e,
  336. 0x43, 0x68, 0x61, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x09, 0x54, 0x6f, 0x43,
  337. 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x02, 0x20,
  338. 0x01, 0x28, 0x09, 0x52, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x1e, 0x0a, 0x0a, 0x54, 0x6f, 0x4e, 0x69,
  339. 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x54, 0x6f,
  340. 0x4e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x88, 0x01, 0x0a, 0x0c, 0x53, 0x43, 0x5f,
  341. 0x43, 0x68, 0x61, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x30, 0x0a, 0x04, 0x63, 0x6f, 0x64,
  342. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x43, 0x68, 0x61, 0x74, 0x2e, 0x53,
  343. 0x43, 0x5f, 0x43, 0x68, 0x61, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x2e, 0x45, 0x72, 0x72, 0x6f,
  344. 0x72, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x46, 0x0a, 0x09, 0x45,
  345. 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b, 0x10, 0x00,
  346. 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x63, 0x63, 0x49, 0x44, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64,
  347. 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x70, 0x65, 0x61,
  348. 0x74, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f,
  349. 0x72, 0x10, 0x03, 0x22, 0x94, 0x01, 0x0a, 0x0d, 0x53, 0x43, 0x5f, 0x43, 0x68, 0x61, 0x74, 0x4e,
  350. 0x65, 0x77, 0x4d, 0x73, 0x67, 0x12, 0x33, 0x0a, 0x0b, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x68, 0x61,
  351. 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x43, 0x68, 0x61,
  352. 0x74, 0x2e, 0x43, 0x68, 0x61, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x0b, 0x46,
  353. 0x72, 0x6f, 0x6d, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73,
  354. 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x1e, 0x0a, 0x0a,
  355. 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
  356. 0x52, 0x0a, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09,
  357. 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x55, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
  358. 0x09, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x55, 0x69, 0x64, 0x2a, 0x3b, 0x0a, 0x0b, 0x43, 0x68,
  359. 0x61, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x79, 0x73,
  360. 0x74, 0x65, 0x6d, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x10, 0x01,
  361. 0x12, 0x09, 0x0a, 0x05, 0x47, 0x75, 0x69, 0x6c, 0x64, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x53,
  362. 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x10, 0x03, 0x42, 0x09, 0x5a, 0x07, 0x70, 0x62, 0x2f, 0x43, 0x68,
  363. 0x61, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  364. }
  365. var (
  366. file_pb_chat_proto_rawDescOnce sync.Once
  367. file_pb_chat_proto_rawDescData = file_pb_chat_proto_rawDesc
  368. )
  369. func file_pb_chat_proto_rawDescGZIP() []byte {
  370. file_pb_chat_proto_rawDescOnce.Do(func() {
  371. file_pb_chat_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_chat_proto_rawDescData)
  372. })
  373. return file_pb_chat_proto_rawDescData
  374. }
  375. var file_pb_chat_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  376. var file_pb_chat_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  377. var file_pb_chat_proto_goTypes = []interface{}{
  378. (ChatChannel)(0), // 0: Chat.ChatChannel
  379. (SC_ChatLogin_ErrorCode)(0), // 1: Chat.SC_ChatLogin.ErrorCode
  380. (*CS_ChatLogin)(nil), // 2: Chat.CS_ChatLogin
  381. (*CS_ChatSendMsg)(nil), // 3: Chat.CS_ChatSendMsg
  382. (*SC_ChatLogin)(nil), // 4: Chat.SC_ChatLogin
  383. (*SC_ChatNewMsg)(nil), // 5: Chat.SC_ChatNewMsg
  384. }
  385. var file_pb_chat_proto_depIdxs = []int32{
  386. 0, // 0: Chat.CS_ChatSendMsg.ToChannel:type_name -> Chat.ChatChannel
  387. 1, // 1: Chat.SC_ChatLogin.code:type_name -> Chat.SC_ChatLogin.ErrorCode
  388. 0, // 2: Chat.SC_ChatNewMsg.FromChannel:type_name -> Chat.ChatChannel
  389. 3, // [3:3] is the sub-list for method output_type
  390. 3, // [3:3] is the sub-list for method input_type
  391. 3, // [3:3] is the sub-list for extension type_name
  392. 3, // [3:3] is the sub-list for extension extendee
  393. 0, // [0:3] is the sub-list for field type_name
  394. }
  395. func init() { file_pb_chat_proto_init() }
  396. func file_pb_chat_proto_init() {
  397. if File_pb_chat_proto != nil {
  398. return
  399. }
  400. if !protoimpl.UnsafeEnabled {
  401. file_pb_chat_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  402. switch v := v.(*CS_ChatLogin); i {
  403. case 0:
  404. return &v.state
  405. case 1:
  406. return &v.sizeCache
  407. case 2:
  408. return &v.unknownFields
  409. default:
  410. return nil
  411. }
  412. }
  413. file_pb_chat_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  414. switch v := v.(*CS_ChatSendMsg); i {
  415. case 0:
  416. return &v.state
  417. case 1:
  418. return &v.sizeCache
  419. case 2:
  420. return &v.unknownFields
  421. default:
  422. return nil
  423. }
  424. }
  425. file_pb_chat_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  426. switch v := v.(*SC_ChatLogin); i {
  427. case 0:
  428. return &v.state
  429. case 1:
  430. return &v.sizeCache
  431. case 2:
  432. return &v.unknownFields
  433. default:
  434. return nil
  435. }
  436. }
  437. file_pb_chat_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  438. switch v := v.(*SC_ChatNewMsg); i {
  439. case 0:
  440. return &v.state
  441. case 1:
  442. return &v.sizeCache
  443. case 2:
  444. return &v.unknownFields
  445. default:
  446. return nil
  447. }
  448. }
  449. }
  450. type x struct{}
  451. out := protoimpl.TypeBuilder{
  452. File: protoimpl.DescBuilder{
  453. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  454. RawDescriptor: file_pb_chat_proto_rawDesc,
  455. NumEnums: 2,
  456. NumMessages: 4,
  457. NumExtensions: 0,
  458. NumServices: 0,
  459. },
  460. GoTypes: file_pb_chat_proto_goTypes,
  461. DependencyIndexes: file_pb_chat_proto_depIdxs,
  462. EnumInfos: file_pb_chat_proto_enumTypes,
  463. MessageInfos: file_pb_chat_proto_msgTypes,
  464. }.Build()
  465. File_pb_chat_proto = out.File
  466. file_pb_chat_proto_rawDesc = nil
  467. file_pb_chat_proto_goTypes = nil
  468. file_pb_chat_proto_depIdxs = nil
  469. }