dm.pb.go 27 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: api/http/v1/dm.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 io "io"
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  18. type SendDMReq struct {
  19. Roomid int64 `protobuf:"varint,1,opt,name=roomid,proto3" json:"roomid,omitempty" form:"roomid" validate:"required"`
  20. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty" form:"msg" validate:"required"`
  21. Rnd string `protobuf:"bytes,3,opt,name=rnd,proto3" json:"rnd,omitempty" form:"rnd" validate:"required"`
  22. Fontsize int64 `protobuf:"varint,4,opt,name=fontsize,proto3" json:"fontsize,omitempty" form:"fontsize" validate:"required"`
  23. Mode int64 `protobuf:"varint,5,opt,name=mode,proto3" json:"mode,omitempty" form:"mode" validate:"gte=0"`
  24. Color int64 `protobuf:"varint,6,opt,name=color,proto3" json:"color,omitempty" form:"color" validate:"required"`
  25. Bubble int64 `protobuf:"varint,7,opt,name=bubble,proto3" json:"bubble,omitempty" form:"bubble"`
  26. Anti string `protobuf:"bytes,9,opt,name=anti,proto3" json:"anti,omitempty" form:"_anti"`
  27. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  28. XXX_unrecognized []byte `json:"-"`
  29. XXX_sizecache int32 `json:"-"`
  30. }
  31. func (m *SendDMReq) Reset() { *m = SendDMReq{} }
  32. func (m *SendDMReq) String() string { return proto.CompactTextString(m) }
  33. func (*SendDMReq) ProtoMessage() {}
  34. func (*SendDMReq) Descriptor() ([]byte, []int) {
  35. return fileDescriptor_dm_f006b3830b382246, []int{0}
  36. }
  37. func (m *SendDMReq) XXX_Unmarshal(b []byte) error {
  38. return m.Unmarshal(b)
  39. }
  40. func (m *SendDMReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  41. if deterministic {
  42. return xxx_messageInfo_SendDMReq.Marshal(b, m, deterministic)
  43. } else {
  44. b = b[:cap(b)]
  45. n, err := m.MarshalTo(b)
  46. if err != nil {
  47. return nil, err
  48. }
  49. return b[:n], nil
  50. }
  51. }
  52. func (dst *SendDMReq) XXX_Merge(src proto.Message) {
  53. xxx_messageInfo_SendDMReq.Merge(dst, src)
  54. }
  55. func (m *SendDMReq) XXX_Size() int {
  56. return m.Size()
  57. }
  58. func (m *SendDMReq) XXX_DiscardUnknown() {
  59. xxx_messageInfo_SendDMReq.DiscardUnknown(m)
  60. }
  61. var xxx_messageInfo_SendDMReq proto.InternalMessageInfo
  62. func (m *SendDMReq) GetRoomid() int64 {
  63. if m != nil {
  64. return m.Roomid
  65. }
  66. return 0
  67. }
  68. func (m *SendDMReq) GetMsg() string {
  69. if m != nil {
  70. return m.Msg
  71. }
  72. return ""
  73. }
  74. func (m *SendDMReq) GetRnd() string {
  75. if m != nil {
  76. return m.Rnd
  77. }
  78. return ""
  79. }
  80. func (m *SendDMReq) GetFontsize() int64 {
  81. if m != nil {
  82. return m.Fontsize
  83. }
  84. return 0
  85. }
  86. func (m *SendDMReq) GetMode() int64 {
  87. if m != nil {
  88. return m.Mode
  89. }
  90. return 0
  91. }
  92. func (m *SendDMReq) GetColor() int64 {
  93. if m != nil {
  94. return m.Color
  95. }
  96. return 0
  97. }
  98. func (m *SendDMReq) GetBubble() int64 {
  99. if m != nil {
  100. return m.Bubble
  101. }
  102. return 0
  103. }
  104. func (m *SendDMReq) GetAnti() string {
  105. if m != nil {
  106. return m.Anti
  107. }
  108. return ""
  109. }
  110. type SendMsgResp struct {
  111. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  112. XXX_unrecognized []byte `json:"-"`
  113. XXX_sizecache int32 `json:"-"`
  114. }
  115. func (m *SendMsgResp) Reset() { *m = SendMsgResp{} }
  116. func (m *SendMsgResp) String() string { return proto.CompactTextString(m) }
  117. func (*SendMsgResp) ProtoMessage() {}
  118. func (*SendMsgResp) Descriptor() ([]byte, []int) {
  119. return fileDescriptor_dm_f006b3830b382246, []int{1}
  120. }
  121. func (m *SendMsgResp) XXX_Unmarshal(b []byte) error {
  122. return m.Unmarshal(b)
  123. }
  124. func (m *SendMsgResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  125. if deterministic {
  126. return xxx_messageInfo_SendMsgResp.Marshal(b, m, deterministic)
  127. } else {
  128. b = b[:cap(b)]
  129. n, err := m.MarshalTo(b)
  130. if err != nil {
  131. return nil, err
  132. }
  133. return b[:n], nil
  134. }
  135. }
  136. func (dst *SendMsgResp) XXX_Merge(src proto.Message) {
  137. xxx_messageInfo_SendMsgResp.Merge(dst, src)
  138. }
  139. func (m *SendMsgResp) XXX_Size() int {
  140. return m.Size()
  141. }
  142. func (m *SendMsgResp) XXX_DiscardUnknown() {
  143. xxx_messageInfo_SendMsgResp.DiscardUnknown(m)
  144. }
  145. var xxx_messageInfo_SendMsgResp proto.InternalMessageInfo
  146. type HistoryReq struct {
  147. Roomid int64 `protobuf:"varint,1,opt,name=roomid,proto3" json:"roomid,omitempty" form:"roomid" validate:"required"`
  148. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  149. XXX_unrecognized []byte `json:"-"`
  150. XXX_sizecache int32 `json:"-"`
  151. }
  152. func (m *HistoryReq) Reset() { *m = HistoryReq{} }
  153. func (m *HistoryReq) String() string { return proto.CompactTextString(m) }
  154. func (*HistoryReq) ProtoMessage() {}
  155. func (*HistoryReq) Descriptor() ([]byte, []int) {
  156. return fileDescriptor_dm_f006b3830b382246, []int{2}
  157. }
  158. func (m *HistoryReq) XXX_Unmarshal(b []byte) error {
  159. return m.Unmarshal(b)
  160. }
  161. func (m *HistoryReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  162. if deterministic {
  163. return xxx_messageInfo_HistoryReq.Marshal(b, m, deterministic)
  164. } else {
  165. b = b[:cap(b)]
  166. n, err := m.MarshalTo(b)
  167. if err != nil {
  168. return nil, err
  169. }
  170. return b[:n], nil
  171. }
  172. }
  173. func (dst *HistoryReq) XXX_Merge(src proto.Message) {
  174. xxx_messageInfo_HistoryReq.Merge(dst, src)
  175. }
  176. func (m *HistoryReq) XXX_Size() int {
  177. return m.Size()
  178. }
  179. func (m *HistoryReq) XXX_DiscardUnknown() {
  180. xxx_messageInfo_HistoryReq.DiscardUnknown(m)
  181. }
  182. var xxx_messageInfo_HistoryReq proto.InternalMessageInfo
  183. func (m *HistoryReq) GetRoomid() int64 {
  184. if m != nil {
  185. return m.Roomid
  186. }
  187. return 0
  188. }
  189. type HistoryResp struct {
  190. Room []string `protobuf:"bytes,1,rep,name=Room" json:"Room,omitempty"`
  191. Admin []string `protobuf:"bytes,2,rep,name=Admin" json:"Admin,omitempty"`
  192. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  193. XXX_unrecognized []byte `json:"-"`
  194. XXX_sizecache int32 `json:"-"`
  195. }
  196. func (m *HistoryResp) Reset() { *m = HistoryResp{} }
  197. func (m *HistoryResp) String() string { return proto.CompactTextString(m) }
  198. func (*HistoryResp) ProtoMessage() {}
  199. func (*HistoryResp) Descriptor() ([]byte, []int) {
  200. return fileDescriptor_dm_f006b3830b382246, []int{3}
  201. }
  202. func (m *HistoryResp) XXX_Unmarshal(b []byte) error {
  203. return m.Unmarshal(b)
  204. }
  205. func (m *HistoryResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  206. if deterministic {
  207. return xxx_messageInfo_HistoryResp.Marshal(b, m, deterministic)
  208. } else {
  209. b = b[:cap(b)]
  210. n, err := m.MarshalTo(b)
  211. if err != nil {
  212. return nil, err
  213. }
  214. return b[:n], nil
  215. }
  216. }
  217. func (dst *HistoryResp) XXX_Merge(src proto.Message) {
  218. xxx_messageInfo_HistoryResp.Merge(dst, src)
  219. }
  220. func (m *HistoryResp) XXX_Size() int {
  221. return m.Size()
  222. }
  223. func (m *HistoryResp) XXX_DiscardUnknown() {
  224. xxx_messageInfo_HistoryResp.DiscardUnknown(m)
  225. }
  226. var xxx_messageInfo_HistoryResp proto.InternalMessageInfo
  227. func (m *HistoryResp) GetRoom() []string {
  228. if m != nil {
  229. return m.Room
  230. }
  231. return nil
  232. }
  233. func (m *HistoryResp) GetAdmin() []string {
  234. if m != nil {
  235. return m.Admin
  236. }
  237. return nil
  238. }
  239. func init() {
  240. proto.RegisterType((*SendDMReq)(nil), "live.dminterface.v1.SendDMReq")
  241. proto.RegisterType((*SendMsgResp)(nil), "live.dminterface.v1.SendMsgResp")
  242. proto.RegisterType((*HistoryReq)(nil), "live.dminterface.v1.HistoryReq")
  243. proto.RegisterType((*HistoryResp)(nil), "live.dminterface.v1.HistoryResp")
  244. }
  245. func (m *SendDMReq) Marshal() (dAtA []byte, err error) {
  246. size := m.Size()
  247. dAtA = make([]byte, size)
  248. n, err := m.MarshalTo(dAtA)
  249. if err != nil {
  250. return nil, err
  251. }
  252. return dAtA[:n], nil
  253. }
  254. func (m *SendDMReq) MarshalTo(dAtA []byte) (int, error) {
  255. var i int
  256. _ = i
  257. var l int
  258. _ = l
  259. if m.Roomid != 0 {
  260. dAtA[i] = 0x8
  261. i++
  262. i = encodeVarintDm(dAtA, i, uint64(m.Roomid))
  263. }
  264. if len(m.Msg) > 0 {
  265. dAtA[i] = 0x12
  266. i++
  267. i = encodeVarintDm(dAtA, i, uint64(len(m.Msg)))
  268. i += copy(dAtA[i:], m.Msg)
  269. }
  270. if len(m.Rnd) > 0 {
  271. dAtA[i] = 0x1a
  272. i++
  273. i = encodeVarintDm(dAtA, i, uint64(len(m.Rnd)))
  274. i += copy(dAtA[i:], m.Rnd)
  275. }
  276. if m.Fontsize != 0 {
  277. dAtA[i] = 0x20
  278. i++
  279. i = encodeVarintDm(dAtA, i, uint64(m.Fontsize))
  280. }
  281. if m.Mode != 0 {
  282. dAtA[i] = 0x28
  283. i++
  284. i = encodeVarintDm(dAtA, i, uint64(m.Mode))
  285. }
  286. if m.Color != 0 {
  287. dAtA[i] = 0x30
  288. i++
  289. i = encodeVarintDm(dAtA, i, uint64(m.Color))
  290. }
  291. if m.Bubble != 0 {
  292. dAtA[i] = 0x38
  293. i++
  294. i = encodeVarintDm(dAtA, i, uint64(m.Bubble))
  295. }
  296. if len(m.Anti) > 0 {
  297. dAtA[i] = 0x4a
  298. i++
  299. i = encodeVarintDm(dAtA, i, uint64(len(m.Anti)))
  300. i += copy(dAtA[i:], m.Anti)
  301. }
  302. if m.XXX_unrecognized != nil {
  303. i += copy(dAtA[i:], m.XXX_unrecognized)
  304. }
  305. return i, nil
  306. }
  307. func (m *SendMsgResp) Marshal() (dAtA []byte, err error) {
  308. size := m.Size()
  309. dAtA = make([]byte, size)
  310. n, err := m.MarshalTo(dAtA)
  311. if err != nil {
  312. return nil, err
  313. }
  314. return dAtA[:n], nil
  315. }
  316. func (m *SendMsgResp) MarshalTo(dAtA []byte) (int, error) {
  317. var i int
  318. _ = i
  319. var l int
  320. _ = l
  321. if m.XXX_unrecognized != nil {
  322. i += copy(dAtA[i:], m.XXX_unrecognized)
  323. }
  324. return i, nil
  325. }
  326. func (m *HistoryReq) Marshal() (dAtA []byte, err error) {
  327. size := m.Size()
  328. dAtA = make([]byte, size)
  329. n, err := m.MarshalTo(dAtA)
  330. if err != nil {
  331. return nil, err
  332. }
  333. return dAtA[:n], nil
  334. }
  335. func (m *HistoryReq) MarshalTo(dAtA []byte) (int, error) {
  336. var i int
  337. _ = i
  338. var l int
  339. _ = l
  340. if m.Roomid != 0 {
  341. dAtA[i] = 0x8
  342. i++
  343. i = encodeVarintDm(dAtA, i, uint64(m.Roomid))
  344. }
  345. if m.XXX_unrecognized != nil {
  346. i += copy(dAtA[i:], m.XXX_unrecognized)
  347. }
  348. return i, nil
  349. }
  350. func (m *HistoryResp) Marshal() (dAtA []byte, err error) {
  351. size := m.Size()
  352. dAtA = make([]byte, size)
  353. n, err := m.MarshalTo(dAtA)
  354. if err != nil {
  355. return nil, err
  356. }
  357. return dAtA[:n], nil
  358. }
  359. func (m *HistoryResp) MarshalTo(dAtA []byte) (int, error) {
  360. var i int
  361. _ = i
  362. var l int
  363. _ = l
  364. if len(m.Room) > 0 {
  365. for _, s := range m.Room {
  366. dAtA[i] = 0xa
  367. i++
  368. l = len(s)
  369. for l >= 1<<7 {
  370. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  371. l >>= 7
  372. i++
  373. }
  374. dAtA[i] = uint8(l)
  375. i++
  376. i += copy(dAtA[i:], s)
  377. }
  378. }
  379. if len(m.Admin) > 0 {
  380. for _, s := range m.Admin {
  381. dAtA[i] = 0x12
  382. i++
  383. l = len(s)
  384. for l >= 1<<7 {
  385. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  386. l >>= 7
  387. i++
  388. }
  389. dAtA[i] = uint8(l)
  390. i++
  391. i += copy(dAtA[i:], s)
  392. }
  393. }
  394. if m.XXX_unrecognized != nil {
  395. i += copy(dAtA[i:], m.XXX_unrecognized)
  396. }
  397. return i, nil
  398. }
  399. func encodeVarintDm(dAtA []byte, offset int, v uint64) int {
  400. for v >= 1<<7 {
  401. dAtA[offset] = uint8(v&0x7f | 0x80)
  402. v >>= 7
  403. offset++
  404. }
  405. dAtA[offset] = uint8(v)
  406. return offset + 1
  407. }
  408. func (m *SendDMReq) Size() (n int) {
  409. if m == nil {
  410. return 0
  411. }
  412. var l int
  413. _ = l
  414. if m.Roomid != 0 {
  415. n += 1 + sovDm(uint64(m.Roomid))
  416. }
  417. l = len(m.Msg)
  418. if l > 0 {
  419. n += 1 + l + sovDm(uint64(l))
  420. }
  421. l = len(m.Rnd)
  422. if l > 0 {
  423. n += 1 + l + sovDm(uint64(l))
  424. }
  425. if m.Fontsize != 0 {
  426. n += 1 + sovDm(uint64(m.Fontsize))
  427. }
  428. if m.Mode != 0 {
  429. n += 1 + sovDm(uint64(m.Mode))
  430. }
  431. if m.Color != 0 {
  432. n += 1 + sovDm(uint64(m.Color))
  433. }
  434. if m.Bubble != 0 {
  435. n += 1 + sovDm(uint64(m.Bubble))
  436. }
  437. l = len(m.Anti)
  438. if l > 0 {
  439. n += 1 + l + sovDm(uint64(l))
  440. }
  441. if m.XXX_unrecognized != nil {
  442. n += len(m.XXX_unrecognized)
  443. }
  444. return n
  445. }
  446. func (m *SendMsgResp) Size() (n int) {
  447. if m == nil {
  448. return 0
  449. }
  450. var l int
  451. _ = l
  452. if m.XXX_unrecognized != nil {
  453. n += len(m.XXX_unrecognized)
  454. }
  455. return n
  456. }
  457. func (m *HistoryReq) Size() (n int) {
  458. if m == nil {
  459. return 0
  460. }
  461. var l int
  462. _ = l
  463. if m.Roomid != 0 {
  464. n += 1 + sovDm(uint64(m.Roomid))
  465. }
  466. if m.XXX_unrecognized != nil {
  467. n += len(m.XXX_unrecognized)
  468. }
  469. return n
  470. }
  471. func (m *HistoryResp) Size() (n int) {
  472. if m == nil {
  473. return 0
  474. }
  475. var l int
  476. _ = l
  477. if len(m.Room) > 0 {
  478. for _, s := range m.Room {
  479. l = len(s)
  480. n += 1 + l + sovDm(uint64(l))
  481. }
  482. }
  483. if len(m.Admin) > 0 {
  484. for _, s := range m.Admin {
  485. l = len(s)
  486. n += 1 + l + sovDm(uint64(l))
  487. }
  488. }
  489. if m.XXX_unrecognized != nil {
  490. n += len(m.XXX_unrecognized)
  491. }
  492. return n
  493. }
  494. func sovDm(x uint64) (n int) {
  495. for {
  496. n++
  497. x >>= 7
  498. if x == 0 {
  499. break
  500. }
  501. }
  502. return n
  503. }
  504. func sozDm(x uint64) (n int) {
  505. return sovDm(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  506. }
  507. func (m *SendDMReq) Unmarshal(dAtA []byte) error {
  508. l := len(dAtA)
  509. iNdEx := 0
  510. for iNdEx < l {
  511. preIndex := iNdEx
  512. var wire uint64
  513. for shift := uint(0); ; shift += 7 {
  514. if shift >= 64 {
  515. return ErrIntOverflowDm
  516. }
  517. if iNdEx >= l {
  518. return io.ErrUnexpectedEOF
  519. }
  520. b := dAtA[iNdEx]
  521. iNdEx++
  522. wire |= (uint64(b) & 0x7F) << shift
  523. if b < 0x80 {
  524. break
  525. }
  526. }
  527. fieldNum := int32(wire >> 3)
  528. wireType := int(wire & 0x7)
  529. if wireType == 4 {
  530. return fmt.Errorf("proto: SendDMReq: wiretype end group for non-group")
  531. }
  532. if fieldNum <= 0 {
  533. return fmt.Errorf("proto: SendDMReq: illegal tag %d (wire type %d)", fieldNum, wire)
  534. }
  535. switch fieldNum {
  536. case 1:
  537. if wireType != 0 {
  538. return fmt.Errorf("proto: wrong wireType = %d for field Roomid", wireType)
  539. }
  540. m.Roomid = 0
  541. for shift := uint(0); ; shift += 7 {
  542. if shift >= 64 {
  543. return ErrIntOverflowDm
  544. }
  545. if iNdEx >= l {
  546. return io.ErrUnexpectedEOF
  547. }
  548. b := dAtA[iNdEx]
  549. iNdEx++
  550. m.Roomid |= (int64(b) & 0x7F) << shift
  551. if b < 0x80 {
  552. break
  553. }
  554. }
  555. case 2:
  556. if wireType != 2 {
  557. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  558. }
  559. var stringLen uint64
  560. for shift := uint(0); ; shift += 7 {
  561. if shift >= 64 {
  562. return ErrIntOverflowDm
  563. }
  564. if iNdEx >= l {
  565. return io.ErrUnexpectedEOF
  566. }
  567. b := dAtA[iNdEx]
  568. iNdEx++
  569. stringLen |= (uint64(b) & 0x7F) << shift
  570. if b < 0x80 {
  571. break
  572. }
  573. }
  574. intStringLen := int(stringLen)
  575. if intStringLen < 0 {
  576. return ErrInvalidLengthDm
  577. }
  578. postIndex := iNdEx + intStringLen
  579. if postIndex > l {
  580. return io.ErrUnexpectedEOF
  581. }
  582. m.Msg = string(dAtA[iNdEx:postIndex])
  583. iNdEx = postIndex
  584. case 3:
  585. if wireType != 2 {
  586. return fmt.Errorf("proto: wrong wireType = %d for field Rnd", wireType)
  587. }
  588. var stringLen uint64
  589. for shift := uint(0); ; shift += 7 {
  590. if shift >= 64 {
  591. return ErrIntOverflowDm
  592. }
  593. if iNdEx >= l {
  594. return io.ErrUnexpectedEOF
  595. }
  596. b := dAtA[iNdEx]
  597. iNdEx++
  598. stringLen |= (uint64(b) & 0x7F) << shift
  599. if b < 0x80 {
  600. break
  601. }
  602. }
  603. intStringLen := int(stringLen)
  604. if intStringLen < 0 {
  605. return ErrInvalidLengthDm
  606. }
  607. postIndex := iNdEx + intStringLen
  608. if postIndex > l {
  609. return io.ErrUnexpectedEOF
  610. }
  611. m.Rnd = string(dAtA[iNdEx:postIndex])
  612. iNdEx = postIndex
  613. case 4:
  614. if wireType != 0 {
  615. return fmt.Errorf("proto: wrong wireType = %d for field Fontsize", wireType)
  616. }
  617. m.Fontsize = 0
  618. for shift := uint(0); ; shift += 7 {
  619. if shift >= 64 {
  620. return ErrIntOverflowDm
  621. }
  622. if iNdEx >= l {
  623. return io.ErrUnexpectedEOF
  624. }
  625. b := dAtA[iNdEx]
  626. iNdEx++
  627. m.Fontsize |= (int64(b) & 0x7F) << shift
  628. if b < 0x80 {
  629. break
  630. }
  631. }
  632. case 5:
  633. if wireType != 0 {
  634. return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType)
  635. }
  636. m.Mode = 0
  637. for shift := uint(0); ; shift += 7 {
  638. if shift >= 64 {
  639. return ErrIntOverflowDm
  640. }
  641. if iNdEx >= l {
  642. return io.ErrUnexpectedEOF
  643. }
  644. b := dAtA[iNdEx]
  645. iNdEx++
  646. m.Mode |= (int64(b) & 0x7F) << shift
  647. if b < 0x80 {
  648. break
  649. }
  650. }
  651. case 6:
  652. if wireType != 0 {
  653. return fmt.Errorf("proto: wrong wireType = %d for field Color", wireType)
  654. }
  655. m.Color = 0
  656. for shift := uint(0); ; shift += 7 {
  657. if shift >= 64 {
  658. return ErrIntOverflowDm
  659. }
  660. if iNdEx >= l {
  661. return io.ErrUnexpectedEOF
  662. }
  663. b := dAtA[iNdEx]
  664. iNdEx++
  665. m.Color |= (int64(b) & 0x7F) << shift
  666. if b < 0x80 {
  667. break
  668. }
  669. }
  670. case 7:
  671. if wireType != 0 {
  672. return fmt.Errorf("proto: wrong wireType = %d for field Bubble", wireType)
  673. }
  674. m.Bubble = 0
  675. for shift := uint(0); ; shift += 7 {
  676. if shift >= 64 {
  677. return ErrIntOverflowDm
  678. }
  679. if iNdEx >= l {
  680. return io.ErrUnexpectedEOF
  681. }
  682. b := dAtA[iNdEx]
  683. iNdEx++
  684. m.Bubble |= (int64(b) & 0x7F) << shift
  685. if b < 0x80 {
  686. break
  687. }
  688. }
  689. case 9:
  690. if wireType != 2 {
  691. return fmt.Errorf("proto: wrong wireType = %d for field Anti", wireType)
  692. }
  693. var stringLen uint64
  694. for shift := uint(0); ; shift += 7 {
  695. if shift >= 64 {
  696. return ErrIntOverflowDm
  697. }
  698. if iNdEx >= l {
  699. return io.ErrUnexpectedEOF
  700. }
  701. b := dAtA[iNdEx]
  702. iNdEx++
  703. stringLen |= (uint64(b) & 0x7F) << shift
  704. if b < 0x80 {
  705. break
  706. }
  707. }
  708. intStringLen := int(stringLen)
  709. if intStringLen < 0 {
  710. return ErrInvalidLengthDm
  711. }
  712. postIndex := iNdEx + intStringLen
  713. if postIndex > l {
  714. return io.ErrUnexpectedEOF
  715. }
  716. m.Anti = string(dAtA[iNdEx:postIndex])
  717. iNdEx = postIndex
  718. default:
  719. iNdEx = preIndex
  720. skippy, err := skipDm(dAtA[iNdEx:])
  721. if err != nil {
  722. return err
  723. }
  724. if skippy < 0 {
  725. return ErrInvalidLengthDm
  726. }
  727. if (iNdEx + skippy) > l {
  728. return io.ErrUnexpectedEOF
  729. }
  730. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  731. iNdEx += skippy
  732. }
  733. }
  734. if iNdEx > l {
  735. return io.ErrUnexpectedEOF
  736. }
  737. return nil
  738. }
  739. func (m *SendMsgResp) Unmarshal(dAtA []byte) error {
  740. l := len(dAtA)
  741. iNdEx := 0
  742. for iNdEx < l {
  743. preIndex := iNdEx
  744. var wire uint64
  745. for shift := uint(0); ; shift += 7 {
  746. if shift >= 64 {
  747. return ErrIntOverflowDm
  748. }
  749. if iNdEx >= l {
  750. return io.ErrUnexpectedEOF
  751. }
  752. b := dAtA[iNdEx]
  753. iNdEx++
  754. wire |= (uint64(b) & 0x7F) << shift
  755. if b < 0x80 {
  756. break
  757. }
  758. }
  759. fieldNum := int32(wire >> 3)
  760. wireType := int(wire & 0x7)
  761. if wireType == 4 {
  762. return fmt.Errorf("proto: SendMsgResp: wiretype end group for non-group")
  763. }
  764. if fieldNum <= 0 {
  765. return fmt.Errorf("proto: SendMsgResp: illegal tag %d (wire type %d)", fieldNum, wire)
  766. }
  767. switch fieldNum {
  768. default:
  769. iNdEx = preIndex
  770. skippy, err := skipDm(dAtA[iNdEx:])
  771. if err != nil {
  772. return err
  773. }
  774. if skippy < 0 {
  775. return ErrInvalidLengthDm
  776. }
  777. if (iNdEx + skippy) > l {
  778. return io.ErrUnexpectedEOF
  779. }
  780. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  781. iNdEx += skippy
  782. }
  783. }
  784. if iNdEx > l {
  785. return io.ErrUnexpectedEOF
  786. }
  787. return nil
  788. }
  789. func (m *HistoryReq) Unmarshal(dAtA []byte) error {
  790. l := len(dAtA)
  791. iNdEx := 0
  792. for iNdEx < l {
  793. preIndex := iNdEx
  794. var wire uint64
  795. for shift := uint(0); ; shift += 7 {
  796. if shift >= 64 {
  797. return ErrIntOverflowDm
  798. }
  799. if iNdEx >= l {
  800. return io.ErrUnexpectedEOF
  801. }
  802. b := dAtA[iNdEx]
  803. iNdEx++
  804. wire |= (uint64(b) & 0x7F) << shift
  805. if b < 0x80 {
  806. break
  807. }
  808. }
  809. fieldNum := int32(wire >> 3)
  810. wireType := int(wire & 0x7)
  811. if wireType == 4 {
  812. return fmt.Errorf("proto: HistoryReq: wiretype end group for non-group")
  813. }
  814. if fieldNum <= 0 {
  815. return fmt.Errorf("proto: HistoryReq: illegal tag %d (wire type %d)", fieldNum, wire)
  816. }
  817. switch fieldNum {
  818. case 1:
  819. if wireType != 0 {
  820. return fmt.Errorf("proto: wrong wireType = %d for field Roomid", wireType)
  821. }
  822. m.Roomid = 0
  823. for shift := uint(0); ; shift += 7 {
  824. if shift >= 64 {
  825. return ErrIntOverflowDm
  826. }
  827. if iNdEx >= l {
  828. return io.ErrUnexpectedEOF
  829. }
  830. b := dAtA[iNdEx]
  831. iNdEx++
  832. m.Roomid |= (int64(b) & 0x7F) << shift
  833. if b < 0x80 {
  834. break
  835. }
  836. }
  837. default:
  838. iNdEx = preIndex
  839. skippy, err := skipDm(dAtA[iNdEx:])
  840. if err != nil {
  841. return err
  842. }
  843. if skippy < 0 {
  844. return ErrInvalidLengthDm
  845. }
  846. if (iNdEx + skippy) > l {
  847. return io.ErrUnexpectedEOF
  848. }
  849. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  850. iNdEx += skippy
  851. }
  852. }
  853. if iNdEx > l {
  854. return io.ErrUnexpectedEOF
  855. }
  856. return nil
  857. }
  858. func (m *HistoryResp) Unmarshal(dAtA []byte) error {
  859. l := len(dAtA)
  860. iNdEx := 0
  861. for iNdEx < l {
  862. preIndex := iNdEx
  863. var wire uint64
  864. for shift := uint(0); ; shift += 7 {
  865. if shift >= 64 {
  866. return ErrIntOverflowDm
  867. }
  868. if iNdEx >= l {
  869. return io.ErrUnexpectedEOF
  870. }
  871. b := dAtA[iNdEx]
  872. iNdEx++
  873. wire |= (uint64(b) & 0x7F) << shift
  874. if b < 0x80 {
  875. break
  876. }
  877. }
  878. fieldNum := int32(wire >> 3)
  879. wireType := int(wire & 0x7)
  880. if wireType == 4 {
  881. return fmt.Errorf("proto: HistoryResp: wiretype end group for non-group")
  882. }
  883. if fieldNum <= 0 {
  884. return fmt.Errorf("proto: HistoryResp: illegal tag %d (wire type %d)", fieldNum, wire)
  885. }
  886. switch fieldNum {
  887. case 1:
  888. if wireType != 2 {
  889. return fmt.Errorf("proto: wrong wireType = %d for field Room", wireType)
  890. }
  891. var stringLen uint64
  892. for shift := uint(0); ; shift += 7 {
  893. if shift >= 64 {
  894. return ErrIntOverflowDm
  895. }
  896. if iNdEx >= l {
  897. return io.ErrUnexpectedEOF
  898. }
  899. b := dAtA[iNdEx]
  900. iNdEx++
  901. stringLen |= (uint64(b) & 0x7F) << shift
  902. if b < 0x80 {
  903. break
  904. }
  905. }
  906. intStringLen := int(stringLen)
  907. if intStringLen < 0 {
  908. return ErrInvalidLengthDm
  909. }
  910. postIndex := iNdEx + intStringLen
  911. if postIndex > l {
  912. return io.ErrUnexpectedEOF
  913. }
  914. m.Room = append(m.Room, string(dAtA[iNdEx:postIndex]))
  915. iNdEx = postIndex
  916. case 2:
  917. if wireType != 2 {
  918. return fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType)
  919. }
  920. var stringLen uint64
  921. for shift := uint(0); ; shift += 7 {
  922. if shift >= 64 {
  923. return ErrIntOverflowDm
  924. }
  925. if iNdEx >= l {
  926. return io.ErrUnexpectedEOF
  927. }
  928. b := dAtA[iNdEx]
  929. iNdEx++
  930. stringLen |= (uint64(b) & 0x7F) << shift
  931. if b < 0x80 {
  932. break
  933. }
  934. }
  935. intStringLen := int(stringLen)
  936. if intStringLen < 0 {
  937. return ErrInvalidLengthDm
  938. }
  939. postIndex := iNdEx + intStringLen
  940. if postIndex > l {
  941. return io.ErrUnexpectedEOF
  942. }
  943. m.Admin = append(m.Admin, string(dAtA[iNdEx:postIndex]))
  944. iNdEx = postIndex
  945. default:
  946. iNdEx = preIndex
  947. skippy, err := skipDm(dAtA[iNdEx:])
  948. if err != nil {
  949. return err
  950. }
  951. if skippy < 0 {
  952. return ErrInvalidLengthDm
  953. }
  954. if (iNdEx + skippy) > l {
  955. return io.ErrUnexpectedEOF
  956. }
  957. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  958. iNdEx += skippy
  959. }
  960. }
  961. if iNdEx > l {
  962. return io.ErrUnexpectedEOF
  963. }
  964. return nil
  965. }
  966. func skipDm(dAtA []byte) (n int, err error) {
  967. l := len(dAtA)
  968. iNdEx := 0
  969. for iNdEx < l {
  970. var wire uint64
  971. for shift := uint(0); ; shift += 7 {
  972. if shift >= 64 {
  973. return 0, ErrIntOverflowDm
  974. }
  975. if iNdEx >= l {
  976. return 0, io.ErrUnexpectedEOF
  977. }
  978. b := dAtA[iNdEx]
  979. iNdEx++
  980. wire |= (uint64(b) & 0x7F) << shift
  981. if b < 0x80 {
  982. break
  983. }
  984. }
  985. wireType := int(wire & 0x7)
  986. switch wireType {
  987. case 0:
  988. for shift := uint(0); ; shift += 7 {
  989. if shift >= 64 {
  990. return 0, ErrIntOverflowDm
  991. }
  992. if iNdEx >= l {
  993. return 0, io.ErrUnexpectedEOF
  994. }
  995. iNdEx++
  996. if dAtA[iNdEx-1] < 0x80 {
  997. break
  998. }
  999. }
  1000. return iNdEx, nil
  1001. case 1:
  1002. iNdEx += 8
  1003. return iNdEx, nil
  1004. case 2:
  1005. var length int
  1006. for shift := uint(0); ; shift += 7 {
  1007. if shift >= 64 {
  1008. return 0, ErrIntOverflowDm
  1009. }
  1010. if iNdEx >= l {
  1011. return 0, io.ErrUnexpectedEOF
  1012. }
  1013. b := dAtA[iNdEx]
  1014. iNdEx++
  1015. length |= (int(b) & 0x7F) << shift
  1016. if b < 0x80 {
  1017. break
  1018. }
  1019. }
  1020. iNdEx += length
  1021. if length < 0 {
  1022. return 0, ErrInvalidLengthDm
  1023. }
  1024. return iNdEx, nil
  1025. case 3:
  1026. for {
  1027. var innerWire uint64
  1028. var start int = iNdEx
  1029. for shift := uint(0); ; shift += 7 {
  1030. if shift >= 64 {
  1031. return 0, ErrIntOverflowDm
  1032. }
  1033. if iNdEx >= l {
  1034. return 0, io.ErrUnexpectedEOF
  1035. }
  1036. b := dAtA[iNdEx]
  1037. iNdEx++
  1038. innerWire |= (uint64(b) & 0x7F) << shift
  1039. if b < 0x80 {
  1040. break
  1041. }
  1042. }
  1043. innerWireType := int(innerWire & 0x7)
  1044. if innerWireType == 4 {
  1045. break
  1046. }
  1047. next, err := skipDm(dAtA[start:])
  1048. if err != nil {
  1049. return 0, err
  1050. }
  1051. iNdEx = start + next
  1052. }
  1053. return iNdEx, nil
  1054. case 4:
  1055. return iNdEx, nil
  1056. case 5:
  1057. iNdEx += 4
  1058. return iNdEx, nil
  1059. default:
  1060. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1061. }
  1062. }
  1063. panic("unreachable")
  1064. }
  1065. var (
  1066. ErrInvalidLengthDm = fmt.Errorf("proto: negative length found during unmarshaling")
  1067. ErrIntOverflowDm = fmt.Errorf("proto: integer overflow")
  1068. )
  1069. func init() { proto.RegisterFile("api/http/v1/dm.proto", fileDescriptor_dm_f006b3830b382246) }
  1070. var fileDescriptor_dm_f006b3830b382246 = []byte{
  1071. // 465 bytes of a gzipped FileDescriptorProto
  1072. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0xcd, 0x8a, 0xd4, 0x40,
  1073. 0x10, 0xc7, 0xc9, 0x7c, 0xad, 0x53, 0xeb, 0xc2, 0xda, 0xee, 0xa1, 0x59, 0x24, 0x89, 0xed, 0x8a,
  1074. 0xe3, 0xc1, 0xc4, 0xd1, 0x05, 0x61, 0x60, 0x0f, 0x8e, 0x0b, 0x0a, 0xcb, 0x20, 0xc4, 0x9b, 0x17,
  1075. 0x49, 0xa6, 0x7b, 0xb2, 0x0d, 0xd3, 0xe9, 0x6c, 0xa7, 0x27, 0xa0, 0x8f, 0xe3, 0x83, 0x78, 0xf6,
  1076. 0xe8, 0x13, 0x04, 0x99, 0x47, 0xc8, 0x13, 0x48, 0xba, 0xe3, 0xf8, 0x41, 0xe6, 0xb4, 0xb7, 0xae,
  1077. 0x7f, 0xfd, 0x7f, 0xd5, 0x55, 0xe9, 0x0a, 0x9c, 0xc4, 0x39, 0x0f, 0xaf, 0xb5, 0xce, 0xc3, 0x72,
  1078. 0x1a, 0x52, 0x11, 0xe4, 0x4a, 0x6a, 0x89, 0xee, 0xaf, 0x79, 0xc9, 0x02, 0x2a, 0x78, 0xa6, 0x99,
  1079. 0x5a, 0xc5, 0x4b, 0x16, 0x94, 0xd3, 0xd3, 0x67, 0x29, 0xd7, 0xd7, 0x9b, 0x24, 0x58, 0x4a, 0x11,
  1080. 0xa6, 0x32, 0x95, 0xa1, 0xf1, 0x26, 0x9b, 0x95, 0x89, 0x4c, 0x60, 0x4e, 0xb6, 0x06, 0xf9, 0xd6,
  1081. 0x87, 0xf1, 0x07, 0x96, 0xd1, 0xcb, 0x45, 0xc4, 0x6e, 0xd0, 0x05, 0x8c, 0x94, 0x94, 0x82, 0x53,
  1082. 0xec, 0xf8, 0xce, 0xa4, 0x3f, 0x7f, 0x5c, 0x57, 0xde, 0xc3, 0x95, 0x54, 0x62, 0x46, 0xac, 0x4e,
  1083. 0xfc, 0x32, 0x5e, 0x73, 0x1a, 0x6b, 0x36, 0x23, 0x8a, 0xdd, 0x6c, 0xb8, 0x62, 0x94, 0x44, 0x2d,
  1084. 0x84, 0xce, 0xa1, 0x2f, 0x8a, 0x14, 0xf7, 0x7c, 0x67, 0x32, 0x9e, 0x93, 0xba, 0xf2, 0x5c, 0xcb,
  1085. 0x8a, 0x22, 0xed, 0x06, 0x1b, 0x7b, 0x43, 0xa9, 0x8c, 0xe2, 0xfe, 0xff, 0x94, 0xca, 0xf6, 0x5c,
  1086. 0xd7, 0xd8, 0xd1, 0x1b, 0xb8, 0xb3, 0x92, 0x99, 0x2e, 0xf8, 0x17, 0x86, 0x07, 0xa6, 0xd9, 0x27,
  1087. 0x75, 0xe5, 0x3d, 0xb2, 0xe8, 0xef, 0x4c, 0x37, 0xbf, 0x03, 0xd1, 0x39, 0x0c, 0x84, 0xa4, 0x0c,
  1088. 0x0f, 0x4d, 0x01, 0xbf, 0xae, 0xbc, 0x07, 0x6d, 0xc7, 0x92, 0xfe, 0x03, 0xa7, 0x9a, 0x5d, 0x3c,
  1089. 0x27, 0x91, 0x71, 0xa3, 0x19, 0x0c, 0x97, 0x72, 0x2d, 0x15, 0x1e, 0x19, 0xec, 0xac, 0xae, 0x3c,
  1090. 0xdf, 0x62, 0x46, 0xee, 0xbe, 0xd4, 0x22, 0xe8, 0x29, 0x8c, 0x92, 0x4d, 0x92, 0xac, 0x19, 0x3e,
  1091. 0x30, 0xf0, 0xbd, 0xba, 0xf2, 0x8e, 0x2c, 0x6c, 0x75, 0x12, 0xb5, 0x06, 0x74, 0x06, 0x83, 0x38,
  1092. 0xd3, 0x1c, 0x8f, 0xcd, 0x87, 0x39, 0xae, 0x2b, 0xef, 0xae, 0x35, 0x7e, 0x6a, 0x64, 0x12, 0x99,
  1093. 0x2c, 0x39, 0x82, 0xc3, 0xe6, 0xfd, 0x16, 0x45, 0x1a, 0xb1, 0x22, 0x27, 0x57, 0x00, 0xef, 0x78,
  1094. 0xa1, 0xa5, 0xfa, 0x7c, 0xfb, 0xf7, 0x24, 0xaf, 0xe0, 0x70, 0x57, 0xac, 0xc8, 0x11, 0x82, 0x41,
  1095. 0x24, 0xa5, 0xc0, 0x8e, 0xdf, 0x9f, 0x8c, 0x23, 0x73, 0x46, 0x27, 0x30, 0x7c, 0xdd, 0x6c, 0x20,
  1096. 0xee, 0x19, 0xd1, 0x06, 0x2f, 0xbe, 0x3a, 0xd0, 0xbb, 0x5c, 0xa0, 0x2b, 0x38, 0x68, 0x7b, 0x43,
  1097. 0x6e, 0xd0, 0xb1, 0xac, 0xc1, 0x6e, 0xf3, 0x4e, 0xfd, 0xbd, 0xf9, 0x76, 0x32, 0xf4, 0x1e, 0xe0,
  1098. 0x2d, 0xd3, 0x6d, 0x3f, 0xc8, 0xeb, 0xf4, 0xff, 0x19, 0x7d, 0x4f, 0xc1, 0xbf, 0xc6, 0x99, 0x1f,
  1099. 0x7f, 0xdf, 0xba, 0xce, 0x8f, 0xad, 0xeb, 0xfc, 0xdc, 0xba, 0xce, 0xc7, 0x5e, 0x39, 0x4d, 0x46,
  1100. 0xe6, 0x9f, 0x78, 0xf9, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x83, 0xbc, 0x55, 0xf4, 0x6f, 0x03, 0x00,
  1101. 0x00,
  1102. }