蛋蛋星球-客户端
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

connect.ext.pb.go 81 KiB

há 1 semana
há 1 semana
há 1 semana
há 1 semana
há 1 semana
há 1 semana
há 1 semana
há 1 semana
há 1 semana
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.1
  4. // protoc v3.20.0--rc2
  5. // source: 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. MessageType_MT_RECALL MessageType = 9 // 撤回消息
  81. MessageType_MT_RED_PACKAGE MessageType = 10 // 红包消息
  82. )
  83. // Enum value maps for MessageType.
  84. var (
  85. MessageType_name = map[int32]string{
  86. 0: "MT_UNKNOWN",
  87. 1: "MT_TEXT",
  88. 2: "MT_FACE",
  89. 3: "MT_VOICE",
  90. 4: "MT_IMAGE",
  91. 5: "MT_FILE",
  92. 6: "MT_LOCATION",
  93. 7: "MT_COMMAND",
  94. 8: "MT_CUSTOM",
  95. 9: "MT_RECALL",
  96. 10: "MT_RED_PACKAGE",
  97. }
  98. MessageType_value = map[string]int32{
  99. "MT_UNKNOWN": 0,
  100. "MT_TEXT": 1,
  101. "MT_FACE": 2,
  102. "MT_VOICE": 3,
  103. "MT_IMAGE": 4,
  104. "MT_FILE": 5,
  105. "MT_LOCATION": 6,
  106. "MT_COMMAND": 7,
  107. "MT_CUSTOM": 8,
  108. "MT_RECALL": 9,
  109. "MT_RED_PACKAGE": 10,
  110. }
  111. )
  112. func (x MessageType) Enum() *MessageType {
  113. p := new(MessageType)
  114. *p = x
  115. return p
  116. }
  117. func (x MessageType) String() string {
  118. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  119. }
  120. func (MessageType) Descriptor() protoreflect.EnumDescriptor {
  121. return file_connect_ext_proto_enumTypes[1].Descriptor()
  122. }
  123. func (MessageType) Type() protoreflect.EnumType {
  124. return &file_connect_ext_proto_enumTypes[1]
  125. }
  126. func (x MessageType) Number() protoreflect.EnumNumber {
  127. return protoreflect.EnumNumber(x)
  128. }
  129. // Deprecated: Use MessageType.Descriptor instead.
  130. func (MessageType) EnumDescriptor() ([]byte, []int) {
  131. return file_connect_ext_proto_rawDescGZIP(), []int{1}
  132. }
  133. // 红包类型
  134. type RedPacketType int32
  135. const (
  136. RedPacketType_RPT_UNKNOWN RedPacketType = 0 // 未知
  137. RedPacketType_RPT_FRIEND RedPacketType = 1 // 好友红包
  138. RedPacketType_RPT_GROUP_NORMAL RedPacketType = 2 // 群组普通红包
  139. RedPacketType_RPT_GROUP_LUCK RedPacketType = 3 // 群组手气红包
  140. RedPacketType_RPT_GROUP_SPECIALLY RedPacketType = 4 // 群组专属红包
  141. RedPacketType_RPT_SYSTEM_FOR RedPacketType = 5 // 系统红包
  142. )
  143. // Enum value maps for RedPacketType.
  144. var (
  145. RedPacketType_name = map[int32]string{
  146. 0: "RPT_UNKNOWN",
  147. 1: "RPT_FRIEND",
  148. 2: "RPT_GROUP_NORMAL",
  149. 3: "RPT_GROUP_LUCK",
  150. 4: "RPT_GROUP_SPECIALLY",
  151. 5: "RPT_SYSTEM_FOR",
  152. }
  153. RedPacketType_value = map[string]int32{
  154. "RPT_UNKNOWN": 0,
  155. "RPT_FRIEND": 1,
  156. "RPT_GROUP_NORMAL": 2,
  157. "RPT_GROUP_LUCK": 3,
  158. "RPT_GROUP_SPECIALLY": 4,
  159. "RPT_SYSTEM_FOR": 5,
  160. }
  161. )
  162. func (x RedPacketType) Enum() *RedPacketType {
  163. p := new(RedPacketType)
  164. *p = x
  165. return p
  166. }
  167. func (x RedPacketType) String() string {
  168. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  169. }
  170. func (RedPacketType) Descriptor() protoreflect.EnumDescriptor {
  171. return file_connect_ext_proto_enumTypes[2].Descriptor()
  172. }
  173. func (RedPacketType) Type() protoreflect.EnumType {
  174. return &file_connect_ext_proto_enumTypes[2]
  175. }
  176. func (x RedPacketType) Number() protoreflect.EnumNumber {
  177. return protoreflect.EnumNumber(x)
  178. }
  179. // Deprecated: Use RedPacketType.Descriptor instead.
  180. func (RedPacketType) EnumDescriptor() ([]byte, []int) {
  181. return file_connect_ext_proto_rawDescGZIP(), []int{2}
  182. }
  183. // 红包消息类型
  184. type RedPacketMessageType int32
  185. const (
  186. RedPacketMessageType_RMT_UNKNOWN RedPacketMessageType = 0 // 未知
  187. RedPacketMessageType_RMT_SEND RedPacketMessageType = 1 // 发红包
  188. RedPacketMessageType_RMT_GRAB RedPacketMessageType = 2 // 抢红包
  189. )
  190. // Enum value maps for RedPacketMessageType.
  191. var (
  192. RedPacketMessageType_name = map[int32]string{
  193. 0: "RMT_UNKNOWN",
  194. 1: "RMT_SEND",
  195. 2: "RMT_GRAB",
  196. }
  197. RedPacketMessageType_value = map[string]int32{
  198. "RMT_UNKNOWN": 0,
  199. "RMT_SEND": 1,
  200. "RMT_GRAB": 2,
  201. }
  202. )
  203. func (x RedPacketMessageType) Enum() *RedPacketMessageType {
  204. p := new(RedPacketMessageType)
  205. *p = x
  206. return p
  207. }
  208. func (x RedPacketMessageType) String() string {
  209. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  210. }
  211. func (RedPacketMessageType) Descriptor() protoreflect.EnumDescriptor {
  212. return file_connect_ext_proto_enumTypes[3].Descriptor()
  213. }
  214. func (RedPacketMessageType) Type() protoreflect.EnumType {
  215. return &file_connect_ext_proto_enumTypes[3]
  216. }
  217. func (x RedPacketMessageType) Number() protoreflect.EnumNumber {
  218. return protoreflect.EnumNumber(x)
  219. }
  220. // Deprecated: Use RedPacketMessageType.Descriptor instead.
  221. func (RedPacketMessageType) EnumDescriptor() ([]byte, []int) {
  222. return file_connect_ext_proto_rawDescGZIP(), []int{3}
  223. }
  224. // 红包状态类型
  225. type RedPacketStatusType int32
  226. const (
  227. RedPacketStatusType_RPS_NOT_DRAW RedPacketStatusType = 0 // 未领取
  228. RedPacketStatusType_RPS_DRAWING RedPacketStatusType = 1 // 领取中
  229. RedPacketStatusType_RPS_DRAW_OVER RedPacketStatusType = 2 // 领取完
  230. RedPacketStatusType_RPS_EXPIRE RedPacketStatusType = 3 //已过期
  231. )
  232. // Enum value maps for RedPacketStatusType.
  233. var (
  234. RedPacketStatusType_name = map[int32]string{
  235. 0: "RPS_NOT_DRAW",
  236. 1: "RPS_DRAWING",
  237. 2: "RPS_DRAW_OVER",
  238. 3: "RPS_EXPIRE",
  239. }
  240. RedPacketStatusType_value = map[string]int32{
  241. "RPS_NOT_DRAW": 0,
  242. "RPS_DRAWING": 1,
  243. "RPS_DRAW_OVER": 2,
  244. "RPS_EXPIRE": 3,
  245. }
  246. )
  247. func (x RedPacketStatusType) Enum() *RedPacketStatusType {
  248. p := new(RedPacketStatusType)
  249. *p = x
  250. return p
  251. }
  252. func (x RedPacketStatusType) String() string {
  253. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  254. }
  255. func (RedPacketStatusType) Descriptor() protoreflect.EnumDescriptor {
  256. return file_connect_ext_proto_enumTypes[4].Descriptor()
  257. }
  258. func (RedPacketStatusType) Type() protoreflect.EnumType {
  259. return &file_connect_ext_proto_enumTypes[4]
  260. }
  261. func (x RedPacketStatusType) Number() protoreflect.EnumNumber {
  262. return protoreflect.EnumNumber(x)
  263. }
  264. // Deprecated: Use RedPacketStatusType.Descriptor instead.
  265. func (RedPacketStatusType) EnumDescriptor() ([]byte, []int) {
  266. return file_connect_ext_proto_rawDescGZIP(), []int{4}
  267. }
  268. type ReceiverType int32
  269. const (
  270. ReceiverType_RT_UNKNOWN ReceiverType = 0 // 未知
  271. ReceiverType_RT_USER ReceiverType = 1 // 用户
  272. ReceiverType_RT_GROUP ReceiverType = 2 // 群组
  273. ReceiverType_RT_ROOM ReceiverType = 3 // 房间
  274. )
  275. // Enum value maps for ReceiverType.
  276. var (
  277. ReceiverType_name = map[int32]string{
  278. 0: "RT_UNKNOWN",
  279. 1: "RT_USER",
  280. 2: "RT_GROUP",
  281. 3: "RT_ROOM",
  282. }
  283. ReceiverType_value = map[string]int32{
  284. "RT_UNKNOWN": 0,
  285. "RT_USER": 1,
  286. "RT_GROUP": 2,
  287. "RT_ROOM": 3,
  288. }
  289. )
  290. func (x ReceiverType) Enum() *ReceiverType {
  291. p := new(ReceiverType)
  292. *p = x
  293. return p
  294. }
  295. func (x ReceiverType) String() string {
  296. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  297. }
  298. func (ReceiverType) Descriptor() protoreflect.EnumDescriptor {
  299. return file_connect_ext_proto_enumTypes[5].Descriptor()
  300. }
  301. func (ReceiverType) Type() protoreflect.EnumType {
  302. return &file_connect_ext_proto_enumTypes[5]
  303. }
  304. func (x ReceiverType) Number() protoreflect.EnumNumber {
  305. return protoreflect.EnumNumber(x)
  306. }
  307. // Deprecated: Use ReceiverType.Descriptor instead.
  308. func (ReceiverType) EnumDescriptor() ([]byte, []int) {
  309. return file_connect_ext_proto_rawDescGZIP(), []int{5}
  310. }
  311. type SenderType int32
  312. const (
  313. SenderType_ST_UNKNOWN SenderType = 0 // 未知的
  314. SenderType_ST_SYSTEM SenderType = 1 // IM系统
  315. SenderType_ST_USER SenderType = 2 // 用户
  316. SenderType_ST_BUSINESS SenderType = 3 // 业务方
  317. )
  318. // Enum value maps for SenderType.
  319. var (
  320. SenderType_name = map[int32]string{
  321. 0: "ST_UNKNOWN",
  322. 1: "ST_SYSTEM",
  323. 2: "ST_USER",
  324. 3: "ST_BUSINESS",
  325. }
  326. SenderType_value = map[string]int32{
  327. "ST_UNKNOWN": 0,
  328. "ST_SYSTEM": 1,
  329. "ST_USER": 2,
  330. "ST_BUSINESS": 3,
  331. }
  332. )
  333. func (x SenderType) Enum() *SenderType {
  334. p := new(SenderType)
  335. *p = x
  336. return p
  337. }
  338. func (x SenderType) String() string {
  339. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  340. }
  341. func (SenderType) Descriptor() protoreflect.EnumDescriptor {
  342. return file_connect_ext_proto_enumTypes[6].Descriptor()
  343. }
  344. func (SenderType) Type() protoreflect.EnumType {
  345. return &file_connect_ext_proto_enumTypes[6]
  346. }
  347. func (x SenderType) Number() protoreflect.EnumNumber {
  348. return protoreflect.EnumNumber(x)
  349. }
  350. // Deprecated: Use SenderType.Descriptor instead.
  351. func (SenderType) EnumDescriptor() ([]byte, []int) {
  352. return file_connect_ext_proto_rawDescGZIP(), []int{6}
  353. }
  354. type MessageStatus int32
  355. const (
  356. MessageStatus_MS_UNKNOWN MessageStatus = 0 // 未知的
  357. MessageStatus_MS_NORMAL MessageStatus = 1 // 正常的
  358. MessageStatus_MS_RECALL MessageStatus = 2 // 撤回
  359. )
  360. // Enum value maps for MessageStatus.
  361. var (
  362. MessageStatus_name = map[int32]string{
  363. 0: "MS_UNKNOWN",
  364. 1: "MS_NORMAL",
  365. 2: "MS_RECALL",
  366. }
  367. MessageStatus_value = map[string]int32{
  368. "MS_UNKNOWN": 0,
  369. "MS_NORMAL": 1,
  370. "MS_RECALL": 2,
  371. }
  372. )
  373. func (x MessageStatus) Enum() *MessageStatus {
  374. p := new(MessageStatus)
  375. *p = x
  376. return p
  377. }
  378. func (x MessageStatus) String() string {
  379. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  380. }
  381. func (MessageStatus) Descriptor() protoreflect.EnumDescriptor {
  382. return file_connect_ext_proto_enumTypes[7].Descriptor()
  383. }
  384. func (MessageStatus) Type() protoreflect.EnumType {
  385. return &file_connect_ext_proto_enumTypes[7]
  386. }
  387. func (x MessageStatus) Number() protoreflect.EnumNumber {
  388. return protoreflect.EnumNumber(x)
  389. }
  390. // Deprecated: Use MessageStatus.Descriptor instead.
  391. func (MessageStatus) EnumDescriptor() ([]byte, []int) {
  392. return file_connect_ext_proto_rawDescGZIP(), []int{7}
  393. }
  394. // 群组用户状态
  395. type GroupUserStatusType int32
  396. const (
  397. GroupUserStatusType_GROUP_USER_STATUS_NORMAL GroupUserStatusType = 0 // 正常
  398. GroupUserStatusType_GROUP_USER_STATUS_Banned GroupUserStatusType = 1 // 禁言
  399. )
  400. // Enum value maps for GroupUserStatusType.
  401. var (
  402. GroupUserStatusType_name = map[int32]string{
  403. 0: "GROUP_USER_STATUS_NORMAL",
  404. 1: "GROUP_USER_STATUS_Banned",
  405. }
  406. GroupUserStatusType_value = map[string]int32{
  407. "GROUP_USER_STATUS_NORMAL": 0,
  408. "GROUP_USER_STATUS_Banned": 1,
  409. }
  410. )
  411. func (x GroupUserStatusType) Enum() *GroupUserStatusType {
  412. p := new(GroupUserStatusType)
  413. *p = x
  414. return p
  415. }
  416. func (x GroupUserStatusType) String() string {
  417. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  418. }
  419. func (GroupUserStatusType) Descriptor() protoreflect.EnumDescriptor {
  420. return file_connect_ext_proto_enumTypes[8].Descriptor()
  421. }
  422. func (GroupUserStatusType) Type() protoreflect.EnumType {
  423. return &file_connect_ext_proto_enumTypes[8]
  424. }
  425. func (x GroupUserStatusType) Number() protoreflect.EnumNumber {
  426. return protoreflect.EnumNumber(x)
  427. }
  428. // Deprecated: Use GroupUserStatusType.Descriptor instead.
  429. func (GroupUserStatusType) EnumDescriptor() ([]byte, []int) {
  430. return file_connect_ext_proto_rawDescGZIP(), []int{8}
  431. }
  432. // 单条消息投递内容(估算大约100个字节),todo 通知栏提醒
  433. type Message struct {
  434. state protoimpl.MessageState
  435. sizeCache protoimpl.SizeCache
  436. unknownFields protoimpl.UnknownFields
  437. Sender *Sender `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // 发送者
  438. ReceiverType ReceiverType `protobuf:"varint,2,opt,name=receiver_type,json=receiverType,proto3,enum=pb.ReceiverType" json:"receiver_type,omitempty"` // 接收者类型,1:user;2:group
  439. ReceiverId int64 `protobuf:"varint,3,opt,name=receiver_id,json=receiverId,proto3" json:"receiver_id,omitempty"` // 用户id或者群组id
  440. ToUserIds []int64 `protobuf:"varint,4,rep,packed,name=to_user_ids,json=toUserIds,proto3" json:"to_user_ids,omitempty"` // 需要@的用户id列表
  441. MessageType MessageType `protobuf:"varint,5,opt,name=message_type,json=messageType,proto3,enum=pb.MessageType" json:"message_type,omitempty"` // 消息类型
  442. MessageContent []byte `protobuf:"bytes,6,opt,name=message_content,json=messageContent,proto3" json:"message_content,omitempty"` // 消息内容
  443. Seq int64 `protobuf:"varint,7,opt,name=seq,proto3" json:"seq,omitempty"` // 用户消息发送序列号
  444. SendTime int64 `protobuf:"varint,8,opt,name=send_time,json=sendTime,proto3" json:"send_time,omitempty"` // 消息发送时间戳,精确到毫秒
  445. Status MessageStatus `protobuf:"varint,9,opt,name=status,proto3,enum=pb.MessageStatus" json:"status,omitempty"` // 消息状态
  446. }
  447. func (x *Message) Reset() {
  448. *x = Message{}
  449. if protoimpl.UnsafeEnabled {
  450. mi := &file_connect_ext_proto_msgTypes[0]
  451. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  452. ms.StoreMessageInfo(mi)
  453. }
  454. }
  455. func (x *Message) String() string {
  456. return protoimpl.X.MessageStringOf(x)
  457. }
  458. func (*Message) ProtoMessage() {}
  459. func (x *Message) ProtoReflect() protoreflect.Message {
  460. mi := &file_connect_ext_proto_msgTypes[0]
  461. if protoimpl.UnsafeEnabled && x != nil {
  462. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  463. if ms.LoadMessageInfo() == nil {
  464. ms.StoreMessageInfo(mi)
  465. }
  466. return ms
  467. }
  468. return mi.MessageOf(x)
  469. }
  470. // Deprecated: Use Message.ProtoReflect.Descriptor instead.
  471. func (*Message) Descriptor() ([]byte, []int) {
  472. return file_connect_ext_proto_rawDescGZIP(), []int{0}
  473. }
  474. func (x *Message) GetSender() *Sender {
  475. if x != nil {
  476. return x.Sender
  477. }
  478. return nil
  479. }
  480. func (x *Message) GetReceiverType() ReceiverType {
  481. if x != nil {
  482. return x.ReceiverType
  483. }
  484. return ReceiverType_RT_UNKNOWN
  485. }
  486. func (x *Message) GetReceiverId() int64 {
  487. if x != nil {
  488. return x.ReceiverId
  489. }
  490. return 0
  491. }
  492. func (x *Message) GetToUserIds() []int64 {
  493. if x != nil {
  494. return x.ToUserIds
  495. }
  496. return nil
  497. }
  498. func (x *Message) GetMessageType() MessageType {
  499. if x != nil {
  500. return x.MessageType
  501. }
  502. return MessageType_MT_UNKNOWN
  503. }
  504. func (x *Message) GetMessageContent() []byte {
  505. if x != nil {
  506. return x.MessageContent
  507. }
  508. return nil
  509. }
  510. func (x *Message) GetSeq() int64 {
  511. if x != nil {
  512. return x.Seq
  513. }
  514. return 0
  515. }
  516. func (x *Message) GetSendTime() int64 {
  517. if x != nil {
  518. return x.SendTime
  519. }
  520. return 0
  521. }
  522. func (x *Message) GetStatus() MessageStatus {
  523. if x != nil {
  524. return x.Status
  525. }
  526. return MessageStatus_MS_UNKNOWN
  527. }
  528. type Sender struct {
  529. state protoimpl.MessageState
  530. sizeCache protoimpl.SizeCache
  531. unknownFields protoimpl.UnknownFields
  532. SenderType SenderType `protobuf:"varint,1,opt,name=sender_type,json=senderType,proto3,enum=pb.SenderType" json:"sender_type,omitempty"` // 发送者类型,1:系统,2:用户,3:第三方业务系统
  533. SenderId int64 `protobuf:"varint,2,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` // 发送者id
  534. DeviceId int64 `protobuf:"varint,3,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // 发送者设备id
  535. AvatarUrl string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` // 头像
  536. Nickname string `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname,omitempty"` // 昵称
  537. Extra string `protobuf:"bytes,6,opt,name=extra,proto3" json:"extra,omitempty"` // 扩展字段
  538. }
  539. func (x *Sender) Reset() {
  540. *x = Sender{}
  541. if protoimpl.UnsafeEnabled {
  542. mi := &file_connect_ext_proto_msgTypes[1]
  543. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  544. ms.StoreMessageInfo(mi)
  545. }
  546. }
  547. func (x *Sender) String() string {
  548. return protoimpl.X.MessageStringOf(x)
  549. }
  550. func (*Sender) ProtoMessage() {}
  551. func (x *Sender) ProtoReflect() protoreflect.Message {
  552. mi := &file_connect_ext_proto_msgTypes[1]
  553. if protoimpl.UnsafeEnabled && x != nil {
  554. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  555. if ms.LoadMessageInfo() == nil {
  556. ms.StoreMessageInfo(mi)
  557. }
  558. return ms
  559. }
  560. return mi.MessageOf(x)
  561. }
  562. // Deprecated: Use Sender.ProtoReflect.Descriptor instead.
  563. func (*Sender) Descriptor() ([]byte, []int) {
  564. return file_connect_ext_proto_rawDescGZIP(), []int{1}
  565. }
  566. func (x *Sender) GetSenderType() SenderType {
  567. if x != nil {
  568. return x.SenderType
  569. }
  570. return SenderType_ST_UNKNOWN
  571. }
  572. func (x *Sender) GetSenderId() int64 {
  573. if x != nil {
  574. return x.SenderId
  575. }
  576. return 0
  577. }
  578. func (x *Sender) GetDeviceId() int64 {
  579. if x != nil {
  580. return x.DeviceId
  581. }
  582. return 0
  583. }
  584. func (x *Sender) GetAvatarUrl() string {
  585. if x != nil {
  586. return x.AvatarUrl
  587. }
  588. return ""
  589. }
  590. func (x *Sender) GetNickname() string {
  591. if x != nil {
  592. return x.Nickname
  593. }
  594. return ""
  595. }
  596. func (x *Sender) GetExtra() string {
  597. if x != nil {
  598. return x.Extra
  599. }
  600. return ""
  601. }
  602. // 文本消息
  603. type Text struct {
  604. state protoimpl.MessageState
  605. sizeCache protoimpl.SizeCache
  606. unknownFields protoimpl.UnknownFields
  607. Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` // 文本消息内容
  608. }
  609. func (x *Text) Reset() {
  610. *x = Text{}
  611. if protoimpl.UnsafeEnabled {
  612. mi := &file_connect_ext_proto_msgTypes[2]
  613. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  614. ms.StoreMessageInfo(mi)
  615. }
  616. }
  617. func (x *Text) String() string {
  618. return protoimpl.X.MessageStringOf(x)
  619. }
  620. func (*Text) ProtoMessage() {}
  621. func (x *Text) ProtoReflect() protoreflect.Message {
  622. mi := &file_connect_ext_proto_msgTypes[2]
  623. if protoimpl.UnsafeEnabled && x != nil {
  624. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  625. if ms.LoadMessageInfo() == nil {
  626. ms.StoreMessageInfo(mi)
  627. }
  628. return ms
  629. }
  630. return mi.MessageOf(x)
  631. }
  632. // Deprecated: Use Text.ProtoReflect.Descriptor instead.
  633. func (*Text) Descriptor() ([]byte, []int) {
  634. return file_connect_ext_proto_rawDescGZIP(), []int{2}
  635. }
  636. func (x *Text) GetText() string {
  637. if x != nil {
  638. return x.Text
  639. }
  640. return ""
  641. }
  642. // 表情消息
  643. type Face struct {
  644. state protoimpl.MessageState
  645. sizeCache protoimpl.SizeCache
  646. unknownFields protoimpl.UnknownFields
  647. FaceId int64 `protobuf:"varint,1,opt,name=face_id,json=faceId,proto3" json:"face_id,omitempty"`
  648. FaceUrl string `protobuf:"bytes,2,opt,name=face_url,json=faceUrl,proto3" json:"face_url,omitempty"`
  649. }
  650. func (x *Face) Reset() {
  651. *x = Face{}
  652. if protoimpl.UnsafeEnabled {
  653. mi := &file_connect_ext_proto_msgTypes[3]
  654. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  655. ms.StoreMessageInfo(mi)
  656. }
  657. }
  658. func (x *Face) String() string {
  659. return protoimpl.X.MessageStringOf(x)
  660. }
  661. func (*Face) ProtoMessage() {}
  662. func (x *Face) ProtoReflect() protoreflect.Message {
  663. mi := &file_connect_ext_proto_msgTypes[3]
  664. if protoimpl.UnsafeEnabled && x != nil {
  665. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  666. if ms.LoadMessageInfo() == nil {
  667. ms.StoreMessageInfo(mi)
  668. }
  669. return ms
  670. }
  671. return mi.MessageOf(x)
  672. }
  673. // Deprecated: Use Face.ProtoReflect.Descriptor instead.
  674. func (*Face) Descriptor() ([]byte, []int) {
  675. return file_connect_ext_proto_rawDescGZIP(), []int{3}
  676. }
  677. func (x *Face) GetFaceId() int64 {
  678. if x != nil {
  679. return x.FaceId
  680. }
  681. return 0
  682. }
  683. func (x *Face) GetFaceUrl() string {
  684. if x != nil {
  685. return x.FaceUrl
  686. }
  687. return ""
  688. }
  689. // 语音消息
  690. type Voice struct {
  691. state protoimpl.MessageState
  692. sizeCache protoimpl.SizeCache
  693. unknownFields protoimpl.UnknownFields
  694. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 语音包id
  695. Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` // 语音包大小
  696. Duration int32 `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty"` // 语音时长
  697. Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` // 语音文件URL
  698. }
  699. func (x *Voice) Reset() {
  700. *x = Voice{}
  701. if protoimpl.UnsafeEnabled {
  702. mi := &file_connect_ext_proto_msgTypes[4]
  703. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  704. ms.StoreMessageInfo(mi)
  705. }
  706. }
  707. func (x *Voice) String() string {
  708. return protoimpl.X.MessageStringOf(x)
  709. }
  710. func (*Voice) ProtoMessage() {}
  711. func (x *Voice) ProtoReflect() protoreflect.Message {
  712. mi := &file_connect_ext_proto_msgTypes[4]
  713. if protoimpl.UnsafeEnabled && x != nil {
  714. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  715. if ms.LoadMessageInfo() == nil {
  716. ms.StoreMessageInfo(mi)
  717. }
  718. return ms
  719. }
  720. return mi.MessageOf(x)
  721. }
  722. // Deprecated: Use Voice.ProtoReflect.Descriptor instead.
  723. func (*Voice) Descriptor() ([]byte, []int) {
  724. return file_connect_ext_proto_rawDescGZIP(), []int{4}
  725. }
  726. func (x *Voice) GetId() string {
  727. if x != nil {
  728. return x.Id
  729. }
  730. return ""
  731. }
  732. func (x *Voice) GetSize() int32 {
  733. if x != nil {
  734. return x.Size
  735. }
  736. return 0
  737. }
  738. func (x *Voice) GetDuration() int32 {
  739. if x != nil {
  740. return x.Duration
  741. }
  742. return 0
  743. }
  744. func (x *Voice) GetUrl() string {
  745. if x != nil {
  746. return x.Url
  747. }
  748. return ""
  749. }
  750. // 图片消息
  751. type Image struct {
  752. state protoimpl.MessageState
  753. sizeCache protoimpl.SizeCache
  754. unknownFields protoimpl.UnknownFields
  755. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 图片id
  756. Width int32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"` // 图片宽度
  757. Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` // 图片长度
  758. Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` // 图片URL
  759. ThumbnailUrl string `protobuf:"bytes,5,opt,name=thumbnail_url,json=thumbnailUrl,proto3" json:"thumbnail_url,omitempty"` // 图片缩略图url
  760. }
  761. func (x *Image) Reset() {
  762. *x = Image{}
  763. if protoimpl.UnsafeEnabled {
  764. mi := &file_connect_ext_proto_msgTypes[5]
  765. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  766. ms.StoreMessageInfo(mi)
  767. }
  768. }
  769. func (x *Image) String() string {
  770. return protoimpl.X.MessageStringOf(x)
  771. }
  772. func (*Image) ProtoMessage() {}
  773. func (x *Image) ProtoReflect() protoreflect.Message {
  774. mi := &file_connect_ext_proto_msgTypes[5]
  775. if protoimpl.UnsafeEnabled && x != nil {
  776. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  777. if ms.LoadMessageInfo() == nil {
  778. ms.StoreMessageInfo(mi)
  779. }
  780. return ms
  781. }
  782. return mi.MessageOf(x)
  783. }
  784. // Deprecated: Use Image.ProtoReflect.Descriptor instead.
  785. func (*Image) Descriptor() ([]byte, []int) {
  786. return file_connect_ext_proto_rawDescGZIP(), []int{5}
  787. }
  788. func (x *Image) GetId() string {
  789. if x != nil {
  790. return x.Id
  791. }
  792. return ""
  793. }
  794. func (x *Image) GetWidth() int32 {
  795. if x != nil {
  796. return x.Width
  797. }
  798. return 0
  799. }
  800. func (x *Image) GetHeight() int32 {
  801. if x != nil {
  802. return x.Height
  803. }
  804. return 0
  805. }
  806. func (x *Image) GetUrl() string {
  807. if x != nil {
  808. return x.Url
  809. }
  810. return ""
  811. }
  812. func (x *Image) GetThumbnailUrl() string {
  813. if x != nil {
  814. return x.ThumbnailUrl
  815. }
  816. return ""
  817. }
  818. // 文件消息
  819. type File struct {
  820. state protoimpl.MessageState
  821. sizeCache protoimpl.SizeCache
  822. unknownFields protoimpl.UnknownFields
  823. Id int64 `protobuf:"varint,12,opt,name=id,proto3" json:"id,omitempty"` // 文件id
  824. Name string `protobuf:"bytes,13,opt,name=name,proto3" json:"name,omitempty"` // 文件名
  825. Size int64 `protobuf:"varint,14,opt,name=size,proto3" json:"size,omitempty"` // 文件大小
  826. Url string `protobuf:"bytes,15,opt,name=url,proto3" json:"url,omitempty"` // 文件url
  827. Width int32 `protobuf:"varint,16,opt,name=width,proto3" json:"width,omitempty"` // 文件宽度
  828. Height int32 `protobuf:"varint,17,opt,name=height,proto3" json:"height,omitempty"` // 文件长度
  829. ThumbnailUrl string `protobuf:"bytes,18,opt,name=thumbnail_url,json=thumbnailUrl,proto3" json:"thumbnail_url,omitempty"` // 文件缩略图url
  830. }
  831. func (x *File) Reset() {
  832. *x = File{}
  833. if protoimpl.UnsafeEnabled {
  834. mi := &file_connect_ext_proto_msgTypes[6]
  835. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  836. ms.StoreMessageInfo(mi)
  837. }
  838. }
  839. func (x *File) String() string {
  840. return protoimpl.X.MessageStringOf(x)
  841. }
  842. func (*File) ProtoMessage() {}
  843. func (x *File) ProtoReflect() protoreflect.Message {
  844. mi := &file_connect_ext_proto_msgTypes[6]
  845. if protoimpl.UnsafeEnabled && x != nil {
  846. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  847. if ms.LoadMessageInfo() == nil {
  848. ms.StoreMessageInfo(mi)
  849. }
  850. return ms
  851. }
  852. return mi.MessageOf(x)
  853. }
  854. // Deprecated: Use File.ProtoReflect.Descriptor instead.
  855. func (*File) Descriptor() ([]byte, []int) {
  856. return file_connect_ext_proto_rawDescGZIP(), []int{6}
  857. }
  858. func (x *File) GetId() int64 {
  859. if x != nil {
  860. return x.Id
  861. }
  862. return 0
  863. }
  864. func (x *File) GetName() string {
  865. if x != nil {
  866. return x.Name
  867. }
  868. return ""
  869. }
  870. func (x *File) GetSize() int64 {
  871. if x != nil {
  872. return x.Size
  873. }
  874. return 0
  875. }
  876. func (x *File) GetUrl() string {
  877. if x != nil {
  878. return x.Url
  879. }
  880. return ""
  881. }
  882. func (x *File) GetWidth() int32 {
  883. if x != nil {
  884. return x.Width
  885. }
  886. return 0
  887. }
  888. func (x *File) GetHeight() int32 {
  889. if x != nil {
  890. return x.Height
  891. }
  892. return 0
  893. }
  894. func (x *File) GetThumbnailUrl() string {
  895. if x != nil {
  896. return x.ThumbnailUrl
  897. }
  898. return ""
  899. }
  900. // 地理位置消息
  901. type Location struct {
  902. state protoimpl.MessageState
  903. sizeCache protoimpl.SizeCache
  904. unknownFields protoimpl.UnknownFields
  905. Desc string `protobuf:"bytes,1,opt,name=desc,proto3" json:"desc,omitempty"` // 描述
  906. Latitude float64 `protobuf:"fixed64,2,opt,name=latitude,proto3" json:"latitude,omitempty"` // 经度
  907. Longitude float64 `protobuf:"fixed64,3,opt,name=longitude,proto3" json:"longitude,omitempty"` // 纬度
  908. }
  909. func (x *Location) Reset() {
  910. *x = Location{}
  911. if protoimpl.UnsafeEnabled {
  912. mi := &file_connect_ext_proto_msgTypes[7]
  913. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  914. ms.StoreMessageInfo(mi)
  915. }
  916. }
  917. func (x *Location) String() string {
  918. return protoimpl.X.MessageStringOf(x)
  919. }
  920. func (*Location) ProtoMessage() {}
  921. func (x *Location) ProtoReflect() protoreflect.Message {
  922. mi := &file_connect_ext_proto_msgTypes[7]
  923. if protoimpl.UnsafeEnabled && x != nil {
  924. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  925. if ms.LoadMessageInfo() == nil {
  926. ms.StoreMessageInfo(mi)
  927. }
  928. return ms
  929. }
  930. return mi.MessageOf(x)
  931. }
  932. // Deprecated: Use Location.ProtoReflect.Descriptor instead.
  933. func (*Location) Descriptor() ([]byte, []int) {
  934. return file_connect_ext_proto_rawDescGZIP(), []int{7}
  935. }
  936. func (x *Location) GetDesc() string {
  937. if x != nil {
  938. return x.Desc
  939. }
  940. return ""
  941. }
  942. func (x *Location) GetLatitude() float64 {
  943. if x != nil {
  944. return x.Latitude
  945. }
  946. return 0
  947. }
  948. func (x *Location) GetLongitude() float64 {
  949. if x != nil {
  950. return x.Longitude
  951. }
  952. return 0
  953. }
  954. // Command 指令推送,1000以下,IM内部用,1000以上,留给业务用
  955. type Command struct {
  956. state protoimpl.MessageState
  957. sizeCache protoimpl.SizeCache
  958. unknownFields protoimpl.UnknownFields
  959. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 指令码
  960. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // 数据内容
  961. }
  962. func (x *Command) Reset() {
  963. *x = Command{}
  964. if protoimpl.UnsafeEnabled {
  965. mi := &file_connect_ext_proto_msgTypes[8]
  966. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  967. ms.StoreMessageInfo(mi)
  968. }
  969. }
  970. func (x *Command) String() string {
  971. return protoimpl.X.MessageStringOf(x)
  972. }
  973. func (*Command) ProtoMessage() {}
  974. func (x *Command) ProtoReflect() protoreflect.Message {
  975. mi := &file_connect_ext_proto_msgTypes[8]
  976. if protoimpl.UnsafeEnabled && x != nil {
  977. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  978. if ms.LoadMessageInfo() == nil {
  979. ms.StoreMessageInfo(mi)
  980. }
  981. return ms
  982. }
  983. return mi.MessageOf(x)
  984. }
  985. // Deprecated: Use Command.ProtoReflect.Descriptor instead.
  986. func (*Command) Descriptor() ([]byte, []int) {
  987. return file_connect_ext_proto_rawDescGZIP(), []int{8}
  988. }
  989. func (x *Command) GetCode() int32 {
  990. if x != nil {
  991. return x.Code
  992. }
  993. return 0
  994. }
  995. func (x *Command) GetData() []byte {
  996. if x != nil {
  997. return x.Data
  998. }
  999. return nil
  1000. }
  1001. // 自定义消息
  1002. type Custom struct {
  1003. state protoimpl.MessageState
  1004. sizeCache protoimpl.SizeCache
  1005. unknownFields protoimpl.UnknownFields
  1006. Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // 自定义数据
  1007. }
  1008. func (x *Custom) Reset() {
  1009. *x = Custom{}
  1010. if protoimpl.UnsafeEnabled {
  1011. mi := &file_connect_ext_proto_msgTypes[9]
  1012. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1013. ms.StoreMessageInfo(mi)
  1014. }
  1015. }
  1016. func (x *Custom) String() string {
  1017. return protoimpl.X.MessageStringOf(x)
  1018. }
  1019. func (*Custom) ProtoMessage() {}
  1020. func (x *Custom) ProtoReflect() protoreflect.Message {
  1021. mi := &file_connect_ext_proto_msgTypes[9]
  1022. if protoimpl.UnsafeEnabled && x != nil {
  1023. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1024. if ms.LoadMessageInfo() == nil {
  1025. ms.StoreMessageInfo(mi)
  1026. }
  1027. return ms
  1028. }
  1029. return mi.MessageOf(x)
  1030. }
  1031. // Deprecated: Use Custom.ProtoReflect.Descriptor instead.
  1032. func (*Custom) Descriptor() ([]byte, []int) {
  1033. return file_connect_ext_proto_rawDescGZIP(), []int{9}
  1034. }
  1035. func (x *Custom) GetData() string {
  1036. if x != nil {
  1037. return x.Data
  1038. }
  1039. return ""
  1040. }
  1041. // 撤回消息
  1042. type RECALL struct {
  1043. state protoimpl.MessageState
  1044. sizeCache protoimpl.SizeCache
  1045. unknownFields protoimpl.UnknownFields
  1046. RecallSeq int64 `protobuf:"varint,1,opt,name=recall_seq,json=recallSeq,proto3" json:"recall_seq,omitempty"` // 撤回消息seq
  1047. }
  1048. func (x *RECALL) Reset() {
  1049. *x = RECALL{}
  1050. if protoimpl.UnsafeEnabled {
  1051. mi := &file_connect_ext_proto_msgTypes[10]
  1052. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1053. ms.StoreMessageInfo(mi)
  1054. }
  1055. }
  1056. func (x *RECALL) String() string {
  1057. return protoimpl.X.MessageStringOf(x)
  1058. }
  1059. func (*RECALL) ProtoMessage() {}
  1060. func (x *RECALL) ProtoReflect() protoreflect.Message {
  1061. mi := &file_connect_ext_proto_msgTypes[10]
  1062. if protoimpl.UnsafeEnabled && x != nil {
  1063. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1064. if ms.LoadMessageInfo() == nil {
  1065. ms.StoreMessageInfo(mi)
  1066. }
  1067. return ms
  1068. }
  1069. return mi.MessageOf(x)
  1070. }
  1071. // Deprecated: Use RECALL.ProtoReflect.Descriptor instead.
  1072. func (*RECALL) Descriptor() ([]byte, []int) {
  1073. return file_connect_ext_proto_rawDescGZIP(), []int{10}
  1074. }
  1075. func (x *RECALL) GetRecallSeq() int64 {
  1076. if x != nil {
  1077. return x.RecallSeq
  1078. }
  1079. return 0
  1080. }
  1081. // 红包消息
  1082. type RED_PACKAGE struct {
  1083. state protoimpl.MessageState
  1084. sizeCache protoimpl.SizeCache
  1085. unknownFields protoimpl.UnknownFields
  1086. RedMessageType RedPacketMessageType `protobuf:"varint,1,opt,name=red_message_type,json=redMessageType,proto3,enum=pb.RedPacketMessageType" json:"red_message_type,omitempty"` // 红包消息类型
  1087. RedPacketType RedPacketType `protobuf:"varint,2,opt,name=red_packet_type,json=redPacketType,proto3,enum=pb.RedPacketType" json:"red_packet_type,omitempty"` // 红包类型
  1088. RedPacketContent string `protobuf:"bytes,3,opt,name=red_packet_content,json=redPacketContent,proto3" json:"red_packet_content,omitempty"` // 红包文字内容
  1089. RedPacketAmount float32 `protobuf:"fixed32,6,opt,name=red_packet_amount,json=redPacketAmount,proto3" json:"red_packet_amount,omitempty"` // 红包金额
  1090. RedPacketNums int32 `protobuf:"varint,5,opt,name=red_packet_nums,json=redPacketNums,proto3" json:"red_packet_nums,omitempty"` // 红包数量
  1091. RedPacketBalanceAmount float32 `protobuf:"fixed32,7,opt,name=red_packet_balance_amount,json=redPacketBalanceAmount,proto3" json:"red_packet_balance_amount,omitempty"` // 红包余额
  1092. ReceivedUserId int64 `protobuf:"varint,8,opt,name=received_user_id,json=receivedUserId,proto3" json:"received_user_id,omitempty"` // 领取用户id
  1093. ReceivedUserAmount float32 `protobuf:"fixed32,9,opt,name=received_user_amount,json=receivedUserAmount,proto3" json:"received_user_amount,omitempty"` // 领取用户金额
  1094. ReceivedUserNickname string `protobuf:"bytes,10,opt,name=received_user_nickname,json=receivedUserNickname,proto3" json:"received_user_nickname,omitempty"` // 领取用户昵称
  1095. RedPacketStatusType RedPacketStatusType `protobuf:"varint,11,opt,name=red_packet_status_type,json=redPacketStatusType,proto3,enum=pb.RedPacketStatusType" json:"red_packet_status_type,omitempty"` // 领取状态
  1096. RedPacketId int64 `protobuf:"varint,12,opt,name=red_packet_id,json=redPacketId,proto3" json:"red_packet_id,omitempty"` // 红包id
  1097. SendRedPacketUid int64 `protobuf:"varint,13,opt,name=send_red_packet_uid,json=sendRedPacketUid,proto3" json:"send_red_packet_uid,omitempty"` // 红包发送者uid
  1098. SendRedPacketNickname string `protobuf:"bytes,14,opt,name=send_red_packet_nickname,json=sendRedPacketNickname,proto3" json:"send_red_packet_nickname,omitempty"` // 红包发送者昵称
  1099. SendRedPacketAvatarUrl string `protobuf:"bytes,15,opt,name=send_red_packet_avatar_url,json=sendRedPacketAvatarUrl,proto3" json:"send_red_packet_avatar_url,omitempty"` // 红包发送者头像
  1100. RedPacketSmallContent string `protobuf:"bytes,16,opt,name=red_packet_small_content,json=redPacketSmallContent,proto3" json:"red_packet_small_content,omitempty"` // 红包小文字内容
  1101. RedPacketCover string `protobuf:"bytes,17,opt,name=red_packet_cover,json=redPacketCover,proto3" json:"red_packet_cover,omitempty"` // 红包封面
  1102. }
  1103. func (x *RED_PACKAGE) Reset() {
  1104. *x = RED_PACKAGE{}
  1105. if protoimpl.UnsafeEnabled {
  1106. mi := &file_connect_ext_proto_msgTypes[11]
  1107. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1108. ms.StoreMessageInfo(mi)
  1109. }
  1110. }
  1111. func (x *RED_PACKAGE) String() string {
  1112. return protoimpl.X.MessageStringOf(x)
  1113. }
  1114. func (*RED_PACKAGE) ProtoMessage() {}
  1115. func (x *RED_PACKAGE) ProtoReflect() protoreflect.Message {
  1116. mi := &file_connect_ext_proto_msgTypes[11]
  1117. if protoimpl.UnsafeEnabled && x != nil {
  1118. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1119. if ms.LoadMessageInfo() == nil {
  1120. ms.StoreMessageInfo(mi)
  1121. }
  1122. return ms
  1123. }
  1124. return mi.MessageOf(x)
  1125. }
  1126. // Deprecated: Use RED_PACKAGE.ProtoReflect.Descriptor instead.
  1127. func (*RED_PACKAGE) Descriptor() ([]byte, []int) {
  1128. return file_connect_ext_proto_rawDescGZIP(), []int{11}
  1129. }
  1130. func (x *RED_PACKAGE) GetRedMessageType() RedPacketMessageType {
  1131. if x != nil {
  1132. return x.RedMessageType
  1133. }
  1134. return RedPacketMessageType_RMT_UNKNOWN
  1135. }
  1136. func (x *RED_PACKAGE) GetRedPacketType() RedPacketType {
  1137. if x != nil {
  1138. return x.RedPacketType
  1139. }
  1140. return RedPacketType_RPT_UNKNOWN
  1141. }
  1142. func (x *RED_PACKAGE) GetRedPacketContent() string {
  1143. if x != nil {
  1144. return x.RedPacketContent
  1145. }
  1146. return ""
  1147. }
  1148. func (x *RED_PACKAGE) GetRedPacketAmount() float32 {
  1149. if x != nil {
  1150. return x.RedPacketAmount
  1151. }
  1152. return 0
  1153. }
  1154. func (x *RED_PACKAGE) GetRedPacketNums() int32 {
  1155. if x != nil {
  1156. return x.RedPacketNums
  1157. }
  1158. return 0
  1159. }
  1160. func (x *RED_PACKAGE) GetRedPacketBalanceAmount() float32 {
  1161. if x != nil {
  1162. return x.RedPacketBalanceAmount
  1163. }
  1164. return 0
  1165. }
  1166. func (x *RED_PACKAGE) GetReceivedUserId() int64 {
  1167. if x != nil {
  1168. return x.ReceivedUserId
  1169. }
  1170. return 0
  1171. }
  1172. func (x *RED_PACKAGE) GetReceivedUserAmount() float32 {
  1173. if x != nil {
  1174. return x.ReceivedUserAmount
  1175. }
  1176. return 0
  1177. }
  1178. func (x *RED_PACKAGE) GetReceivedUserNickname() string {
  1179. if x != nil {
  1180. return x.ReceivedUserNickname
  1181. }
  1182. return ""
  1183. }
  1184. func (x *RED_PACKAGE) GetRedPacketStatusType() RedPacketStatusType {
  1185. if x != nil {
  1186. return x.RedPacketStatusType
  1187. }
  1188. return RedPacketStatusType_RPS_NOT_DRAW
  1189. }
  1190. func (x *RED_PACKAGE) GetRedPacketId() int64 {
  1191. if x != nil {
  1192. return x.RedPacketId
  1193. }
  1194. return 0
  1195. }
  1196. func (x *RED_PACKAGE) GetSendRedPacketUid() int64 {
  1197. if x != nil {
  1198. return x.SendRedPacketUid
  1199. }
  1200. return 0
  1201. }
  1202. func (x *RED_PACKAGE) GetSendRedPacketNickname() string {
  1203. if x != nil {
  1204. return x.SendRedPacketNickname
  1205. }
  1206. return ""
  1207. }
  1208. func (x *RED_PACKAGE) GetSendRedPacketAvatarUrl() string {
  1209. if x != nil {
  1210. return x.SendRedPacketAvatarUrl
  1211. }
  1212. return ""
  1213. }
  1214. func (x *RED_PACKAGE) GetRedPacketSmallContent() string {
  1215. if x != nil {
  1216. return x.RedPacketSmallContent
  1217. }
  1218. return ""
  1219. }
  1220. func (x *RED_PACKAGE) GetRedPacketCover() string {
  1221. if x != nil {
  1222. return x.RedPacketCover
  1223. }
  1224. return ""
  1225. }
  1226. // 上行数据
  1227. type Input struct {
  1228. state protoimpl.MessageState
  1229. sizeCache protoimpl.SizeCache
  1230. unknownFields protoimpl.UnknownFields
  1231. Type PackageType `protobuf:"varint,1,opt,name=type,proto3,enum=pb.PackageType" json:"type,omitempty"` // 包的类型
  1232. RequestId int64 `protobuf:"varint,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // 请求id
  1233. Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // 数据
  1234. }
  1235. func (x *Input) Reset() {
  1236. *x = Input{}
  1237. if protoimpl.UnsafeEnabled {
  1238. mi := &file_connect_ext_proto_msgTypes[12]
  1239. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1240. ms.StoreMessageInfo(mi)
  1241. }
  1242. }
  1243. func (x *Input) String() string {
  1244. return protoimpl.X.MessageStringOf(x)
  1245. }
  1246. func (*Input) ProtoMessage() {}
  1247. func (x *Input) ProtoReflect() protoreflect.Message {
  1248. mi := &file_connect_ext_proto_msgTypes[12]
  1249. if protoimpl.UnsafeEnabled && x != nil {
  1250. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1251. if ms.LoadMessageInfo() == nil {
  1252. ms.StoreMessageInfo(mi)
  1253. }
  1254. return ms
  1255. }
  1256. return mi.MessageOf(x)
  1257. }
  1258. // Deprecated: Use Input.ProtoReflect.Descriptor instead.
  1259. func (*Input) Descriptor() ([]byte, []int) {
  1260. return file_connect_ext_proto_rawDescGZIP(), []int{12}
  1261. }
  1262. func (x *Input) GetType() PackageType {
  1263. if x != nil {
  1264. return x.Type
  1265. }
  1266. return PackageType_PT_UNKNOWN
  1267. }
  1268. func (x *Input) GetRequestId() int64 {
  1269. if x != nil {
  1270. return x.RequestId
  1271. }
  1272. return 0
  1273. }
  1274. func (x *Input) GetData() []byte {
  1275. if x != nil {
  1276. return x.Data
  1277. }
  1278. return nil
  1279. }
  1280. // 下行数据
  1281. type Output struct {
  1282. state protoimpl.MessageState
  1283. sizeCache protoimpl.SizeCache
  1284. unknownFields protoimpl.UnknownFields
  1285. Type PackageType `protobuf:"varint,1,opt,name=type,proto3,enum=pb.PackageType" json:"type,omitempty"` // 包的类型
  1286. RequestId int64 `protobuf:"varint,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // 请求id
  1287. Code int32 `protobuf:"varint,3,opt,name=code,proto3" json:"code,omitempty"` // 错误码
  1288. Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` // 错误信息
  1289. Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // 数据
  1290. }
  1291. func (x *Output) Reset() {
  1292. *x = Output{}
  1293. if protoimpl.UnsafeEnabled {
  1294. mi := &file_connect_ext_proto_msgTypes[13]
  1295. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1296. ms.StoreMessageInfo(mi)
  1297. }
  1298. }
  1299. func (x *Output) String() string {
  1300. return protoimpl.X.MessageStringOf(x)
  1301. }
  1302. func (*Output) ProtoMessage() {}
  1303. func (x *Output) ProtoReflect() protoreflect.Message {
  1304. mi := &file_connect_ext_proto_msgTypes[13]
  1305. if protoimpl.UnsafeEnabled && x != nil {
  1306. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1307. if ms.LoadMessageInfo() == nil {
  1308. ms.StoreMessageInfo(mi)
  1309. }
  1310. return ms
  1311. }
  1312. return mi.MessageOf(x)
  1313. }
  1314. // Deprecated: Use Output.ProtoReflect.Descriptor instead.
  1315. func (*Output) Descriptor() ([]byte, []int) {
  1316. return file_connect_ext_proto_rawDescGZIP(), []int{13}
  1317. }
  1318. func (x *Output) GetType() PackageType {
  1319. if x != nil {
  1320. return x.Type
  1321. }
  1322. return PackageType_PT_UNKNOWN
  1323. }
  1324. func (x *Output) GetRequestId() int64 {
  1325. if x != nil {
  1326. return x.RequestId
  1327. }
  1328. return 0
  1329. }
  1330. func (x *Output) GetCode() int32 {
  1331. if x != nil {
  1332. return x.Code
  1333. }
  1334. return 0
  1335. }
  1336. func (x *Output) GetMessage() string {
  1337. if x != nil {
  1338. return x.Message
  1339. }
  1340. return ""
  1341. }
  1342. func (x *Output) GetData() []byte {
  1343. if x != nil {
  1344. return x.Data
  1345. }
  1346. return nil
  1347. }
  1348. // 设备登录,package_type:1
  1349. type SignInInput struct {
  1350. state protoimpl.MessageState
  1351. sizeCache protoimpl.SizeCache
  1352. unknownFields protoimpl.UnknownFields
  1353. DeviceId int64 `protobuf:"varint,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // 设备id
  1354. UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
  1355. Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // 秘钥
  1356. }
  1357. func (x *SignInInput) Reset() {
  1358. *x = SignInInput{}
  1359. if protoimpl.UnsafeEnabled {
  1360. mi := &file_connect_ext_proto_msgTypes[14]
  1361. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1362. ms.StoreMessageInfo(mi)
  1363. }
  1364. }
  1365. func (x *SignInInput) String() string {
  1366. return protoimpl.X.MessageStringOf(x)
  1367. }
  1368. func (*SignInInput) ProtoMessage() {}
  1369. func (x *SignInInput) ProtoReflect() protoreflect.Message {
  1370. mi := &file_connect_ext_proto_msgTypes[14]
  1371. if protoimpl.UnsafeEnabled && x != nil {
  1372. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1373. if ms.LoadMessageInfo() == nil {
  1374. ms.StoreMessageInfo(mi)
  1375. }
  1376. return ms
  1377. }
  1378. return mi.MessageOf(x)
  1379. }
  1380. // Deprecated: Use SignInInput.ProtoReflect.Descriptor instead.
  1381. func (*SignInInput) Descriptor() ([]byte, []int) {
  1382. return file_connect_ext_proto_rawDescGZIP(), []int{14}
  1383. }
  1384. func (x *SignInInput) GetDeviceId() int64 {
  1385. if x != nil {
  1386. return x.DeviceId
  1387. }
  1388. return 0
  1389. }
  1390. func (x *SignInInput) GetUserId() int64 {
  1391. if x != nil {
  1392. return x.UserId
  1393. }
  1394. return 0
  1395. }
  1396. func (x *SignInInput) GetToken() string {
  1397. if x != nil {
  1398. return x.Token
  1399. }
  1400. return ""
  1401. }
  1402. // 消息同步请求,package_type:2
  1403. type SyncInput struct {
  1404. state protoimpl.MessageState
  1405. sizeCache protoimpl.SizeCache
  1406. unknownFields protoimpl.UnknownFields
  1407. Seq int64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"` // 客户端已经同步的序列号
  1408. }
  1409. func (x *SyncInput) Reset() {
  1410. *x = SyncInput{}
  1411. if protoimpl.UnsafeEnabled {
  1412. mi := &file_connect_ext_proto_msgTypes[15]
  1413. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1414. ms.StoreMessageInfo(mi)
  1415. }
  1416. }
  1417. func (x *SyncInput) String() string {
  1418. return protoimpl.X.MessageStringOf(x)
  1419. }
  1420. func (*SyncInput) ProtoMessage() {}
  1421. func (x *SyncInput) ProtoReflect() protoreflect.Message {
  1422. mi := &file_connect_ext_proto_msgTypes[15]
  1423. if protoimpl.UnsafeEnabled && x != nil {
  1424. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1425. if ms.LoadMessageInfo() == nil {
  1426. ms.StoreMessageInfo(mi)
  1427. }
  1428. return ms
  1429. }
  1430. return mi.MessageOf(x)
  1431. }
  1432. // Deprecated: Use SyncInput.ProtoReflect.Descriptor instead.
  1433. func (*SyncInput) Descriptor() ([]byte, []int) {
  1434. return file_connect_ext_proto_rawDescGZIP(), []int{15}
  1435. }
  1436. func (x *SyncInput) GetSeq() int64 {
  1437. if x != nil {
  1438. return x.Seq
  1439. }
  1440. return 0
  1441. }
  1442. // 消息同步响应,package_type:2
  1443. type SyncOutput struct {
  1444. state protoimpl.MessageState
  1445. sizeCache protoimpl.SizeCache
  1446. unknownFields protoimpl.UnknownFields
  1447. Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` // 消息列表
  1448. HasMore bool `protobuf:"varint,2,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"` // 是否有更多数据
  1449. }
  1450. func (x *SyncOutput) Reset() {
  1451. *x = SyncOutput{}
  1452. if protoimpl.UnsafeEnabled {
  1453. mi := &file_connect_ext_proto_msgTypes[16]
  1454. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1455. ms.StoreMessageInfo(mi)
  1456. }
  1457. }
  1458. func (x *SyncOutput) String() string {
  1459. return protoimpl.X.MessageStringOf(x)
  1460. }
  1461. func (*SyncOutput) ProtoMessage() {}
  1462. func (x *SyncOutput) ProtoReflect() protoreflect.Message {
  1463. mi := &file_connect_ext_proto_msgTypes[16]
  1464. if protoimpl.UnsafeEnabled && x != nil {
  1465. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1466. if ms.LoadMessageInfo() == nil {
  1467. ms.StoreMessageInfo(mi)
  1468. }
  1469. return ms
  1470. }
  1471. return mi.MessageOf(x)
  1472. }
  1473. // Deprecated: Use SyncOutput.ProtoReflect.Descriptor instead.
  1474. func (*SyncOutput) Descriptor() ([]byte, []int) {
  1475. return file_connect_ext_proto_rawDescGZIP(), []int{16}
  1476. }
  1477. func (x *SyncOutput) GetMessages() []*Message {
  1478. if x != nil {
  1479. return x.Messages
  1480. }
  1481. return nil
  1482. }
  1483. func (x *SyncOutput) GetHasMore() bool {
  1484. if x != nil {
  1485. return x.HasMore
  1486. }
  1487. return false
  1488. }
  1489. // 订阅房间请求
  1490. type SubscribeRoomInput struct {
  1491. state protoimpl.MessageState
  1492. sizeCache protoimpl.SizeCache
  1493. unknownFields protoimpl.UnknownFields
  1494. RoomId int64 `protobuf:"varint,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` // 房间ID,如果为0,取消房间订阅
  1495. Seq int64 `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"` // 消息消息序列号,
  1496. }
  1497. func (x *SubscribeRoomInput) Reset() {
  1498. *x = SubscribeRoomInput{}
  1499. if protoimpl.UnsafeEnabled {
  1500. mi := &file_connect_ext_proto_msgTypes[17]
  1501. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1502. ms.StoreMessageInfo(mi)
  1503. }
  1504. }
  1505. func (x *SubscribeRoomInput) String() string {
  1506. return protoimpl.X.MessageStringOf(x)
  1507. }
  1508. func (*SubscribeRoomInput) ProtoMessage() {}
  1509. func (x *SubscribeRoomInput) ProtoReflect() protoreflect.Message {
  1510. mi := &file_connect_ext_proto_msgTypes[17]
  1511. if protoimpl.UnsafeEnabled && x != nil {
  1512. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1513. if ms.LoadMessageInfo() == nil {
  1514. ms.StoreMessageInfo(mi)
  1515. }
  1516. return ms
  1517. }
  1518. return mi.MessageOf(x)
  1519. }
  1520. // Deprecated: Use SubscribeRoomInput.ProtoReflect.Descriptor instead.
  1521. func (*SubscribeRoomInput) Descriptor() ([]byte, []int) {
  1522. return file_connect_ext_proto_rawDescGZIP(), []int{17}
  1523. }
  1524. func (x *SubscribeRoomInput) GetRoomId() int64 {
  1525. if x != nil {
  1526. return x.RoomId
  1527. }
  1528. return 0
  1529. }
  1530. func (x *SubscribeRoomInput) GetSeq() int64 {
  1531. if x != nil {
  1532. return x.Seq
  1533. }
  1534. return 0
  1535. }
  1536. // 消息投递,package_type:4
  1537. type MessageSend struct {
  1538. state protoimpl.MessageState
  1539. sizeCache protoimpl.SizeCache
  1540. unknownFields protoimpl.UnknownFields
  1541. Message *Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // 消息
  1542. }
  1543. func (x *MessageSend) Reset() {
  1544. *x = MessageSend{}
  1545. if protoimpl.UnsafeEnabled {
  1546. mi := &file_connect_ext_proto_msgTypes[18]
  1547. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1548. ms.StoreMessageInfo(mi)
  1549. }
  1550. }
  1551. func (x *MessageSend) String() string {
  1552. return protoimpl.X.MessageStringOf(x)
  1553. }
  1554. func (*MessageSend) ProtoMessage() {}
  1555. func (x *MessageSend) ProtoReflect() protoreflect.Message {
  1556. mi := &file_connect_ext_proto_msgTypes[18]
  1557. if protoimpl.UnsafeEnabled && x != nil {
  1558. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1559. if ms.LoadMessageInfo() == nil {
  1560. ms.StoreMessageInfo(mi)
  1561. }
  1562. return ms
  1563. }
  1564. return mi.MessageOf(x)
  1565. }
  1566. // Deprecated: Use MessageSend.ProtoReflect.Descriptor instead.
  1567. func (*MessageSend) Descriptor() ([]byte, []int) {
  1568. return file_connect_ext_proto_rawDescGZIP(), []int{18}
  1569. }
  1570. func (x *MessageSend) GetMessage() *Message {
  1571. if x != nil {
  1572. return x.Message
  1573. }
  1574. return nil
  1575. }
  1576. // 投递消息回执,package_type:4
  1577. type MessageACK struct {
  1578. state protoimpl.MessageState
  1579. sizeCache protoimpl.SizeCache
  1580. unknownFields protoimpl.UnknownFields
  1581. DeviceAck int64 `protobuf:"varint,2,opt,name=device_ack,json=deviceAck,proto3" json:"device_ack,omitempty"` // 设备收到消息的确认号
  1582. ReceiveTime int64 `protobuf:"varint,3,opt,name=receive_time,json=receiveTime,proto3" json:"receive_time,omitempty"` // 消息接收时间戳,精确到毫秒
  1583. }
  1584. func (x *MessageACK) Reset() {
  1585. *x = MessageACK{}
  1586. if protoimpl.UnsafeEnabled {
  1587. mi := &file_connect_ext_proto_msgTypes[19]
  1588. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1589. ms.StoreMessageInfo(mi)
  1590. }
  1591. }
  1592. func (x *MessageACK) String() string {
  1593. return protoimpl.X.MessageStringOf(x)
  1594. }
  1595. func (*MessageACK) ProtoMessage() {}
  1596. func (x *MessageACK) ProtoReflect() protoreflect.Message {
  1597. mi := &file_connect_ext_proto_msgTypes[19]
  1598. if protoimpl.UnsafeEnabled && x != nil {
  1599. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1600. if ms.LoadMessageInfo() == nil {
  1601. ms.StoreMessageInfo(mi)
  1602. }
  1603. return ms
  1604. }
  1605. return mi.MessageOf(x)
  1606. }
  1607. // Deprecated: Use MessageACK.ProtoReflect.Descriptor instead.
  1608. func (*MessageACK) Descriptor() ([]byte, []int) {
  1609. return file_connect_ext_proto_rawDescGZIP(), []int{19}
  1610. }
  1611. func (x *MessageACK) GetDeviceAck() int64 {
  1612. if x != nil {
  1613. return x.DeviceAck
  1614. }
  1615. return 0
  1616. }
  1617. func (x *MessageACK) GetReceiveTime() int64 {
  1618. if x != nil {
  1619. return x.ReceiveTime
  1620. }
  1621. return 0
  1622. }
  1623. var File_connect_ext_proto protoreflect.FileDescriptor
  1624. var file_connect_ext_proto_rawDesc = []byte{
  1625. 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72,
  1626. 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xdc, 0x02, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73,
  1627. 0x61, 0x67, 0x65, 0x12, 0x22, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20,
  1628. 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52,
  1629. 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69,
  1630. 0x76, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x10,
  1631. 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65,
  1632. 0x52, 0x0c, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f,
  1633. 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20,
  1634. 0x01, 0x28, 0x03, 0x52, 0x0a, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x49, 0x64, 0x12,
  1635. 0x1e, 0x0a, 0x0b, 0x74, 0x6f, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04,
  1636. 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x74, 0x6f, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x73, 0x12,
  1637. 0x32, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,
  1638. 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61,
  1639. 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54,
  1640. 0x79, 0x70, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x63,
  1641. 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x6d, 0x65,
  1642. 0x73, 0x73, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03,
  1643. 0x73, 0x65, 0x71, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x71, 0x12, 0x1b,
  1644. 0x0a, 0x09, 0x73, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28,
  1645. 0x03, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x06, 0x73,
  1646. 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x70, 0x62,
  1647. 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06,
  1648. 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xc4, 0x01, 0x0a, 0x06, 0x53, 0x65, 0x6e, 0x64, 0x65,
  1649. 0x72, 0x12, 0x2f, 0x0a, 0x0b, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65,
  1650. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x6e, 0x64,
  1651. 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x54, 0x79,
  1652. 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18,
  1653. 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12,
  1654. 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
  1655. 0x28, 0x03, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a,
  1656. 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
  1657. 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x6e,
  1658. 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e,
  1659. 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61,
  1660. 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x22, 0x1a, 0x0a,
  1661. 0x04, 0x54, 0x65, 0x78, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20,
  1662. 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x22, 0x3a, 0x0a, 0x04, 0x46, 0x61, 0x63,
  1663. 0x65, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  1664. 0x28, 0x03, 0x52, 0x06, 0x66, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x66, 0x61,
  1665. 0x63, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x61,
  1666. 0x63, 0x65, 0x55, 0x72, 0x6c, 0x22, 0x59, 0x0a, 0x05, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x0e,
  1667. 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12,
  1668. 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x69,
  1669. 0x7a, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03,
  1670. 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10,
  1671. 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c,
  1672. 0x22, 0x7c, 0x0a, 0x05, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
  1673. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x69, 0x64,
  1674. 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x12,
  1675. 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52,
  1676. 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x04,
  1677. 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x68, 0x75,
  1678. 0x6d, 0x62, 0x6e, 0x61, 0x69, 0x6c, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
  1679. 0x52, 0x0c, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x6e, 0x61, 0x69, 0x6c, 0x55, 0x72, 0x6c, 0x22, 0xa3,
  1680. 0x01, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x0c, 0x20,
  1681. 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
  1682. 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73,
  1683. 0x69, 0x7a, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12,
  1684. 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72,
  1685. 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x10, 0x20, 0x01, 0x28, 0x05,
  1686. 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68,
  1687. 0x74, 0x18, 0x11, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12,
  1688. 0x23, 0x0a, 0x0d, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x6e, 0x61, 0x69, 0x6c, 0x5f, 0x75, 0x72, 0x6c,
  1689. 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x6e, 0x61, 0x69,
  1690. 0x6c, 0x55, 0x72, 0x6c, 0x22, 0x58, 0x0a, 0x08, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
  1691. 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x73, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
  1692. 0x64, 0x65, 0x73, 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65,
  1693. 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65,
  1694. 0x12, 0x1c, 0x0a, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x03, 0x20,
  1695. 0x01, 0x28, 0x01, 0x52, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x22, 0x31,
  1696. 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64,
  1697. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a,
  1698. 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74,
  1699. 0x61, 0x22, 0x1c, 0x0a, 0x06, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x64,
  1700. 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22,
  1701. 0x27, 0x0a, 0x06, 0x52, 0x45, 0x43, 0x41, 0x4c, 0x4c, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x63,
  1702. 0x61, 0x6c, 0x6c, 0x5f, 0x73, 0x65, 0x71, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x72,
  1703. 0x65, 0x63, 0x61, 0x6c, 0x6c, 0x53, 0x65, 0x71, 0x22, 0xd4, 0x06, 0x0a, 0x0b, 0x52, 0x45, 0x44,
  1704. 0x5f, 0x50, 0x41, 0x43, 0x4b, 0x41, 0x47, 0x45, 0x12, 0x42, 0x0a, 0x10, 0x72, 0x65, 0x64, 0x5f,
  1705. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01,
  1706. 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x65,
  1707. 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0e, 0x72, 0x65,
  1708. 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x0f,
  1709. 0x72, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,
  1710. 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x64, 0x50, 0x61,
  1711. 0x63, 0x6b, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0d, 0x72, 0x65, 0x64, 0x50, 0x61, 0x63,
  1712. 0x6b, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x72, 0x65, 0x64, 0x5f, 0x70,
  1713. 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20,
  1714. 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f,
  1715. 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x72, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x63,
  1716. 0x6b, 0x65, 0x74, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x02,
  1717. 0x52, 0x0f, 0x72, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x41, 0x6d, 0x6f, 0x75, 0x6e,
  1718. 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x72, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f,
  1719. 0x6e, 0x75, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x72, 0x65, 0x64, 0x50,
  1720. 0x61, 0x63, 0x6b, 0x65, 0x74, 0x4e, 0x75, 0x6d, 0x73, 0x12, 0x39, 0x0a, 0x19, 0x72, 0x65, 0x64,
  1721. 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x5f,
  1722. 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x02, 0x52, 0x16, 0x72, 0x65,
  1723. 0x64, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x41, 0x6d,
  1724. 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x10, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64,
  1725. 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e,
  1726. 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x30,
  1727. 0x0a, 0x14, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f,
  1728. 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x02, 0x52, 0x12, 0x72, 0x65,
  1729. 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74,
  1730. 0x12, 0x34, 0x0a, 0x16, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65,
  1731. 0x72, 0x5f, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09,
  1732. 0x52, 0x14, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4e, 0x69,
  1733. 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4c, 0x0a, 0x16, 0x72, 0x65, 0x64, 0x5f, 0x70, 0x61,
  1734. 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x74, 0x79, 0x70, 0x65,
  1735. 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x64, 0x50,
  1736. 0x61, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x54, 0x79, 0x70, 0x65, 0x52,
  1737. 0x13, 0x72, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
  1738. 0x54, 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x72, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x63, 0x6b,
  1739. 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x72, 0x65, 0x64,
  1740. 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x2d, 0x0a, 0x13, 0x73, 0x65, 0x6e, 0x64,
  1741. 0x5f, 0x72, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x75, 0x69, 0x64, 0x18,
  1742. 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x73, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x64, 0x50, 0x61,
  1743. 0x63, 0x6b, 0x65, 0x74, 0x55, 0x69, 0x64, 0x12, 0x37, 0x0a, 0x18, 0x73, 0x65, 0x6e, 0x64, 0x5f,
  1744. 0x72, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6e, 0x69, 0x63, 0x6b, 0x6e,
  1745. 0x61, 0x6d, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x73, 0x65, 0x6e, 0x64, 0x52,
  1746. 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x4e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65,
  1747. 0x12, 0x3a, 0x0a, 0x1a, 0x73, 0x65, 0x6e, 0x64, 0x5f, 0x72, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x63,
  1748. 0x6b, 0x65, 0x74, 0x5f, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x0f,
  1749. 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x73, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x64, 0x50, 0x61, 0x63,
  1750. 0x6b, 0x65, 0x74, 0x41, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x37, 0x0a, 0x18,
  1751. 0x72, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x73, 0x6d, 0x61, 0x6c, 0x6c,
  1752. 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15,
  1753. 0x72, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x6d, 0x61, 0x6c, 0x6c, 0x43, 0x6f,
  1754. 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x10, 0x72, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x63,
  1755. 0x6b, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52,
  1756. 0x0e, 0x72, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x76, 0x65, 0x72, 0x22,
  1757. 0x5f, 0x0a, 0x05, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x23, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,
  1758. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x61, 0x63, 0x6b,
  1759. 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a,
  1760. 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
  1761. 0x03, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04,
  1762. 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61,
  1763. 0x22, 0x8e, 0x01, 0x0a, 0x06, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x23, 0x0a, 0x04, 0x74,
  1764. 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x50,
  1765. 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65,
  1766. 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02,
  1767. 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12,
  1768. 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63,
  1769. 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04,
  1770. 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a,
  1771. 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74,
  1772. 0x61, 0x22, 0x59, 0x0a, 0x0b, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x49, 0x6e, 0x70, 0x75, 0x74,
  1773. 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
  1774. 0x01, 0x28, 0x03, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x17, 0x0a,
  1775. 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
  1776. 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,
  1777. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x1d, 0x0a, 0x09,
  1778. 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x71,
  1779. 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x71, 0x22, 0x50, 0x0a, 0x0a, 0x53,
  1780. 0x79, 0x6e, 0x63, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x27, 0x0a, 0x08, 0x6d, 0x65, 0x73,
  1781. 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62,
  1782. 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  1783. 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x68, 0x61, 0x73, 0x5f, 0x6d, 0x6f, 0x72, 0x65, 0x18, 0x02,
  1784. 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x68, 0x61, 0x73, 0x4d, 0x6f, 0x72, 0x65, 0x22, 0x3f, 0x0a,
  1785. 0x12, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x6f, 0x6f, 0x6d, 0x49, 0x6e,
  1786. 0x70, 0x75, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x6f, 0x6f, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x01,
  1787. 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03,
  1788. 0x73, 0x65, 0x71, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x71, 0x22, 0x34,
  1789. 0x0a, 0x0b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x6e, 0x64, 0x12, 0x25, 0x0a,
  1790. 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b,
  1791. 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x6d, 0x65, 0x73,
  1792. 0x73, 0x61, 0x67, 0x65, 0x22, 0x4e, 0x0a, 0x0a, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x41,
  1793. 0x43, 0x4b, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x6b,
  1794. 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63,
  1795. 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x74, 0x69, 0x6d,
  1796. 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65,
  1797. 0x54, 0x69, 0x6d, 0x65, 0x2a, 0x73, 0x0a, 0x0b, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x54,
  1798. 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57,
  1799. 0x4e, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x54, 0x5f, 0x53, 0x49, 0x47, 0x4e, 0x5f, 0x49,
  1800. 0x4e, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x54, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x10, 0x02,
  1801. 0x12, 0x10, 0x0a, 0x0c, 0x50, 0x54, 0x5f, 0x48, 0x45, 0x41, 0x52, 0x54, 0x42, 0x45, 0x41, 0x54,
  1802. 0x10, 0x03, 0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x54, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45,
  1803. 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x54, 0x5f, 0x53, 0x55, 0x42, 0x53, 0x43, 0x52, 0x49,
  1804. 0x42, 0x45, 0x5f, 0x52, 0x4f, 0x4f, 0x4d, 0x10, 0x05, 0x2a, 0xb3, 0x01, 0x0a, 0x0b, 0x4d, 0x65,
  1805. 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x4d, 0x54, 0x5f,
  1806. 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x54, 0x5f,
  1807. 0x54, 0x45, 0x58, 0x54, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x54, 0x5f, 0x46, 0x41, 0x43,
  1808. 0x45, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x4d, 0x54, 0x5f, 0x56, 0x4f, 0x49, 0x43, 0x45, 0x10,
  1809. 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x4d, 0x54, 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x10, 0x04, 0x12,
  1810. 0x0b, 0x0a, 0x07, 0x4d, 0x54, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x10, 0x05, 0x12, 0x0f, 0x0a, 0x0b,
  1811. 0x4d, 0x54, 0x5f, 0x4c, 0x4f, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x06, 0x12, 0x0e, 0x0a,
  1812. 0x0a, 0x4d, 0x54, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x10, 0x07, 0x12, 0x0d, 0x0a,
  1813. 0x09, 0x4d, 0x54, 0x5f, 0x43, 0x55, 0x53, 0x54, 0x4f, 0x4d, 0x10, 0x08, 0x12, 0x0d, 0x0a, 0x09,
  1814. 0x4d, 0x54, 0x5f, 0x52, 0x45, 0x43, 0x41, 0x4c, 0x4c, 0x10, 0x09, 0x12, 0x12, 0x0a, 0x0e, 0x4d,
  1815. 0x54, 0x5f, 0x52, 0x45, 0x44, 0x5f, 0x50, 0x41, 0x43, 0x4b, 0x41, 0x47, 0x45, 0x10, 0x0a, 0x2a,
  1816. 0x87, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x79, 0x70,
  1817. 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x50, 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e,
  1818. 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x52, 0x50, 0x54, 0x5f, 0x46, 0x52, 0x49, 0x45, 0x4e, 0x44,
  1819. 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x52, 0x50, 0x54, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f,
  1820. 0x4e, 0x4f, 0x52, 0x4d, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x52, 0x50, 0x54, 0x5f,
  1821. 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x4c, 0x55, 0x43, 0x4b, 0x10, 0x03, 0x12, 0x17, 0x0a, 0x13,
  1822. 0x52, 0x50, 0x54, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x53, 0x50, 0x45, 0x43, 0x49, 0x41,
  1823. 0x4c, 0x4c, 0x59, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x52, 0x50, 0x54, 0x5f, 0x53, 0x59, 0x53,
  1824. 0x54, 0x45, 0x4d, 0x5f, 0x46, 0x4f, 0x52, 0x10, 0x05, 0x2a, 0x43, 0x0a, 0x14, 0x52, 0x65, 0x64,
  1825. 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70,
  1826. 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x4d, 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e,
  1827. 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x4d, 0x54, 0x5f, 0x53, 0x45, 0x4e, 0x44, 0x10, 0x01,
  1828. 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x4d, 0x54, 0x5f, 0x47, 0x52, 0x41, 0x42, 0x10, 0x02, 0x2a, 0x5b,
  1829. 0x0a, 0x13, 0x52, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75,
  1830. 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x52, 0x50, 0x53, 0x5f, 0x4e, 0x4f, 0x54,
  1831. 0x5f, 0x44, 0x52, 0x41, 0x57, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x50, 0x53, 0x5f, 0x44,
  1832. 0x52, 0x41, 0x57, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x52, 0x50, 0x53, 0x5f,
  1833. 0x44, 0x52, 0x41, 0x57, 0x5f, 0x4f, 0x56, 0x45, 0x52, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x52,
  1834. 0x50, 0x53, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x45, 0x10, 0x03, 0x2a, 0x46, 0x0a, 0x0c, 0x52,
  1835. 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x52,
  1836. 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x52,
  1837. 0x54, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x54, 0x5f, 0x47,
  1838. 0x52, 0x4f, 0x55, 0x50, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x54, 0x5f, 0x52, 0x4f, 0x4f,
  1839. 0x4d, 0x10, 0x03, 0x2a, 0x49, 0x0a, 0x0a, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x54, 0x79, 0x70,
  1840. 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10,
  1841. 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x54, 0x5f, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x10, 0x01,
  1842. 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x10, 0x02, 0x12, 0x0f, 0x0a,
  1843. 0x0b, 0x53, 0x54, 0x5f, 0x42, 0x55, 0x53, 0x49, 0x4e, 0x45, 0x53, 0x53, 0x10, 0x03, 0x2a, 0x3d,
  1844. 0x0a, 0x0d, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12,
  1845. 0x0e, 0x0a, 0x0a, 0x4d, 0x53, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12,
  1846. 0x0d, 0x0a, 0x09, 0x4d, 0x53, 0x5f, 0x4e, 0x4f, 0x52, 0x4d, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x0d,
  1847. 0x0a, 0x09, 0x4d, 0x53, 0x5f, 0x52, 0x45, 0x43, 0x41, 0x4c, 0x4c, 0x10, 0x02, 0x2a, 0x51, 0x0a,
  1848. 0x13, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
  1849. 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x55, 0x53,
  1850. 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4e, 0x4f, 0x52, 0x4d, 0x41, 0x4c,
  1851. 0x10, 0x00, 0x12, 0x1c, 0x0a, 0x18, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x55, 0x53, 0x45, 0x52,
  1852. 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x42, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x10, 0x01,
  1853. 0x42, 0x0d, 0x5a, 0x0b, 0x67, 0x69, 0x6d, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x62,
  1854. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  1855. }
  1856. var (
  1857. file_connect_ext_proto_rawDescOnce sync.Once
  1858. file_connect_ext_proto_rawDescData = file_connect_ext_proto_rawDesc
  1859. )
  1860. func file_connect_ext_proto_rawDescGZIP() []byte {
  1861. file_connect_ext_proto_rawDescOnce.Do(func() {
  1862. file_connect_ext_proto_rawDescData = protoimpl.X.CompressGZIP(file_connect_ext_proto_rawDescData)
  1863. })
  1864. return file_connect_ext_proto_rawDescData
  1865. }
  1866. var file_connect_ext_proto_enumTypes = make([]protoimpl.EnumInfo, 9)
  1867. var file_connect_ext_proto_msgTypes = make([]protoimpl.MessageInfo, 20)
  1868. var file_connect_ext_proto_goTypes = []interface{}{
  1869. (PackageType)(0), // 0: pb.PackageType
  1870. (MessageType)(0), // 1: pb.MessageType
  1871. (RedPacketType)(0), // 2: pb.RedPacketType
  1872. (RedPacketMessageType)(0), // 3: pb.RedPacketMessageType
  1873. (RedPacketStatusType)(0), // 4: pb.RedPacketStatusType
  1874. (ReceiverType)(0), // 5: pb.ReceiverType
  1875. (SenderType)(0), // 6: pb.SenderType
  1876. (MessageStatus)(0), // 7: pb.MessageStatus
  1877. (GroupUserStatusType)(0), // 8: pb.GroupUserStatusType
  1878. (*Message)(nil), // 9: pb.Message
  1879. (*Sender)(nil), // 10: pb.Sender
  1880. (*Text)(nil), // 11: pb.Text
  1881. (*Face)(nil), // 12: pb.Face
  1882. (*Voice)(nil), // 13: pb.Voice
  1883. (*Image)(nil), // 14: pb.Image
  1884. (*File)(nil), // 15: pb.File
  1885. (*Location)(nil), // 16: pb.Location
  1886. (*Command)(nil), // 17: pb.Command
  1887. (*Custom)(nil), // 18: pb.Custom
  1888. (*RECALL)(nil), // 19: pb.RECALL
  1889. (*RED_PACKAGE)(nil), // 20: pb.RED_PACKAGE
  1890. (*Input)(nil), // 21: pb.Input
  1891. (*Output)(nil), // 22: pb.Output
  1892. (*SignInInput)(nil), // 23: pb.SignInInput
  1893. (*SyncInput)(nil), // 24: pb.SyncInput
  1894. (*SyncOutput)(nil), // 25: pb.SyncOutput
  1895. (*SubscribeRoomInput)(nil), // 26: pb.SubscribeRoomInput
  1896. (*MessageSend)(nil), // 27: pb.MessageSend
  1897. (*MessageACK)(nil), // 28: pb.MessageACK
  1898. }
  1899. var file_connect_ext_proto_depIdxs = []int32{
  1900. 10, // 0: pb.Message.sender:type_name -> pb.Sender
  1901. 5, // 1: pb.Message.receiver_type:type_name -> pb.ReceiverType
  1902. 1, // 2: pb.Message.message_type:type_name -> pb.MessageType
  1903. 7, // 3: pb.Message.status:type_name -> pb.MessageStatus
  1904. 6, // 4: pb.Sender.sender_type:type_name -> pb.SenderType
  1905. 3, // 5: pb.RED_PACKAGE.red_message_type:type_name -> pb.RedPacketMessageType
  1906. 2, // 6: pb.RED_PACKAGE.red_packet_type:type_name -> pb.RedPacketType
  1907. 4, // 7: pb.RED_PACKAGE.red_packet_status_type:type_name -> pb.RedPacketStatusType
  1908. 0, // 8: pb.Input.type:type_name -> pb.PackageType
  1909. 0, // 9: pb.Output.type:type_name -> pb.PackageType
  1910. 9, // 10: pb.SyncOutput.messages:type_name -> pb.Message
  1911. 9, // 11: pb.MessageSend.message:type_name -> pb.Message
  1912. 12, // [12:12] is the sub-list for method output_type
  1913. 12, // [12:12] is the sub-list for method input_type
  1914. 12, // [12:12] is the sub-list for extension type_name
  1915. 12, // [12:12] is the sub-list for extension extendee
  1916. 0, // [0:12] is the sub-list for field type_name
  1917. }
  1918. func init() { file_connect_ext_proto_init() }
  1919. func file_connect_ext_proto_init() {
  1920. if File_connect_ext_proto != nil {
  1921. return
  1922. }
  1923. if !protoimpl.UnsafeEnabled {
  1924. file_connect_ext_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  1925. switch v := v.(*Message); i {
  1926. case 0:
  1927. return &v.state
  1928. case 1:
  1929. return &v.sizeCache
  1930. case 2:
  1931. return &v.unknownFields
  1932. default:
  1933. return nil
  1934. }
  1935. }
  1936. file_connect_ext_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  1937. switch v := v.(*Sender); i {
  1938. case 0:
  1939. return &v.state
  1940. case 1:
  1941. return &v.sizeCache
  1942. case 2:
  1943. return &v.unknownFields
  1944. default:
  1945. return nil
  1946. }
  1947. }
  1948. file_connect_ext_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  1949. switch v := v.(*Text); i {
  1950. case 0:
  1951. return &v.state
  1952. case 1:
  1953. return &v.sizeCache
  1954. case 2:
  1955. return &v.unknownFields
  1956. default:
  1957. return nil
  1958. }
  1959. }
  1960. file_connect_ext_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1961. switch v := v.(*Face); i {
  1962. case 0:
  1963. return &v.state
  1964. case 1:
  1965. return &v.sizeCache
  1966. case 2:
  1967. return &v.unknownFields
  1968. default:
  1969. return nil
  1970. }
  1971. }
  1972. file_connect_ext_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1973. switch v := v.(*Voice); i {
  1974. case 0:
  1975. return &v.state
  1976. case 1:
  1977. return &v.sizeCache
  1978. case 2:
  1979. return &v.unknownFields
  1980. default:
  1981. return nil
  1982. }
  1983. }
  1984. file_connect_ext_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1985. switch v := v.(*Image); i {
  1986. case 0:
  1987. return &v.state
  1988. case 1:
  1989. return &v.sizeCache
  1990. case 2:
  1991. return &v.unknownFields
  1992. default:
  1993. return nil
  1994. }
  1995. }
  1996. file_connect_ext_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1997. switch v := v.(*File); i {
  1998. case 0:
  1999. return &v.state
  2000. case 1:
  2001. return &v.sizeCache
  2002. case 2:
  2003. return &v.unknownFields
  2004. default:
  2005. return nil
  2006. }
  2007. }
  2008. file_connect_ext_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  2009. switch v := v.(*Location); i {
  2010. case 0:
  2011. return &v.state
  2012. case 1:
  2013. return &v.sizeCache
  2014. case 2:
  2015. return &v.unknownFields
  2016. default:
  2017. return nil
  2018. }
  2019. }
  2020. file_connect_ext_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  2021. switch v := v.(*Command); i {
  2022. case 0:
  2023. return &v.state
  2024. case 1:
  2025. return &v.sizeCache
  2026. case 2:
  2027. return &v.unknownFields
  2028. default:
  2029. return nil
  2030. }
  2031. }
  2032. file_connect_ext_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  2033. switch v := v.(*Custom); i {
  2034. case 0:
  2035. return &v.state
  2036. case 1:
  2037. return &v.sizeCache
  2038. case 2:
  2039. return &v.unknownFields
  2040. default:
  2041. return nil
  2042. }
  2043. }
  2044. file_connect_ext_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  2045. switch v := v.(*RECALL); i {
  2046. case 0:
  2047. return &v.state
  2048. case 1:
  2049. return &v.sizeCache
  2050. case 2:
  2051. return &v.unknownFields
  2052. default:
  2053. return nil
  2054. }
  2055. }
  2056. file_connect_ext_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  2057. switch v := v.(*RED_PACKAGE); i {
  2058. case 0:
  2059. return &v.state
  2060. case 1:
  2061. return &v.sizeCache
  2062. case 2:
  2063. return &v.unknownFields
  2064. default:
  2065. return nil
  2066. }
  2067. }
  2068. file_connect_ext_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  2069. switch v := v.(*Input); i {
  2070. case 0:
  2071. return &v.state
  2072. case 1:
  2073. return &v.sizeCache
  2074. case 2:
  2075. return &v.unknownFields
  2076. default:
  2077. return nil
  2078. }
  2079. }
  2080. file_connect_ext_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
  2081. switch v := v.(*Output); i {
  2082. case 0:
  2083. return &v.state
  2084. case 1:
  2085. return &v.sizeCache
  2086. case 2:
  2087. return &v.unknownFields
  2088. default:
  2089. return nil
  2090. }
  2091. }
  2092. file_connect_ext_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
  2093. switch v := v.(*SignInInput); i {
  2094. case 0:
  2095. return &v.state
  2096. case 1:
  2097. return &v.sizeCache
  2098. case 2:
  2099. return &v.unknownFields
  2100. default:
  2101. return nil
  2102. }
  2103. }
  2104. file_connect_ext_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
  2105. switch v := v.(*SyncInput); i {
  2106. case 0:
  2107. return &v.state
  2108. case 1:
  2109. return &v.sizeCache
  2110. case 2:
  2111. return &v.unknownFields
  2112. default:
  2113. return nil
  2114. }
  2115. }
  2116. file_connect_ext_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
  2117. switch v := v.(*SyncOutput); i {
  2118. case 0:
  2119. return &v.state
  2120. case 1:
  2121. return &v.sizeCache
  2122. case 2:
  2123. return &v.unknownFields
  2124. default:
  2125. return nil
  2126. }
  2127. }
  2128. file_connect_ext_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
  2129. switch v := v.(*SubscribeRoomInput); i {
  2130. case 0:
  2131. return &v.state
  2132. case 1:
  2133. return &v.sizeCache
  2134. case 2:
  2135. return &v.unknownFields
  2136. default:
  2137. return nil
  2138. }
  2139. }
  2140. file_connect_ext_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
  2141. switch v := v.(*MessageSend); i {
  2142. case 0:
  2143. return &v.state
  2144. case 1:
  2145. return &v.sizeCache
  2146. case 2:
  2147. return &v.unknownFields
  2148. default:
  2149. return nil
  2150. }
  2151. }
  2152. file_connect_ext_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
  2153. switch v := v.(*MessageACK); i {
  2154. case 0:
  2155. return &v.state
  2156. case 1:
  2157. return &v.sizeCache
  2158. case 2:
  2159. return &v.unknownFields
  2160. default:
  2161. return nil
  2162. }
  2163. }
  2164. }
  2165. type x struct{}
  2166. out := protoimpl.TypeBuilder{
  2167. File: protoimpl.DescBuilder{
  2168. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  2169. RawDescriptor: file_connect_ext_proto_rawDesc,
  2170. NumEnums: 9,
  2171. NumMessages: 20,
  2172. NumExtensions: 0,
  2173. NumServices: 0,
  2174. },
  2175. GoTypes: file_connect_ext_proto_goTypes,
  2176. DependencyIndexes: file_connect_ext_proto_depIdxs,
  2177. EnumInfos: file_connect_ext_proto_enumTypes,
  2178. MessageInfos: file_connect_ext_proto_msgTypes,
  2179. }.Build()
  2180. File_connect_ext_proto = out.File
  2181. file_connect_ext_proto_rawDesc = nil
  2182. file_connect_ext_proto_goTypes = nil
  2183. file_connect_ext_proto_depIdxs = nil
  2184. }