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

1916 行
58 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: connect.ext.proto
  6. package pb
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type PackageType int32
  20. const (
  21. PackageType_PT_UNKNOWN PackageType = 0 // 未知
  22. PackageType_PT_SIGN_IN PackageType = 1 // 设备登录请求
  23. PackageType_PT_SYNC PackageType = 2 // 消息同步触发
  24. PackageType_PT_HEARTBEAT PackageType = 3 // 心跳
  25. PackageType_PT_MESSAGE PackageType = 4 // 消息投递
  26. PackageType_PT_SUBSCRIBE_ROOM PackageType = 5 // 订阅房间
  27. )
  28. // Enum value maps for PackageType.
  29. var (
  30. PackageType_name = map[int32]string{
  31. 0: "PT_UNKNOWN",
  32. 1: "PT_SIGN_IN",
  33. 2: "PT_SYNC",
  34. 3: "PT_HEARTBEAT",
  35. 4: "PT_MESSAGE",
  36. 5: "PT_SUBSCRIBE_ROOM",
  37. }
  38. PackageType_value = map[string]int32{
  39. "PT_UNKNOWN": 0,
  40. "PT_SIGN_IN": 1,
  41. "PT_SYNC": 2,
  42. "PT_HEARTBEAT": 3,
  43. "PT_MESSAGE": 4,
  44. "PT_SUBSCRIBE_ROOM": 5,
  45. }
  46. )
  47. func (x PackageType) Enum() *PackageType {
  48. p := new(PackageType)
  49. *p = x
  50. return p
  51. }
  52. func (x PackageType) String() string {
  53. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  54. }
  55. func (PackageType) Descriptor() protoreflect.EnumDescriptor {
  56. return file_connect_ext_proto_enumTypes[0].Descriptor()
  57. }
  58. func (PackageType) Type() protoreflect.EnumType {
  59. return &file_connect_ext_proto_enumTypes[0]
  60. }
  61. func (x PackageType) Number() protoreflect.EnumNumber {
  62. return protoreflect.EnumNumber(x)
  63. }
  64. // Deprecated: Use PackageType.Descriptor instead.
  65. func (PackageType) EnumDescriptor() ([]byte, []int) {
  66. return file_connect_ext_proto_rawDescGZIP(), []int{0}
  67. }
  68. // 消息类型
  69. type MessageType int32
  70. const (
  71. MessageType_MT_UNKNOWN MessageType = 0 // 未知
  72. MessageType_MT_TEXT MessageType = 1 // 文本
  73. MessageType_MT_FACE MessageType = 2 // 表情
  74. MessageType_MT_VOICE MessageType = 3 // 语音消息
  75. MessageType_MT_IMAGE MessageType = 4 // 图片
  76. MessageType_MT_FILE MessageType = 5 // 文件
  77. MessageType_MT_LOCATION MessageType = 6 // 地理位置
  78. MessageType_MT_COMMAND MessageType = 7 // 指令推送
  79. MessageType_MT_CUSTOM MessageType = 8 // 自定义
  80. )
  81. // Enum value maps for MessageType.
  82. var (
  83. MessageType_name = map[int32]string{
  84. 0: "MT_UNKNOWN",
  85. 1: "MT_TEXT",
  86. 2: "MT_FACE",
  87. 3: "MT_VOICE",
  88. 4: "MT_IMAGE",
  89. 5: "MT_FILE",
  90. 6: "MT_LOCATION",
  91. 7: "MT_COMMAND",
  92. 8: "MT_CUSTOM",
  93. }
  94. MessageType_value = map[string]int32{
  95. "MT_UNKNOWN": 0,
  96. "MT_TEXT": 1,
  97. "MT_FACE": 2,
  98. "MT_VOICE": 3,
  99. "MT_IMAGE": 4,
  100. "MT_FILE": 5,
  101. "MT_LOCATION": 6,
  102. "MT_COMMAND": 7,
  103. "MT_CUSTOM": 8,
  104. }
  105. )
  106. func (x MessageType) Enum() *MessageType {
  107. p := new(MessageType)
  108. *p = x
  109. return p
  110. }
  111. func (x MessageType) String() string {
  112. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  113. }
  114. func (MessageType) Descriptor() protoreflect.EnumDescriptor {
  115. return file_connect_ext_proto_enumTypes[1].Descriptor()
  116. }
  117. func (MessageType) Type() protoreflect.EnumType {
  118. return &file_connect_ext_proto_enumTypes[1]
  119. }
  120. func (x MessageType) Number() protoreflect.EnumNumber {
  121. return protoreflect.EnumNumber(x)
  122. }
  123. // Deprecated: Use MessageType.Descriptor instead.
  124. func (MessageType) EnumDescriptor() ([]byte, []int) {
  125. return file_connect_ext_proto_rawDescGZIP(), []int{1}
  126. }
  127. type ReceiverType int32
  128. const (
  129. ReceiverType_RT_UNKNOWN ReceiverType = 0 // 未知
  130. ReceiverType_RT_USER ReceiverType = 1 // 用户
  131. ReceiverType_RT_GROUP ReceiverType = 2 // 群组
  132. ReceiverType_RT_ROOM ReceiverType = 3 // 房间
  133. )
  134. // Enum value maps for ReceiverType.
  135. var (
  136. ReceiverType_name = map[int32]string{
  137. 0: "RT_UNKNOWN",
  138. 1: "RT_USER",
  139. 2: "RT_GROUP",
  140. 3: "RT_ROOM",
  141. }
  142. ReceiverType_value = map[string]int32{
  143. "RT_UNKNOWN": 0,
  144. "RT_USER": 1,
  145. "RT_GROUP": 2,
  146. "RT_ROOM": 3,
  147. }
  148. )
  149. func (x ReceiverType) Enum() *ReceiverType {
  150. p := new(ReceiverType)
  151. *p = x
  152. return p
  153. }
  154. func (x ReceiverType) String() string {
  155. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  156. }
  157. func (ReceiverType) Descriptor() protoreflect.EnumDescriptor {
  158. return file_connect_ext_proto_enumTypes[2].Descriptor()
  159. }
  160. func (ReceiverType) Type() protoreflect.EnumType {
  161. return &file_connect_ext_proto_enumTypes[2]
  162. }
  163. func (x ReceiverType) Number() protoreflect.EnumNumber {
  164. return protoreflect.EnumNumber(x)
  165. }
  166. // Deprecated: Use ReceiverType.Descriptor instead.
  167. func (ReceiverType) EnumDescriptor() ([]byte, []int) {
  168. return file_connect_ext_proto_rawDescGZIP(), []int{2}
  169. }
  170. type SenderType int32
  171. const (
  172. SenderType_ST_UNKNOWN SenderType = 0 // 未知的
  173. SenderType_ST_SYSTEM SenderType = 1 // IM系统
  174. SenderType_ST_USER SenderType = 2 // 用户
  175. SenderType_ST_BUSINESS SenderType = 3 // 业务方
  176. )
  177. // Enum value maps for SenderType.
  178. var (
  179. SenderType_name = map[int32]string{
  180. 0: "ST_UNKNOWN",
  181. 1: "ST_SYSTEM",
  182. 2: "ST_USER",
  183. 3: "ST_BUSINESS",
  184. }
  185. SenderType_value = map[string]int32{
  186. "ST_UNKNOWN": 0,
  187. "ST_SYSTEM": 1,
  188. "ST_USER": 2,
  189. "ST_BUSINESS": 3,
  190. }
  191. )
  192. func (x SenderType) Enum() *SenderType {
  193. p := new(SenderType)
  194. *p = x
  195. return p
  196. }
  197. func (x SenderType) String() string {
  198. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  199. }
  200. func (SenderType) Descriptor() protoreflect.EnumDescriptor {
  201. return file_connect_ext_proto_enumTypes[3].Descriptor()
  202. }
  203. func (SenderType) Type() protoreflect.EnumType {
  204. return &file_connect_ext_proto_enumTypes[3]
  205. }
  206. func (x SenderType) Number() protoreflect.EnumNumber {
  207. return protoreflect.EnumNumber(x)
  208. }
  209. // Deprecated: Use SenderType.Descriptor instead.
  210. func (SenderType) EnumDescriptor() ([]byte, []int) {
  211. return file_connect_ext_proto_rawDescGZIP(), []int{3}
  212. }
  213. type MessageStatus int32
  214. const (
  215. MessageStatus_MS_UNKNOWN MessageStatus = 0 // 未知的
  216. MessageStatus_MS_NORMAL MessageStatus = 1 // 正常的
  217. MessageStatus_MS_RECALL MessageStatus = 2 // 撤回
  218. )
  219. // Enum value maps for MessageStatus.
  220. var (
  221. MessageStatus_name = map[int32]string{
  222. 0: "MS_UNKNOWN",
  223. 1: "MS_NORMAL",
  224. 2: "MS_RECALL",
  225. }
  226. MessageStatus_value = map[string]int32{
  227. "MS_UNKNOWN": 0,
  228. "MS_NORMAL": 1,
  229. "MS_RECALL": 2,
  230. }
  231. )
  232. func (x MessageStatus) Enum() *MessageStatus {
  233. p := new(MessageStatus)
  234. *p = x
  235. return p
  236. }
  237. func (x MessageStatus) String() string {
  238. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  239. }
  240. func (MessageStatus) Descriptor() protoreflect.EnumDescriptor {
  241. return file_connect_ext_proto_enumTypes[4].Descriptor()
  242. }
  243. func (MessageStatus) Type() protoreflect.EnumType {
  244. return &file_connect_ext_proto_enumTypes[4]
  245. }
  246. func (x MessageStatus) Number() protoreflect.EnumNumber {
  247. return protoreflect.EnumNumber(x)
  248. }
  249. // Deprecated: Use MessageStatus.Descriptor instead.
  250. func (MessageStatus) EnumDescriptor() ([]byte, []int) {
  251. return file_connect_ext_proto_rawDescGZIP(), []int{4}
  252. }
  253. // 单条消息投递内容(估算大约100个字节),todo 通知栏提醒
  254. type Message struct {
  255. state protoimpl.MessageState
  256. sizeCache protoimpl.SizeCache
  257. unknownFields protoimpl.UnknownFields
  258. Sender *Sender `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // 发送者
  259. ReceiverType ReceiverType `protobuf:"varint,2,opt,name=receiver_type,json=receiverType,proto3,enum=pb.ReceiverType" json:"receiver_type,omitempty"` // 接收者类型,1:user;2:group
  260. ReceiverId int64 `protobuf:"varint,3,opt,name=receiver_id,json=receiverId,proto3" json:"receiver_id,omitempty"` // 用户id或者群组id
  261. ToUserIds []int64 `protobuf:"varint,4,rep,packed,name=to_user_ids,json=toUserIds,proto3" json:"to_user_ids,omitempty"` // 需要@的用户id列表
  262. MessageType MessageType `protobuf:"varint,5,opt,name=message_type,json=messageType,proto3,enum=pb.MessageType" json:"message_type,omitempty"` // 消息类型
  263. MessageContent []byte `protobuf:"bytes,6,opt,name=message_content,json=messageContent,proto3" json:"message_content,omitempty"` // 消息内容
  264. Seq int64 `protobuf:"varint,7,opt,name=seq,proto3" json:"seq,omitempty"` // 用户消息发送序列号
  265. SendTime int64 `protobuf:"varint,8,opt,name=send_time,json=sendTime,proto3" json:"send_time,omitempty"` // 消息发送时间戳,精确到毫秒
  266. Status MessageStatus `protobuf:"varint,9,opt,name=status,proto3,enum=pb.MessageStatus" json:"status,omitempty"` // 消息状态
  267. }
  268. func (x *Message) Reset() {
  269. *x = Message{}
  270. if protoimpl.UnsafeEnabled {
  271. mi := &file_connect_ext_proto_msgTypes[0]
  272. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  273. ms.StoreMessageInfo(mi)
  274. }
  275. }
  276. func (x *Message) String() string {
  277. return protoimpl.X.MessageStringOf(x)
  278. }
  279. func (*Message) ProtoMessage() {}
  280. func (x *Message) ProtoReflect() protoreflect.Message {
  281. mi := &file_connect_ext_proto_msgTypes[0]
  282. if protoimpl.UnsafeEnabled && x != nil {
  283. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  284. if ms.LoadMessageInfo() == nil {
  285. ms.StoreMessageInfo(mi)
  286. }
  287. return ms
  288. }
  289. return mi.MessageOf(x)
  290. }
  291. // Deprecated: Use Message.ProtoReflect.Descriptor instead.
  292. func (*Message) Descriptor() ([]byte, []int) {
  293. return file_connect_ext_proto_rawDescGZIP(), []int{0}
  294. }
  295. func (x *Message) GetSender() *Sender {
  296. if x != nil {
  297. return x.Sender
  298. }
  299. return nil
  300. }
  301. func (x *Message) GetReceiverType() ReceiverType {
  302. if x != nil {
  303. return x.ReceiverType
  304. }
  305. return ReceiverType_RT_UNKNOWN
  306. }
  307. func (x *Message) GetReceiverId() int64 {
  308. if x != nil {
  309. return x.ReceiverId
  310. }
  311. return 0
  312. }
  313. func (x *Message) GetToUserIds() []int64 {
  314. if x != nil {
  315. return x.ToUserIds
  316. }
  317. return nil
  318. }
  319. func (x *Message) GetMessageType() MessageType {
  320. if x != nil {
  321. return x.MessageType
  322. }
  323. return MessageType_MT_UNKNOWN
  324. }
  325. func (x *Message) GetMessageContent() []byte {
  326. if x != nil {
  327. return x.MessageContent
  328. }
  329. return nil
  330. }
  331. func (x *Message) GetSeq() int64 {
  332. if x != nil {
  333. return x.Seq
  334. }
  335. return 0
  336. }
  337. func (x *Message) GetSendTime() int64 {
  338. if x != nil {
  339. return x.SendTime
  340. }
  341. return 0
  342. }
  343. func (x *Message) GetStatus() MessageStatus {
  344. if x != nil {
  345. return x.Status
  346. }
  347. return MessageStatus_MS_UNKNOWN
  348. }
  349. type Sender struct {
  350. state protoimpl.MessageState
  351. sizeCache protoimpl.SizeCache
  352. unknownFields protoimpl.UnknownFields
  353. SenderType SenderType `protobuf:"varint,1,opt,name=sender_type,json=senderType,proto3,enum=pb.SenderType" json:"sender_type,omitempty"` // 发送者类型,1:系统,2:用户,3:第三方业务系统
  354. SenderId int64 `protobuf:"varint,2,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` // 发送者id
  355. DeviceId int64 `protobuf:"varint,3,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // 发送者设备id
  356. AvatarUrl string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` // 昵称
  357. Nickname string `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname,omitempty"` // 头像
  358. Extra string `protobuf:"bytes,6,opt,name=extra,proto3" json:"extra,omitempty"` // 扩展字段
  359. }
  360. func (x *Sender) Reset() {
  361. *x = Sender{}
  362. if protoimpl.UnsafeEnabled {
  363. mi := &file_connect_ext_proto_msgTypes[1]
  364. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  365. ms.StoreMessageInfo(mi)
  366. }
  367. }
  368. func (x *Sender) String() string {
  369. return protoimpl.X.MessageStringOf(x)
  370. }
  371. func (*Sender) ProtoMessage() {}
  372. func (x *Sender) ProtoReflect() protoreflect.Message {
  373. mi := &file_connect_ext_proto_msgTypes[1]
  374. if protoimpl.UnsafeEnabled && x != nil {
  375. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  376. if ms.LoadMessageInfo() == nil {
  377. ms.StoreMessageInfo(mi)
  378. }
  379. return ms
  380. }
  381. return mi.MessageOf(x)
  382. }
  383. // Deprecated: Use Sender.ProtoReflect.Descriptor instead.
  384. func (*Sender) Descriptor() ([]byte, []int) {
  385. return file_connect_ext_proto_rawDescGZIP(), []int{1}
  386. }
  387. func (x *Sender) GetSenderType() SenderType {
  388. if x != nil {
  389. return x.SenderType
  390. }
  391. return SenderType_ST_UNKNOWN
  392. }
  393. func (x *Sender) GetSenderId() int64 {
  394. if x != nil {
  395. return x.SenderId
  396. }
  397. return 0
  398. }
  399. func (x *Sender) GetDeviceId() int64 {
  400. if x != nil {
  401. return x.DeviceId
  402. }
  403. return 0
  404. }
  405. func (x *Sender) GetAvatarUrl() string {
  406. if x != nil {
  407. return x.AvatarUrl
  408. }
  409. return ""
  410. }
  411. func (x *Sender) GetNickname() string {
  412. if x != nil {
  413. return x.Nickname
  414. }
  415. return ""
  416. }
  417. func (x *Sender) GetExtra() string {
  418. if x != nil {
  419. return x.Extra
  420. }
  421. return ""
  422. }
  423. // 文本消息
  424. type Text struct {
  425. state protoimpl.MessageState
  426. sizeCache protoimpl.SizeCache
  427. unknownFields protoimpl.UnknownFields
  428. Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` // 文本消息内容
  429. }
  430. func (x *Text) Reset() {
  431. *x = Text{}
  432. if protoimpl.UnsafeEnabled {
  433. mi := &file_connect_ext_proto_msgTypes[2]
  434. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  435. ms.StoreMessageInfo(mi)
  436. }
  437. }
  438. func (x *Text) String() string {
  439. return protoimpl.X.MessageStringOf(x)
  440. }
  441. func (*Text) ProtoMessage() {}
  442. func (x *Text) ProtoReflect() protoreflect.Message {
  443. mi := &file_connect_ext_proto_msgTypes[2]
  444. if protoimpl.UnsafeEnabled && x != nil {
  445. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  446. if ms.LoadMessageInfo() == nil {
  447. ms.StoreMessageInfo(mi)
  448. }
  449. return ms
  450. }
  451. return mi.MessageOf(x)
  452. }
  453. // Deprecated: Use Text.ProtoReflect.Descriptor instead.
  454. func (*Text) Descriptor() ([]byte, []int) {
  455. return file_connect_ext_proto_rawDescGZIP(), []int{2}
  456. }
  457. func (x *Text) GetText() string {
  458. if x != nil {
  459. return x.Text
  460. }
  461. return ""
  462. }
  463. // 表情消息
  464. type Face struct {
  465. state protoimpl.MessageState
  466. sizeCache protoimpl.SizeCache
  467. unknownFields protoimpl.UnknownFields
  468. FaceId int64 `protobuf:"varint,1,opt,name=face_id,json=faceId,proto3" json:"face_id,omitempty"`
  469. FaceUrl string `protobuf:"bytes,2,opt,name=face_url,json=faceUrl,proto3" json:"face_url,omitempty"`
  470. }
  471. func (x *Face) Reset() {
  472. *x = Face{}
  473. if protoimpl.UnsafeEnabled {
  474. mi := &file_connect_ext_proto_msgTypes[3]
  475. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  476. ms.StoreMessageInfo(mi)
  477. }
  478. }
  479. func (x *Face) String() string {
  480. return protoimpl.X.MessageStringOf(x)
  481. }
  482. func (*Face) ProtoMessage() {}
  483. func (x *Face) ProtoReflect() protoreflect.Message {
  484. mi := &file_connect_ext_proto_msgTypes[3]
  485. if protoimpl.UnsafeEnabled && x != nil {
  486. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  487. if ms.LoadMessageInfo() == nil {
  488. ms.StoreMessageInfo(mi)
  489. }
  490. return ms
  491. }
  492. return mi.MessageOf(x)
  493. }
  494. // Deprecated: Use Face.ProtoReflect.Descriptor instead.
  495. func (*Face) Descriptor() ([]byte, []int) {
  496. return file_connect_ext_proto_rawDescGZIP(), []int{3}
  497. }
  498. func (x *Face) GetFaceId() int64 {
  499. if x != nil {
  500. return x.FaceId
  501. }
  502. return 0
  503. }
  504. func (x *Face) GetFaceUrl() string {
  505. if x != nil {
  506. return x.FaceUrl
  507. }
  508. return ""
  509. }
  510. // 语音消息
  511. type Voice struct {
  512. state protoimpl.MessageState
  513. sizeCache protoimpl.SizeCache
  514. unknownFields protoimpl.UnknownFields
  515. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 语音包id
  516. Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` // 语音包大小
  517. Duration int32 `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty"` // 语音时长
  518. Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` // 语音文件URL
  519. }
  520. func (x *Voice) Reset() {
  521. *x = Voice{}
  522. if protoimpl.UnsafeEnabled {
  523. mi := &file_connect_ext_proto_msgTypes[4]
  524. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  525. ms.StoreMessageInfo(mi)
  526. }
  527. }
  528. func (x *Voice) String() string {
  529. return protoimpl.X.MessageStringOf(x)
  530. }
  531. func (*Voice) ProtoMessage() {}
  532. func (x *Voice) ProtoReflect() protoreflect.Message {
  533. mi := &file_connect_ext_proto_msgTypes[4]
  534. if protoimpl.UnsafeEnabled && x != nil {
  535. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  536. if ms.LoadMessageInfo() == nil {
  537. ms.StoreMessageInfo(mi)
  538. }
  539. return ms
  540. }
  541. return mi.MessageOf(x)
  542. }
  543. // Deprecated: Use Voice.ProtoReflect.Descriptor instead.
  544. func (*Voice) Descriptor() ([]byte, []int) {
  545. return file_connect_ext_proto_rawDescGZIP(), []int{4}
  546. }
  547. func (x *Voice) GetId() string {
  548. if x != nil {
  549. return x.Id
  550. }
  551. return ""
  552. }
  553. func (x *Voice) GetSize() int32 {
  554. if x != nil {
  555. return x.Size
  556. }
  557. return 0
  558. }
  559. func (x *Voice) GetDuration() int32 {
  560. if x != nil {
  561. return x.Duration
  562. }
  563. return 0
  564. }
  565. func (x *Voice) GetUrl() string {
  566. if x != nil {
  567. return x.Url
  568. }
  569. return ""
  570. }
  571. // 图片消息
  572. type Image struct {
  573. state protoimpl.MessageState
  574. sizeCache protoimpl.SizeCache
  575. unknownFields protoimpl.UnknownFields
  576. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 图片id
  577. Width int32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"` // 图片宽度
  578. Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` // 图片长度
  579. Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` // 图片URL
  580. ThumbnailUrl string `protobuf:"bytes,5,opt,name=thumbnail_url,json=thumbnailUrl,proto3" json:"thumbnail_url,omitempty"` // 图片缩略图url
  581. }
  582. func (x *Image) Reset() {
  583. *x = Image{}
  584. if protoimpl.UnsafeEnabled {
  585. mi := &file_connect_ext_proto_msgTypes[5]
  586. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  587. ms.StoreMessageInfo(mi)
  588. }
  589. }
  590. func (x *Image) String() string {
  591. return protoimpl.X.MessageStringOf(x)
  592. }
  593. func (*Image) ProtoMessage() {}
  594. func (x *Image) ProtoReflect() protoreflect.Message {
  595. mi := &file_connect_ext_proto_msgTypes[5]
  596. if protoimpl.UnsafeEnabled && x != nil {
  597. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  598. if ms.LoadMessageInfo() == nil {
  599. ms.StoreMessageInfo(mi)
  600. }
  601. return ms
  602. }
  603. return mi.MessageOf(x)
  604. }
  605. // Deprecated: Use Image.ProtoReflect.Descriptor instead.
  606. func (*Image) Descriptor() ([]byte, []int) {
  607. return file_connect_ext_proto_rawDescGZIP(), []int{5}
  608. }
  609. func (x *Image) GetId() string {
  610. if x != nil {
  611. return x.Id
  612. }
  613. return ""
  614. }
  615. func (x *Image) GetWidth() int32 {
  616. if x != nil {
  617. return x.Width
  618. }
  619. return 0
  620. }
  621. func (x *Image) GetHeight() int32 {
  622. if x != nil {
  623. return x.Height
  624. }
  625. return 0
  626. }
  627. func (x *Image) GetUrl() string {
  628. if x != nil {
  629. return x.Url
  630. }
  631. return ""
  632. }
  633. func (x *Image) GetThumbnailUrl() string {
  634. if x != nil {
  635. return x.ThumbnailUrl
  636. }
  637. return ""
  638. }
  639. // 文件消息
  640. type File struct {
  641. state protoimpl.MessageState
  642. sizeCache protoimpl.SizeCache
  643. unknownFields protoimpl.UnknownFields
  644. Id int64 `protobuf:"varint,12,opt,name=id,proto3" json:"id,omitempty"` // 文件id
  645. Name string `protobuf:"bytes,13,opt,name=name,proto3" json:"name,omitempty"` // 文件名
  646. Size int64 `protobuf:"varint,14,opt,name=size,proto3" json:"size,omitempty"` // 文件大小
  647. Url string `protobuf:"bytes,15,opt,name=url,proto3" json:"url,omitempty"` // 文件url
  648. }
  649. func (x *File) Reset() {
  650. *x = File{}
  651. if protoimpl.UnsafeEnabled {
  652. mi := &file_connect_ext_proto_msgTypes[6]
  653. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  654. ms.StoreMessageInfo(mi)
  655. }
  656. }
  657. func (x *File) String() string {
  658. return protoimpl.X.MessageStringOf(x)
  659. }
  660. func (*File) ProtoMessage() {}
  661. func (x *File) ProtoReflect() protoreflect.Message {
  662. mi := &file_connect_ext_proto_msgTypes[6]
  663. if protoimpl.UnsafeEnabled && x != nil {
  664. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  665. if ms.LoadMessageInfo() == nil {
  666. ms.StoreMessageInfo(mi)
  667. }
  668. return ms
  669. }
  670. return mi.MessageOf(x)
  671. }
  672. // Deprecated: Use File.ProtoReflect.Descriptor instead.
  673. func (*File) Descriptor() ([]byte, []int) {
  674. return file_connect_ext_proto_rawDescGZIP(), []int{6}
  675. }
  676. func (x *File) GetId() int64 {
  677. if x != nil {
  678. return x.Id
  679. }
  680. return 0
  681. }
  682. func (x *File) GetName() string {
  683. if x != nil {
  684. return x.Name
  685. }
  686. return ""
  687. }
  688. func (x *File) GetSize() int64 {
  689. if x != nil {
  690. return x.Size
  691. }
  692. return 0
  693. }
  694. func (x *File) GetUrl() string {
  695. if x != nil {
  696. return x.Url
  697. }
  698. return ""
  699. }
  700. // 地理位置消息
  701. type Location struct {
  702. state protoimpl.MessageState
  703. sizeCache protoimpl.SizeCache
  704. unknownFields protoimpl.UnknownFields
  705. Desc string `protobuf:"bytes,1,opt,name=desc,proto3" json:"desc,omitempty"` // 描述
  706. Latitude float64 `protobuf:"fixed64,2,opt,name=latitude,proto3" json:"latitude,omitempty"` // 经度
  707. Longitude float64 `protobuf:"fixed64,3,opt,name=longitude,proto3" json:"longitude,omitempty"` // 纬度
  708. }
  709. func (x *Location) Reset() {
  710. *x = Location{}
  711. if protoimpl.UnsafeEnabled {
  712. mi := &file_connect_ext_proto_msgTypes[7]
  713. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  714. ms.StoreMessageInfo(mi)
  715. }
  716. }
  717. func (x *Location) String() string {
  718. return protoimpl.X.MessageStringOf(x)
  719. }
  720. func (*Location) ProtoMessage() {}
  721. func (x *Location) ProtoReflect() protoreflect.Message {
  722. mi := &file_connect_ext_proto_msgTypes[7]
  723. if protoimpl.UnsafeEnabled && x != nil {
  724. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  725. if ms.LoadMessageInfo() == nil {
  726. ms.StoreMessageInfo(mi)
  727. }
  728. return ms
  729. }
  730. return mi.MessageOf(x)
  731. }
  732. // Deprecated: Use Location.ProtoReflect.Descriptor instead.
  733. func (*Location) Descriptor() ([]byte, []int) {
  734. return file_connect_ext_proto_rawDescGZIP(), []int{7}
  735. }
  736. func (x *Location) GetDesc() string {
  737. if x != nil {
  738. return x.Desc
  739. }
  740. return ""
  741. }
  742. func (x *Location) GetLatitude() float64 {
  743. if x != nil {
  744. return x.Latitude
  745. }
  746. return 0
  747. }
  748. func (x *Location) GetLongitude() float64 {
  749. if x != nil {
  750. return x.Longitude
  751. }
  752. return 0
  753. }
  754. // Command 指令推送,1000以下,IM内部用,1000以上,留给业务用
  755. type Command struct {
  756. state protoimpl.MessageState
  757. sizeCache protoimpl.SizeCache
  758. unknownFields protoimpl.UnknownFields
  759. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 指令码
  760. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // 数据内容
  761. }
  762. func (x *Command) Reset() {
  763. *x = Command{}
  764. if protoimpl.UnsafeEnabled {
  765. mi := &file_connect_ext_proto_msgTypes[8]
  766. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  767. ms.StoreMessageInfo(mi)
  768. }
  769. }
  770. func (x *Command) String() string {
  771. return protoimpl.X.MessageStringOf(x)
  772. }
  773. func (*Command) ProtoMessage() {}
  774. func (x *Command) ProtoReflect() protoreflect.Message {
  775. mi := &file_connect_ext_proto_msgTypes[8]
  776. if protoimpl.UnsafeEnabled && x != nil {
  777. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  778. if ms.LoadMessageInfo() == nil {
  779. ms.StoreMessageInfo(mi)
  780. }
  781. return ms
  782. }
  783. return mi.MessageOf(x)
  784. }
  785. // Deprecated: Use Command.ProtoReflect.Descriptor instead.
  786. func (*Command) Descriptor() ([]byte, []int) {
  787. return file_connect_ext_proto_rawDescGZIP(), []int{8}
  788. }
  789. func (x *Command) GetCode() int32 {
  790. if x != nil {
  791. return x.Code
  792. }
  793. return 0
  794. }
  795. func (x *Command) GetData() []byte {
  796. if x != nil {
  797. return x.Data
  798. }
  799. return nil
  800. }
  801. // 自定义消息
  802. type Custom struct {
  803. state protoimpl.MessageState
  804. sizeCache protoimpl.SizeCache
  805. unknownFields protoimpl.UnknownFields
  806. Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // 自定义数据
  807. }
  808. func (x *Custom) Reset() {
  809. *x = Custom{}
  810. if protoimpl.UnsafeEnabled {
  811. mi := &file_connect_ext_proto_msgTypes[9]
  812. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  813. ms.StoreMessageInfo(mi)
  814. }
  815. }
  816. func (x *Custom) String() string {
  817. return protoimpl.X.MessageStringOf(x)
  818. }
  819. func (*Custom) ProtoMessage() {}
  820. func (x *Custom) ProtoReflect() protoreflect.Message {
  821. mi := &file_connect_ext_proto_msgTypes[9]
  822. if protoimpl.UnsafeEnabled && x != nil {
  823. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  824. if ms.LoadMessageInfo() == nil {
  825. ms.StoreMessageInfo(mi)
  826. }
  827. return ms
  828. }
  829. return mi.MessageOf(x)
  830. }
  831. // Deprecated: Use Custom.ProtoReflect.Descriptor instead.
  832. func (*Custom) Descriptor() ([]byte, []int) {
  833. return file_connect_ext_proto_rawDescGZIP(), []int{9}
  834. }
  835. func (x *Custom) GetData() string {
  836. if x != nil {
  837. return x.Data
  838. }
  839. return ""
  840. }
  841. // 上行数据
  842. type Input struct {
  843. state protoimpl.MessageState
  844. sizeCache protoimpl.SizeCache
  845. unknownFields protoimpl.UnknownFields
  846. Type PackageType `protobuf:"varint,1,opt,name=type,proto3,enum=pb.PackageType" json:"type,omitempty"` // 包的类型
  847. RequestId int64 `protobuf:"varint,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // 请求id
  848. Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // 数据
  849. }
  850. func (x *Input) Reset() {
  851. *x = Input{}
  852. if protoimpl.UnsafeEnabled {
  853. mi := &file_connect_ext_proto_msgTypes[10]
  854. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  855. ms.StoreMessageInfo(mi)
  856. }
  857. }
  858. func (x *Input) String() string {
  859. return protoimpl.X.MessageStringOf(x)
  860. }
  861. func (*Input) ProtoMessage() {}
  862. func (x *Input) ProtoReflect() protoreflect.Message {
  863. mi := &file_connect_ext_proto_msgTypes[10]
  864. if protoimpl.UnsafeEnabled && x != nil {
  865. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  866. if ms.LoadMessageInfo() == nil {
  867. ms.StoreMessageInfo(mi)
  868. }
  869. return ms
  870. }
  871. return mi.MessageOf(x)
  872. }
  873. // Deprecated: Use Input.ProtoReflect.Descriptor instead.
  874. func (*Input) Descriptor() ([]byte, []int) {
  875. return file_connect_ext_proto_rawDescGZIP(), []int{10}
  876. }
  877. func (x *Input) GetType() PackageType {
  878. if x != nil {
  879. return x.Type
  880. }
  881. return PackageType_PT_UNKNOWN
  882. }
  883. func (x *Input) GetRequestId() int64 {
  884. if x != nil {
  885. return x.RequestId
  886. }
  887. return 0
  888. }
  889. func (x *Input) GetData() []byte {
  890. if x != nil {
  891. return x.Data
  892. }
  893. return nil
  894. }
  895. // 下行数据
  896. type Output struct {
  897. state protoimpl.MessageState
  898. sizeCache protoimpl.SizeCache
  899. unknownFields protoimpl.UnknownFields
  900. Type PackageType `protobuf:"varint,1,opt,name=type,proto3,enum=pb.PackageType" json:"type,omitempty"` // 包的类型
  901. RequestId int64 `protobuf:"varint,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // 请求id
  902. Code int32 `protobuf:"varint,3,opt,name=code,proto3" json:"code,omitempty"` // 错误码
  903. Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` // 错误信息
  904. Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // 数据
  905. }
  906. func (x *Output) Reset() {
  907. *x = Output{}
  908. if protoimpl.UnsafeEnabled {
  909. mi := &file_connect_ext_proto_msgTypes[11]
  910. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  911. ms.StoreMessageInfo(mi)
  912. }
  913. }
  914. func (x *Output) String() string {
  915. return protoimpl.X.MessageStringOf(x)
  916. }
  917. func (*Output) ProtoMessage() {}
  918. func (x *Output) ProtoReflect() protoreflect.Message {
  919. mi := &file_connect_ext_proto_msgTypes[11]
  920. if protoimpl.UnsafeEnabled && x != nil {
  921. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  922. if ms.LoadMessageInfo() == nil {
  923. ms.StoreMessageInfo(mi)
  924. }
  925. return ms
  926. }
  927. return mi.MessageOf(x)
  928. }
  929. // Deprecated: Use Output.ProtoReflect.Descriptor instead.
  930. func (*Output) Descriptor() ([]byte, []int) {
  931. return file_connect_ext_proto_rawDescGZIP(), []int{11}
  932. }
  933. func (x *Output) GetType() PackageType {
  934. if x != nil {
  935. return x.Type
  936. }
  937. return PackageType_PT_UNKNOWN
  938. }
  939. func (x *Output) GetRequestId() int64 {
  940. if x != nil {
  941. return x.RequestId
  942. }
  943. return 0
  944. }
  945. func (x *Output) GetCode() int32 {
  946. if x != nil {
  947. return x.Code
  948. }
  949. return 0
  950. }
  951. func (x *Output) GetMessage() string {
  952. if x != nil {
  953. return x.Message
  954. }
  955. return ""
  956. }
  957. func (x *Output) GetData() []byte {
  958. if x != nil {
  959. return x.Data
  960. }
  961. return nil
  962. }
  963. // 设备登录,package_type:1
  964. type SignInInput struct {
  965. state protoimpl.MessageState
  966. sizeCache protoimpl.SizeCache
  967. unknownFields protoimpl.UnknownFields
  968. DeviceId int64 `protobuf:"varint,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // 设备id
  969. UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
  970. Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // 秘钥
  971. }
  972. func (x *SignInInput) Reset() {
  973. *x = SignInInput{}
  974. if protoimpl.UnsafeEnabled {
  975. mi := &file_connect_ext_proto_msgTypes[12]
  976. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  977. ms.StoreMessageInfo(mi)
  978. }
  979. }
  980. func (x *SignInInput) String() string {
  981. return protoimpl.X.MessageStringOf(x)
  982. }
  983. func (*SignInInput) ProtoMessage() {}
  984. func (x *SignInInput) ProtoReflect() protoreflect.Message {
  985. mi := &file_connect_ext_proto_msgTypes[12]
  986. if protoimpl.UnsafeEnabled && x != nil {
  987. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  988. if ms.LoadMessageInfo() == nil {
  989. ms.StoreMessageInfo(mi)
  990. }
  991. return ms
  992. }
  993. return mi.MessageOf(x)
  994. }
  995. // Deprecated: Use SignInInput.ProtoReflect.Descriptor instead.
  996. func (*SignInInput) Descriptor() ([]byte, []int) {
  997. return file_connect_ext_proto_rawDescGZIP(), []int{12}
  998. }
  999. func (x *SignInInput) GetDeviceId() int64 {
  1000. if x != nil {
  1001. return x.DeviceId
  1002. }
  1003. return 0
  1004. }
  1005. func (x *SignInInput) GetUserId() int64 {
  1006. if x != nil {
  1007. return x.UserId
  1008. }
  1009. return 0
  1010. }
  1011. func (x *SignInInput) GetToken() string {
  1012. if x != nil {
  1013. return x.Token
  1014. }
  1015. return ""
  1016. }
  1017. // 消息同步请求,package_type:2
  1018. type SyncInput struct {
  1019. state protoimpl.MessageState
  1020. sizeCache protoimpl.SizeCache
  1021. unknownFields protoimpl.UnknownFields
  1022. Seq int64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"` // 客户端已经同步的序列号
  1023. }
  1024. func (x *SyncInput) Reset() {
  1025. *x = SyncInput{}
  1026. if protoimpl.UnsafeEnabled {
  1027. mi := &file_connect_ext_proto_msgTypes[13]
  1028. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1029. ms.StoreMessageInfo(mi)
  1030. }
  1031. }
  1032. func (x *SyncInput) String() string {
  1033. return protoimpl.X.MessageStringOf(x)
  1034. }
  1035. func (*SyncInput) ProtoMessage() {}
  1036. func (x *SyncInput) ProtoReflect() protoreflect.Message {
  1037. mi := &file_connect_ext_proto_msgTypes[13]
  1038. if protoimpl.UnsafeEnabled && x != nil {
  1039. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1040. if ms.LoadMessageInfo() == nil {
  1041. ms.StoreMessageInfo(mi)
  1042. }
  1043. return ms
  1044. }
  1045. return mi.MessageOf(x)
  1046. }
  1047. // Deprecated: Use SyncInput.ProtoReflect.Descriptor instead.
  1048. func (*SyncInput) Descriptor() ([]byte, []int) {
  1049. return file_connect_ext_proto_rawDescGZIP(), []int{13}
  1050. }
  1051. func (x *SyncInput) GetSeq() int64 {
  1052. if x != nil {
  1053. return x.Seq
  1054. }
  1055. return 0
  1056. }
  1057. // 消息同步响应,package_type:2
  1058. type SyncOutput struct {
  1059. state protoimpl.MessageState
  1060. sizeCache protoimpl.SizeCache
  1061. unknownFields protoimpl.UnknownFields
  1062. Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` // 消息列表
  1063. HasMore bool `protobuf:"varint,2,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"` // 是否有更多数据
  1064. }
  1065. func (x *SyncOutput) Reset() {
  1066. *x = SyncOutput{}
  1067. if protoimpl.UnsafeEnabled {
  1068. mi := &file_connect_ext_proto_msgTypes[14]
  1069. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1070. ms.StoreMessageInfo(mi)
  1071. }
  1072. }
  1073. func (x *SyncOutput) String() string {
  1074. return protoimpl.X.MessageStringOf(x)
  1075. }
  1076. func (*SyncOutput) ProtoMessage() {}
  1077. func (x *SyncOutput) ProtoReflect() protoreflect.Message {
  1078. mi := &file_connect_ext_proto_msgTypes[14]
  1079. if protoimpl.UnsafeEnabled && x != nil {
  1080. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1081. if ms.LoadMessageInfo() == nil {
  1082. ms.StoreMessageInfo(mi)
  1083. }
  1084. return ms
  1085. }
  1086. return mi.MessageOf(x)
  1087. }
  1088. // Deprecated: Use SyncOutput.ProtoReflect.Descriptor instead.
  1089. func (*SyncOutput) Descriptor() ([]byte, []int) {
  1090. return file_connect_ext_proto_rawDescGZIP(), []int{14}
  1091. }
  1092. func (x *SyncOutput) GetMessages() []*Message {
  1093. if x != nil {
  1094. return x.Messages
  1095. }
  1096. return nil
  1097. }
  1098. func (x *SyncOutput) GetHasMore() bool {
  1099. if x != nil {
  1100. return x.HasMore
  1101. }
  1102. return false
  1103. }
  1104. // 订阅房间请求
  1105. type SubscribeRoomInput struct {
  1106. state protoimpl.MessageState
  1107. sizeCache protoimpl.SizeCache
  1108. unknownFields protoimpl.UnknownFields
  1109. RoomId int64 `protobuf:"varint,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` // 房间ID,如果为0,取消房间订阅
  1110. Seq int64 `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"` // 消息消息序列号,
  1111. }
  1112. func (x *SubscribeRoomInput) Reset() {
  1113. *x = SubscribeRoomInput{}
  1114. if protoimpl.UnsafeEnabled {
  1115. mi := &file_connect_ext_proto_msgTypes[15]
  1116. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1117. ms.StoreMessageInfo(mi)
  1118. }
  1119. }
  1120. func (x *SubscribeRoomInput) String() string {
  1121. return protoimpl.X.MessageStringOf(x)
  1122. }
  1123. func (*SubscribeRoomInput) ProtoMessage() {}
  1124. func (x *SubscribeRoomInput) ProtoReflect() protoreflect.Message {
  1125. mi := &file_connect_ext_proto_msgTypes[15]
  1126. if protoimpl.UnsafeEnabled && x != nil {
  1127. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1128. if ms.LoadMessageInfo() == nil {
  1129. ms.StoreMessageInfo(mi)
  1130. }
  1131. return ms
  1132. }
  1133. return mi.MessageOf(x)
  1134. }
  1135. // Deprecated: Use SubscribeRoomInput.ProtoReflect.Descriptor instead.
  1136. func (*SubscribeRoomInput) Descriptor() ([]byte, []int) {
  1137. return file_connect_ext_proto_rawDescGZIP(), []int{15}
  1138. }
  1139. func (x *SubscribeRoomInput) GetRoomId() int64 {
  1140. if x != nil {
  1141. return x.RoomId
  1142. }
  1143. return 0
  1144. }
  1145. func (x *SubscribeRoomInput) GetSeq() int64 {
  1146. if x != nil {
  1147. return x.Seq
  1148. }
  1149. return 0
  1150. }
  1151. // 消息投递,package_type:4
  1152. type MessageSend struct {
  1153. state protoimpl.MessageState
  1154. sizeCache protoimpl.SizeCache
  1155. unknownFields protoimpl.UnknownFields
  1156. Message *Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // 消息
  1157. }
  1158. func (x *MessageSend) Reset() {
  1159. *x = MessageSend{}
  1160. if protoimpl.UnsafeEnabled {
  1161. mi := &file_connect_ext_proto_msgTypes[16]
  1162. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1163. ms.StoreMessageInfo(mi)
  1164. }
  1165. }
  1166. func (x *MessageSend) String() string {
  1167. return protoimpl.X.MessageStringOf(x)
  1168. }
  1169. func (*MessageSend) ProtoMessage() {}
  1170. func (x *MessageSend) ProtoReflect() protoreflect.Message {
  1171. mi := &file_connect_ext_proto_msgTypes[16]
  1172. if protoimpl.UnsafeEnabled && x != nil {
  1173. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1174. if ms.LoadMessageInfo() == nil {
  1175. ms.StoreMessageInfo(mi)
  1176. }
  1177. return ms
  1178. }
  1179. return mi.MessageOf(x)
  1180. }
  1181. // Deprecated: Use MessageSend.ProtoReflect.Descriptor instead.
  1182. func (*MessageSend) Descriptor() ([]byte, []int) {
  1183. return file_connect_ext_proto_rawDescGZIP(), []int{16}
  1184. }
  1185. func (x *MessageSend) GetMessage() *Message {
  1186. if x != nil {
  1187. return x.Message
  1188. }
  1189. return nil
  1190. }
  1191. // 投递消息回执,package_type:4
  1192. type MessageACK struct {
  1193. state protoimpl.MessageState
  1194. sizeCache protoimpl.SizeCache
  1195. unknownFields protoimpl.UnknownFields
  1196. DeviceAck int64 `protobuf:"varint,2,opt,name=device_ack,json=deviceAck,proto3" json:"device_ack,omitempty"` // 设备收到消息的确认号
  1197. ReceiveTime int64 `protobuf:"varint,3,opt,name=receive_time,json=receiveTime,proto3" json:"receive_time,omitempty"` // 消息接收时间戳,精确到毫秒
  1198. }
  1199. func (x *MessageACK) Reset() {
  1200. *x = MessageACK{}
  1201. if protoimpl.UnsafeEnabled {
  1202. mi := &file_connect_ext_proto_msgTypes[17]
  1203. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1204. ms.StoreMessageInfo(mi)
  1205. }
  1206. }
  1207. func (x *MessageACK) String() string {
  1208. return protoimpl.X.MessageStringOf(x)
  1209. }
  1210. func (*MessageACK) ProtoMessage() {}
  1211. func (x *MessageACK) ProtoReflect() protoreflect.Message {
  1212. mi := &file_connect_ext_proto_msgTypes[17]
  1213. if protoimpl.UnsafeEnabled && x != nil {
  1214. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1215. if ms.LoadMessageInfo() == nil {
  1216. ms.StoreMessageInfo(mi)
  1217. }
  1218. return ms
  1219. }
  1220. return mi.MessageOf(x)
  1221. }
  1222. // Deprecated: Use MessageACK.ProtoReflect.Descriptor instead.
  1223. func (*MessageACK) Descriptor() ([]byte, []int) {
  1224. return file_connect_ext_proto_rawDescGZIP(), []int{17}
  1225. }
  1226. func (x *MessageACK) GetDeviceAck() int64 {
  1227. if x != nil {
  1228. return x.DeviceAck
  1229. }
  1230. return 0
  1231. }
  1232. func (x *MessageACK) GetReceiveTime() int64 {
  1233. if x != nil {
  1234. return x.ReceiveTime
  1235. }
  1236. return 0
  1237. }
  1238. var File_connect_ext_proto protoreflect.FileDescriptor
  1239. var file_connect_ext_proto_rawDesc = []byte{
  1240. 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72,
  1241. 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xdc, 0x02, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73,
  1242. 0x61, 0x67, 0x65, 0x12, 0x22, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20,
  1243. 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52,
  1244. 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69,
  1245. 0x76, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x10,
  1246. 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65,
  1247. 0x52, 0x0c, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f,
  1248. 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20,
  1249. 0x01, 0x28, 0x03, 0x52, 0x0a, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x49, 0x64, 0x12,
  1250. 0x1e, 0x0a, 0x0b, 0x74, 0x6f, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04,
  1251. 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x74, 0x6f, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x73, 0x12,
  1252. 0x32, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,
  1253. 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61,
  1254. 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54,
  1255. 0x79, 0x70, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x63,
  1256. 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x6d, 0x65,
  1257. 0x73, 0x73, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03,
  1258. 0x73, 0x65, 0x71, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x71, 0x12, 0x1b,
  1259. 0x0a, 0x09, 0x73, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28,
  1260. 0x03, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x06, 0x73,
  1261. 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x70, 0x62,
  1262. 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06,
  1263. 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xc4, 0x01, 0x0a, 0x06, 0x53, 0x65, 0x6e, 0x64, 0x65,
  1264. 0x72, 0x12, 0x2f, 0x0a, 0x0b, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65,
  1265. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x6e, 0x64,
  1266. 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x54, 0x79,
  1267. 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18,
  1268. 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12,
  1269. 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
  1270. 0x28, 0x03, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a,
  1271. 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
  1272. 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x6e,
  1273. 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e,
  1274. 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61,
  1275. 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x22, 0x1a, 0x0a,
  1276. 0x04, 0x54, 0x65, 0x78, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20,
  1277. 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x22, 0x3a, 0x0a, 0x04, 0x46, 0x61, 0x63,
  1278. 0x65, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  1279. 0x28, 0x03, 0x52, 0x06, 0x66, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x66, 0x61,
  1280. 0x63, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x61,
  1281. 0x63, 0x65, 0x55, 0x72, 0x6c, 0x22, 0x59, 0x0a, 0x05, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x0e,
  1282. 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12,
  1283. 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x69,
  1284. 0x7a, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03,
  1285. 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10,
  1286. 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c,
  1287. 0x22, 0x7c, 0x0a, 0x05, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
  1288. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x69, 0x64,
  1289. 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x12,
  1290. 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52,
  1291. 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x04,
  1292. 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x68, 0x75,
  1293. 0x6d, 0x62, 0x6e, 0x61, 0x69, 0x6c, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
  1294. 0x52, 0x0c, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x6e, 0x61, 0x69, 0x6c, 0x55, 0x72, 0x6c, 0x22, 0x50,
  1295. 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01,
  1296. 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0d,
  1297. 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69,
  1298. 0x7a, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x10,
  1299. 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c,
  1300. 0x22, 0x58, 0x0a, 0x08, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04,
  1301. 0x64, 0x65, 0x73, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x65, 0x73, 0x63,
  1302. 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01,
  1303. 0x28, 0x01, 0x52, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09,
  1304. 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52,
  1305. 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x22, 0x31, 0x0a, 0x07, 0x43, 0x6f,
  1306. 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
  1307. 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74,
  1308. 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x1c, 0x0a,
  1309. 0x06, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18,
  1310. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x5f, 0x0a, 0x05, 0x49,
  1311. 0x6e, 0x70, 0x75, 0x74, 0x12, 0x23, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01,
  1312. 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x54,
  1313. 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71,
  1314. 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x72,
  1315. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61,
  1316. 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x8e, 0x01, 0x0a,
  1317. 0x06, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x23, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
  1318. 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x61,
  1319. 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a,
  1320. 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03,
  1321. 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63,
  1322. 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12,
  1323. 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
  1324. 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74,
  1325. 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x59, 0x0a,
  1326. 0x0b, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x1b, 0x0a, 0x09,
  1327. 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
  1328. 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65,
  1329. 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72,
  1330. 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28,
  1331. 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x1d, 0x0a, 0x09, 0x53, 0x79, 0x6e, 0x63,
  1332. 0x49, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x71, 0x18, 0x01, 0x20, 0x01,
  1333. 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x71, 0x22, 0x50, 0x0a, 0x0a, 0x53, 0x79, 0x6e, 0x63, 0x4f,
  1334. 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x27, 0x0a, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  1335. 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73,
  1336. 0x73, 0x61, 0x67, 0x65, 0x52, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x19,
  1337. 0x0a, 0x08, 0x68, 0x61, 0x73, 0x5f, 0x6d, 0x6f, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08,
  1338. 0x52, 0x07, 0x68, 0x61, 0x73, 0x4d, 0x6f, 0x72, 0x65, 0x22, 0x3f, 0x0a, 0x12, 0x53, 0x75, 0x62,
  1339. 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x6f, 0x6f, 0x6d, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x12,
  1340. 0x17, 0x0a, 0x07, 0x72, 0x6f, 0x6f, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
  1341. 0x52, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x71, 0x18,
  1342. 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x71, 0x22, 0x34, 0x0a, 0x0b, 0x4d, 0x65,
  1343. 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x6e, 0x64, 0x12, 0x25, 0x0a, 0x07, 0x6d, 0x65, 0x73,
  1344. 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e,
  1345. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  1346. 0x22, 0x4e, 0x0a, 0x0a, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x41, 0x43, 0x4b, 0x12, 0x1d,
  1347. 0x0a, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01,
  1348. 0x28, 0x03, 0x52, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x6b, 0x12, 0x21, 0x0a,
  1349. 0x0c, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20,
  1350. 0x01, 0x28, 0x03, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x54, 0x69, 0x6d, 0x65,
  1351. 0x2a, 0x73, 0x0a, 0x0b, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12,
  1352. 0x0e, 0x0a, 0x0a, 0x50, 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12,
  1353. 0x0e, 0x0a, 0x0a, 0x50, 0x54, 0x5f, 0x53, 0x49, 0x47, 0x4e, 0x5f, 0x49, 0x4e, 0x10, 0x01, 0x12,
  1354. 0x0b, 0x0a, 0x07, 0x50, 0x54, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c,
  1355. 0x50, 0x54, 0x5f, 0x48, 0x45, 0x41, 0x52, 0x54, 0x42, 0x45, 0x41, 0x54, 0x10, 0x03, 0x12, 0x0e,
  1356. 0x0a, 0x0a, 0x50, 0x54, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x04, 0x12, 0x15,
  1357. 0x0a, 0x11, 0x50, 0x54, 0x5f, 0x53, 0x55, 0x42, 0x53, 0x43, 0x52, 0x49, 0x42, 0x45, 0x5f, 0x52,
  1358. 0x4f, 0x4f, 0x4d, 0x10, 0x05, 0x2a, 0x90, 0x01, 0x0a, 0x0b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
  1359. 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x4d, 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e,
  1360. 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x54, 0x5f, 0x54, 0x45, 0x58, 0x54,
  1361. 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x54, 0x5f, 0x46, 0x41, 0x43, 0x45, 0x10, 0x02, 0x12,
  1362. 0x0c, 0x0a, 0x08, 0x4d, 0x54, 0x5f, 0x56, 0x4f, 0x49, 0x43, 0x45, 0x10, 0x03, 0x12, 0x0c, 0x0a,
  1363. 0x08, 0x4d, 0x54, 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x4d,
  1364. 0x54, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x10, 0x05, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x54, 0x5f, 0x4c,
  1365. 0x4f, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x06, 0x12, 0x0e, 0x0a, 0x0a, 0x4d, 0x54, 0x5f,
  1366. 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x4d, 0x54, 0x5f,
  1367. 0x43, 0x55, 0x53, 0x54, 0x4f, 0x4d, 0x10, 0x08, 0x2a, 0x46, 0x0a, 0x0c, 0x52, 0x65, 0x63, 0x65,
  1368. 0x69, 0x76, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x52, 0x54, 0x5f, 0x55,
  1369. 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x54, 0x5f, 0x55,
  1370. 0x53, 0x45, 0x52, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x54, 0x5f, 0x47, 0x52, 0x4f, 0x55,
  1371. 0x50, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x54, 0x5f, 0x52, 0x4f, 0x4f, 0x4d, 0x10, 0x03,
  1372. 0x2a, 0x49, 0x0a, 0x0a, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e,
  1373. 0x0a, 0x0a, 0x53, 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0d,
  1374. 0x0a, 0x09, 0x53, 0x54, 0x5f, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x10, 0x01, 0x12, 0x0b, 0x0a,
  1375. 0x07, 0x53, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x54,
  1376. 0x5f, 0x42, 0x55, 0x53, 0x49, 0x4e, 0x45, 0x53, 0x53, 0x10, 0x03, 0x2a, 0x3d, 0x0a, 0x0d, 0x4d,
  1377. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0e, 0x0a, 0x0a,
  1378. 0x4d, 0x53, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09,
  1379. 0x4d, 0x53, 0x5f, 0x4e, 0x4f, 0x52, 0x4d, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x4d,
  1380. 0x53, 0x5f, 0x52, 0x45, 0x43, 0x41, 0x4c, 0x4c, 0x10, 0x02, 0x42, 0x0d, 0x5a, 0x0b, 0x67, 0x69,
  1381. 0x6d, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  1382. 0x33,
  1383. }
  1384. var (
  1385. file_connect_ext_proto_rawDescOnce sync.Once
  1386. file_connect_ext_proto_rawDescData = file_connect_ext_proto_rawDesc
  1387. )
  1388. func file_connect_ext_proto_rawDescGZIP() []byte {
  1389. file_connect_ext_proto_rawDescOnce.Do(func() {
  1390. file_connect_ext_proto_rawDescData = protoimpl.X.CompressGZIP(file_connect_ext_proto_rawDescData)
  1391. })
  1392. return file_connect_ext_proto_rawDescData
  1393. }
  1394. var file_connect_ext_proto_enumTypes = make([]protoimpl.EnumInfo, 5)
  1395. var file_connect_ext_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
  1396. var file_connect_ext_proto_goTypes = []interface{}{
  1397. (PackageType)(0), // 0: pb.PackageType
  1398. (MessageType)(0), // 1: pb.MessageType
  1399. (ReceiverType)(0), // 2: pb.ReceiverType
  1400. (SenderType)(0), // 3: pb.SenderType
  1401. (MessageStatus)(0), // 4: pb.MessageStatus
  1402. (*Message)(nil), // 5: pb.Message
  1403. (*Sender)(nil), // 6: pb.Sender
  1404. (*Text)(nil), // 7: pb.Text
  1405. (*Face)(nil), // 8: pb.Face
  1406. (*Voice)(nil), // 9: pb.Voice
  1407. (*Image)(nil), // 10: pb.Image
  1408. (*File)(nil), // 11: pb.File
  1409. (*Location)(nil), // 12: pb.Location
  1410. (*Command)(nil), // 13: pb.Command
  1411. (*Custom)(nil), // 14: pb.Custom
  1412. (*Input)(nil), // 15: pb.Input
  1413. (*Output)(nil), // 16: pb.Output
  1414. (*SignInInput)(nil), // 17: pb.SignInInput
  1415. (*SyncInput)(nil), // 18: pb.SyncInput
  1416. (*SyncOutput)(nil), // 19: pb.SyncOutput
  1417. (*SubscribeRoomInput)(nil), // 20: pb.SubscribeRoomInput
  1418. (*MessageSend)(nil), // 21: pb.MessageSend
  1419. (*MessageACK)(nil), // 22: pb.MessageACK
  1420. }
  1421. var file_connect_ext_proto_depIdxs = []int32{
  1422. 6, // 0: pb.Message.sender:type_name -> pb.Sender
  1423. 2, // 1: pb.Message.receiver_type:type_name -> pb.ReceiverType
  1424. 1, // 2: pb.Message.message_type:type_name -> pb.MessageType
  1425. 4, // 3: pb.Message.status:type_name -> pb.MessageStatus
  1426. 3, // 4: pb.Sender.sender_type:type_name -> pb.SenderType
  1427. 0, // 5: pb.Input.type:type_name -> pb.PackageType
  1428. 0, // 6: pb.Output.type:type_name -> pb.PackageType
  1429. 5, // 7: pb.SyncOutput.messages:type_name -> pb.Message
  1430. 5, // 8: pb.MessageSend.message:type_name -> pb.Message
  1431. 9, // [9:9] is the sub-list for method output_type
  1432. 9, // [9:9] is the sub-list for method input_type
  1433. 9, // [9:9] is the sub-list for extension type_name
  1434. 9, // [9:9] is the sub-list for extension extendee
  1435. 0, // [0:9] is the sub-list for field type_name
  1436. }
  1437. func init() { file_connect_ext_proto_init() }
  1438. func file_connect_ext_proto_init() {
  1439. if File_connect_ext_proto != nil {
  1440. return
  1441. }
  1442. if !protoimpl.UnsafeEnabled {
  1443. file_connect_ext_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  1444. switch v := v.(*Message); i {
  1445. case 0:
  1446. return &v.state
  1447. case 1:
  1448. return &v.sizeCache
  1449. case 2:
  1450. return &v.unknownFields
  1451. default:
  1452. return nil
  1453. }
  1454. }
  1455. file_connect_ext_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  1456. switch v := v.(*Sender); i {
  1457. case 0:
  1458. return &v.state
  1459. case 1:
  1460. return &v.sizeCache
  1461. case 2:
  1462. return &v.unknownFields
  1463. default:
  1464. return nil
  1465. }
  1466. }
  1467. file_connect_ext_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  1468. switch v := v.(*Text); i {
  1469. case 0:
  1470. return &v.state
  1471. case 1:
  1472. return &v.sizeCache
  1473. case 2:
  1474. return &v.unknownFields
  1475. default:
  1476. return nil
  1477. }
  1478. }
  1479. file_connect_ext_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1480. switch v := v.(*Face); i {
  1481. case 0:
  1482. return &v.state
  1483. case 1:
  1484. return &v.sizeCache
  1485. case 2:
  1486. return &v.unknownFields
  1487. default:
  1488. return nil
  1489. }
  1490. }
  1491. file_connect_ext_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1492. switch v := v.(*Voice); i {
  1493. case 0:
  1494. return &v.state
  1495. case 1:
  1496. return &v.sizeCache
  1497. case 2:
  1498. return &v.unknownFields
  1499. default:
  1500. return nil
  1501. }
  1502. }
  1503. file_connect_ext_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1504. switch v := v.(*Image); i {
  1505. case 0:
  1506. return &v.state
  1507. case 1:
  1508. return &v.sizeCache
  1509. case 2:
  1510. return &v.unknownFields
  1511. default:
  1512. return nil
  1513. }
  1514. }
  1515. file_connect_ext_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1516. switch v := v.(*File); i {
  1517. case 0:
  1518. return &v.state
  1519. case 1:
  1520. return &v.sizeCache
  1521. case 2:
  1522. return &v.unknownFields
  1523. default:
  1524. return nil
  1525. }
  1526. }
  1527. file_connect_ext_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1528. switch v := v.(*Location); i {
  1529. case 0:
  1530. return &v.state
  1531. case 1:
  1532. return &v.sizeCache
  1533. case 2:
  1534. return &v.unknownFields
  1535. default:
  1536. return nil
  1537. }
  1538. }
  1539. file_connect_ext_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1540. switch v := v.(*Command); i {
  1541. case 0:
  1542. return &v.state
  1543. case 1:
  1544. return &v.sizeCache
  1545. case 2:
  1546. return &v.unknownFields
  1547. default:
  1548. return nil
  1549. }
  1550. }
  1551. file_connect_ext_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1552. switch v := v.(*Custom); i {
  1553. case 0:
  1554. return &v.state
  1555. case 1:
  1556. return &v.sizeCache
  1557. case 2:
  1558. return &v.unknownFields
  1559. default:
  1560. return nil
  1561. }
  1562. }
  1563. file_connect_ext_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1564. switch v := v.(*Input); i {
  1565. case 0:
  1566. return &v.state
  1567. case 1:
  1568. return &v.sizeCache
  1569. case 2:
  1570. return &v.unknownFields
  1571. default:
  1572. return nil
  1573. }
  1574. }
  1575. file_connect_ext_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  1576. switch v := v.(*Output); i {
  1577. case 0:
  1578. return &v.state
  1579. case 1:
  1580. return &v.sizeCache
  1581. case 2:
  1582. return &v.unknownFields
  1583. default:
  1584. return nil
  1585. }
  1586. }
  1587. file_connect_ext_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  1588. switch v := v.(*SignInInput); i {
  1589. case 0:
  1590. return &v.state
  1591. case 1:
  1592. return &v.sizeCache
  1593. case 2:
  1594. return &v.unknownFields
  1595. default:
  1596. return nil
  1597. }
  1598. }
  1599. file_connect_ext_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
  1600. switch v := v.(*SyncInput); i {
  1601. case 0:
  1602. return &v.state
  1603. case 1:
  1604. return &v.sizeCache
  1605. case 2:
  1606. return &v.unknownFields
  1607. default:
  1608. return nil
  1609. }
  1610. }
  1611. file_connect_ext_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
  1612. switch v := v.(*SyncOutput); i {
  1613. case 0:
  1614. return &v.state
  1615. case 1:
  1616. return &v.sizeCache
  1617. case 2:
  1618. return &v.unknownFields
  1619. default:
  1620. return nil
  1621. }
  1622. }
  1623. file_connect_ext_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
  1624. switch v := v.(*SubscribeRoomInput); i {
  1625. case 0:
  1626. return &v.state
  1627. case 1:
  1628. return &v.sizeCache
  1629. case 2:
  1630. return &v.unknownFields
  1631. default:
  1632. return nil
  1633. }
  1634. }
  1635. file_connect_ext_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
  1636. switch v := v.(*MessageSend); i {
  1637. case 0:
  1638. return &v.state
  1639. case 1:
  1640. return &v.sizeCache
  1641. case 2:
  1642. return &v.unknownFields
  1643. default:
  1644. return nil
  1645. }
  1646. }
  1647. file_connect_ext_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
  1648. switch v := v.(*MessageACK); i {
  1649. case 0:
  1650. return &v.state
  1651. case 1:
  1652. return &v.sizeCache
  1653. case 2:
  1654. return &v.unknownFields
  1655. default:
  1656. return nil
  1657. }
  1658. }
  1659. }
  1660. type x struct{}
  1661. out := protoimpl.TypeBuilder{
  1662. File: protoimpl.DescBuilder{
  1663. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1664. RawDescriptor: file_connect_ext_proto_rawDesc,
  1665. NumEnums: 5,
  1666. NumMessages: 18,
  1667. NumExtensions: 0,
  1668. NumServices: 0,
  1669. },
  1670. GoTypes: file_connect_ext_proto_goTypes,
  1671. DependencyIndexes: file_connect_ext_proto_depIdxs,
  1672. EnumInfos: file_connect_ext_proto_enumTypes,
  1673. MessageInfos: file_connect_ext_proto_msgTypes,
  1674. }.Build()
  1675. File_connect_ext_proto = out.File
  1676. file_connect_ext_proto_rawDesc = nil
  1677. file_connect_ext_proto_goTypes = nil
  1678. file_connect_ext_proto_depIdxs = nil
  1679. }