golang-im聊天
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

1548 wiersze
52 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.26.0
  4. // protoc v3.14.0
  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. // Reference imports to suppress errors if they are not otherwise used.
  999. var _ context.Context
  1000. var _ grpc.ClientConnInterface
  1001. // This is a compile-time assertion to ensure that this generated file
  1002. // is compatible with the grpc package it is being compiled against.
  1003. const _ = grpc.SupportPackageIsVersion6
  1004. // LogicIntClient is the client API for LogicInt service.
  1005. //
  1006. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1007. type LogicIntClient interface {
  1008. // 登录
  1009. ConnSignIn(ctx context.Context, in *ConnSignInReq, opts ...grpc.CallOption) (*Empty, error)
  1010. // 消息同步
  1011. Sync(ctx context.Context, in *SyncReq, opts ...grpc.CallOption) (*SyncResp, error)
  1012. // 设备收到消息回执
  1013. MessageACK(ctx context.Context, in *MessageACKReq, opts ...grpc.CallOption) (*Empty, error)
  1014. // 设备离线
  1015. Offline(ctx context.Context, in *OfflineReq, opts ...grpc.CallOption) (*Empty, error)
  1016. // 订阅房间
  1017. SubscribeRoom(ctx context.Context, in *SubscribeRoomReq, opts ...grpc.CallOption) (*Empty, error)
  1018. // 发送消息
  1019. SendMessage(ctx context.Context, in *SendMessageReq, opts ...grpc.CallOption) (*SendMessageResp, error)
  1020. // 推送消息到房间
  1021. PushRoom(ctx context.Context, in *PushRoomReq, opts ...grpc.CallOption) (*Empty, error)
  1022. // 全服推送
  1023. PushAll(ctx context.Context, in *PushAllReq, opts ...grpc.CallOption) (*Empty, error)
  1024. // 获取设备信息
  1025. GetDevice(ctx context.Context, in *GetDeviceReq, opts ...grpc.CallOption) (*GetDeviceResp, error)
  1026. // 服务停止
  1027. ServerStop(ctx context.Context, in *ServerStopReq, opts ...grpc.CallOption) (*Empty, error)
  1028. }
  1029. type logicIntClient struct {
  1030. cc grpc.ClientConnInterface
  1031. }
  1032. func NewLogicIntClient(cc grpc.ClientConnInterface) LogicIntClient {
  1033. return &logicIntClient{cc}
  1034. }
  1035. func (c *logicIntClient) ConnSignIn(ctx context.Context, in *ConnSignInReq, opts ...grpc.CallOption) (*Empty, error) {
  1036. out := new(Empty)
  1037. err := c.cc.Invoke(ctx, "/pb.LogicInt/ConnSignIn", in, out, opts...)
  1038. if err != nil {
  1039. return nil, err
  1040. }
  1041. return out, nil
  1042. }
  1043. func (c *logicIntClient) Sync(ctx context.Context, in *SyncReq, opts ...grpc.CallOption) (*SyncResp, error) {
  1044. out := new(SyncResp)
  1045. err := c.cc.Invoke(ctx, "/pb.LogicInt/Sync", in, out, opts...)
  1046. if err != nil {
  1047. return nil, err
  1048. }
  1049. return out, nil
  1050. }
  1051. func (c *logicIntClient) MessageACK(ctx context.Context, in *MessageACKReq, opts ...grpc.CallOption) (*Empty, error) {
  1052. out := new(Empty)
  1053. err := c.cc.Invoke(ctx, "/pb.LogicInt/MessageACK", in, out, opts...)
  1054. if err != nil {
  1055. return nil, err
  1056. }
  1057. return out, nil
  1058. }
  1059. func (c *logicIntClient) Offline(ctx context.Context, in *OfflineReq, opts ...grpc.CallOption) (*Empty, error) {
  1060. out := new(Empty)
  1061. err := c.cc.Invoke(ctx, "/pb.LogicInt/Offline", in, out, opts...)
  1062. if err != nil {
  1063. return nil, err
  1064. }
  1065. return out, nil
  1066. }
  1067. func (c *logicIntClient) SubscribeRoom(ctx context.Context, in *SubscribeRoomReq, opts ...grpc.CallOption) (*Empty, error) {
  1068. out := new(Empty)
  1069. err := c.cc.Invoke(ctx, "/pb.LogicInt/SubscribeRoom", in, out, opts...)
  1070. if err != nil {
  1071. return nil, err
  1072. }
  1073. return out, nil
  1074. }
  1075. func (c *logicIntClient) SendMessage(ctx context.Context, in *SendMessageReq, opts ...grpc.CallOption) (*SendMessageResp, error) {
  1076. out := new(SendMessageResp)
  1077. err := c.cc.Invoke(ctx, "/pb.LogicInt/SendMessage", in, out, opts...)
  1078. if err != nil {
  1079. return nil, err
  1080. }
  1081. return out, nil
  1082. }
  1083. func (c *logicIntClient) PushRoom(ctx context.Context, in *PushRoomReq, opts ...grpc.CallOption) (*Empty, error) {
  1084. out := new(Empty)
  1085. err := c.cc.Invoke(ctx, "/pb.LogicInt/PushRoom", in, out, opts...)
  1086. if err != nil {
  1087. return nil, err
  1088. }
  1089. return out, nil
  1090. }
  1091. func (c *logicIntClient) PushAll(ctx context.Context, in *PushAllReq, opts ...grpc.CallOption) (*Empty, error) {
  1092. out := new(Empty)
  1093. err := c.cc.Invoke(ctx, "/pb.LogicInt/PushAll", in, out, opts...)
  1094. if err != nil {
  1095. return nil, err
  1096. }
  1097. return out, nil
  1098. }
  1099. func (c *logicIntClient) GetDevice(ctx context.Context, in *GetDeviceReq, opts ...grpc.CallOption) (*GetDeviceResp, error) {
  1100. out := new(GetDeviceResp)
  1101. err := c.cc.Invoke(ctx, "/pb.LogicInt/GetDevice", in, out, opts...)
  1102. if err != nil {
  1103. return nil, err
  1104. }
  1105. return out, nil
  1106. }
  1107. func (c *logicIntClient) ServerStop(ctx context.Context, in *ServerStopReq, opts ...grpc.CallOption) (*Empty, error) {
  1108. out := new(Empty)
  1109. err := c.cc.Invoke(ctx, "/pb.LogicInt/ServerStop", in, out, opts...)
  1110. if err != nil {
  1111. return nil, err
  1112. }
  1113. return out, nil
  1114. }
  1115. // LogicIntServer is the server API for LogicInt service.
  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 can 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. func RegisterLogicIntServer(s *grpc.Server, srv LogicIntServer) {
  1172. s.RegisterService(&_LogicInt_serviceDesc, srv)
  1173. }
  1174. func _LogicInt_ConnSignIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1175. in := new(ConnSignInReq)
  1176. if err := dec(in); err != nil {
  1177. return nil, err
  1178. }
  1179. if interceptor == nil {
  1180. return srv.(LogicIntServer).ConnSignIn(ctx, in)
  1181. }
  1182. info := &grpc.UnaryServerInfo{
  1183. Server: srv,
  1184. FullMethod: "/pb.LogicInt/ConnSignIn",
  1185. }
  1186. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1187. return srv.(LogicIntServer).ConnSignIn(ctx, req.(*ConnSignInReq))
  1188. }
  1189. return interceptor(ctx, in, info, handler)
  1190. }
  1191. func _LogicInt_Sync_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1192. in := new(SyncReq)
  1193. if err := dec(in); err != nil {
  1194. return nil, err
  1195. }
  1196. if interceptor == nil {
  1197. return srv.(LogicIntServer).Sync(ctx, in)
  1198. }
  1199. info := &grpc.UnaryServerInfo{
  1200. Server: srv,
  1201. FullMethod: "/pb.LogicInt/Sync",
  1202. }
  1203. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1204. return srv.(LogicIntServer).Sync(ctx, req.(*SyncReq))
  1205. }
  1206. return interceptor(ctx, in, info, handler)
  1207. }
  1208. func _LogicInt_MessageACK_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1209. in := new(MessageACKReq)
  1210. if err := dec(in); err != nil {
  1211. return nil, err
  1212. }
  1213. if interceptor == nil {
  1214. return srv.(LogicIntServer).MessageACK(ctx, in)
  1215. }
  1216. info := &grpc.UnaryServerInfo{
  1217. Server: srv,
  1218. FullMethod: "/pb.LogicInt/MessageACK",
  1219. }
  1220. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1221. return srv.(LogicIntServer).MessageACK(ctx, req.(*MessageACKReq))
  1222. }
  1223. return interceptor(ctx, in, info, handler)
  1224. }
  1225. func _LogicInt_Offline_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1226. in := new(OfflineReq)
  1227. if err := dec(in); err != nil {
  1228. return nil, err
  1229. }
  1230. if interceptor == nil {
  1231. return srv.(LogicIntServer).Offline(ctx, in)
  1232. }
  1233. info := &grpc.UnaryServerInfo{
  1234. Server: srv,
  1235. FullMethod: "/pb.LogicInt/Offline",
  1236. }
  1237. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1238. return srv.(LogicIntServer).Offline(ctx, req.(*OfflineReq))
  1239. }
  1240. return interceptor(ctx, in, info, handler)
  1241. }
  1242. func _LogicInt_SubscribeRoom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1243. in := new(SubscribeRoomReq)
  1244. if err := dec(in); err != nil {
  1245. return nil, err
  1246. }
  1247. if interceptor == nil {
  1248. return srv.(LogicIntServer).SubscribeRoom(ctx, in)
  1249. }
  1250. info := &grpc.UnaryServerInfo{
  1251. Server: srv,
  1252. FullMethod: "/pb.LogicInt/SubscribeRoom",
  1253. }
  1254. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1255. return srv.(LogicIntServer).SubscribeRoom(ctx, req.(*SubscribeRoomReq))
  1256. }
  1257. return interceptor(ctx, in, info, handler)
  1258. }
  1259. func _LogicInt_SendMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1260. in := new(SendMessageReq)
  1261. if err := dec(in); err != nil {
  1262. return nil, err
  1263. }
  1264. if interceptor == nil {
  1265. return srv.(LogicIntServer).SendMessage(ctx, in)
  1266. }
  1267. info := &grpc.UnaryServerInfo{
  1268. Server: srv,
  1269. FullMethod: "/pb.LogicInt/SendMessage",
  1270. }
  1271. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1272. return srv.(LogicIntServer).SendMessage(ctx, req.(*SendMessageReq))
  1273. }
  1274. return interceptor(ctx, in, info, handler)
  1275. }
  1276. func _LogicInt_PushRoom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1277. in := new(PushRoomReq)
  1278. if err := dec(in); err != nil {
  1279. return nil, err
  1280. }
  1281. if interceptor == nil {
  1282. return srv.(LogicIntServer).PushRoom(ctx, in)
  1283. }
  1284. info := &grpc.UnaryServerInfo{
  1285. Server: srv,
  1286. FullMethod: "/pb.LogicInt/PushRoom",
  1287. }
  1288. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1289. return srv.(LogicIntServer).PushRoom(ctx, req.(*PushRoomReq))
  1290. }
  1291. return interceptor(ctx, in, info, handler)
  1292. }
  1293. func _LogicInt_PushAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1294. in := new(PushAllReq)
  1295. if err := dec(in); err != nil {
  1296. return nil, err
  1297. }
  1298. if interceptor == nil {
  1299. return srv.(LogicIntServer).PushAll(ctx, in)
  1300. }
  1301. info := &grpc.UnaryServerInfo{
  1302. Server: srv,
  1303. FullMethod: "/pb.LogicInt/PushAll",
  1304. }
  1305. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1306. return srv.(LogicIntServer).PushAll(ctx, req.(*PushAllReq))
  1307. }
  1308. return interceptor(ctx, in, info, handler)
  1309. }
  1310. func _LogicInt_GetDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1311. in := new(GetDeviceReq)
  1312. if err := dec(in); err != nil {
  1313. return nil, err
  1314. }
  1315. if interceptor == nil {
  1316. return srv.(LogicIntServer).GetDevice(ctx, in)
  1317. }
  1318. info := &grpc.UnaryServerInfo{
  1319. Server: srv,
  1320. FullMethod: "/pb.LogicInt/GetDevice",
  1321. }
  1322. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1323. return srv.(LogicIntServer).GetDevice(ctx, req.(*GetDeviceReq))
  1324. }
  1325. return interceptor(ctx, in, info, handler)
  1326. }
  1327. func _LogicInt_ServerStop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1328. in := new(ServerStopReq)
  1329. if err := dec(in); err != nil {
  1330. return nil, err
  1331. }
  1332. if interceptor == nil {
  1333. return srv.(LogicIntServer).ServerStop(ctx, in)
  1334. }
  1335. info := &grpc.UnaryServerInfo{
  1336. Server: srv,
  1337. FullMethod: "/pb.LogicInt/ServerStop",
  1338. }
  1339. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1340. return srv.(LogicIntServer).ServerStop(ctx, req.(*ServerStopReq))
  1341. }
  1342. return interceptor(ctx, in, info, handler)
  1343. }
  1344. var _LogicInt_serviceDesc = grpc.ServiceDesc{
  1345. ServiceName: "pb.LogicInt",
  1346. HandlerType: (*LogicIntServer)(nil),
  1347. Methods: []grpc.MethodDesc{
  1348. {
  1349. MethodName: "ConnSignIn",
  1350. Handler: _LogicInt_ConnSignIn_Handler,
  1351. },
  1352. {
  1353. MethodName: "Sync",
  1354. Handler: _LogicInt_Sync_Handler,
  1355. },
  1356. {
  1357. MethodName: "MessageACK",
  1358. Handler: _LogicInt_MessageACK_Handler,
  1359. },
  1360. {
  1361. MethodName: "Offline",
  1362. Handler: _LogicInt_Offline_Handler,
  1363. },
  1364. {
  1365. MethodName: "SubscribeRoom",
  1366. Handler: _LogicInt_SubscribeRoom_Handler,
  1367. },
  1368. {
  1369. MethodName: "SendMessage",
  1370. Handler: _LogicInt_SendMessage_Handler,
  1371. },
  1372. {
  1373. MethodName: "PushRoom",
  1374. Handler: _LogicInt_PushRoom_Handler,
  1375. },
  1376. {
  1377. MethodName: "PushAll",
  1378. Handler: _LogicInt_PushAll_Handler,
  1379. },
  1380. {
  1381. MethodName: "GetDevice",
  1382. Handler: _LogicInt_GetDevice_Handler,
  1383. },
  1384. {
  1385. MethodName: "ServerStop",
  1386. Handler: _LogicInt_ServerStop_Handler,
  1387. },
  1388. },
  1389. Streams: []grpc.StreamDesc{},
  1390. Metadata: "logic.int.proto",
  1391. }