蛋蛋星球-客户端
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

logic.int.pb.go 52 KiB

1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1週間前
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.1
  4. // protoc v3.20.0--rc2
  5. // source: logic.int.proto
  6. package pb
  7. import (
  8. context "context"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  13. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  14. reflect "reflect"
  15. sync "sync"
  16. )
  17. const (
  18. // Verify that this generated code is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  20. // Verify that runtime/protoimpl is sufficiently up-to-date.
  21. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  22. )
  23. type ConnSignInReq struct {
  24. state protoimpl.MessageState
  25. sizeCache protoimpl.SizeCache
  26. unknownFields protoimpl.UnknownFields
  27. DeviceId int64 `protobuf:"varint,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // 设备id
  28. UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
  29. Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // 秘钥
  30. ConnAddr string `protobuf:"bytes,4,opt,name=conn_addr,json=connAddr,proto3" json:"conn_addr,omitempty"` // 服务器地址
  31. ClientAddr string `protobuf:"bytes,5,opt,name=client_addr,json=clientAddr,proto3" json:"client_addr,omitempty"` // 客户端地址
  32. }
  33. func (x *ConnSignInReq) Reset() {
  34. *x = ConnSignInReq{}
  35. if protoimpl.UnsafeEnabled {
  36. mi := &file_logic_int_proto_msgTypes[0]
  37. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  38. ms.StoreMessageInfo(mi)
  39. }
  40. }
  41. func (x *ConnSignInReq) String() string {
  42. return protoimpl.X.MessageStringOf(x)
  43. }
  44. func (*ConnSignInReq) ProtoMessage() {}
  45. func (x *ConnSignInReq) ProtoReflect() protoreflect.Message {
  46. mi := &file_logic_int_proto_msgTypes[0]
  47. if protoimpl.UnsafeEnabled && x != nil {
  48. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  49. if ms.LoadMessageInfo() == nil {
  50. ms.StoreMessageInfo(mi)
  51. }
  52. return ms
  53. }
  54. return mi.MessageOf(x)
  55. }
  56. // Deprecated: Use ConnSignInReq.ProtoReflect.Descriptor instead.
  57. func (*ConnSignInReq) Descriptor() ([]byte, []int) {
  58. return file_logic_int_proto_rawDescGZIP(), []int{0}
  59. }
  60. func (x *ConnSignInReq) GetDeviceId() int64 {
  61. if x != nil {
  62. return x.DeviceId
  63. }
  64. return 0
  65. }
  66. func (x *ConnSignInReq) GetUserId() int64 {
  67. if x != nil {
  68. return x.UserId
  69. }
  70. return 0
  71. }
  72. func (x *ConnSignInReq) GetToken() string {
  73. if x != nil {
  74. return x.Token
  75. }
  76. return ""
  77. }
  78. func (x *ConnSignInReq) GetConnAddr() string {
  79. if x != nil {
  80. return x.ConnAddr
  81. }
  82. return ""
  83. }
  84. func (x *ConnSignInReq) GetClientAddr() string {
  85. if x != nil {
  86. return x.ClientAddr
  87. }
  88. return ""
  89. }
  90. type SyncReq struct {
  91. state protoimpl.MessageState
  92. sizeCache protoimpl.SizeCache
  93. unknownFields protoimpl.UnknownFields
  94. UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
  95. DeviceId int64 `protobuf:"varint,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // 设备id
  96. Seq int64 `protobuf:"varint,3,opt,name=seq,proto3" json:"seq,omitempty"` // 客户端已经同步的序列号
  97. }
  98. func (x *SyncReq) Reset() {
  99. *x = SyncReq{}
  100. if protoimpl.UnsafeEnabled {
  101. mi := &file_logic_int_proto_msgTypes[1]
  102. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  103. ms.StoreMessageInfo(mi)
  104. }
  105. }
  106. func (x *SyncReq) String() string {
  107. return protoimpl.X.MessageStringOf(x)
  108. }
  109. func (*SyncReq) ProtoMessage() {}
  110. func (x *SyncReq) ProtoReflect() protoreflect.Message {
  111. mi := &file_logic_int_proto_msgTypes[1]
  112. if protoimpl.UnsafeEnabled && x != nil {
  113. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  114. if ms.LoadMessageInfo() == nil {
  115. ms.StoreMessageInfo(mi)
  116. }
  117. return ms
  118. }
  119. return mi.MessageOf(x)
  120. }
  121. // Deprecated: Use SyncReq.ProtoReflect.Descriptor instead.
  122. func (*SyncReq) Descriptor() ([]byte, []int) {
  123. return file_logic_int_proto_rawDescGZIP(), []int{1}
  124. }
  125. func (x *SyncReq) GetUserId() int64 {
  126. if x != nil {
  127. return x.UserId
  128. }
  129. return 0
  130. }
  131. func (x *SyncReq) GetDeviceId() int64 {
  132. if x != nil {
  133. return x.DeviceId
  134. }
  135. return 0
  136. }
  137. func (x *SyncReq) GetSeq() int64 {
  138. if x != nil {
  139. return x.Seq
  140. }
  141. return 0
  142. }
  143. type SyncResp struct {
  144. state protoimpl.MessageState
  145. sizeCache protoimpl.SizeCache
  146. unknownFields protoimpl.UnknownFields
  147. Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` // 消息列表
  148. HasMore bool `protobuf:"varint,2,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"` // 是否有更多数据
  149. }
  150. func (x *SyncResp) Reset() {
  151. *x = SyncResp{}
  152. if protoimpl.UnsafeEnabled {
  153. mi := &file_logic_int_proto_msgTypes[2]
  154. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  155. ms.StoreMessageInfo(mi)
  156. }
  157. }
  158. func (x *SyncResp) String() string {
  159. return protoimpl.X.MessageStringOf(x)
  160. }
  161. func (*SyncResp) ProtoMessage() {}
  162. func (x *SyncResp) ProtoReflect() protoreflect.Message {
  163. mi := &file_logic_int_proto_msgTypes[2]
  164. if protoimpl.UnsafeEnabled && x != nil {
  165. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  166. if ms.LoadMessageInfo() == nil {
  167. ms.StoreMessageInfo(mi)
  168. }
  169. return ms
  170. }
  171. return mi.MessageOf(x)
  172. }
  173. // Deprecated: Use SyncResp.ProtoReflect.Descriptor instead.
  174. func (*SyncResp) Descriptor() ([]byte, []int) {
  175. return file_logic_int_proto_rawDescGZIP(), []int{2}
  176. }
  177. func (x *SyncResp) GetMessages() []*Message {
  178. if x != nil {
  179. return x.Messages
  180. }
  181. return nil
  182. }
  183. func (x *SyncResp) GetHasMore() bool {
  184. if x != nil {
  185. return x.HasMore
  186. }
  187. return false
  188. }
  189. type MessageACKReq struct {
  190. state protoimpl.MessageState
  191. sizeCache protoimpl.SizeCache
  192. unknownFields protoimpl.UnknownFields
  193. UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
  194. DeviceId int64 `protobuf:"varint,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // 设备id
  195. DeviceAck int64 `protobuf:"varint,3,opt,name=device_ack,json=deviceAck,proto3" json:"device_ack,omitempty"` // 设备收到消息的确认号
  196. ReceiveTime int64 `protobuf:"varint,4,opt,name=receive_time,json=receiveTime,proto3" json:"receive_time,omitempty"` // 消息接收时间戳,精确到毫秒
  197. }
  198. func (x *MessageACKReq) Reset() {
  199. *x = MessageACKReq{}
  200. if protoimpl.UnsafeEnabled {
  201. mi := &file_logic_int_proto_msgTypes[3]
  202. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  203. ms.StoreMessageInfo(mi)
  204. }
  205. }
  206. func (x *MessageACKReq) String() string {
  207. return protoimpl.X.MessageStringOf(x)
  208. }
  209. func (*MessageACKReq) ProtoMessage() {}
  210. func (x *MessageACKReq) ProtoReflect() protoreflect.Message {
  211. mi := &file_logic_int_proto_msgTypes[3]
  212. if protoimpl.UnsafeEnabled && x != nil {
  213. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  214. if ms.LoadMessageInfo() == nil {
  215. ms.StoreMessageInfo(mi)
  216. }
  217. return ms
  218. }
  219. return mi.MessageOf(x)
  220. }
  221. // Deprecated: Use MessageACKReq.ProtoReflect.Descriptor instead.
  222. func (*MessageACKReq) Descriptor() ([]byte, []int) {
  223. return file_logic_int_proto_rawDescGZIP(), []int{3}
  224. }
  225. func (x *MessageACKReq) GetUserId() int64 {
  226. if x != nil {
  227. return x.UserId
  228. }
  229. return 0
  230. }
  231. func (x *MessageACKReq) GetDeviceId() int64 {
  232. if x != nil {
  233. return x.DeviceId
  234. }
  235. return 0
  236. }
  237. func (x *MessageACKReq) GetDeviceAck() int64 {
  238. if x != nil {
  239. return x.DeviceAck
  240. }
  241. return 0
  242. }
  243. func (x *MessageACKReq) GetReceiveTime() int64 {
  244. if x != nil {
  245. return x.ReceiveTime
  246. }
  247. return 0
  248. }
  249. type OfflineReq struct {
  250. state protoimpl.MessageState
  251. sizeCache protoimpl.SizeCache
  252. unknownFields protoimpl.UnknownFields
  253. UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
  254. DeviceId int64 `protobuf:"varint,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // 设备id
  255. ClientAddr string `protobuf:"bytes,3,opt,name=client_addr,json=clientAddr,proto3" json:"client_addr,omitempty"` // 客户端地址
  256. }
  257. func (x *OfflineReq) Reset() {
  258. *x = OfflineReq{}
  259. if protoimpl.UnsafeEnabled {
  260. mi := &file_logic_int_proto_msgTypes[4]
  261. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  262. ms.StoreMessageInfo(mi)
  263. }
  264. }
  265. func (x *OfflineReq) String() string {
  266. return protoimpl.X.MessageStringOf(x)
  267. }
  268. func (*OfflineReq) ProtoMessage() {}
  269. func (x *OfflineReq) ProtoReflect() protoreflect.Message {
  270. mi := &file_logic_int_proto_msgTypes[4]
  271. if protoimpl.UnsafeEnabled && x != nil {
  272. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  273. if ms.LoadMessageInfo() == nil {
  274. ms.StoreMessageInfo(mi)
  275. }
  276. return ms
  277. }
  278. return mi.MessageOf(x)
  279. }
  280. // Deprecated: Use OfflineReq.ProtoReflect.Descriptor instead.
  281. func (*OfflineReq) Descriptor() ([]byte, []int) {
  282. return file_logic_int_proto_rawDescGZIP(), []int{4}
  283. }
  284. func (x *OfflineReq) GetUserId() int64 {
  285. if x != nil {
  286. return x.UserId
  287. }
  288. return 0
  289. }
  290. func (x *OfflineReq) GetDeviceId() int64 {
  291. if x != nil {
  292. return x.DeviceId
  293. }
  294. return 0
  295. }
  296. func (x *OfflineReq) GetClientAddr() string {
  297. if x != nil {
  298. return x.ClientAddr
  299. }
  300. return ""
  301. }
  302. type SubscribeRoomReq struct {
  303. state protoimpl.MessageState
  304. sizeCache protoimpl.SizeCache
  305. unknownFields protoimpl.UnknownFields
  306. UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
  307. DeviceId int64 `protobuf:"varint,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // 设备id
  308. RoomId int64 `protobuf:"varint,3,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` // 房间id
  309. Seq int64 `protobuf:"varint,4,opt,name=seq,proto3" json:"seq,omitempty"` // 消息序列号
  310. ConnAddr string `protobuf:"bytes,5,opt,name=conn_addr,json=connAddr,proto3" json:"conn_addr,omitempty"` // 服务器地址
  311. }
  312. func (x *SubscribeRoomReq) Reset() {
  313. *x = SubscribeRoomReq{}
  314. if protoimpl.UnsafeEnabled {
  315. mi := &file_logic_int_proto_msgTypes[5]
  316. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  317. ms.StoreMessageInfo(mi)
  318. }
  319. }
  320. func (x *SubscribeRoomReq) String() string {
  321. return protoimpl.X.MessageStringOf(x)
  322. }
  323. func (*SubscribeRoomReq) ProtoMessage() {}
  324. func (x *SubscribeRoomReq) ProtoReflect() protoreflect.Message {
  325. mi := &file_logic_int_proto_msgTypes[5]
  326. if protoimpl.UnsafeEnabled && x != nil {
  327. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  328. if ms.LoadMessageInfo() == nil {
  329. ms.StoreMessageInfo(mi)
  330. }
  331. return ms
  332. }
  333. return mi.MessageOf(x)
  334. }
  335. // Deprecated: Use SubscribeRoomReq.ProtoReflect.Descriptor instead.
  336. func (*SubscribeRoomReq) Descriptor() ([]byte, []int) {
  337. return file_logic_int_proto_rawDescGZIP(), []int{5}
  338. }
  339. func (x *SubscribeRoomReq) GetUserId() int64 {
  340. if x != nil {
  341. return x.UserId
  342. }
  343. return 0
  344. }
  345. func (x *SubscribeRoomReq) GetDeviceId() int64 {
  346. if x != nil {
  347. return x.DeviceId
  348. }
  349. return 0
  350. }
  351. func (x *SubscribeRoomReq) GetRoomId() int64 {
  352. if x != nil {
  353. return x.RoomId
  354. }
  355. return 0
  356. }
  357. func (x *SubscribeRoomReq) GetSeq() int64 {
  358. if x != nil {
  359. return x.Seq
  360. }
  361. return 0
  362. }
  363. func (x *SubscribeRoomReq) GetConnAddr() string {
  364. if x != nil {
  365. return x.ConnAddr
  366. }
  367. return ""
  368. }
  369. type PushAllReq struct {
  370. state protoimpl.MessageState
  371. sizeCache protoimpl.SizeCache
  372. unknownFields protoimpl.UnknownFields
  373. MessageType MessageType `protobuf:"varint,1,opt,name=message_type,json=messageType,proto3,enum=pb.MessageType" json:"message_type,omitempty"` // 消息类型
  374. MessageContent []byte `protobuf:"bytes,2,opt,name=message_content,json=messageContent,proto3" json:"message_content,omitempty"` // 消息内容
  375. SendTime int64 `protobuf:"varint,3,opt,name=send_time,json=sendTime,proto3" json:"send_time,omitempty"` // 消息发送时间戳,精确到毫秒
  376. }
  377. func (x *PushAllReq) Reset() {
  378. *x = PushAllReq{}
  379. if protoimpl.UnsafeEnabled {
  380. mi := &file_logic_int_proto_msgTypes[6]
  381. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  382. ms.StoreMessageInfo(mi)
  383. }
  384. }
  385. func (x *PushAllReq) String() string {
  386. return protoimpl.X.MessageStringOf(x)
  387. }
  388. func (*PushAllReq) ProtoMessage() {}
  389. func (x *PushAllReq) ProtoReflect() protoreflect.Message {
  390. mi := &file_logic_int_proto_msgTypes[6]
  391. if protoimpl.UnsafeEnabled && x != nil {
  392. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  393. if ms.LoadMessageInfo() == nil {
  394. ms.StoreMessageInfo(mi)
  395. }
  396. return ms
  397. }
  398. return mi.MessageOf(x)
  399. }
  400. // Deprecated: Use PushAllReq.ProtoReflect.Descriptor instead.
  401. func (*PushAllReq) Descriptor() ([]byte, []int) {
  402. return file_logic_int_proto_rawDescGZIP(), []int{6}
  403. }
  404. func (x *PushAllReq) GetMessageType() MessageType {
  405. if x != nil {
  406. return x.MessageType
  407. }
  408. return MessageType_MT_UNKNOWN
  409. }
  410. func (x *PushAllReq) GetMessageContent() []byte {
  411. if x != nil {
  412. return x.MessageContent
  413. }
  414. return nil
  415. }
  416. func (x *PushAllReq) GetSendTime() int64 {
  417. if x != nil {
  418. return x.SendTime
  419. }
  420. return 0
  421. }
  422. type GetDeviceReq struct {
  423. state protoimpl.MessageState
  424. sizeCache protoimpl.SizeCache
  425. unknownFields protoimpl.UnknownFields
  426. DeviceId int64 `protobuf:"varint,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
  427. }
  428. func (x *GetDeviceReq) Reset() {
  429. *x = GetDeviceReq{}
  430. if protoimpl.UnsafeEnabled {
  431. mi := &file_logic_int_proto_msgTypes[7]
  432. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  433. ms.StoreMessageInfo(mi)
  434. }
  435. }
  436. func (x *GetDeviceReq) String() string {
  437. return protoimpl.X.MessageStringOf(x)
  438. }
  439. func (*GetDeviceReq) ProtoMessage() {}
  440. func (x *GetDeviceReq) ProtoReflect() protoreflect.Message {
  441. mi := &file_logic_int_proto_msgTypes[7]
  442. if protoimpl.UnsafeEnabled && x != nil {
  443. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  444. if ms.LoadMessageInfo() == nil {
  445. ms.StoreMessageInfo(mi)
  446. }
  447. return ms
  448. }
  449. return mi.MessageOf(x)
  450. }
  451. // Deprecated: Use GetDeviceReq.ProtoReflect.Descriptor instead.
  452. func (*GetDeviceReq) Descriptor() ([]byte, []int) {
  453. return file_logic_int_proto_rawDescGZIP(), []int{7}
  454. }
  455. func (x *GetDeviceReq) GetDeviceId() int64 {
  456. if x != nil {
  457. return x.DeviceId
  458. }
  459. return 0
  460. }
  461. type GetDeviceResp struct {
  462. state protoimpl.MessageState
  463. sizeCache protoimpl.SizeCache
  464. unknownFields protoimpl.UnknownFields
  465. Device *Device `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
  466. }
  467. func (x *GetDeviceResp) Reset() {
  468. *x = GetDeviceResp{}
  469. if protoimpl.UnsafeEnabled {
  470. mi := &file_logic_int_proto_msgTypes[8]
  471. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  472. ms.StoreMessageInfo(mi)
  473. }
  474. }
  475. func (x *GetDeviceResp) String() string {
  476. return protoimpl.X.MessageStringOf(x)
  477. }
  478. func (*GetDeviceResp) ProtoMessage() {}
  479. func (x *GetDeviceResp) ProtoReflect() protoreflect.Message {
  480. mi := &file_logic_int_proto_msgTypes[8]
  481. if protoimpl.UnsafeEnabled && x != nil {
  482. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  483. if ms.LoadMessageInfo() == nil {
  484. ms.StoreMessageInfo(mi)
  485. }
  486. return ms
  487. }
  488. return mi.MessageOf(x)
  489. }
  490. // Deprecated: Use GetDeviceResp.ProtoReflect.Descriptor instead.
  491. func (*GetDeviceResp) Descriptor() ([]byte, []int) {
  492. return file_logic_int_proto_rawDescGZIP(), []int{8}
  493. }
  494. func (x *GetDeviceResp) GetDevice() *Device {
  495. if x != nil {
  496. return x.Device
  497. }
  498. return nil
  499. }
  500. type Device struct {
  501. state protoimpl.MessageState
  502. sizeCache protoimpl.SizeCache
  503. unknownFields protoimpl.UnknownFields
  504. DeviceId int64 `protobuf:"varint,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // 设备id
  505. UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
  506. Type int32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` // 设备类型,1:Android;2:IOS;3:Windows; 4:MacOS;5:Web
  507. Brand string `protobuf:"bytes,4,opt,name=brand,proto3" json:"brand,omitempty"` // 手机厂商
  508. Model string `protobuf:"bytes,5,opt,name=model,proto3" json:"model,omitempty"` // 机型
  509. SystemVersion string `protobuf:"bytes,6,opt,name=system_version,json=systemVersion,proto3" json:"system_version,omitempty"` // 系统版本
  510. SdkVersion string `protobuf:"bytes,7,opt,name=sdk_version,json=sdkVersion,proto3" json:"sdk_version,omitempty"` // SDK版本
  511. Status int32 `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"` // 在线状态,0:不在线;1:在线
  512. ConnAddr string `protobuf:"bytes,9,opt,name=conn_addr,json=connAddr,proto3" json:"conn_addr,omitempty"` // 服务端连接地址
  513. ClientAddr string `protobuf:"bytes,10,opt,name=client_addr,json=clientAddr,proto3" json:"client_addr,omitempty"` // 客户端地址
  514. CreateTime int64 `protobuf:"varint,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // 创建时间
  515. UpdateTime int64 `protobuf:"varint,12,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // 更新时间
  516. }
  517. func (x *Device) Reset() {
  518. *x = Device{}
  519. if protoimpl.UnsafeEnabled {
  520. mi := &file_logic_int_proto_msgTypes[9]
  521. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  522. ms.StoreMessageInfo(mi)
  523. }
  524. }
  525. func (x *Device) String() string {
  526. return protoimpl.X.MessageStringOf(x)
  527. }
  528. func (*Device) ProtoMessage() {}
  529. func (x *Device) ProtoReflect() protoreflect.Message {
  530. mi := &file_logic_int_proto_msgTypes[9]
  531. if protoimpl.UnsafeEnabled && x != nil {
  532. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  533. if ms.LoadMessageInfo() == nil {
  534. ms.StoreMessageInfo(mi)
  535. }
  536. return ms
  537. }
  538. return mi.MessageOf(x)
  539. }
  540. // Deprecated: Use Device.ProtoReflect.Descriptor instead.
  541. func (*Device) Descriptor() ([]byte, []int) {
  542. return file_logic_int_proto_rawDescGZIP(), []int{9}
  543. }
  544. func (x *Device) GetDeviceId() int64 {
  545. if x != nil {
  546. return x.DeviceId
  547. }
  548. return 0
  549. }
  550. func (x *Device) GetUserId() int64 {
  551. if x != nil {
  552. return x.UserId
  553. }
  554. return 0
  555. }
  556. func (x *Device) GetType() int32 {
  557. if x != nil {
  558. return x.Type
  559. }
  560. return 0
  561. }
  562. func (x *Device) GetBrand() string {
  563. if x != nil {
  564. return x.Brand
  565. }
  566. return ""
  567. }
  568. func (x *Device) GetModel() string {
  569. if x != nil {
  570. return x.Model
  571. }
  572. return ""
  573. }
  574. func (x *Device) GetSystemVersion() string {
  575. if x != nil {
  576. return x.SystemVersion
  577. }
  578. return ""
  579. }
  580. func (x *Device) GetSdkVersion() string {
  581. if x != nil {
  582. return x.SdkVersion
  583. }
  584. return ""
  585. }
  586. func (x *Device) GetStatus() int32 {
  587. if x != nil {
  588. return x.Status
  589. }
  590. return 0
  591. }
  592. func (x *Device) GetConnAddr() string {
  593. if x != nil {
  594. return x.ConnAddr
  595. }
  596. return ""
  597. }
  598. func (x *Device) GetClientAddr() string {
  599. if x != nil {
  600. return x.ClientAddr
  601. }
  602. return ""
  603. }
  604. func (x *Device) GetCreateTime() int64 {
  605. if x != nil {
  606. return x.CreateTime
  607. }
  608. return 0
  609. }
  610. func (x *Device) GetUpdateTime() int64 {
  611. if x != nil {
  612. return x.UpdateTime
  613. }
  614. return 0
  615. }
  616. type ServerStopReq struct {
  617. state protoimpl.MessageState
  618. sizeCache protoimpl.SizeCache
  619. unknownFields protoimpl.UnknownFields
  620. ConnAddr string `protobuf:"bytes,1,opt,name=conn_addr,json=connAddr,proto3" json:"conn_addr,omitempty"`
  621. }
  622. func (x *ServerStopReq) Reset() {
  623. *x = ServerStopReq{}
  624. if protoimpl.UnsafeEnabled {
  625. mi := &file_logic_int_proto_msgTypes[10]
  626. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  627. ms.StoreMessageInfo(mi)
  628. }
  629. }
  630. func (x *ServerStopReq) String() string {
  631. return protoimpl.X.MessageStringOf(x)
  632. }
  633. func (*ServerStopReq) ProtoMessage() {}
  634. func (x *ServerStopReq) ProtoReflect() protoreflect.Message {
  635. mi := &file_logic_int_proto_msgTypes[10]
  636. if protoimpl.UnsafeEnabled && x != nil {
  637. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  638. if ms.LoadMessageInfo() == nil {
  639. ms.StoreMessageInfo(mi)
  640. }
  641. return ms
  642. }
  643. return mi.MessageOf(x)
  644. }
  645. // Deprecated: Use ServerStopReq.ProtoReflect.Descriptor instead.
  646. func (*ServerStopReq) Descriptor() ([]byte, []int) {
  647. return file_logic_int_proto_rawDescGZIP(), []int{10}
  648. }
  649. func (x *ServerStopReq) GetConnAddr() string {
  650. if x != nil {
  651. return x.ConnAddr
  652. }
  653. return ""
  654. }
  655. var File_logic_int_proto protoreflect.FileDescriptor
  656. var file_logic_int_proto_rawDesc = []byte{
  657. 0x0a, 0x0f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x2e, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  658. 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x10, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x65, 0x78,
  659. 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74,
  660. 0x2e, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x6c, 0x6f, 0x67, 0x69,
  661. 0x63, 0x2e, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x99, 0x01, 0x0a, 0x0d,
  662. 0x43, 0x6f, 0x6e, 0x6e, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x1b, 0x0a,
  663. 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
  664. 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73,
  665. 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65,
  666. 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01,
  667. 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6e,
  668. 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f,
  669. 0x6e, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
  670. 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x69,
  671. 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x22, 0x51, 0x0a, 0x07, 0x53, 0x79, 0x6e, 0x63, 0x52,
  672. 0x65, 0x71, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
  673. 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64,
  674. 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08,
  675. 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x71, 0x18,
  676. 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x71, 0x22, 0x4e, 0x0a, 0x08, 0x53, 0x79,
  677. 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x12, 0x27, 0x0a, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  678. 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65,
  679. 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12,
  680. 0x19, 0x0a, 0x08, 0x68, 0x61, 0x73, 0x5f, 0x6d, 0x6f, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  681. 0x08, 0x52, 0x07, 0x68, 0x61, 0x73, 0x4d, 0x6f, 0x72, 0x65, 0x22, 0x87, 0x01, 0x0a, 0x0d, 0x4d,
  682. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x41, 0x43, 0x4b, 0x52, 0x65, 0x71, 0x12, 0x17, 0x0a, 0x07,
  683. 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75,
  684. 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f,
  685. 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65,
  686. 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x6b,
  687. 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63,
  688. 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x74, 0x69, 0x6d,
  689. 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65,
  690. 0x54, 0x69, 0x6d, 0x65, 0x22, 0x63, 0x0a, 0x0a, 0x4f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x52,
  691. 0x65, 0x71, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
  692. 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64,
  693. 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08,
  694. 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x69, 0x65,
  695. 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63,
  696. 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x22, 0x90, 0x01, 0x0a, 0x10, 0x53, 0x75,
  697. 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x6f, 0x6f, 0x6d, 0x52, 0x65, 0x71, 0x12, 0x17,
  698. 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
  699. 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63,
  700. 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69,
  701. 0x63, 0x65, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x6f, 0x6f, 0x6d, 0x5f, 0x69, 0x64, 0x18,
  702. 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x12, 0x10, 0x0a,
  703. 0x03, 0x73, 0x65, 0x71, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x71, 0x12,
  704. 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x05, 0x20, 0x01,
  705. 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x22, 0x86, 0x01, 0x0a,
  706. 0x0a, 0x50, 0x75, 0x73, 0x68, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x12, 0x32, 0x0a, 0x0c, 0x6d,
  707. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
  708. 0x0e, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79,
  709. 0x70, 0x65, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12,
  710. 0x27, 0x0a, 0x0f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65,
  711. 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  712. 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x6e, 0x64,
  713. 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x65, 0x6e,
  714. 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x2b, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x44, 0x65, 0x76, 0x69,
  715. 0x63, 0x65, 0x52, 0x65, 0x71, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f,
  716. 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65,
  717. 0x49, 0x64, 0x22, 0x33, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52,
  718. 0x65, 0x73, 0x70, 0x12, 0x22, 0x0a, 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20,
  719. 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52,
  720. 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x22, 0xde, 0x02, 0x0a, 0x06, 0x44, 0x65, 0x76, 0x69,
  721. 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18,
  722. 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12,
  723. 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03,
  724. 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,
  725. 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05,
  726. 0x62, 0x72, 0x61, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x72, 0x61,
  727. 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28,
  728. 0x09, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x79, 0x73, 0x74,
  729. 0x65, 0x6d, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09,
  730. 0x52, 0x0d, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12,
  731. 0x1f, 0x0a, 0x0b, 0x73, 0x64, 0x6b, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07,
  732. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x64, 0x6b, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
  733. 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05,
  734. 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x6e,
  735. 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6e,
  736. 0x6e, 0x41, 0x64, 0x64, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f,
  737. 0x61, 0x64, 0x64, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x69, 0x65,
  738. 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
  739. 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65,
  740. 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74,
  741. 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x75, 0x70,
  742. 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x2c, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76,
  743. 0x65, 0x72, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x71, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6e,
  744. 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f,
  745. 0x6e, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x32, 0xc1, 0x03, 0x0a, 0x08, 0x4c, 0x6f, 0x67, 0x69, 0x63,
  746. 0x49, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x6e, 0x53, 0x69, 0x67, 0x6e, 0x49,
  747. 0x6e, 0x12, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x53, 0x69, 0x67, 0x6e, 0x49,
  748. 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12,
  749. 0x21, 0x0a, 0x04, 0x53, 0x79, 0x6e, 0x63, 0x12, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x79, 0x6e,
  750. 0x63, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65,
  751. 0x73, 0x70, 0x12, 0x2a, 0x0a, 0x0a, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x41, 0x43, 0x4b,
  752. 0x12, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x41, 0x43, 0x4b,
  753. 0x52, 0x65, 0x71, 0x1a, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x24,
  754. 0x0a, 0x07, 0x4f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x4f,
  755. 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45,
  756. 0x6d, 0x70, 0x74, 0x79, 0x12, 0x30, 0x0a, 0x0d, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62,
  757. 0x65, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63,
  758. 0x72, 0x69, 0x62, 0x65, 0x52, 0x6f, 0x6f, 0x6d, 0x52, 0x65, 0x71, 0x1a, 0x09, 0x2e, 0x70, 0x62,
  759. 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x36, 0x0a, 0x0b, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x65,
  760. 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d,
  761. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x53,
  762. 0x65, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x26,
  763. 0x0a, 0x08, 0x50, 0x75, 0x73, 0x68, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x0f, 0x2e, 0x70, 0x62, 0x2e,
  764. 0x50, 0x75, 0x73, 0x68, 0x52, 0x6f, 0x6f, 0x6d, 0x52, 0x65, 0x71, 0x1a, 0x09, 0x2e, 0x70, 0x62,
  765. 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x24, 0x0a, 0x07, 0x50, 0x75, 0x73, 0x68, 0x41, 0x6c,
  766. 0x6c, 0x12, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x41, 0x6c, 0x6c, 0x52, 0x65,
  767. 0x71, 0x1a, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x30, 0x0a, 0x09,
  768. 0x47, 0x65, 0x74, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x12, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x47,
  769. 0x65, 0x74, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x70, 0x62,
  770. 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2a,
  771. 0x0a, 0x0a, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x74, 0x6f, 0x70, 0x12, 0x11, 0x2e, 0x70,
  772. 0x62, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x71, 0x1a,
  773. 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, 0x0d, 0x5a, 0x0b, 0x67, 0x69,
  774. 0x6d, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  775. 0x33,
  776. }
  777. var (
  778. file_logic_int_proto_rawDescOnce sync.Once
  779. file_logic_int_proto_rawDescData = file_logic_int_proto_rawDesc
  780. )
  781. func file_logic_int_proto_rawDescGZIP() []byte {
  782. file_logic_int_proto_rawDescOnce.Do(func() {
  783. file_logic_int_proto_rawDescData = protoimpl.X.CompressGZIP(file_logic_int_proto_rawDescData)
  784. })
  785. return file_logic_int_proto_rawDescData
  786. }
  787. var file_logic_int_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
  788. var file_logic_int_proto_goTypes = []interface{}{
  789. (*ConnSignInReq)(nil), // 0: pb.ConnSignInReq
  790. (*SyncReq)(nil), // 1: pb.SyncReq
  791. (*SyncResp)(nil), // 2: pb.SyncResp
  792. (*MessageACKReq)(nil), // 3: pb.MessageACKReq
  793. (*OfflineReq)(nil), // 4: pb.OfflineReq
  794. (*SubscribeRoomReq)(nil), // 5: pb.SubscribeRoomReq
  795. (*PushAllReq)(nil), // 6: pb.PushAllReq
  796. (*GetDeviceReq)(nil), // 7: pb.GetDeviceReq
  797. (*GetDeviceResp)(nil), // 8: pb.GetDeviceResp
  798. (*Device)(nil), // 9: pb.Device
  799. (*ServerStopReq)(nil), // 10: pb.ServerStopReq
  800. (*Message)(nil), // 11: pb.Message
  801. (MessageType)(0), // 12: pb.MessageType
  802. (*SendMessageReq)(nil), // 13: pb.SendMessageReq
  803. (*PushRoomReq)(nil), // 14: pb.PushRoomReq
  804. (*Empty)(nil), // 15: pb.Empty
  805. (*SendMessageResp)(nil), // 16: pb.SendMessageResp
  806. }
  807. var file_logic_int_proto_depIdxs = []int32{
  808. 11, // 0: pb.SyncResp.messages:type_name -> pb.Message
  809. 12, // 1: pb.PushAllReq.message_type:type_name -> pb.MessageType
  810. 9, // 2: pb.GetDeviceResp.device:type_name -> pb.Device
  811. 0, // 3: pb.LogicInt.ConnSignIn:input_type -> pb.ConnSignInReq
  812. 1, // 4: pb.LogicInt.Sync:input_type -> pb.SyncReq
  813. 3, // 5: pb.LogicInt.MessageACK:input_type -> pb.MessageACKReq
  814. 4, // 6: pb.LogicInt.Offline:input_type -> pb.OfflineReq
  815. 5, // 7: pb.LogicInt.SubscribeRoom:input_type -> pb.SubscribeRoomReq
  816. 13, // 8: pb.LogicInt.SendMessage:input_type -> pb.SendMessageReq
  817. 14, // 9: pb.LogicInt.PushRoom:input_type -> pb.PushRoomReq
  818. 6, // 10: pb.LogicInt.PushAll:input_type -> pb.PushAllReq
  819. 7, // 11: pb.LogicInt.GetDevice:input_type -> pb.GetDeviceReq
  820. 10, // 12: pb.LogicInt.ServerStop:input_type -> pb.ServerStopReq
  821. 15, // 13: pb.LogicInt.ConnSignIn:output_type -> pb.Empty
  822. 2, // 14: pb.LogicInt.Sync:output_type -> pb.SyncResp
  823. 15, // 15: pb.LogicInt.MessageACK:output_type -> pb.Empty
  824. 15, // 16: pb.LogicInt.Offline:output_type -> pb.Empty
  825. 15, // 17: pb.LogicInt.SubscribeRoom:output_type -> pb.Empty
  826. 16, // 18: pb.LogicInt.SendMessage:output_type -> pb.SendMessageResp
  827. 15, // 19: pb.LogicInt.PushRoom:output_type -> pb.Empty
  828. 15, // 20: pb.LogicInt.PushAll:output_type -> pb.Empty
  829. 8, // 21: pb.LogicInt.GetDevice:output_type -> pb.GetDeviceResp
  830. 15, // 22: pb.LogicInt.ServerStop:output_type -> pb.Empty
  831. 13, // [13:23] is the sub-list for method output_type
  832. 3, // [3:13] is the sub-list for method input_type
  833. 3, // [3:3] is the sub-list for extension type_name
  834. 3, // [3:3] is the sub-list for extension extendee
  835. 0, // [0:3] is the sub-list for field type_name
  836. }
  837. func init() { file_logic_int_proto_init() }
  838. func file_logic_int_proto_init() {
  839. if File_logic_int_proto != nil {
  840. return
  841. }
  842. file_common_ext_proto_init()
  843. file_connect_ext_proto_init()
  844. file_logic_ext_proto_init()
  845. if !protoimpl.UnsafeEnabled {
  846. file_logic_int_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  847. switch v := v.(*ConnSignInReq); i {
  848. case 0:
  849. return &v.state
  850. case 1:
  851. return &v.sizeCache
  852. case 2:
  853. return &v.unknownFields
  854. default:
  855. return nil
  856. }
  857. }
  858. file_logic_int_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  859. switch v := v.(*SyncReq); i {
  860. case 0:
  861. return &v.state
  862. case 1:
  863. return &v.sizeCache
  864. case 2:
  865. return &v.unknownFields
  866. default:
  867. return nil
  868. }
  869. }
  870. file_logic_int_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  871. switch v := v.(*SyncResp); i {
  872. case 0:
  873. return &v.state
  874. case 1:
  875. return &v.sizeCache
  876. case 2:
  877. return &v.unknownFields
  878. default:
  879. return nil
  880. }
  881. }
  882. file_logic_int_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  883. switch v := v.(*MessageACKReq); i {
  884. case 0:
  885. return &v.state
  886. case 1:
  887. return &v.sizeCache
  888. case 2:
  889. return &v.unknownFields
  890. default:
  891. return nil
  892. }
  893. }
  894. file_logic_int_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  895. switch v := v.(*OfflineReq); i {
  896. case 0:
  897. return &v.state
  898. case 1:
  899. return &v.sizeCache
  900. case 2:
  901. return &v.unknownFields
  902. default:
  903. return nil
  904. }
  905. }
  906. file_logic_int_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  907. switch v := v.(*SubscribeRoomReq); i {
  908. case 0:
  909. return &v.state
  910. case 1:
  911. return &v.sizeCache
  912. case 2:
  913. return &v.unknownFields
  914. default:
  915. return nil
  916. }
  917. }
  918. file_logic_int_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  919. switch v := v.(*PushAllReq); i {
  920. case 0:
  921. return &v.state
  922. case 1:
  923. return &v.sizeCache
  924. case 2:
  925. return &v.unknownFields
  926. default:
  927. return nil
  928. }
  929. }
  930. file_logic_int_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  931. switch v := v.(*GetDeviceReq); i {
  932. case 0:
  933. return &v.state
  934. case 1:
  935. return &v.sizeCache
  936. case 2:
  937. return &v.unknownFields
  938. default:
  939. return nil
  940. }
  941. }
  942. file_logic_int_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  943. switch v := v.(*GetDeviceResp); i {
  944. case 0:
  945. return &v.state
  946. case 1:
  947. return &v.sizeCache
  948. case 2:
  949. return &v.unknownFields
  950. default:
  951. return nil
  952. }
  953. }
  954. file_logic_int_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  955. switch v := v.(*Device); i {
  956. case 0:
  957. return &v.state
  958. case 1:
  959. return &v.sizeCache
  960. case 2:
  961. return &v.unknownFields
  962. default:
  963. return nil
  964. }
  965. }
  966. file_logic_int_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  967. switch v := v.(*ServerStopReq); i {
  968. case 0:
  969. return &v.state
  970. case 1:
  971. return &v.sizeCache
  972. case 2:
  973. return &v.unknownFields
  974. default:
  975. return nil
  976. }
  977. }
  978. }
  979. type x struct{}
  980. out := protoimpl.TypeBuilder{
  981. File: protoimpl.DescBuilder{
  982. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  983. RawDescriptor: file_logic_int_proto_rawDesc,
  984. NumEnums: 0,
  985. NumMessages: 11,
  986. NumExtensions: 0,
  987. NumServices: 1,
  988. },
  989. GoTypes: file_logic_int_proto_goTypes,
  990. DependencyIndexes: file_logic_int_proto_depIdxs,
  991. MessageInfos: file_logic_int_proto_msgTypes,
  992. }.Build()
  993. File_logic_int_proto = out.File
  994. file_logic_int_proto_rawDesc = nil
  995. file_logic_int_proto_goTypes = nil
  996. file_logic_int_proto_depIdxs = nil
  997. }
  998. // This is a compile-time assertion to ensure that this generated file
  999. // is compatible with the grpc package it is being compiled against.
  1000. // Requires gRPC-Go v1.32.0 or later.
  1001. const _ = grpc.SupportPackageIsVersion7
  1002. // LogicIntClient is the client API for LogicInt service.
  1003. //
  1004. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
  1005. type LogicIntClient interface {
  1006. // 登录
  1007. ConnSignIn(ctx context.Context, in *ConnSignInReq, opts ...grpc.CallOption) (*Empty, error)
  1008. // 消息同步
  1009. Sync(ctx context.Context, in *SyncReq, opts ...grpc.CallOption) (*SyncResp, error)
  1010. // 设备收到消息回执
  1011. MessageACK(ctx context.Context, in *MessageACKReq, opts ...grpc.CallOption) (*Empty, error)
  1012. // 设备离线
  1013. Offline(ctx context.Context, in *OfflineReq, opts ...grpc.CallOption) (*Empty, error)
  1014. // 订阅房间
  1015. SubscribeRoom(ctx context.Context, in *SubscribeRoomReq, opts ...grpc.CallOption) (*Empty, error)
  1016. // 发送消息
  1017. SendMessage(ctx context.Context, in *SendMessageReq, opts ...grpc.CallOption) (*SendMessageResp, error)
  1018. // 推送消息到房间
  1019. PushRoom(ctx context.Context, in *PushRoomReq, opts ...grpc.CallOption) (*Empty, error)
  1020. // 全服推送
  1021. PushAll(ctx context.Context, in *PushAllReq, opts ...grpc.CallOption) (*Empty, error)
  1022. // 获取设备信息
  1023. GetDevice(ctx context.Context, in *GetDeviceReq, opts ...grpc.CallOption) (*GetDeviceResp, error)
  1024. // 服务停止
  1025. ServerStop(ctx context.Context, in *ServerStopReq, opts ...grpc.CallOption) (*Empty, error)
  1026. }
  1027. type logicIntClient struct {
  1028. cc grpc.ClientConnInterface
  1029. }
  1030. func NewLogicIntClient(cc grpc.ClientConnInterface) LogicIntClient {
  1031. return &logicIntClient{cc}
  1032. }
  1033. func (c *logicIntClient) ConnSignIn(ctx context.Context, in *ConnSignInReq, opts ...grpc.CallOption) (*Empty, error) {
  1034. out := new(Empty)
  1035. err := c.cc.Invoke(ctx, "/pb.LogicInt/ConnSignIn", in, out, opts...)
  1036. if err != nil {
  1037. return nil, err
  1038. }
  1039. return out, nil
  1040. }
  1041. func (c *logicIntClient) Sync(ctx context.Context, in *SyncReq, opts ...grpc.CallOption) (*SyncResp, error) {
  1042. out := new(SyncResp)
  1043. err := c.cc.Invoke(ctx, "/pb.LogicInt/Sync", in, out, opts...)
  1044. if err != nil {
  1045. return nil, err
  1046. }
  1047. return out, nil
  1048. }
  1049. func (c *logicIntClient) MessageACK(ctx context.Context, in *MessageACKReq, opts ...grpc.CallOption) (*Empty, error) {
  1050. out := new(Empty)
  1051. err := c.cc.Invoke(ctx, "/pb.LogicInt/MessageACK", in, out, opts...)
  1052. if err != nil {
  1053. return nil, err
  1054. }
  1055. return out, nil
  1056. }
  1057. func (c *logicIntClient) Offline(ctx context.Context, in *OfflineReq, opts ...grpc.CallOption) (*Empty, error) {
  1058. out := new(Empty)
  1059. err := c.cc.Invoke(ctx, "/pb.LogicInt/Offline", in, out, opts...)
  1060. if err != nil {
  1061. return nil, err
  1062. }
  1063. return out, nil
  1064. }
  1065. func (c *logicIntClient) SubscribeRoom(ctx context.Context, in *SubscribeRoomReq, opts ...grpc.CallOption) (*Empty, error) {
  1066. out := new(Empty)
  1067. err := c.cc.Invoke(ctx, "/pb.LogicInt/SubscribeRoom", in, out, opts...)
  1068. if err != nil {
  1069. return nil, err
  1070. }
  1071. return out, nil
  1072. }
  1073. func (c *logicIntClient) SendMessage(ctx context.Context, in *SendMessageReq, opts ...grpc.CallOption) (*SendMessageResp, error) {
  1074. out := new(SendMessageResp)
  1075. err := c.cc.Invoke(ctx, "/pb.LogicInt/SendMessage", in, out, opts...)
  1076. if err != nil {
  1077. return nil, err
  1078. }
  1079. return out, nil
  1080. }
  1081. func (c *logicIntClient) PushRoom(ctx context.Context, in *PushRoomReq, opts ...grpc.CallOption) (*Empty, error) {
  1082. out := new(Empty)
  1083. err := c.cc.Invoke(ctx, "/pb.LogicInt/PushRoom", in, out, opts...)
  1084. if err != nil {
  1085. return nil, err
  1086. }
  1087. return out, nil
  1088. }
  1089. func (c *logicIntClient) PushAll(ctx context.Context, in *PushAllReq, opts ...grpc.CallOption) (*Empty, error) {
  1090. out := new(Empty)
  1091. err := c.cc.Invoke(ctx, "/pb.LogicInt/PushAll", in, out, opts...)
  1092. if err != nil {
  1093. return nil, err
  1094. }
  1095. return out, nil
  1096. }
  1097. func (c *logicIntClient) GetDevice(ctx context.Context, in *GetDeviceReq, opts ...grpc.CallOption) (*GetDeviceResp, error) {
  1098. out := new(GetDeviceResp)
  1099. err := c.cc.Invoke(ctx, "/pb.LogicInt/GetDevice", in, out, opts...)
  1100. if err != nil {
  1101. return nil, err
  1102. }
  1103. return out, nil
  1104. }
  1105. func (c *logicIntClient) ServerStop(ctx context.Context, in *ServerStopReq, opts ...grpc.CallOption) (*Empty, error) {
  1106. out := new(Empty)
  1107. err := c.cc.Invoke(ctx, "/pb.LogicInt/ServerStop", in, out, opts...)
  1108. if err != nil {
  1109. return nil, err
  1110. }
  1111. return out, nil
  1112. }
  1113. // LogicIntServer is the server API for LogicInt service.
  1114. // All implementations must embed UnimplementedLogicIntServer
  1115. // for forward compatibility
  1116. type LogicIntServer interface {
  1117. // 登录
  1118. ConnSignIn(context.Context, *ConnSignInReq) (*Empty, error)
  1119. // 消息同步
  1120. Sync(context.Context, *SyncReq) (*SyncResp, error)
  1121. // 设备收到消息回执
  1122. MessageACK(context.Context, *MessageACKReq) (*Empty, error)
  1123. // 设备离线
  1124. Offline(context.Context, *OfflineReq) (*Empty, error)
  1125. // 订阅房间
  1126. SubscribeRoom(context.Context, *SubscribeRoomReq) (*Empty, error)
  1127. // 发送消息
  1128. SendMessage(context.Context, *SendMessageReq) (*SendMessageResp, error)
  1129. // 推送消息到房间
  1130. PushRoom(context.Context, *PushRoomReq) (*Empty, error)
  1131. // 全服推送
  1132. PushAll(context.Context, *PushAllReq) (*Empty, error)
  1133. // 获取设备信息
  1134. GetDevice(context.Context, *GetDeviceReq) (*GetDeviceResp, error)
  1135. // 服务停止
  1136. ServerStop(context.Context, *ServerStopReq) (*Empty, error)
  1137. }
  1138. // UnimplementedLogicIntServer must be embedded to have forward compatible implementations.
  1139. type UnimplementedLogicIntServer struct {
  1140. }
  1141. func (UnimplementedLogicIntServer) ConnSignIn(context.Context, *ConnSignInReq) (*Empty, error) {
  1142. return nil, status.Errorf(codes.Unimplemented, "method ConnSignIn not implemented")
  1143. }
  1144. func (UnimplementedLogicIntServer) Sync(context.Context, *SyncReq) (*SyncResp, error) {
  1145. return nil, status.Errorf(codes.Unimplemented, "method Sync not implemented")
  1146. }
  1147. func (UnimplementedLogicIntServer) MessageACK(context.Context, *MessageACKReq) (*Empty, error) {
  1148. return nil, status.Errorf(codes.Unimplemented, "method MessageACK not implemented")
  1149. }
  1150. func (UnimplementedLogicIntServer) Offline(context.Context, *OfflineReq) (*Empty, error) {
  1151. return nil, status.Errorf(codes.Unimplemented, "method Offline not implemented")
  1152. }
  1153. func (UnimplementedLogicIntServer) SubscribeRoom(context.Context, *SubscribeRoomReq) (*Empty, error) {
  1154. return nil, status.Errorf(codes.Unimplemented, "method SubscribeRoom not implemented")
  1155. }
  1156. func (UnimplementedLogicIntServer) SendMessage(context.Context, *SendMessageReq) (*SendMessageResp, error) {
  1157. return nil, status.Errorf(codes.Unimplemented, "method SendMessage not implemented")
  1158. }
  1159. func (UnimplementedLogicIntServer) PushRoom(context.Context, *PushRoomReq) (*Empty, error) {
  1160. return nil, status.Errorf(codes.Unimplemented, "method PushRoom not implemented")
  1161. }
  1162. func (UnimplementedLogicIntServer) PushAll(context.Context, *PushAllReq) (*Empty, error) {
  1163. return nil, status.Errorf(codes.Unimplemented, "method PushAll not implemented")
  1164. }
  1165. func (UnimplementedLogicIntServer) GetDevice(context.Context, *GetDeviceReq) (*GetDeviceResp, error) {
  1166. return nil, status.Errorf(codes.Unimplemented, "method GetDevice not implemented")
  1167. }
  1168. func (UnimplementedLogicIntServer) ServerStop(context.Context, *ServerStopReq) (*Empty, error) {
  1169. return nil, status.Errorf(codes.Unimplemented, "method ServerStop not implemented")
  1170. }
  1171. // UnsafeLogicIntServer may be embedded to opt out of forward compatibility for this service.
  1172. // Use of this interface is not recommended, as added methods to LogicIntServer will
  1173. // result in compilation errors.
  1174. type UnsafeLogicIntServer interface {
  1175. }
  1176. func RegisterLogicIntServer(s grpc.ServiceRegistrar, srv LogicIntServer) {
  1177. s.RegisterService(&LogicInt_ServiceDesc, srv)
  1178. }
  1179. func _LogicInt_ConnSignIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1180. in := new(ConnSignInReq)
  1181. if err := dec(in); err != nil {
  1182. return nil, err
  1183. }
  1184. if interceptor == nil {
  1185. return srv.(LogicIntServer).ConnSignIn(ctx, in)
  1186. }
  1187. info := &grpc.UnaryServerInfo{
  1188. Server: srv,
  1189. FullMethod: "/pb.LogicInt/ConnSignIn",
  1190. }
  1191. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1192. return srv.(LogicIntServer).ConnSignIn(ctx, req.(*ConnSignInReq))
  1193. }
  1194. return interceptor(ctx, in, info, handler)
  1195. }
  1196. func _LogicInt_Sync_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1197. in := new(SyncReq)
  1198. if err := dec(in); err != nil {
  1199. return nil, err
  1200. }
  1201. if interceptor == nil {
  1202. return srv.(LogicIntServer).Sync(ctx, in)
  1203. }
  1204. info := &grpc.UnaryServerInfo{
  1205. Server: srv,
  1206. FullMethod: "/pb.LogicInt/Sync",
  1207. }
  1208. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1209. return srv.(LogicIntServer).Sync(ctx, req.(*SyncReq))
  1210. }
  1211. return interceptor(ctx, in, info, handler)
  1212. }
  1213. func _LogicInt_MessageACK_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1214. in := new(MessageACKReq)
  1215. if err := dec(in); err != nil {
  1216. return nil, err
  1217. }
  1218. if interceptor == nil {
  1219. return srv.(LogicIntServer).MessageACK(ctx, in)
  1220. }
  1221. info := &grpc.UnaryServerInfo{
  1222. Server: srv,
  1223. FullMethod: "/pb.LogicInt/MessageACK",
  1224. }
  1225. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1226. return srv.(LogicIntServer).MessageACK(ctx, req.(*MessageACKReq))
  1227. }
  1228. return interceptor(ctx, in, info, handler)
  1229. }
  1230. func _LogicInt_Offline_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1231. in := new(OfflineReq)
  1232. if err := dec(in); err != nil {
  1233. return nil, err
  1234. }
  1235. if interceptor == nil {
  1236. return srv.(LogicIntServer).Offline(ctx, in)
  1237. }
  1238. info := &grpc.UnaryServerInfo{
  1239. Server: srv,
  1240. FullMethod: "/pb.LogicInt/Offline",
  1241. }
  1242. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1243. return srv.(LogicIntServer).Offline(ctx, req.(*OfflineReq))
  1244. }
  1245. return interceptor(ctx, in, info, handler)
  1246. }
  1247. func _LogicInt_SubscribeRoom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1248. in := new(SubscribeRoomReq)
  1249. if err := dec(in); err != nil {
  1250. return nil, err
  1251. }
  1252. if interceptor == nil {
  1253. return srv.(LogicIntServer).SubscribeRoom(ctx, in)
  1254. }
  1255. info := &grpc.UnaryServerInfo{
  1256. Server: srv,
  1257. FullMethod: "/pb.LogicInt/SubscribeRoom",
  1258. }
  1259. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1260. return srv.(LogicIntServer).SubscribeRoom(ctx, req.(*SubscribeRoomReq))
  1261. }
  1262. return interceptor(ctx, in, info, handler)
  1263. }
  1264. func _LogicInt_SendMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1265. in := new(SendMessageReq)
  1266. if err := dec(in); err != nil {
  1267. return nil, err
  1268. }
  1269. if interceptor == nil {
  1270. return srv.(LogicIntServer).SendMessage(ctx, in)
  1271. }
  1272. info := &grpc.UnaryServerInfo{
  1273. Server: srv,
  1274. FullMethod: "/pb.LogicInt/SendMessage",
  1275. }
  1276. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1277. return srv.(LogicIntServer).SendMessage(ctx, req.(*SendMessageReq))
  1278. }
  1279. return interceptor(ctx, in, info, handler)
  1280. }
  1281. func _LogicInt_PushRoom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1282. in := new(PushRoomReq)
  1283. if err := dec(in); err != nil {
  1284. return nil, err
  1285. }
  1286. if interceptor == nil {
  1287. return srv.(LogicIntServer).PushRoom(ctx, in)
  1288. }
  1289. info := &grpc.UnaryServerInfo{
  1290. Server: srv,
  1291. FullMethod: "/pb.LogicInt/PushRoom",
  1292. }
  1293. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1294. return srv.(LogicIntServer).PushRoom(ctx, req.(*PushRoomReq))
  1295. }
  1296. return interceptor(ctx, in, info, handler)
  1297. }
  1298. func _LogicInt_PushAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1299. in := new(PushAllReq)
  1300. if err := dec(in); err != nil {
  1301. return nil, err
  1302. }
  1303. if interceptor == nil {
  1304. return srv.(LogicIntServer).PushAll(ctx, in)
  1305. }
  1306. info := &grpc.UnaryServerInfo{
  1307. Server: srv,
  1308. FullMethod: "/pb.LogicInt/PushAll",
  1309. }
  1310. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1311. return srv.(LogicIntServer).PushAll(ctx, req.(*PushAllReq))
  1312. }
  1313. return interceptor(ctx, in, info, handler)
  1314. }
  1315. func _LogicInt_GetDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1316. in := new(GetDeviceReq)
  1317. if err := dec(in); err != nil {
  1318. return nil, err
  1319. }
  1320. if interceptor == nil {
  1321. return srv.(LogicIntServer).GetDevice(ctx, in)
  1322. }
  1323. info := &grpc.UnaryServerInfo{
  1324. Server: srv,
  1325. FullMethod: "/pb.LogicInt/GetDevice",
  1326. }
  1327. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1328. return srv.(LogicIntServer).GetDevice(ctx, req.(*GetDeviceReq))
  1329. }
  1330. return interceptor(ctx, in, info, handler)
  1331. }
  1332. func _LogicInt_ServerStop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1333. in := new(ServerStopReq)
  1334. if err := dec(in); err != nil {
  1335. return nil, err
  1336. }
  1337. if interceptor == nil {
  1338. return srv.(LogicIntServer).ServerStop(ctx, in)
  1339. }
  1340. info := &grpc.UnaryServerInfo{
  1341. Server: srv,
  1342. FullMethod: "/pb.LogicInt/ServerStop",
  1343. }
  1344. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1345. return srv.(LogicIntServer).ServerStop(ctx, req.(*ServerStopReq))
  1346. }
  1347. return interceptor(ctx, in, info, handler)
  1348. }
  1349. // LogicInt_ServiceDesc is the grpc.ServiceDesc for LogicInt service.
  1350. // It's only intended for direct use with grpc.RegisterService,
  1351. // and not to be introspected or modified (even as a copy)
  1352. var LogicInt_ServiceDesc = grpc.ServiceDesc{
  1353. ServiceName: "pb.LogicInt",
  1354. HandlerType: (*LogicIntServer)(nil),
  1355. Methods: []grpc.MethodDesc{
  1356. {
  1357. MethodName: "ConnSignIn",
  1358. Handler: _LogicInt_ConnSignIn_Handler,
  1359. },
  1360. {
  1361. MethodName: "Sync",
  1362. Handler: _LogicInt_Sync_Handler,
  1363. },
  1364. {
  1365. MethodName: "MessageACK",
  1366. Handler: _LogicInt_MessageACK_Handler,
  1367. },
  1368. {
  1369. MethodName: "Offline",
  1370. Handler: _LogicInt_Offline_Handler,
  1371. },
  1372. {
  1373. MethodName: "SubscribeRoom",
  1374. Handler: _LogicInt_SubscribeRoom_Handler,
  1375. },
  1376. {
  1377. MethodName: "SendMessage",
  1378. Handler: _LogicInt_SendMessage_Handler,
  1379. },
  1380. {
  1381. MethodName: "PushRoom",
  1382. Handler: _LogicInt_PushRoom_Handler,
  1383. },
  1384. {
  1385. MethodName: "PushAll",
  1386. Handler: _LogicInt_PushAll_Handler,
  1387. },
  1388. {
  1389. MethodName: "GetDevice",
  1390. Handler: _LogicInt_GetDevice_Handler,
  1391. },
  1392. {
  1393. MethodName: "ServerStop",
  1394. Handler: _LogicInt_ServerStop_Handler,
  1395. },
  1396. },
  1397. Streams: []grpc.StreamDesc{},
  1398. Metadata: "logic.int.proto",
  1399. }