api.pb.go 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/live/live-dm/api/grpc/v1/api.proto
  3. package v1
  4. import proto "github.com/gogo/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "github.com/gogo/protobuf/gogoproto"
  8. import (
  9. context "golang.org/x/net/context"
  10. grpc "google.golang.org/grpc"
  11. )
  12. import io "io"
  13. // Reference imports to suppress errors if they are not otherwise used.
  14. var _ = proto.Marshal
  15. var _ = fmt.Errorf
  16. var _ = math.Inf
  17. // This is a compile-time assertion to ensure that this generated file
  18. // is compatible with the proto package it is being compiled against.
  19. // A compilation error at this line likely means your copy of the
  20. // proto package needs to be updated.
  21. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  22. type SendMsgReq struct {
  23. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty" form:"uid" validate:"required"`
  24. Roomid int64 `protobuf:"varint,2,opt,name=roomid,proto3" json:"roomid,omitempty" form:"roomid" validate:"required"`
  25. Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty" form:"msg" validate:"required"`
  26. Rnd string `protobuf:"bytes,4,opt,name=rnd,proto3" json:"rnd,omitempty" form:"rnd"`
  27. Ip string `protobuf:"bytes,5,opt,name=ip,proto3" json:"ip,omitempty" form:"ip"`
  28. Fontsize int64 `protobuf:"varint,7,opt,name=fontsize,proto3" json:"fontsize,omitempty" form:"fontsize" validate:"gte=0"`
  29. Mode int64 `protobuf:"varint,8,opt,name=mode,proto3" json:"mode,omitempty" form:"mode" validate:"gte=0"`
  30. Platform string `protobuf:"bytes,9,opt,name=platform,proto3" json:"platform,omitempty" form:"platform"`
  31. Msgtype int64 `protobuf:"varint,10,opt,name=msgtype,proto3" json:"msgtype,omitempty" form:"msgtype" validate:"gte=0"`
  32. Bubble int64 `protobuf:"varint,11,opt,name=bubble,proto3" json:"bubble,omitempty" form:"bubble"`
  33. Lancer *Lancer `protobuf:"bytes,12,opt,name=lancer" json:"lancer,omitempty" form:"lancer"`
  34. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  35. XXX_unrecognized []byte `json:"-"`
  36. XXX_sizecache int32 `json:"-"`
  37. }
  38. func (m *SendMsgReq) Reset() { *m = SendMsgReq{} }
  39. func (m *SendMsgReq) String() string { return proto.CompactTextString(m) }
  40. func (*SendMsgReq) ProtoMessage() {}
  41. func (*SendMsgReq) Descriptor() ([]byte, []int) {
  42. return fileDescriptor_api_3321a2d8a2cdd312, []int{0}
  43. }
  44. func (m *SendMsgReq) XXX_Unmarshal(b []byte) error {
  45. return m.Unmarshal(b)
  46. }
  47. func (m *SendMsgReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  48. if deterministic {
  49. return xxx_messageInfo_SendMsgReq.Marshal(b, m, deterministic)
  50. } else {
  51. b = b[:cap(b)]
  52. n, err := m.MarshalTo(b)
  53. if err != nil {
  54. return nil, err
  55. }
  56. return b[:n], nil
  57. }
  58. }
  59. func (dst *SendMsgReq) XXX_Merge(src proto.Message) {
  60. xxx_messageInfo_SendMsgReq.Merge(dst, src)
  61. }
  62. func (m *SendMsgReq) XXX_Size() int {
  63. return m.Size()
  64. }
  65. func (m *SendMsgReq) XXX_DiscardUnknown() {
  66. xxx_messageInfo_SendMsgReq.DiscardUnknown(m)
  67. }
  68. var xxx_messageInfo_SendMsgReq proto.InternalMessageInfo
  69. func (m *SendMsgReq) GetUid() int64 {
  70. if m != nil {
  71. return m.Uid
  72. }
  73. return 0
  74. }
  75. func (m *SendMsgReq) GetRoomid() int64 {
  76. if m != nil {
  77. return m.Roomid
  78. }
  79. return 0
  80. }
  81. func (m *SendMsgReq) GetMsg() string {
  82. if m != nil {
  83. return m.Msg
  84. }
  85. return ""
  86. }
  87. func (m *SendMsgReq) GetRnd() string {
  88. if m != nil {
  89. return m.Rnd
  90. }
  91. return ""
  92. }
  93. func (m *SendMsgReq) GetIp() string {
  94. if m != nil {
  95. return m.Ip
  96. }
  97. return ""
  98. }
  99. func (m *SendMsgReq) GetFontsize() int64 {
  100. if m != nil {
  101. return m.Fontsize
  102. }
  103. return 0
  104. }
  105. func (m *SendMsgReq) GetMode() int64 {
  106. if m != nil {
  107. return m.Mode
  108. }
  109. return 0
  110. }
  111. func (m *SendMsgReq) GetPlatform() string {
  112. if m != nil {
  113. return m.Platform
  114. }
  115. return ""
  116. }
  117. func (m *SendMsgReq) GetMsgtype() int64 {
  118. if m != nil {
  119. return m.Msgtype
  120. }
  121. return 0
  122. }
  123. func (m *SendMsgReq) GetBubble() int64 {
  124. if m != nil {
  125. return m.Bubble
  126. }
  127. return 0
  128. }
  129. func (m *SendMsgReq) GetLancer() *Lancer {
  130. if m != nil {
  131. return m.Lancer
  132. }
  133. return nil
  134. }
  135. type Lancer struct {
  136. Buvid string `protobuf:"bytes,1,opt,name=buvid,proto3" json:"buvid,omitempty" form:"buvid"`
  137. UserAgent string `protobuf:"bytes,2,opt,name=userAgent,proto3" json:"userAgent,omitempty" form:"userAgent"`
  138. Refer string `protobuf:"bytes,3,opt,name=refer,proto3" json:"refer,omitempty" form:"refer"`
  139. Cookie string `protobuf:"bytes,4,opt,name=cookie,proto3" json:"cookie,omitempty" form:"cookie"`
  140. Build int64 `protobuf:"varint,5,opt,name=build,proto3" json:"build,omitempty" form:"build"`
  141. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  142. XXX_unrecognized []byte `json:"-"`
  143. XXX_sizecache int32 `json:"-"`
  144. }
  145. func (m *Lancer) Reset() { *m = Lancer{} }
  146. func (m *Lancer) String() string { return proto.CompactTextString(m) }
  147. func (*Lancer) ProtoMessage() {}
  148. func (*Lancer) Descriptor() ([]byte, []int) {
  149. return fileDescriptor_api_3321a2d8a2cdd312, []int{1}
  150. }
  151. func (m *Lancer) XXX_Unmarshal(b []byte) error {
  152. return m.Unmarshal(b)
  153. }
  154. func (m *Lancer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  155. if deterministic {
  156. return xxx_messageInfo_Lancer.Marshal(b, m, deterministic)
  157. } else {
  158. b = b[:cap(b)]
  159. n, err := m.MarshalTo(b)
  160. if err != nil {
  161. return nil, err
  162. }
  163. return b[:n], nil
  164. }
  165. }
  166. func (dst *Lancer) XXX_Merge(src proto.Message) {
  167. xxx_messageInfo_Lancer.Merge(dst, src)
  168. }
  169. func (m *Lancer) XXX_Size() int {
  170. return m.Size()
  171. }
  172. func (m *Lancer) XXX_DiscardUnknown() {
  173. xxx_messageInfo_Lancer.DiscardUnknown(m)
  174. }
  175. var xxx_messageInfo_Lancer proto.InternalMessageInfo
  176. func (m *Lancer) GetBuvid() string {
  177. if m != nil {
  178. return m.Buvid
  179. }
  180. return ""
  181. }
  182. func (m *Lancer) GetUserAgent() string {
  183. if m != nil {
  184. return m.UserAgent
  185. }
  186. return ""
  187. }
  188. func (m *Lancer) GetRefer() string {
  189. if m != nil {
  190. return m.Refer
  191. }
  192. return ""
  193. }
  194. func (m *Lancer) GetCookie() string {
  195. if m != nil {
  196. return m.Cookie
  197. }
  198. return ""
  199. }
  200. func (m *Lancer) GetBuild() int64 {
  201. if m != nil {
  202. return m.Build
  203. }
  204. return 0
  205. }
  206. type SendMsgResp struct {
  207. IsLimit bool `protobuf:"varint,1,opt,name=isLimit,proto3" json:"islimit"`
  208. LimitMsg string `protobuf:"bytes,2,opt,name=limitMsg,proto3" json:"limitmsg"`
  209. Code int32 `protobuf:"varint,3,opt,name=code,proto3" json:"code"`
  210. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  211. XXX_unrecognized []byte `json:"-"`
  212. XXX_sizecache int32 `json:"-"`
  213. }
  214. func (m *SendMsgResp) Reset() { *m = SendMsgResp{} }
  215. func (m *SendMsgResp) String() string { return proto.CompactTextString(m) }
  216. func (*SendMsgResp) ProtoMessage() {}
  217. func (*SendMsgResp) Descriptor() ([]byte, []int) {
  218. return fileDescriptor_api_3321a2d8a2cdd312, []int{2}
  219. }
  220. func (m *SendMsgResp) XXX_Unmarshal(b []byte) error {
  221. return m.Unmarshal(b)
  222. }
  223. func (m *SendMsgResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  224. if deterministic {
  225. return xxx_messageInfo_SendMsgResp.Marshal(b, m, deterministic)
  226. } else {
  227. b = b[:cap(b)]
  228. n, err := m.MarshalTo(b)
  229. if err != nil {
  230. return nil, err
  231. }
  232. return b[:n], nil
  233. }
  234. }
  235. func (dst *SendMsgResp) XXX_Merge(src proto.Message) {
  236. xxx_messageInfo_SendMsgResp.Merge(dst, src)
  237. }
  238. func (m *SendMsgResp) XXX_Size() int {
  239. return m.Size()
  240. }
  241. func (m *SendMsgResp) XXX_DiscardUnknown() {
  242. xxx_messageInfo_SendMsgResp.DiscardUnknown(m)
  243. }
  244. var xxx_messageInfo_SendMsgResp proto.InternalMessageInfo
  245. func (m *SendMsgResp) GetIsLimit() bool {
  246. if m != nil {
  247. return m.IsLimit
  248. }
  249. return false
  250. }
  251. func (m *SendMsgResp) GetLimitMsg() string {
  252. if m != nil {
  253. return m.LimitMsg
  254. }
  255. return ""
  256. }
  257. func (m *SendMsgResp) GetCode() int32 {
  258. if m != nil {
  259. return m.Code
  260. }
  261. return 0
  262. }
  263. type HistoryReq struct {
  264. Roomid int64 `protobuf:"varint,1,opt,name=roomid,proto3" json:"roomid,omitempty" form:"roomid" validate:"required"`
  265. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  266. XXX_unrecognized []byte `json:"-"`
  267. XXX_sizecache int32 `json:"-"`
  268. }
  269. func (m *HistoryReq) Reset() { *m = HistoryReq{} }
  270. func (m *HistoryReq) String() string { return proto.CompactTextString(m) }
  271. func (*HistoryReq) ProtoMessage() {}
  272. func (*HistoryReq) Descriptor() ([]byte, []int) {
  273. return fileDescriptor_api_3321a2d8a2cdd312, []int{3}
  274. }
  275. func (m *HistoryReq) XXX_Unmarshal(b []byte) error {
  276. return m.Unmarshal(b)
  277. }
  278. func (m *HistoryReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  279. if deterministic {
  280. return xxx_messageInfo_HistoryReq.Marshal(b, m, deterministic)
  281. } else {
  282. b = b[:cap(b)]
  283. n, err := m.MarshalTo(b)
  284. if err != nil {
  285. return nil, err
  286. }
  287. return b[:n], nil
  288. }
  289. }
  290. func (dst *HistoryReq) XXX_Merge(src proto.Message) {
  291. xxx_messageInfo_HistoryReq.Merge(dst, src)
  292. }
  293. func (m *HistoryReq) XXX_Size() int {
  294. return m.Size()
  295. }
  296. func (m *HistoryReq) XXX_DiscardUnknown() {
  297. xxx_messageInfo_HistoryReq.DiscardUnknown(m)
  298. }
  299. var xxx_messageInfo_HistoryReq proto.InternalMessageInfo
  300. func (m *HistoryReq) GetRoomid() int64 {
  301. if m != nil {
  302. return m.Roomid
  303. }
  304. return 0
  305. }
  306. type HistoryResp struct {
  307. Room []string `protobuf:"bytes,1,rep,name=room" json:"room"`
  308. Admin []string `protobuf:"bytes,2,rep,name=admin" json:"admin"`
  309. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  310. XXX_unrecognized []byte `json:"-"`
  311. XXX_sizecache int32 `json:"-"`
  312. }
  313. func (m *HistoryResp) Reset() { *m = HistoryResp{} }
  314. func (m *HistoryResp) String() string { return proto.CompactTextString(m) }
  315. func (*HistoryResp) ProtoMessage() {}
  316. func (*HistoryResp) Descriptor() ([]byte, []int) {
  317. return fileDescriptor_api_3321a2d8a2cdd312, []int{4}
  318. }
  319. func (m *HistoryResp) XXX_Unmarshal(b []byte) error {
  320. return m.Unmarshal(b)
  321. }
  322. func (m *HistoryResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  323. if deterministic {
  324. return xxx_messageInfo_HistoryResp.Marshal(b, m, deterministic)
  325. } else {
  326. b = b[:cap(b)]
  327. n, err := m.MarshalTo(b)
  328. if err != nil {
  329. return nil, err
  330. }
  331. return b[:n], nil
  332. }
  333. }
  334. func (dst *HistoryResp) XXX_Merge(src proto.Message) {
  335. xxx_messageInfo_HistoryResp.Merge(dst, src)
  336. }
  337. func (m *HistoryResp) XXX_Size() int {
  338. return m.Size()
  339. }
  340. func (m *HistoryResp) XXX_DiscardUnknown() {
  341. xxx_messageInfo_HistoryResp.DiscardUnknown(m)
  342. }
  343. var xxx_messageInfo_HistoryResp proto.InternalMessageInfo
  344. func (m *HistoryResp) GetRoom() []string {
  345. if m != nil {
  346. return m.Room
  347. }
  348. return nil
  349. }
  350. func (m *HistoryResp) GetAdmin() []string {
  351. if m != nil {
  352. return m.Admin
  353. }
  354. return nil
  355. }
  356. type ErrMsg struct {
  357. Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
  358. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  359. XXX_unrecognized []byte `json:"-"`
  360. XXX_sizecache int32 `json:"-"`
  361. }
  362. func (m *ErrMsg) Reset() { *m = ErrMsg{} }
  363. func (m *ErrMsg) String() string { return proto.CompactTextString(m) }
  364. func (*ErrMsg) ProtoMessage() {}
  365. func (*ErrMsg) Descriptor() ([]byte, []int) {
  366. return fileDescriptor_api_3321a2d8a2cdd312, []int{5}
  367. }
  368. func (m *ErrMsg) XXX_Unmarshal(b []byte) error {
  369. return m.Unmarshal(b)
  370. }
  371. func (m *ErrMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  372. if deterministic {
  373. return xxx_messageInfo_ErrMsg.Marshal(b, m, deterministic)
  374. } else {
  375. b = b[:cap(b)]
  376. n, err := m.MarshalTo(b)
  377. if err != nil {
  378. return nil, err
  379. }
  380. return b[:n], nil
  381. }
  382. }
  383. func (dst *ErrMsg) XXX_Merge(src proto.Message) {
  384. xxx_messageInfo_ErrMsg.Merge(dst, src)
  385. }
  386. func (m *ErrMsg) XXX_Size() int {
  387. return m.Size()
  388. }
  389. func (m *ErrMsg) XXX_DiscardUnknown() {
  390. xxx_messageInfo_ErrMsg.DiscardUnknown(m)
  391. }
  392. var xxx_messageInfo_ErrMsg proto.InternalMessageInfo
  393. func (m *ErrMsg) GetMessage() string {
  394. if m != nil {
  395. return m.Message
  396. }
  397. return ""
  398. }
  399. func init() {
  400. proto.RegisterType((*SendMsgReq)(nil), "live.livedm.v1.SendMsgReq")
  401. proto.RegisterType((*Lancer)(nil), "live.livedm.v1.lancer")
  402. proto.RegisterType((*SendMsgResp)(nil), "live.livedm.v1.SendMsgResp")
  403. proto.RegisterType((*HistoryReq)(nil), "live.livedm.v1.HistoryReq")
  404. proto.RegisterType((*HistoryResp)(nil), "live.livedm.v1.HistoryResp")
  405. proto.RegisterType((*ErrMsg)(nil), "live.livedm.v1.ErrMsg")
  406. }
  407. // Reference imports to suppress errors if they are not otherwise used.
  408. var _ context.Context
  409. var _ grpc.ClientConn
  410. // This is a compile-time assertion to ensure that this generated file
  411. // is compatible with the grpc package it is being compiled against.
  412. const _ = grpc.SupportPackageIsVersion4
  413. // DMClient is the client API for DM service.
  414. //
  415. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  416. type DMClient interface {
  417. SendMsg(ctx context.Context, in *SendMsgReq, opts ...grpc.CallOption) (*SendMsgResp, error)
  418. GetHistory(ctx context.Context, in *HistoryReq, opts ...grpc.CallOption) (*HistoryResp, error)
  419. }
  420. type dMClient struct {
  421. cc *grpc.ClientConn
  422. }
  423. func NewDMClient(cc *grpc.ClientConn) DMClient {
  424. return &dMClient{cc}
  425. }
  426. func (c *dMClient) SendMsg(ctx context.Context, in *SendMsgReq, opts ...grpc.CallOption) (*SendMsgResp, error) {
  427. out := new(SendMsgResp)
  428. err := c.cc.Invoke(ctx, "/live.livedm.v1.DM/SendMsg", in, out, opts...)
  429. if err != nil {
  430. return nil, err
  431. }
  432. return out, nil
  433. }
  434. func (c *dMClient) GetHistory(ctx context.Context, in *HistoryReq, opts ...grpc.CallOption) (*HistoryResp, error) {
  435. out := new(HistoryResp)
  436. err := c.cc.Invoke(ctx, "/live.livedm.v1.DM/GetHistory", in, out, opts...)
  437. if err != nil {
  438. return nil, err
  439. }
  440. return out, nil
  441. }
  442. // DMServer is the server API for DM service.
  443. type DMServer interface {
  444. SendMsg(context.Context, *SendMsgReq) (*SendMsgResp, error)
  445. GetHistory(context.Context, *HistoryReq) (*HistoryResp, error)
  446. }
  447. func RegisterDMServer(s *grpc.Server, srv DMServer) {
  448. s.RegisterService(&_DM_serviceDesc, srv)
  449. }
  450. func _DM_SendMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  451. in := new(SendMsgReq)
  452. if err := dec(in); err != nil {
  453. return nil, err
  454. }
  455. if interceptor == nil {
  456. return srv.(DMServer).SendMsg(ctx, in)
  457. }
  458. info := &grpc.UnaryServerInfo{
  459. Server: srv,
  460. FullMethod: "/live.livedm.v1.DM/SendMsg",
  461. }
  462. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  463. return srv.(DMServer).SendMsg(ctx, req.(*SendMsgReq))
  464. }
  465. return interceptor(ctx, in, info, handler)
  466. }
  467. func _DM_GetHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  468. in := new(HistoryReq)
  469. if err := dec(in); err != nil {
  470. return nil, err
  471. }
  472. if interceptor == nil {
  473. return srv.(DMServer).GetHistory(ctx, in)
  474. }
  475. info := &grpc.UnaryServerInfo{
  476. Server: srv,
  477. FullMethod: "/live.livedm.v1.DM/GetHistory",
  478. }
  479. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  480. return srv.(DMServer).GetHistory(ctx, req.(*HistoryReq))
  481. }
  482. return interceptor(ctx, in, info, handler)
  483. }
  484. var _DM_serviceDesc = grpc.ServiceDesc{
  485. ServiceName: "live.livedm.v1.DM",
  486. HandlerType: (*DMServer)(nil),
  487. Methods: []grpc.MethodDesc{
  488. {
  489. MethodName: "SendMsg",
  490. Handler: _DM_SendMsg_Handler,
  491. },
  492. {
  493. MethodName: "GetHistory",
  494. Handler: _DM_GetHistory_Handler,
  495. },
  496. },
  497. Streams: []grpc.StreamDesc{},
  498. Metadata: "app/service/live/live-dm/api/grpc/v1/api.proto",
  499. }
  500. func (m *SendMsgReq) Marshal() (dAtA []byte, err error) {
  501. size := m.Size()
  502. dAtA = make([]byte, size)
  503. n, err := m.MarshalTo(dAtA)
  504. if err != nil {
  505. return nil, err
  506. }
  507. return dAtA[:n], nil
  508. }
  509. func (m *SendMsgReq) MarshalTo(dAtA []byte) (int, error) {
  510. var i int
  511. _ = i
  512. var l int
  513. _ = l
  514. if m.Uid != 0 {
  515. dAtA[i] = 0x8
  516. i++
  517. i = encodeVarintApi(dAtA, i, uint64(m.Uid))
  518. }
  519. if m.Roomid != 0 {
  520. dAtA[i] = 0x10
  521. i++
  522. i = encodeVarintApi(dAtA, i, uint64(m.Roomid))
  523. }
  524. if len(m.Msg) > 0 {
  525. dAtA[i] = 0x1a
  526. i++
  527. i = encodeVarintApi(dAtA, i, uint64(len(m.Msg)))
  528. i += copy(dAtA[i:], m.Msg)
  529. }
  530. if len(m.Rnd) > 0 {
  531. dAtA[i] = 0x22
  532. i++
  533. i = encodeVarintApi(dAtA, i, uint64(len(m.Rnd)))
  534. i += copy(dAtA[i:], m.Rnd)
  535. }
  536. if len(m.Ip) > 0 {
  537. dAtA[i] = 0x2a
  538. i++
  539. i = encodeVarintApi(dAtA, i, uint64(len(m.Ip)))
  540. i += copy(dAtA[i:], m.Ip)
  541. }
  542. if m.Fontsize != 0 {
  543. dAtA[i] = 0x38
  544. i++
  545. i = encodeVarintApi(dAtA, i, uint64(m.Fontsize))
  546. }
  547. if m.Mode != 0 {
  548. dAtA[i] = 0x40
  549. i++
  550. i = encodeVarintApi(dAtA, i, uint64(m.Mode))
  551. }
  552. if len(m.Platform) > 0 {
  553. dAtA[i] = 0x4a
  554. i++
  555. i = encodeVarintApi(dAtA, i, uint64(len(m.Platform)))
  556. i += copy(dAtA[i:], m.Platform)
  557. }
  558. if m.Msgtype != 0 {
  559. dAtA[i] = 0x50
  560. i++
  561. i = encodeVarintApi(dAtA, i, uint64(m.Msgtype))
  562. }
  563. if m.Bubble != 0 {
  564. dAtA[i] = 0x58
  565. i++
  566. i = encodeVarintApi(dAtA, i, uint64(m.Bubble))
  567. }
  568. if m.Lancer != nil {
  569. dAtA[i] = 0x62
  570. i++
  571. i = encodeVarintApi(dAtA, i, uint64(m.Lancer.Size()))
  572. n1, err := m.Lancer.MarshalTo(dAtA[i:])
  573. if err != nil {
  574. return 0, err
  575. }
  576. i += n1
  577. }
  578. if m.XXX_unrecognized != nil {
  579. i += copy(dAtA[i:], m.XXX_unrecognized)
  580. }
  581. return i, nil
  582. }
  583. func (m *Lancer) Marshal() (dAtA []byte, err error) {
  584. size := m.Size()
  585. dAtA = make([]byte, size)
  586. n, err := m.MarshalTo(dAtA)
  587. if err != nil {
  588. return nil, err
  589. }
  590. return dAtA[:n], nil
  591. }
  592. func (m *Lancer) MarshalTo(dAtA []byte) (int, error) {
  593. var i int
  594. _ = i
  595. var l int
  596. _ = l
  597. if len(m.Buvid) > 0 {
  598. dAtA[i] = 0xa
  599. i++
  600. i = encodeVarintApi(dAtA, i, uint64(len(m.Buvid)))
  601. i += copy(dAtA[i:], m.Buvid)
  602. }
  603. if len(m.UserAgent) > 0 {
  604. dAtA[i] = 0x12
  605. i++
  606. i = encodeVarintApi(dAtA, i, uint64(len(m.UserAgent)))
  607. i += copy(dAtA[i:], m.UserAgent)
  608. }
  609. if len(m.Refer) > 0 {
  610. dAtA[i] = 0x1a
  611. i++
  612. i = encodeVarintApi(dAtA, i, uint64(len(m.Refer)))
  613. i += copy(dAtA[i:], m.Refer)
  614. }
  615. if len(m.Cookie) > 0 {
  616. dAtA[i] = 0x22
  617. i++
  618. i = encodeVarintApi(dAtA, i, uint64(len(m.Cookie)))
  619. i += copy(dAtA[i:], m.Cookie)
  620. }
  621. if m.Build != 0 {
  622. dAtA[i] = 0x28
  623. i++
  624. i = encodeVarintApi(dAtA, i, uint64(m.Build))
  625. }
  626. if m.XXX_unrecognized != nil {
  627. i += copy(dAtA[i:], m.XXX_unrecognized)
  628. }
  629. return i, nil
  630. }
  631. func (m *SendMsgResp) Marshal() (dAtA []byte, err error) {
  632. size := m.Size()
  633. dAtA = make([]byte, size)
  634. n, err := m.MarshalTo(dAtA)
  635. if err != nil {
  636. return nil, err
  637. }
  638. return dAtA[:n], nil
  639. }
  640. func (m *SendMsgResp) MarshalTo(dAtA []byte) (int, error) {
  641. var i int
  642. _ = i
  643. var l int
  644. _ = l
  645. if m.IsLimit {
  646. dAtA[i] = 0x8
  647. i++
  648. if m.IsLimit {
  649. dAtA[i] = 1
  650. } else {
  651. dAtA[i] = 0
  652. }
  653. i++
  654. }
  655. if len(m.LimitMsg) > 0 {
  656. dAtA[i] = 0x12
  657. i++
  658. i = encodeVarintApi(dAtA, i, uint64(len(m.LimitMsg)))
  659. i += copy(dAtA[i:], m.LimitMsg)
  660. }
  661. if m.Code != 0 {
  662. dAtA[i] = 0x18
  663. i++
  664. i = encodeVarintApi(dAtA, i, uint64(m.Code))
  665. }
  666. if m.XXX_unrecognized != nil {
  667. i += copy(dAtA[i:], m.XXX_unrecognized)
  668. }
  669. return i, nil
  670. }
  671. func (m *HistoryReq) Marshal() (dAtA []byte, err error) {
  672. size := m.Size()
  673. dAtA = make([]byte, size)
  674. n, err := m.MarshalTo(dAtA)
  675. if err != nil {
  676. return nil, err
  677. }
  678. return dAtA[:n], nil
  679. }
  680. func (m *HistoryReq) MarshalTo(dAtA []byte) (int, error) {
  681. var i int
  682. _ = i
  683. var l int
  684. _ = l
  685. if m.Roomid != 0 {
  686. dAtA[i] = 0x8
  687. i++
  688. i = encodeVarintApi(dAtA, i, uint64(m.Roomid))
  689. }
  690. if m.XXX_unrecognized != nil {
  691. i += copy(dAtA[i:], m.XXX_unrecognized)
  692. }
  693. return i, nil
  694. }
  695. func (m *HistoryResp) Marshal() (dAtA []byte, err error) {
  696. size := m.Size()
  697. dAtA = make([]byte, size)
  698. n, err := m.MarshalTo(dAtA)
  699. if err != nil {
  700. return nil, err
  701. }
  702. return dAtA[:n], nil
  703. }
  704. func (m *HistoryResp) MarshalTo(dAtA []byte) (int, error) {
  705. var i int
  706. _ = i
  707. var l int
  708. _ = l
  709. if len(m.Room) > 0 {
  710. for _, s := range m.Room {
  711. dAtA[i] = 0xa
  712. i++
  713. l = len(s)
  714. for l >= 1<<7 {
  715. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  716. l >>= 7
  717. i++
  718. }
  719. dAtA[i] = uint8(l)
  720. i++
  721. i += copy(dAtA[i:], s)
  722. }
  723. }
  724. if len(m.Admin) > 0 {
  725. for _, s := range m.Admin {
  726. dAtA[i] = 0x12
  727. i++
  728. l = len(s)
  729. for l >= 1<<7 {
  730. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  731. l >>= 7
  732. i++
  733. }
  734. dAtA[i] = uint8(l)
  735. i++
  736. i += copy(dAtA[i:], s)
  737. }
  738. }
  739. if m.XXX_unrecognized != nil {
  740. i += copy(dAtA[i:], m.XXX_unrecognized)
  741. }
  742. return i, nil
  743. }
  744. func (m *ErrMsg) Marshal() (dAtA []byte, err error) {
  745. size := m.Size()
  746. dAtA = make([]byte, size)
  747. n, err := m.MarshalTo(dAtA)
  748. if err != nil {
  749. return nil, err
  750. }
  751. return dAtA[:n], nil
  752. }
  753. func (m *ErrMsg) MarshalTo(dAtA []byte) (int, error) {
  754. var i int
  755. _ = i
  756. var l int
  757. _ = l
  758. if len(m.Message) > 0 {
  759. dAtA[i] = 0xa
  760. i++
  761. i = encodeVarintApi(dAtA, i, uint64(len(m.Message)))
  762. i += copy(dAtA[i:], m.Message)
  763. }
  764. if m.XXX_unrecognized != nil {
  765. i += copy(dAtA[i:], m.XXX_unrecognized)
  766. }
  767. return i, nil
  768. }
  769. func encodeVarintApi(dAtA []byte, offset int, v uint64) int {
  770. for v >= 1<<7 {
  771. dAtA[offset] = uint8(v&0x7f | 0x80)
  772. v >>= 7
  773. offset++
  774. }
  775. dAtA[offset] = uint8(v)
  776. return offset + 1
  777. }
  778. func (m *SendMsgReq) Size() (n int) {
  779. if m == nil {
  780. return 0
  781. }
  782. var l int
  783. _ = l
  784. if m.Uid != 0 {
  785. n += 1 + sovApi(uint64(m.Uid))
  786. }
  787. if m.Roomid != 0 {
  788. n += 1 + sovApi(uint64(m.Roomid))
  789. }
  790. l = len(m.Msg)
  791. if l > 0 {
  792. n += 1 + l + sovApi(uint64(l))
  793. }
  794. l = len(m.Rnd)
  795. if l > 0 {
  796. n += 1 + l + sovApi(uint64(l))
  797. }
  798. l = len(m.Ip)
  799. if l > 0 {
  800. n += 1 + l + sovApi(uint64(l))
  801. }
  802. if m.Fontsize != 0 {
  803. n += 1 + sovApi(uint64(m.Fontsize))
  804. }
  805. if m.Mode != 0 {
  806. n += 1 + sovApi(uint64(m.Mode))
  807. }
  808. l = len(m.Platform)
  809. if l > 0 {
  810. n += 1 + l + sovApi(uint64(l))
  811. }
  812. if m.Msgtype != 0 {
  813. n += 1 + sovApi(uint64(m.Msgtype))
  814. }
  815. if m.Bubble != 0 {
  816. n += 1 + sovApi(uint64(m.Bubble))
  817. }
  818. if m.Lancer != nil {
  819. l = m.Lancer.Size()
  820. n += 1 + l + sovApi(uint64(l))
  821. }
  822. if m.XXX_unrecognized != nil {
  823. n += len(m.XXX_unrecognized)
  824. }
  825. return n
  826. }
  827. func (m *Lancer) Size() (n int) {
  828. if m == nil {
  829. return 0
  830. }
  831. var l int
  832. _ = l
  833. l = len(m.Buvid)
  834. if l > 0 {
  835. n += 1 + l + sovApi(uint64(l))
  836. }
  837. l = len(m.UserAgent)
  838. if l > 0 {
  839. n += 1 + l + sovApi(uint64(l))
  840. }
  841. l = len(m.Refer)
  842. if l > 0 {
  843. n += 1 + l + sovApi(uint64(l))
  844. }
  845. l = len(m.Cookie)
  846. if l > 0 {
  847. n += 1 + l + sovApi(uint64(l))
  848. }
  849. if m.Build != 0 {
  850. n += 1 + sovApi(uint64(m.Build))
  851. }
  852. if m.XXX_unrecognized != nil {
  853. n += len(m.XXX_unrecognized)
  854. }
  855. return n
  856. }
  857. func (m *SendMsgResp) Size() (n int) {
  858. if m == nil {
  859. return 0
  860. }
  861. var l int
  862. _ = l
  863. if m.IsLimit {
  864. n += 2
  865. }
  866. l = len(m.LimitMsg)
  867. if l > 0 {
  868. n += 1 + l + sovApi(uint64(l))
  869. }
  870. if m.Code != 0 {
  871. n += 1 + sovApi(uint64(m.Code))
  872. }
  873. if m.XXX_unrecognized != nil {
  874. n += len(m.XXX_unrecognized)
  875. }
  876. return n
  877. }
  878. func (m *HistoryReq) Size() (n int) {
  879. if m == nil {
  880. return 0
  881. }
  882. var l int
  883. _ = l
  884. if m.Roomid != 0 {
  885. n += 1 + sovApi(uint64(m.Roomid))
  886. }
  887. if m.XXX_unrecognized != nil {
  888. n += len(m.XXX_unrecognized)
  889. }
  890. return n
  891. }
  892. func (m *HistoryResp) Size() (n int) {
  893. if m == nil {
  894. return 0
  895. }
  896. var l int
  897. _ = l
  898. if len(m.Room) > 0 {
  899. for _, s := range m.Room {
  900. l = len(s)
  901. n += 1 + l + sovApi(uint64(l))
  902. }
  903. }
  904. if len(m.Admin) > 0 {
  905. for _, s := range m.Admin {
  906. l = len(s)
  907. n += 1 + l + sovApi(uint64(l))
  908. }
  909. }
  910. if m.XXX_unrecognized != nil {
  911. n += len(m.XXX_unrecognized)
  912. }
  913. return n
  914. }
  915. func (m *ErrMsg) Size() (n int) {
  916. if m == nil {
  917. return 0
  918. }
  919. var l int
  920. _ = l
  921. l = len(m.Message)
  922. if l > 0 {
  923. n += 1 + l + sovApi(uint64(l))
  924. }
  925. if m.XXX_unrecognized != nil {
  926. n += len(m.XXX_unrecognized)
  927. }
  928. return n
  929. }
  930. func sovApi(x uint64) (n int) {
  931. for {
  932. n++
  933. x >>= 7
  934. if x == 0 {
  935. break
  936. }
  937. }
  938. return n
  939. }
  940. func sozApi(x uint64) (n int) {
  941. return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  942. }
  943. func (m *SendMsgReq) Unmarshal(dAtA []byte) error {
  944. l := len(dAtA)
  945. iNdEx := 0
  946. for iNdEx < l {
  947. preIndex := iNdEx
  948. var wire uint64
  949. for shift := uint(0); ; shift += 7 {
  950. if shift >= 64 {
  951. return ErrIntOverflowApi
  952. }
  953. if iNdEx >= l {
  954. return io.ErrUnexpectedEOF
  955. }
  956. b := dAtA[iNdEx]
  957. iNdEx++
  958. wire |= (uint64(b) & 0x7F) << shift
  959. if b < 0x80 {
  960. break
  961. }
  962. }
  963. fieldNum := int32(wire >> 3)
  964. wireType := int(wire & 0x7)
  965. if wireType == 4 {
  966. return fmt.Errorf("proto: SendMsgReq: wiretype end group for non-group")
  967. }
  968. if fieldNum <= 0 {
  969. return fmt.Errorf("proto: SendMsgReq: illegal tag %d (wire type %d)", fieldNum, wire)
  970. }
  971. switch fieldNum {
  972. case 1:
  973. if wireType != 0 {
  974. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  975. }
  976. m.Uid = 0
  977. for shift := uint(0); ; shift += 7 {
  978. if shift >= 64 {
  979. return ErrIntOverflowApi
  980. }
  981. if iNdEx >= l {
  982. return io.ErrUnexpectedEOF
  983. }
  984. b := dAtA[iNdEx]
  985. iNdEx++
  986. m.Uid |= (int64(b) & 0x7F) << shift
  987. if b < 0x80 {
  988. break
  989. }
  990. }
  991. case 2:
  992. if wireType != 0 {
  993. return fmt.Errorf("proto: wrong wireType = %d for field Roomid", wireType)
  994. }
  995. m.Roomid = 0
  996. for shift := uint(0); ; shift += 7 {
  997. if shift >= 64 {
  998. return ErrIntOverflowApi
  999. }
  1000. if iNdEx >= l {
  1001. return io.ErrUnexpectedEOF
  1002. }
  1003. b := dAtA[iNdEx]
  1004. iNdEx++
  1005. m.Roomid |= (int64(b) & 0x7F) << shift
  1006. if b < 0x80 {
  1007. break
  1008. }
  1009. }
  1010. case 3:
  1011. if wireType != 2 {
  1012. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  1013. }
  1014. var stringLen uint64
  1015. for shift := uint(0); ; shift += 7 {
  1016. if shift >= 64 {
  1017. return ErrIntOverflowApi
  1018. }
  1019. if iNdEx >= l {
  1020. return io.ErrUnexpectedEOF
  1021. }
  1022. b := dAtA[iNdEx]
  1023. iNdEx++
  1024. stringLen |= (uint64(b) & 0x7F) << shift
  1025. if b < 0x80 {
  1026. break
  1027. }
  1028. }
  1029. intStringLen := int(stringLen)
  1030. if intStringLen < 0 {
  1031. return ErrInvalidLengthApi
  1032. }
  1033. postIndex := iNdEx + intStringLen
  1034. if postIndex > l {
  1035. return io.ErrUnexpectedEOF
  1036. }
  1037. m.Msg = string(dAtA[iNdEx:postIndex])
  1038. iNdEx = postIndex
  1039. case 4:
  1040. if wireType != 2 {
  1041. return fmt.Errorf("proto: wrong wireType = %d for field Rnd", wireType)
  1042. }
  1043. var stringLen uint64
  1044. for shift := uint(0); ; shift += 7 {
  1045. if shift >= 64 {
  1046. return ErrIntOverflowApi
  1047. }
  1048. if iNdEx >= l {
  1049. return io.ErrUnexpectedEOF
  1050. }
  1051. b := dAtA[iNdEx]
  1052. iNdEx++
  1053. stringLen |= (uint64(b) & 0x7F) << shift
  1054. if b < 0x80 {
  1055. break
  1056. }
  1057. }
  1058. intStringLen := int(stringLen)
  1059. if intStringLen < 0 {
  1060. return ErrInvalidLengthApi
  1061. }
  1062. postIndex := iNdEx + intStringLen
  1063. if postIndex > l {
  1064. return io.ErrUnexpectedEOF
  1065. }
  1066. m.Rnd = string(dAtA[iNdEx:postIndex])
  1067. iNdEx = postIndex
  1068. case 5:
  1069. if wireType != 2 {
  1070. return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType)
  1071. }
  1072. var stringLen uint64
  1073. for shift := uint(0); ; shift += 7 {
  1074. if shift >= 64 {
  1075. return ErrIntOverflowApi
  1076. }
  1077. if iNdEx >= l {
  1078. return io.ErrUnexpectedEOF
  1079. }
  1080. b := dAtA[iNdEx]
  1081. iNdEx++
  1082. stringLen |= (uint64(b) & 0x7F) << shift
  1083. if b < 0x80 {
  1084. break
  1085. }
  1086. }
  1087. intStringLen := int(stringLen)
  1088. if intStringLen < 0 {
  1089. return ErrInvalidLengthApi
  1090. }
  1091. postIndex := iNdEx + intStringLen
  1092. if postIndex > l {
  1093. return io.ErrUnexpectedEOF
  1094. }
  1095. m.Ip = string(dAtA[iNdEx:postIndex])
  1096. iNdEx = postIndex
  1097. case 7:
  1098. if wireType != 0 {
  1099. return fmt.Errorf("proto: wrong wireType = %d for field Fontsize", wireType)
  1100. }
  1101. m.Fontsize = 0
  1102. for shift := uint(0); ; shift += 7 {
  1103. if shift >= 64 {
  1104. return ErrIntOverflowApi
  1105. }
  1106. if iNdEx >= l {
  1107. return io.ErrUnexpectedEOF
  1108. }
  1109. b := dAtA[iNdEx]
  1110. iNdEx++
  1111. m.Fontsize |= (int64(b) & 0x7F) << shift
  1112. if b < 0x80 {
  1113. break
  1114. }
  1115. }
  1116. case 8:
  1117. if wireType != 0 {
  1118. return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType)
  1119. }
  1120. m.Mode = 0
  1121. for shift := uint(0); ; shift += 7 {
  1122. if shift >= 64 {
  1123. return ErrIntOverflowApi
  1124. }
  1125. if iNdEx >= l {
  1126. return io.ErrUnexpectedEOF
  1127. }
  1128. b := dAtA[iNdEx]
  1129. iNdEx++
  1130. m.Mode |= (int64(b) & 0x7F) << shift
  1131. if b < 0x80 {
  1132. break
  1133. }
  1134. }
  1135. case 9:
  1136. if wireType != 2 {
  1137. return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType)
  1138. }
  1139. var stringLen uint64
  1140. for shift := uint(0); ; shift += 7 {
  1141. if shift >= 64 {
  1142. return ErrIntOverflowApi
  1143. }
  1144. if iNdEx >= l {
  1145. return io.ErrUnexpectedEOF
  1146. }
  1147. b := dAtA[iNdEx]
  1148. iNdEx++
  1149. stringLen |= (uint64(b) & 0x7F) << shift
  1150. if b < 0x80 {
  1151. break
  1152. }
  1153. }
  1154. intStringLen := int(stringLen)
  1155. if intStringLen < 0 {
  1156. return ErrInvalidLengthApi
  1157. }
  1158. postIndex := iNdEx + intStringLen
  1159. if postIndex > l {
  1160. return io.ErrUnexpectedEOF
  1161. }
  1162. m.Platform = string(dAtA[iNdEx:postIndex])
  1163. iNdEx = postIndex
  1164. case 10:
  1165. if wireType != 0 {
  1166. return fmt.Errorf("proto: wrong wireType = %d for field Msgtype", wireType)
  1167. }
  1168. m.Msgtype = 0
  1169. for shift := uint(0); ; shift += 7 {
  1170. if shift >= 64 {
  1171. return ErrIntOverflowApi
  1172. }
  1173. if iNdEx >= l {
  1174. return io.ErrUnexpectedEOF
  1175. }
  1176. b := dAtA[iNdEx]
  1177. iNdEx++
  1178. m.Msgtype |= (int64(b) & 0x7F) << shift
  1179. if b < 0x80 {
  1180. break
  1181. }
  1182. }
  1183. case 11:
  1184. if wireType != 0 {
  1185. return fmt.Errorf("proto: wrong wireType = %d for field Bubble", wireType)
  1186. }
  1187. m.Bubble = 0
  1188. for shift := uint(0); ; shift += 7 {
  1189. if shift >= 64 {
  1190. return ErrIntOverflowApi
  1191. }
  1192. if iNdEx >= l {
  1193. return io.ErrUnexpectedEOF
  1194. }
  1195. b := dAtA[iNdEx]
  1196. iNdEx++
  1197. m.Bubble |= (int64(b) & 0x7F) << shift
  1198. if b < 0x80 {
  1199. break
  1200. }
  1201. }
  1202. case 12:
  1203. if wireType != 2 {
  1204. return fmt.Errorf("proto: wrong wireType = %d for field Lancer", wireType)
  1205. }
  1206. var msglen int
  1207. for shift := uint(0); ; shift += 7 {
  1208. if shift >= 64 {
  1209. return ErrIntOverflowApi
  1210. }
  1211. if iNdEx >= l {
  1212. return io.ErrUnexpectedEOF
  1213. }
  1214. b := dAtA[iNdEx]
  1215. iNdEx++
  1216. msglen |= (int(b) & 0x7F) << shift
  1217. if b < 0x80 {
  1218. break
  1219. }
  1220. }
  1221. if msglen < 0 {
  1222. return ErrInvalidLengthApi
  1223. }
  1224. postIndex := iNdEx + msglen
  1225. if postIndex > l {
  1226. return io.ErrUnexpectedEOF
  1227. }
  1228. if m.Lancer == nil {
  1229. m.Lancer = &Lancer{}
  1230. }
  1231. if err := m.Lancer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1232. return err
  1233. }
  1234. iNdEx = postIndex
  1235. default:
  1236. iNdEx = preIndex
  1237. skippy, err := skipApi(dAtA[iNdEx:])
  1238. if err != nil {
  1239. return err
  1240. }
  1241. if skippy < 0 {
  1242. return ErrInvalidLengthApi
  1243. }
  1244. if (iNdEx + skippy) > l {
  1245. return io.ErrUnexpectedEOF
  1246. }
  1247. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1248. iNdEx += skippy
  1249. }
  1250. }
  1251. if iNdEx > l {
  1252. return io.ErrUnexpectedEOF
  1253. }
  1254. return nil
  1255. }
  1256. func (m *Lancer) Unmarshal(dAtA []byte) error {
  1257. l := len(dAtA)
  1258. iNdEx := 0
  1259. for iNdEx < l {
  1260. preIndex := iNdEx
  1261. var wire uint64
  1262. for shift := uint(0); ; shift += 7 {
  1263. if shift >= 64 {
  1264. return ErrIntOverflowApi
  1265. }
  1266. if iNdEx >= l {
  1267. return io.ErrUnexpectedEOF
  1268. }
  1269. b := dAtA[iNdEx]
  1270. iNdEx++
  1271. wire |= (uint64(b) & 0x7F) << shift
  1272. if b < 0x80 {
  1273. break
  1274. }
  1275. }
  1276. fieldNum := int32(wire >> 3)
  1277. wireType := int(wire & 0x7)
  1278. if wireType == 4 {
  1279. return fmt.Errorf("proto: lancer: wiretype end group for non-group")
  1280. }
  1281. if fieldNum <= 0 {
  1282. return fmt.Errorf("proto: lancer: illegal tag %d (wire type %d)", fieldNum, wire)
  1283. }
  1284. switch fieldNum {
  1285. case 1:
  1286. if wireType != 2 {
  1287. return fmt.Errorf("proto: wrong wireType = %d for field Buvid", wireType)
  1288. }
  1289. var stringLen uint64
  1290. for shift := uint(0); ; shift += 7 {
  1291. if shift >= 64 {
  1292. return ErrIntOverflowApi
  1293. }
  1294. if iNdEx >= l {
  1295. return io.ErrUnexpectedEOF
  1296. }
  1297. b := dAtA[iNdEx]
  1298. iNdEx++
  1299. stringLen |= (uint64(b) & 0x7F) << shift
  1300. if b < 0x80 {
  1301. break
  1302. }
  1303. }
  1304. intStringLen := int(stringLen)
  1305. if intStringLen < 0 {
  1306. return ErrInvalidLengthApi
  1307. }
  1308. postIndex := iNdEx + intStringLen
  1309. if postIndex > l {
  1310. return io.ErrUnexpectedEOF
  1311. }
  1312. m.Buvid = string(dAtA[iNdEx:postIndex])
  1313. iNdEx = postIndex
  1314. case 2:
  1315. if wireType != 2 {
  1316. return fmt.Errorf("proto: wrong wireType = %d for field UserAgent", wireType)
  1317. }
  1318. var stringLen uint64
  1319. for shift := uint(0); ; shift += 7 {
  1320. if shift >= 64 {
  1321. return ErrIntOverflowApi
  1322. }
  1323. if iNdEx >= l {
  1324. return io.ErrUnexpectedEOF
  1325. }
  1326. b := dAtA[iNdEx]
  1327. iNdEx++
  1328. stringLen |= (uint64(b) & 0x7F) << shift
  1329. if b < 0x80 {
  1330. break
  1331. }
  1332. }
  1333. intStringLen := int(stringLen)
  1334. if intStringLen < 0 {
  1335. return ErrInvalidLengthApi
  1336. }
  1337. postIndex := iNdEx + intStringLen
  1338. if postIndex > l {
  1339. return io.ErrUnexpectedEOF
  1340. }
  1341. m.UserAgent = string(dAtA[iNdEx:postIndex])
  1342. iNdEx = postIndex
  1343. case 3:
  1344. if wireType != 2 {
  1345. return fmt.Errorf("proto: wrong wireType = %d for field Refer", wireType)
  1346. }
  1347. var stringLen uint64
  1348. for shift := uint(0); ; shift += 7 {
  1349. if shift >= 64 {
  1350. return ErrIntOverflowApi
  1351. }
  1352. if iNdEx >= l {
  1353. return io.ErrUnexpectedEOF
  1354. }
  1355. b := dAtA[iNdEx]
  1356. iNdEx++
  1357. stringLen |= (uint64(b) & 0x7F) << shift
  1358. if b < 0x80 {
  1359. break
  1360. }
  1361. }
  1362. intStringLen := int(stringLen)
  1363. if intStringLen < 0 {
  1364. return ErrInvalidLengthApi
  1365. }
  1366. postIndex := iNdEx + intStringLen
  1367. if postIndex > l {
  1368. return io.ErrUnexpectedEOF
  1369. }
  1370. m.Refer = string(dAtA[iNdEx:postIndex])
  1371. iNdEx = postIndex
  1372. case 4:
  1373. if wireType != 2 {
  1374. return fmt.Errorf("proto: wrong wireType = %d for field Cookie", wireType)
  1375. }
  1376. var stringLen uint64
  1377. for shift := uint(0); ; shift += 7 {
  1378. if shift >= 64 {
  1379. return ErrIntOverflowApi
  1380. }
  1381. if iNdEx >= l {
  1382. return io.ErrUnexpectedEOF
  1383. }
  1384. b := dAtA[iNdEx]
  1385. iNdEx++
  1386. stringLen |= (uint64(b) & 0x7F) << shift
  1387. if b < 0x80 {
  1388. break
  1389. }
  1390. }
  1391. intStringLen := int(stringLen)
  1392. if intStringLen < 0 {
  1393. return ErrInvalidLengthApi
  1394. }
  1395. postIndex := iNdEx + intStringLen
  1396. if postIndex > l {
  1397. return io.ErrUnexpectedEOF
  1398. }
  1399. m.Cookie = string(dAtA[iNdEx:postIndex])
  1400. iNdEx = postIndex
  1401. case 5:
  1402. if wireType != 0 {
  1403. return fmt.Errorf("proto: wrong wireType = %d for field Build", wireType)
  1404. }
  1405. m.Build = 0
  1406. for shift := uint(0); ; shift += 7 {
  1407. if shift >= 64 {
  1408. return ErrIntOverflowApi
  1409. }
  1410. if iNdEx >= l {
  1411. return io.ErrUnexpectedEOF
  1412. }
  1413. b := dAtA[iNdEx]
  1414. iNdEx++
  1415. m.Build |= (int64(b) & 0x7F) << shift
  1416. if b < 0x80 {
  1417. break
  1418. }
  1419. }
  1420. default:
  1421. iNdEx = preIndex
  1422. skippy, err := skipApi(dAtA[iNdEx:])
  1423. if err != nil {
  1424. return err
  1425. }
  1426. if skippy < 0 {
  1427. return ErrInvalidLengthApi
  1428. }
  1429. if (iNdEx + skippy) > l {
  1430. return io.ErrUnexpectedEOF
  1431. }
  1432. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1433. iNdEx += skippy
  1434. }
  1435. }
  1436. if iNdEx > l {
  1437. return io.ErrUnexpectedEOF
  1438. }
  1439. return nil
  1440. }
  1441. func (m *SendMsgResp) Unmarshal(dAtA []byte) error {
  1442. l := len(dAtA)
  1443. iNdEx := 0
  1444. for iNdEx < l {
  1445. preIndex := iNdEx
  1446. var wire uint64
  1447. for shift := uint(0); ; shift += 7 {
  1448. if shift >= 64 {
  1449. return ErrIntOverflowApi
  1450. }
  1451. if iNdEx >= l {
  1452. return io.ErrUnexpectedEOF
  1453. }
  1454. b := dAtA[iNdEx]
  1455. iNdEx++
  1456. wire |= (uint64(b) & 0x7F) << shift
  1457. if b < 0x80 {
  1458. break
  1459. }
  1460. }
  1461. fieldNum := int32(wire >> 3)
  1462. wireType := int(wire & 0x7)
  1463. if wireType == 4 {
  1464. return fmt.Errorf("proto: SendMsgResp: wiretype end group for non-group")
  1465. }
  1466. if fieldNum <= 0 {
  1467. return fmt.Errorf("proto: SendMsgResp: illegal tag %d (wire type %d)", fieldNum, wire)
  1468. }
  1469. switch fieldNum {
  1470. case 1:
  1471. if wireType != 0 {
  1472. return fmt.Errorf("proto: wrong wireType = %d for field IsLimit", wireType)
  1473. }
  1474. var v int
  1475. for shift := uint(0); ; shift += 7 {
  1476. if shift >= 64 {
  1477. return ErrIntOverflowApi
  1478. }
  1479. if iNdEx >= l {
  1480. return io.ErrUnexpectedEOF
  1481. }
  1482. b := dAtA[iNdEx]
  1483. iNdEx++
  1484. v |= (int(b) & 0x7F) << shift
  1485. if b < 0x80 {
  1486. break
  1487. }
  1488. }
  1489. m.IsLimit = bool(v != 0)
  1490. case 2:
  1491. if wireType != 2 {
  1492. return fmt.Errorf("proto: wrong wireType = %d for field LimitMsg", wireType)
  1493. }
  1494. var stringLen uint64
  1495. for shift := uint(0); ; shift += 7 {
  1496. if shift >= 64 {
  1497. return ErrIntOverflowApi
  1498. }
  1499. if iNdEx >= l {
  1500. return io.ErrUnexpectedEOF
  1501. }
  1502. b := dAtA[iNdEx]
  1503. iNdEx++
  1504. stringLen |= (uint64(b) & 0x7F) << shift
  1505. if b < 0x80 {
  1506. break
  1507. }
  1508. }
  1509. intStringLen := int(stringLen)
  1510. if intStringLen < 0 {
  1511. return ErrInvalidLengthApi
  1512. }
  1513. postIndex := iNdEx + intStringLen
  1514. if postIndex > l {
  1515. return io.ErrUnexpectedEOF
  1516. }
  1517. m.LimitMsg = string(dAtA[iNdEx:postIndex])
  1518. iNdEx = postIndex
  1519. case 3:
  1520. if wireType != 0 {
  1521. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  1522. }
  1523. m.Code = 0
  1524. for shift := uint(0); ; shift += 7 {
  1525. if shift >= 64 {
  1526. return ErrIntOverflowApi
  1527. }
  1528. if iNdEx >= l {
  1529. return io.ErrUnexpectedEOF
  1530. }
  1531. b := dAtA[iNdEx]
  1532. iNdEx++
  1533. m.Code |= (int32(b) & 0x7F) << shift
  1534. if b < 0x80 {
  1535. break
  1536. }
  1537. }
  1538. default:
  1539. iNdEx = preIndex
  1540. skippy, err := skipApi(dAtA[iNdEx:])
  1541. if err != nil {
  1542. return err
  1543. }
  1544. if skippy < 0 {
  1545. return ErrInvalidLengthApi
  1546. }
  1547. if (iNdEx + skippy) > l {
  1548. return io.ErrUnexpectedEOF
  1549. }
  1550. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1551. iNdEx += skippy
  1552. }
  1553. }
  1554. if iNdEx > l {
  1555. return io.ErrUnexpectedEOF
  1556. }
  1557. return nil
  1558. }
  1559. func (m *HistoryReq) Unmarshal(dAtA []byte) error {
  1560. l := len(dAtA)
  1561. iNdEx := 0
  1562. for iNdEx < l {
  1563. preIndex := iNdEx
  1564. var wire uint64
  1565. for shift := uint(0); ; shift += 7 {
  1566. if shift >= 64 {
  1567. return ErrIntOverflowApi
  1568. }
  1569. if iNdEx >= l {
  1570. return io.ErrUnexpectedEOF
  1571. }
  1572. b := dAtA[iNdEx]
  1573. iNdEx++
  1574. wire |= (uint64(b) & 0x7F) << shift
  1575. if b < 0x80 {
  1576. break
  1577. }
  1578. }
  1579. fieldNum := int32(wire >> 3)
  1580. wireType := int(wire & 0x7)
  1581. if wireType == 4 {
  1582. return fmt.Errorf("proto: HistoryReq: wiretype end group for non-group")
  1583. }
  1584. if fieldNum <= 0 {
  1585. return fmt.Errorf("proto: HistoryReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1586. }
  1587. switch fieldNum {
  1588. case 1:
  1589. if wireType != 0 {
  1590. return fmt.Errorf("proto: wrong wireType = %d for field Roomid", wireType)
  1591. }
  1592. m.Roomid = 0
  1593. for shift := uint(0); ; shift += 7 {
  1594. if shift >= 64 {
  1595. return ErrIntOverflowApi
  1596. }
  1597. if iNdEx >= l {
  1598. return io.ErrUnexpectedEOF
  1599. }
  1600. b := dAtA[iNdEx]
  1601. iNdEx++
  1602. m.Roomid |= (int64(b) & 0x7F) << shift
  1603. if b < 0x80 {
  1604. break
  1605. }
  1606. }
  1607. default:
  1608. iNdEx = preIndex
  1609. skippy, err := skipApi(dAtA[iNdEx:])
  1610. if err != nil {
  1611. return err
  1612. }
  1613. if skippy < 0 {
  1614. return ErrInvalidLengthApi
  1615. }
  1616. if (iNdEx + skippy) > l {
  1617. return io.ErrUnexpectedEOF
  1618. }
  1619. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1620. iNdEx += skippy
  1621. }
  1622. }
  1623. if iNdEx > l {
  1624. return io.ErrUnexpectedEOF
  1625. }
  1626. return nil
  1627. }
  1628. func (m *HistoryResp) Unmarshal(dAtA []byte) error {
  1629. l := len(dAtA)
  1630. iNdEx := 0
  1631. for iNdEx < l {
  1632. preIndex := iNdEx
  1633. var wire uint64
  1634. for shift := uint(0); ; shift += 7 {
  1635. if shift >= 64 {
  1636. return ErrIntOverflowApi
  1637. }
  1638. if iNdEx >= l {
  1639. return io.ErrUnexpectedEOF
  1640. }
  1641. b := dAtA[iNdEx]
  1642. iNdEx++
  1643. wire |= (uint64(b) & 0x7F) << shift
  1644. if b < 0x80 {
  1645. break
  1646. }
  1647. }
  1648. fieldNum := int32(wire >> 3)
  1649. wireType := int(wire & 0x7)
  1650. if wireType == 4 {
  1651. return fmt.Errorf("proto: HistoryResp: wiretype end group for non-group")
  1652. }
  1653. if fieldNum <= 0 {
  1654. return fmt.Errorf("proto: HistoryResp: illegal tag %d (wire type %d)", fieldNum, wire)
  1655. }
  1656. switch fieldNum {
  1657. case 1:
  1658. if wireType != 2 {
  1659. return fmt.Errorf("proto: wrong wireType = %d for field Room", wireType)
  1660. }
  1661. var stringLen uint64
  1662. for shift := uint(0); ; shift += 7 {
  1663. if shift >= 64 {
  1664. return ErrIntOverflowApi
  1665. }
  1666. if iNdEx >= l {
  1667. return io.ErrUnexpectedEOF
  1668. }
  1669. b := dAtA[iNdEx]
  1670. iNdEx++
  1671. stringLen |= (uint64(b) & 0x7F) << shift
  1672. if b < 0x80 {
  1673. break
  1674. }
  1675. }
  1676. intStringLen := int(stringLen)
  1677. if intStringLen < 0 {
  1678. return ErrInvalidLengthApi
  1679. }
  1680. postIndex := iNdEx + intStringLen
  1681. if postIndex > l {
  1682. return io.ErrUnexpectedEOF
  1683. }
  1684. m.Room = append(m.Room, string(dAtA[iNdEx:postIndex]))
  1685. iNdEx = postIndex
  1686. case 2:
  1687. if wireType != 2 {
  1688. return fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType)
  1689. }
  1690. var stringLen uint64
  1691. for shift := uint(0); ; shift += 7 {
  1692. if shift >= 64 {
  1693. return ErrIntOverflowApi
  1694. }
  1695. if iNdEx >= l {
  1696. return io.ErrUnexpectedEOF
  1697. }
  1698. b := dAtA[iNdEx]
  1699. iNdEx++
  1700. stringLen |= (uint64(b) & 0x7F) << shift
  1701. if b < 0x80 {
  1702. break
  1703. }
  1704. }
  1705. intStringLen := int(stringLen)
  1706. if intStringLen < 0 {
  1707. return ErrInvalidLengthApi
  1708. }
  1709. postIndex := iNdEx + intStringLen
  1710. if postIndex > l {
  1711. return io.ErrUnexpectedEOF
  1712. }
  1713. m.Admin = append(m.Admin, string(dAtA[iNdEx:postIndex]))
  1714. iNdEx = postIndex
  1715. default:
  1716. iNdEx = preIndex
  1717. skippy, err := skipApi(dAtA[iNdEx:])
  1718. if err != nil {
  1719. return err
  1720. }
  1721. if skippy < 0 {
  1722. return ErrInvalidLengthApi
  1723. }
  1724. if (iNdEx + skippy) > l {
  1725. return io.ErrUnexpectedEOF
  1726. }
  1727. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1728. iNdEx += skippy
  1729. }
  1730. }
  1731. if iNdEx > l {
  1732. return io.ErrUnexpectedEOF
  1733. }
  1734. return nil
  1735. }
  1736. func (m *ErrMsg) Unmarshal(dAtA []byte) error {
  1737. l := len(dAtA)
  1738. iNdEx := 0
  1739. for iNdEx < l {
  1740. preIndex := iNdEx
  1741. var wire uint64
  1742. for shift := uint(0); ; shift += 7 {
  1743. if shift >= 64 {
  1744. return ErrIntOverflowApi
  1745. }
  1746. if iNdEx >= l {
  1747. return io.ErrUnexpectedEOF
  1748. }
  1749. b := dAtA[iNdEx]
  1750. iNdEx++
  1751. wire |= (uint64(b) & 0x7F) << shift
  1752. if b < 0x80 {
  1753. break
  1754. }
  1755. }
  1756. fieldNum := int32(wire >> 3)
  1757. wireType := int(wire & 0x7)
  1758. if wireType == 4 {
  1759. return fmt.Errorf("proto: ErrMsg: wiretype end group for non-group")
  1760. }
  1761. if fieldNum <= 0 {
  1762. return fmt.Errorf("proto: ErrMsg: illegal tag %d (wire type %d)", fieldNum, wire)
  1763. }
  1764. switch fieldNum {
  1765. case 1:
  1766. if wireType != 2 {
  1767. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  1768. }
  1769. var stringLen uint64
  1770. for shift := uint(0); ; shift += 7 {
  1771. if shift >= 64 {
  1772. return ErrIntOverflowApi
  1773. }
  1774. if iNdEx >= l {
  1775. return io.ErrUnexpectedEOF
  1776. }
  1777. b := dAtA[iNdEx]
  1778. iNdEx++
  1779. stringLen |= (uint64(b) & 0x7F) << shift
  1780. if b < 0x80 {
  1781. break
  1782. }
  1783. }
  1784. intStringLen := int(stringLen)
  1785. if intStringLen < 0 {
  1786. return ErrInvalidLengthApi
  1787. }
  1788. postIndex := iNdEx + intStringLen
  1789. if postIndex > l {
  1790. return io.ErrUnexpectedEOF
  1791. }
  1792. m.Message = string(dAtA[iNdEx:postIndex])
  1793. iNdEx = postIndex
  1794. default:
  1795. iNdEx = preIndex
  1796. skippy, err := skipApi(dAtA[iNdEx:])
  1797. if err != nil {
  1798. return err
  1799. }
  1800. if skippy < 0 {
  1801. return ErrInvalidLengthApi
  1802. }
  1803. if (iNdEx + skippy) > l {
  1804. return io.ErrUnexpectedEOF
  1805. }
  1806. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1807. iNdEx += skippy
  1808. }
  1809. }
  1810. if iNdEx > l {
  1811. return io.ErrUnexpectedEOF
  1812. }
  1813. return nil
  1814. }
  1815. func skipApi(dAtA []byte) (n int, err error) {
  1816. l := len(dAtA)
  1817. iNdEx := 0
  1818. for iNdEx < l {
  1819. var wire uint64
  1820. for shift := uint(0); ; shift += 7 {
  1821. if shift >= 64 {
  1822. return 0, ErrIntOverflowApi
  1823. }
  1824. if iNdEx >= l {
  1825. return 0, io.ErrUnexpectedEOF
  1826. }
  1827. b := dAtA[iNdEx]
  1828. iNdEx++
  1829. wire |= (uint64(b) & 0x7F) << shift
  1830. if b < 0x80 {
  1831. break
  1832. }
  1833. }
  1834. wireType := int(wire & 0x7)
  1835. switch wireType {
  1836. case 0:
  1837. for shift := uint(0); ; shift += 7 {
  1838. if shift >= 64 {
  1839. return 0, ErrIntOverflowApi
  1840. }
  1841. if iNdEx >= l {
  1842. return 0, io.ErrUnexpectedEOF
  1843. }
  1844. iNdEx++
  1845. if dAtA[iNdEx-1] < 0x80 {
  1846. break
  1847. }
  1848. }
  1849. return iNdEx, nil
  1850. case 1:
  1851. iNdEx += 8
  1852. return iNdEx, nil
  1853. case 2:
  1854. var length int
  1855. for shift := uint(0); ; shift += 7 {
  1856. if shift >= 64 {
  1857. return 0, ErrIntOverflowApi
  1858. }
  1859. if iNdEx >= l {
  1860. return 0, io.ErrUnexpectedEOF
  1861. }
  1862. b := dAtA[iNdEx]
  1863. iNdEx++
  1864. length |= (int(b) & 0x7F) << shift
  1865. if b < 0x80 {
  1866. break
  1867. }
  1868. }
  1869. iNdEx += length
  1870. if length < 0 {
  1871. return 0, ErrInvalidLengthApi
  1872. }
  1873. return iNdEx, nil
  1874. case 3:
  1875. for {
  1876. var innerWire uint64
  1877. var start int = iNdEx
  1878. for shift := uint(0); ; shift += 7 {
  1879. if shift >= 64 {
  1880. return 0, ErrIntOverflowApi
  1881. }
  1882. if iNdEx >= l {
  1883. return 0, io.ErrUnexpectedEOF
  1884. }
  1885. b := dAtA[iNdEx]
  1886. iNdEx++
  1887. innerWire |= (uint64(b) & 0x7F) << shift
  1888. if b < 0x80 {
  1889. break
  1890. }
  1891. }
  1892. innerWireType := int(innerWire & 0x7)
  1893. if innerWireType == 4 {
  1894. break
  1895. }
  1896. next, err := skipApi(dAtA[start:])
  1897. if err != nil {
  1898. return 0, err
  1899. }
  1900. iNdEx = start + next
  1901. }
  1902. return iNdEx, nil
  1903. case 4:
  1904. return iNdEx, nil
  1905. case 5:
  1906. iNdEx += 4
  1907. return iNdEx, nil
  1908. default:
  1909. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1910. }
  1911. }
  1912. panic("unreachable")
  1913. }
  1914. var (
  1915. ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
  1916. ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
  1917. )
  1918. func init() {
  1919. proto.RegisterFile("app/service/live/live-dm/api/grpc/v1/api.proto", fileDescriptor_api_3321a2d8a2cdd312)
  1920. }
  1921. var fileDescriptor_api_3321a2d8a2cdd312 = []byte{
  1922. // 720 bytes of a gzipped FileDescriptorProto
  1923. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xcd, 0x6e, 0xec, 0x34,
  1924. 0x18, 0x55, 0xe6, 0x3f, 0xdf, 0xb4, 0xa5, 0x18, 0x84, 0xa2, 0x52, 0xc6, 0xc1, 0x50, 0x34, 0x2c,
  1925. 0x3a, 0xa1, 0xa5, 0xab, 0x4a, 0x95, 0xe8, 0x88, 0x0a, 0x24, 0xda, 0x8d, 0xd9, 0xb1, 0xcb, 0x4c,
  1926. 0x3c, 0xc1, 0x22, 0x7f, 0xb5, 0x93, 0x48, 0x45, 0xbc, 0x03, 0xaf, 0xc5, 0x0a, 0xdd, 0x27, 0xc8,
  1927. 0xbd, 0xea, 0x72, 0x96, 0x79, 0x82, 0x2b, 0xdb, 0xc9, 0xcc, 0xf4, 0xb6, 0xdd, 0xdc, 0x8d, 0x13,
  1928. 0x7f, 0xe7, 0x9c, 0xef, 0xc7, 0x39, 0x0e, 0xcc, 0xfc, 0x2c, 0xf3, 0x24, 0x13, 0x25, 0x5f, 0x32,
  1929. 0x2f, 0xe2, 0xa5, 0x59, 0x4e, 0x83, 0xd8, 0xf3, 0x33, 0xee, 0x85, 0x22, 0x5b, 0x7a, 0xe5, 0x99,
  1930. 0x7a, 0x9f, 0x65, 0x22, 0xcd, 0x53, 0x74, 0xa0, 0xe0, 0x99, 0x5a, 0x82, 0x78, 0x56, 0x9e, 0x1d,
  1931. 0x9d, 0x86, 0x3c, 0xff, 0xb3, 0x58, 0xcc, 0x96, 0x69, 0xec, 0x85, 0x69, 0x98, 0x7a, 0x9a, 0xb6,
  1932. 0x28, 0x56, 0x7a, 0xa7, 0x37, 0xfa, 0xcd, 0xc8, 0xc9, 0xff, 0x3d, 0x80, 0xdf, 0x59, 0x12, 0xdc,
  1933. 0xc9, 0x90, 0xb2, 0x7b, 0x74, 0x01, 0xdd, 0x82, 0x07, 0x8e, 0xe5, 0x5a, 0xd3, 0xee, 0x9c, 0xd4,
  1934. 0x15, 0x9e, 0xac, 0x52, 0x11, 0x5f, 0x92, 0x82, 0x07, 0xc4, 0x2d, 0xfd, 0x88, 0x07, 0x7e, 0xce,
  1935. 0x2e, 0x89, 0x60, 0xf7, 0x05, 0x17, 0x2c, 0x20, 0x54, 0xd1, 0xd1, 0x15, 0x0c, 0x44, 0x9a, 0xc6,
  1936. 0x3c, 0x70, 0x3a, 0x5a, 0x78, 0x52, 0x57, 0xf8, 0x6b, 0x23, 0x34, 0xf1, 0x97, 0xb5, 0x8d, 0x48,
  1937. 0x15, 0x8d, 0x65, 0xe8, 0x74, 0x5d, 0x6b, 0x6a, 0xef, 0x16, 0x8d, 0x65, 0xf8, 0x4a, 0xd1, 0x58,
  1938. 0x86, 0xc8, 0x85, 0xae, 0x48, 0x02, 0xa7, 0xa7, 0x55, 0x07, 0x75, 0x85, 0xa1, 0xa9, 0x98, 0x28,
  1939. 0x86, 0x48, 0x02, 0xf4, 0x15, 0x74, 0x78, 0xe6, 0xf4, 0x35, 0x61, 0xbf, 0xae, 0xb0, 0x6d, 0x08,
  1940. 0x3c, 0x23, 0xb4, 0xc3, 0x33, 0xf4, 0x13, 0x8c, 0x56, 0x69, 0x92, 0x4b, 0xfe, 0x37, 0x73, 0x86,
  1941. 0xba, 0xef, 0x6f, 0xeb, 0x0a, 0xbb, 0x86, 0xd4, 0x22, 0xbb, 0x0d, 0x84, 0x39, 0xbb, 0xfa, 0x81,
  1942. 0xd0, 0x8d, 0x0a, 0x5d, 0x40, 0x2f, 0x4e, 0x03, 0xe6, 0x8c, 0xb4, 0xda, 0xad, 0x2b, 0x7c, 0xdc,
  1943. 0x74, 0x9e, 0x06, 0x2f, 0x29, 0x35, 0x1b, 0x79, 0x30, 0xca, 0x22, 0x3f, 0x57, 0x4c, 0xc7, 0xd6,
  1944. 0xcd, 0x7d, 0x56, 0x57, 0xf8, 0x13, 0xa3, 0x6c, 0x11, 0x42, 0x37, 0x24, 0x74, 0x05, 0xc3, 0x58,
  1945. 0x86, 0xf9, 0x43, 0xc6, 0x1c, 0xd0, 0x95, 0xbe, 0xa9, 0x2b, 0x8c, 0x37, 0x67, 0xa4, 0x80, 0x17,
  1946. 0x8a, 0xb5, 0x1a, 0xf4, 0x3d, 0x0c, 0x16, 0xc5, 0x62, 0x11, 0x31, 0x67, 0xac, 0xd5, 0x9f, 0xd6,
  1947. 0x15, 0xde, 0x37, 0x6a, 0x13, 0x27, 0xb4, 0x21, 0xa0, 0x6b, 0x18, 0x44, 0x7e, 0xb2, 0x64, 0xc2,
  1948. 0xd9, 0x73, 0xad, 0xe9, 0xf8, 0xfc, 0x8b, 0xd9, 0x53, 0x77, 0xcd, 0x0c, 0xba, 0x9b, 0xc2, 0x44,
  1949. 0x08, 0x6d, 0x84, 0xe4, 0xad, 0xd5, 0xe6, 0x40, 0xdf, 0x41, 0x7f, 0x51, 0x94, 0x8d, 0x9d, 0xec,
  1950. 0xf9, 0x61, 0x5d, 0xe1, 0xbd, 0xb6, 0x6e, 0xc9, 0x03, 0x42, 0x0d, 0x8c, 0xce, 0xc1, 0x2e, 0x24,
  1951. 0x13, 0xd7, 0x21, 0x4b, 0x72, 0xed, 0x20, 0x7b, 0xfe, 0x79, 0x5d, 0xe1, 0xc3, 0xc6, 0x7a, 0x2d,
  1952. 0x44, 0xe8, 0x96, 0xa6, 0x72, 0x0b, 0xb6, 0x62, 0xa2, 0x71, 0xcd, 0x4e, 0x6e, 0x1d, 0x26, 0xd4,
  1953. 0xc0, 0x6a, 0xf8, 0x65, 0x9a, 0xfe, 0xc5, 0x59, 0x63, 0x94, 0x9d, 0xce, 0x4d, 0x9c, 0xd0, 0x86,
  1954. 0x60, 0xda, 0xe5, 0x51, 0xa0, 0x1d, 0xd3, 0x7d, 0xda, 0x2e, 0x8f, 0x4c, 0xbb, 0xea, 0xf9, 0x0f,
  1955. 0x8c, 0x37, 0x37, 0x46, 0x66, 0xe8, 0x04, 0x86, 0x5c, 0xde, 0xf2, 0x98, 0xe7, 0x7a, 0xce, 0xd1,
  1956. 0x7c, 0xbc, 0xae, 0xf0, 0x90, 0xcb, 0x48, 0x85, 0x68, 0x8b, 0xa1, 0x29, 0x8c, 0x74, 0xe4, 0x4e,
  1957. 0x86, 0xcd, 0x8c, 0x7b, 0xeb, 0x0a, 0x9b, 0x58, 0x2c, 0x43, 0xba, 0x41, 0xd1, 0x31, 0xf4, 0x96,
  1958. 0xca, 0x55, 0x6a, 0xb2, 0xfe, 0x7c, 0xb4, 0xae, 0xb0, 0xde, 0x53, 0xbd, 0x92, 0xdf, 0x00, 0x7e,
  1959. 0xe5, 0x32, 0x4f, 0xc5, 0x83, 0xba, 0xaf, 0xdb, 0x9b, 0x67, 0x7d, 0xc4, 0xcd, 0x23, 0xb7, 0x30,
  1960. 0xde, 0x24, 0x93, 0x99, 0xaa, 0xac, 0x00, 0xc7, 0x72, 0xbb, 0x53, 0xdb, 0x54, 0x56, 0x7b, 0xaa,
  1961. 0x57, 0x84, 0xa1, 0xef, 0x07, 0x31, 0x4f, 0x9c, 0x8e, 0x86, 0xed, 0x75, 0x85, 0x4d, 0x80, 0x9a,
  1962. 0x07, 0x21, 0x30, 0xb8, 0x11, 0x42, 0x8d, 0xe0, 0xc0, 0x30, 0x66, 0x52, 0xfa, 0x21, 0x33, 0xdf,
  1963. 0x9e, 0xb6, 0xdb, 0xf3, 0x7f, 0x2d, 0xe8, 0xfc, 0x7c, 0x87, 0xe6, 0x30, 0x6c, 0xce, 0x10, 0x1d,
  1964. 0x7d, 0xe8, 0xb1, 0xed, 0xef, 0xe8, 0xe8, 0xcb, 0x57, 0x31, 0x99, 0xa1, 0x1b, 0x80, 0x5f, 0x58,
  1965. 0xde, 0xf4, 0xff, 0x3c, 0xcd, 0xf6, 0x94, 0x9e, 0xa7, 0xd9, 0x19, 0x7a, 0x7e, 0xf8, 0xdf, 0xe3,
  1966. 0xc4, 0x7a, 0xf3, 0x38, 0xb1, 0xde, 0x3d, 0x4e, 0xac, 0x3f, 0x3a, 0xe5, 0xd9, 0x62, 0xa0, 0x7f,
  1967. 0x8d, 0x3f, 0xbe, 0x0f, 0x00, 0x00, 0xff, 0xff, 0xb3, 0xad, 0x8d, 0xfc, 0x8b, 0x05, 0x00, 0x00,
  1968. }