SilentMng.pb.go 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: v1/SilentMng.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 SilentMngIsBlockUserReq struct {
  19. //
  20. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
  21. //
  22. Roomid int64 `protobuf:"varint,2,opt,name=roomid,proto3" json:"roomid"`
  23. // 1表示弹幕禁言,2表示房间信息
  24. Type int64 `protobuf:"varint,3,opt,name=type,proto3" json:"type"`
  25. }
  26. func (m *SilentMngIsBlockUserReq) Reset() { *m = SilentMngIsBlockUserReq{} }
  27. func (m *SilentMngIsBlockUserReq) String() string { return proto.CompactTextString(m) }
  28. func (*SilentMngIsBlockUserReq) ProtoMessage() {}
  29. func (*SilentMngIsBlockUserReq) Descriptor() ([]byte, []int) {
  30. return fileDescriptor_SilentMng_e4a1d159043b9556, []int{0}
  31. }
  32. func (m *SilentMngIsBlockUserReq) XXX_Unmarshal(b []byte) error {
  33. return m.Unmarshal(b)
  34. }
  35. func (m *SilentMngIsBlockUserReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  36. if deterministic {
  37. return xxx_messageInfo_SilentMngIsBlockUserReq.Marshal(b, m, deterministic)
  38. } else {
  39. b = b[:cap(b)]
  40. n, err := m.MarshalTo(b)
  41. if err != nil {
  42. return nil, err
  43. }
  44. return b[:n], nil
  45. }
  46. }
  47. func (dst *SilentMngIsBlockUserReq) XXX_Merge(src proto.Message) {
  48. xxx_messageInfo_SilentMngIsBlockUserReq.Merge(dst, src)
  49. }
  50. func (m *SilentMngIsBlockUserReq) XXX_Size() int {
  51. return m.Size()
  52. }
  53. func (m *SilentMngIsBlockUserReq) XXX_DiscardUnknown() {
  54. xxx_messageInfo_SilentMngIsBlockUserReq.DiscardUnknown(m)
  55. }
  56. var xxx_messageInfo_SilentMngIsBlockUserReq proto.InternalMessageInfo
  57. func (m *SilentMngIsBlockUserReq) GetUid() int64 {
  58. if m != nil {
  59. return m.Uid
  60. }
  61. return 0
  62. }
  63. func (m *SilentMngIsBlockUserReq) GetRoomid() int64 {
  64. if m != nil {
  65. return m.Roomid
  66. }
  67. return 0
  68. }
  69. func (m *SilentMngIsBlockUserReq) GetType() int64 {
  70. if m != nil {
  71. return m.Type
  72. }
  73. return 0
  74. }
  75. type SilentMngIsBlockUserResp struct {
  76. //
  77. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
  78. //
  79. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
  80. //
  81. Data *SilentMngIsBlockUserResp_Data `protobuf:"bytes,3,opt,name=data" json:"data"`
  82. }
  83. func (m *SilentMngIsBlockUserResp) Reset() { *m = SilentMngIsBlockUserResp{} }
  84. func (m *SilentMngIsBlockUserResp) String() string { return proto.CompactTextString(m) }
  85. func (*SilentMngIsBlockUserResp) ProtoMessage() {}
  86. func (*SilentMngIsBlockUserResp) Descriptor() ([]byte, []int) {
  87. return fileDescriptor_SilentMng_e4a1d159043b9556, []int{1}
  88. }
  89. func (m *SilentMngIsBlockUserResp) XXX_Unmarshal(b []byte) error {
  90. return m.Unmarshal(b)
  91. }
  92. func (m *SilentMngIsBlockUserResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  93. if deterministic {
  94. return xxx_messageInfo_SilentMngIsBlockUserResp.Marshal(b, m, deterministic)
  95. } else {
  96. b = b[:cap(b)]
  97. n, err := m.MarshalTo(b)
  98. if err != nil {
  99. return nil, err
  100. }
  101. return b[:n], nil
  102. }
  103. }
  104. func (dst *SilentMngIsBlockUserResp) XXX_Merge(src proto.Message) {
  105. xxx_messageInfo_SilentMngIsBlockUserResp.Merge(dst, src)
  106. }
  107. func (m *SilentMngIsBlockUserResp) XXX_Size() int {
  108. return m.Size()
  109. }
  110. func (m *SilentMngIsBlockUserResp) XXX_DiscardUnknown() {
  111. xxx_messageInfo_SilentMngIsBlockUserResp.DiscardUnknown(m)
  112. }
  113. var xxx_messageInfo_SilentMngIsBlockUserResp proto.InternalMessageInfo
  114. func (m *SilentMngIsBlockUserResp) GetCode() int64 {
  115. if m != nil {
  116. return m.Code
  117. }
  118. return 0
  119. }
  120. func (m *SilentMngIsBlockUserResp) GetMsg() string {
  121. if m != nil {
  122. return m.Msg
  123. }
  124. return ""
  125. }
  126. func (m *SilentMngIsBlockUserResp) GetData() *SilentMngIsBlockUserResp_Data {
  127. if m != nil {
  128. return m.Data
  129. }
  130. return nil
  131. }
  132. type SilentMngIsBlockUserResp_Data struct {
  133. //
  134. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
  135. //
  136. Roomid int64 `protobuf:"varint,2,opt,name=roomid,proto3" json:"roomid"`
  137. //
  138. IsBlockUser bool `protobuf:"varint,3,opt,name=is_block_user,json=isBlockUser,proto3" json:"is_block_user"`
  139. //
  140. Type int64 `protobuf:"varint,4,opt,name=type,proto3" json:"type"`
  141. // 禁言到期时间戳
  142. BlockEndTime int64 `protobuf:"varint,5,opt,name=block_end_time,json=blockEndTime,proto3" json:"block_end_time"`
  143. }
  144. func (m *SilentMngIsBlockUserResp_Data) Reset() { *m = SilentMngIsBlockUserResp_Data{} }
  145. func (m *SilentMngIsBlockUserResp_Data) String() string { return proto.CompactTextString(m) }
  146. func (*SilentMngIsBlockUserResp_Data) ProtoMessage() {}
  147. func (*SilentMngIsBlockUserResp_Data) Descriptor() ([]byte, []int) {
  148. return fileDescriptor_SilentMng_e4a1d159043b9556, []int{1, 0}
  149. }
  150. func (m *SilentMngIsBlockUserResp_Data) XXX_Unmarshal(b []byte) error {
  151. return m.Unmarshal(b)
  152. }
  153. func (m *SilentMngIsBlockUserResp_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  154. if deterministic {
  155. return xxx_messageInfo_SilentMngIsBlockUserResp_Data.Marshal(b, m, deterministic)
  156. } else {
  157. b = b[:cap(b)]
  158. n, err := m.MarshalTo(b)
  159. if err != nil {
  160. return nil, err
  161. }
  162. return b[:n], nil
  163. }
  164. }
  165. func (dst *SilentMngIsBlockUserResp_Data) XXX_Merge(src proto.Message) {
  166. xxx_messageInfo_SilentMngIsBlockUserResp_Data.Merge(dst, src)
  167. }
  168. func (m *SilentMngIsBlockUserResp_Data) XXX_Size() int {
  169. return m.Size()
  170. }
  171. func (m *SilentMngIsBlockUserResp_Data) XXX_DiscardUnknown() {
  172. xxx_messageInfo_SilentMngIsBlockUserResp_Data.DiscardUnknown(m)
  173. }
  174. var xxx_messageInfo_SilentMngIsBlockUserResp_Data proto.InternalMessageInfo
  175. func (m *SilentMngIsBlockUserResp_Data) GetUid() int64 {
  176. if m != nil {
  177. return m.Uid
  178. }
  179. return 0
  180. }
  181. func (m *SilentMngIsBlockUserResp_Data) GetRoomid() int64 {
  182. if m != nil {
  183. return m.Roomid
  184. }
  185. return 0
  186. }
  187. func (m *SilentMngIsBlockUserResp_Data) GetIsBlockUser() bool {
  188. if m != nil {
  189. return m.IsBlockUser
  190. }
  191. return false
  192. }
  193. func (m *SilentMngIsBlockUserResp_Data) GetType() int64 {
  194. if m != nil {
  195. return m.Type
  196. }
  197. return 0
  198. }
  199. func (m *SilentMngIsBlockUserResp_Data) GetBlockEndTime() int64 {
  200. if m != nil {
  201. return m.BlockEndTime
  202. }
  203. return 0
  204. }
  205. func init() {
  206. proto.RegisterType((*SilentMngIsBlockUserReq)(nil), "banned_service.v1.SilentMngIsBlockUserReq")
  207. proto.RegisterType((*SilentMngIsBlockUserResp)(nil), "banned_service.v1.SilentMngIsBlockUserResp")
  208. proto.RegisterType((*SilentMngIsBlockUserResp_Data)(nil), "banned_service.v1.SilentMngIsBlockUserResp.Data")
  209. }
  210. func (m *SilentMngIsBlockUserReq) Marshal() (dAtA []byte, err error) {
  211. size := m.Size()
  212. dAtA = make([]byte, size)
  213. n, err := m.MarshalTo(dAtA)
  214. if err != nil {
  215. return nil, err
  216. }
  217. return dAtA[:n], nil
  218. }
  219. func (m *SilentMngIsBlockUserReq) MarshalTo(dAtA []byte) (int, error) {
  220. var i int
  221. _ = i
  222. var l int
  223. _ = l
  224. if m.Uid != 0 {
  225. dAtA[i] = 0x8
  226. i++
  227. i = encodeVarintSilentMng(dAtA, i, uint64(m.Uid))
  228. }
  229. if m.Roomid != 0 {
  230. dAtA[i] = 0x10
  231. i++
  232. i = encodeVarintSilentMng(dAtA, i, uint64(m.Roomid))
  233. }
  234. if m.Type != 0 {
  235. dAtA[i] = 0x18
  236. i++
  237. i = encodeVarintSilentMng(dAtA, i, uint64(m.Type))
  238. }
  239. return i, nil
  240. }
  241. func (m *SilentMngIsBlockUserResp) Marshal() (dAtA []byte, err error) {
  242. size := m.Size()
  243. dAtA = make([]byte, size)
  244. n, err := m.MarshalTo(dAtA)
  245. if err != nil {
  246. return nil, err
  247. }
  248. return dAtA[:n], nil
  249. }
  250. func (m *SilentMngIsBlockUserResp) MarshalTo(dAtA []byte) (int, error) {
  251. var i int
  252. _ = i
  253. var l int
  254. _ = l
  255. if m.Code != 0 {
  256. dAtA[i] = 0x8
  257. i++
  258. i = encodeVarintSilentMng(dAtA, i, uint64(m.Code))
  259. }
  260. if len(m.Msg) > 0 {
  261. dAtA[i] = 0x12
  262. i++
  263. i = encodeVarintSilentMng(dAtA, i, uint64(len(m.Msg)))
  264. i += copy(dAtA[i:], m.Msg)
  265. }
  266. if m.Data != nil {
  267. dAtA[i] = 0x1a
  268. i++
  269. i = encodeVarintSilentMng(dAtA, i, uint64(m.Data.Size()))
  270. n1, err := m.Data.MarshalTo(dAtA[i:])
  271. if err != nil {
  272. return 0, err
  273. }
  274. i += n1
  275. }
  276. return i, nil
  277. }
  278. func (m *SilentMngIsBlockUserResp_Data) Marshal() (dAtA []byte, err error) {
  279. size := m.Size()
  280. dAtA = make([]byte, size)
  281. n, err := m.MarshalTo(dAtA)
  282. if err != nil {
  283. return nil, err
  284. }
  285. return dAtA[:n], nil
  286. }
  287. func (m *SilentMngIsBlockUserResp_Data) MarshalTo(dAtA []byte) (int, error) {
  288. var i int
  289. _ = i
  290. var l int
  291. _ = l
  292. if m.Uid != 0 {
  293. dAtA[i] = 0x8
  294. i++
  295. i = encodeVarintSilentMng(dAtA, i, uint64(m.Uid))
  296. }
  297. if m.Roomid != 0 {
  298. dAtA[i] = 0x10
  299. i++
  300. i = encodeVarintSilentMng(dAtA, i, uint64(m.Roomid))
  301. }
  302. if m.IsBlockUser {
  303. dAtA[i] = 0x18
  304. i++
  305. if m.IsBlockUser {
  306. dAtA[i] = 1
  307. } else {
  308. dAtA[i] = 0
  309. }
  310. i++
  311. }
  312. if m.Type != 0 {
  313. dAtA[i] = 0x20
  314. i++
  315. i = encodeVarintSilentMng(dAtA, i, uint64(m.Type))
  316. }
  317. if m.BlockEndTime != 0 {
  318. dAtA[i] = 0x28
  319. i++
  320. i = encodeVarintSilentMng(dAtA, i, uint64(m.BlockEndTime))
  321. }
  322. return i, nil
  323. }
  324. func encodeVarintSilentMng(dAtA []byte, offset int, v uint64) int {
  325. for v >= 1<<7 {
  326. dAtA[offset] = uint8(v&0x7f | 0x80)
  327. v >>= 7
  328. offset++
  329. }
  330. dAtA[offset] = uint8(v)
  331. return offset + 1
  332. }
  333. func (m *SilentMngIsBlockUserReq) Size() (n int) {
  334. if m == nil {
  335. return 0
  336. }
  337. var l int
  338. _ = l
  339. if m.Uid != 0 {
  340. n += 1 + sovSilentMng(uint64(m.Uid))
  341. }
  342. if m.Roomid != 0 {
  343. n += 1 + sovSilentMng(uint64(m.Roomid))
  344. }
  345. if m.Type != 0 {
  346. n += 1 + sovSilentMng(uint64(m.Type))
  347. }
  348. return n
  349. }
  350. func (m *SilentMngIsBlockUserResp) Size() (n int) {
  351. if m == nil {
  352. return 0
  353. }
  354. var l int
  355. _ = l
  356. if m.Code != 0 {
  357. n += 1 + sovSilentMng(uint64(m.Code))
  358. }
  359. l = len(m.Msg)
  360. if l > 0 {
  361. n += 1 + l + sovSilentMng(uint64(l))
  362. }
  363. if m.Data != nil {
  364. l = m.Data.Size()
  365. n += 1 + l + sovSilentMng(uint64(l))
  366. }
  367. return n
  368. }
  369. func (m *SilentMngIsBlockUserResp_Data) Size() (n int) {
  370. if m == nil {
  371. return 0
  372. }
  373. var l int
  374. _ = l
  375. if m.Uid != 0 {
  376. n += 1 + sovSilentMng(uint64(m.Uid))
  377. }
  378. if m.Roomid != 0 {
  379. n += 1 + sovSilentMng(uint64(m.Roomid))
  380. }
  381. if m.IsBlockUser {
  382. n += 2
  383. }
  384. if m.Type != 0 {
  385. n += 1 + sovSilentMng(uint64(m.Type))
  386. }
  387. if m.BlockEndTime != 0 {
  388. n += 1 + sovSilentMng(uint64(m.BlockEndTime))
  389. }
  390. return n
  391. }
  392. func sovSilentMng(x uint64) (n int) {
  393. for {
  394. n++
  395. x >>= 7
  396. if x == 0 {
  397. break
  398. }
  399. }
  400. return n
  401. }
  402. func sozSilentMng(x uint64) (n int) {
  403. return sovSilentMng(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  404. }
  405. func (m *SilentMngIsBlockUserReq) Unmarshal(dAtA []byte) error {
  406. l := len(dAtA)
  407. iNdEx := 0
  408. for iNdEx < l {
  409. preIndex := iNdEx
  410. var wire uint64
  411. for shift := uint(0); ; shift += 7 {
  412. if shift >= 64 {
  413. return ErrIntOverflowSilentMng
  414. }
  415. if iNdEx >= l {
  416. return io.ErrUnexpectedEOF
  417. }
  418. b := dAtA[iNdEx]
  419. iNdEx++
  420. wire |= (uint64(b) & 0x7F) << shift
  421. if b < 0x80 {
  422. break
  423. }
  424. }
  425. fieldNum := int32(wire >> 3)
  426. wireType := int(wire & 0x7)
  427. if wireType == 4 {
  428. return fmt.Errorf("proto: SilentMngIsBlockUserReq: wiretype end group for non-group")
  429. }
  430. if fieldNum <= 0 {
  431. return fmt.Errorf("proto: SilentMngIsBlockUserReq: illegal tag %d (wire type %d)", fieldNum, wire)
  432. }
  433. switch fieldNum {
  434. case 1:
  435. if wireType != 0 {
  436. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  437. }
  438. m.Uid = 0
  439. for shift := uint(0); ; shift += 7 {
  440. if shift >= 64 {
  441. return ErrIntOverflowSilentMng
  442. }
  443. if iNdEx >= l {
  444. return io.ErrUnexpectedEOF
  445. }
  446. b := dAtA[iNdEx]
  447. iNdEx++
  448. m.Uid |= (int64(b) & 0x7F) << shift
  449. if b < 0x80 {
  450. break
  451. }
  452. }
  453. case 2:
  454. if wireType != 0 {
  455. return fmt.Errorf("proto: wrong wireType = %d for field Roomid", wireType)
  456. }
  457. m.Roomid = 0
  458. for shift := uint(0); ; shift += 7 {
  459. if shift >= 64 {
  460. return ErrIntOverflowSilentMng
  461. }
  462. if iNdEx >= l {
  463. return io.ErrUnexpectedEOF
  464. }
  465. b := dAtA[iNdEx]
  466. iNdEx++
  467. m.Roomid |= (int64(b) & 0x7F) << shift
  468. if b < 0x80 {
  469. break
  470. }
  471. }
  472. case 3:
  473. if wireType != 0 {
  474. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  475. }
  476. m.Type = 0
  477. for shift := uint(0); ; shift += 7 {
  478. if shift >= 64 {
  479. return ErrIntOverflowSilentMng
  480. }
  481. if iNdEx >= l {
  482. return io.ErrUnexpectedEOF
  483. }
  484. b := dAtA[iNdEx]
  485. iNdEx++
  486. m.Type |= (int64(b) & 0x7F) << shift
  487. if b < 0x80 {
  488. break
  489. }
  490. }
  491. default:
  492. iNdEx = preIndex
  493. skippy, err := skipSilentMng(dAtA[iNdEx:])
  494. if err != nil {
  495. return err
  496. }
  497. if skippy < 0 {
  498. return ErrInvalidLengthSilentMng
  499. }
  500. if (iNdEx + skippy) > l {
  501. return io.ErrUnexpectedEOF
  502. }
  503. iNdEx += skippy
  504. }
  505. }
  506. if iNdEx > l {
  507. return io.ErrUnexpectedEOF
  508. }
  509. return nil
  510. }
  511. func (m *SilentMngIsBlockUserResp) Unmarshal(dAtA []byte) error {
  512. l := len(dAtA)
  513. iNdEx := 0
  514. for iNdEx < l {
  515. preIndex := iNdEx
  516. var wire uint64
  517. for shift := uint(0); ; shift += 7 {
  518. if shift >= 64 {
  519. return ErrIntOverflowSilentMng
  520. }
  521. if iNdEx >= l {
  522. return io.ErrUnexpectedEOF
  523. }
  524. b := dAtA[iNdEx]
  525. iNdEx++
  526. wire |= (uint64(b) & 0x7F) << shift
  527. if b < 0x80 {
  528. break
  529. }
  530. }
  531. fieldNum := int32(wire >> 3)
  532. wireType := int(wire & 0x7)
  533. if wireType == 4 {
  534. return fmt.Errorf("proto: SilentMngIsBlockUserResp: wiretype end group for non-group")
  535. }
  536. if fieldNum <= 0 {
  537. return fmt.Errorf("proto: SilentMngIsBlockUserResp: illegal tag %d (wire type %d)", fieldNum, wire)
  538. }
  539. switch fieldNum {
  540. case 1:
  541. if wireType != 0 {
  542. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  543. }
  544. m.Code = 0
  545. for shift := uint(0); ; shift += 7 {
  546. if shift >= 64 {
  547. return ErrIntOverflowSilentMng
  548. }
  549. if iNdEx >= l {
  550. return io.ErrUnexpectedEOF
  551. }
  552. b := dAtA[iNdEx]
  553. iNdEx++
  554. m.Code |= (int64(b) & 0x7F) << shift
  555. if b < 0x80 {
  556. break
  557. }
  558. }
  559. case 2:
  560. if wireType != 2 {
  561. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  562. }
  563. var stringLen uint64
  564. for shift := uint(0); ; shift += 7 {
  565. if shift >= 64 {
  566. return ErrIntOverflowSilentMng
  567. }
  568. if iNdEx >= l {
  569. return io.ErrUnexpectedEOF
  570. }
  571. b := dAtA[iNdEx]
  572. iNdEx++
  573. stringLen |= (uint64(b) & 0x7F) << shift
  574. if b < 0x80 {
  575. break
  576. }
  577. }
  578. intStringLen := int(stringLen)
  579. if intStringLen < 0 {
  580. return ErrInvalidLengthSilentMng
  581. }
  582. postIndex := iNdEx + intStringLen
  583. if postIndex > l {
  584. return io.ErrUnexpectedEOF
  585. }
  586. m.Msg = string(dAtA[iNdEx:postIndex])
  587. iNdEx = postIndex
  588. case 3:
  589. if wireType != 2 {
  590. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  591. }
  592. var msglen int
  593. for shift := uint(0); ; shift += 7 {
  594. if shift >= 64 {
  595. return ErrIntOverflowSilentMng
  596. }
  597. if iNdEx >= l {
  598. return io.ErrUnexpectedEOF
  599. }
  600. b := dAtA[iNdEx]
  601. iNdEx++
  602. msglen |= (int(b) & 0x7F) << shift
  603. if b < 0x80 {
  604. break
  605. }
  606. }
  607. if msglen < 0 {
  608. return ErrInvalidLengthSilentMng
  609. }
  610. postIndex := iNdEx + msglen
  611. if postIndex > l {
  612. return io.ErrUnexpectedEOF
  613. }
  614. if m.Data == nil {
  615. m.Data = &SilentMngIsBlockUserResp_Data{}
  616. }
  617. if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  618. return err
  619. }
  620. iNdEx = postIndex
  621. default:
  622. iNdEx = preIndex
  623. skippy, err := skipSilentMng(dAtA[iNdEx:])
  624. if err != nil {
  625. return err
  626. }
  627. if skippy < 0 {
  628. return ErrInvalidLengthSilentMng
  629. }
  630. if (iNdEx + skippy) > l {
  631. return io.ErrUnexpectedEOF
  632. }
  633. iNdEx += skippy
  634. }
  635. }
  636. if iNdEx > l {
  637. return io.ErrUnexpectedEOF
  638. }
  639. return nil
  640. }
  641. func (m *SilentMngIsBlockUserResp_Data) Unmarshal(dAtA []byte) error {
  642. l := len(dAtA)
  643. iNdEx := 0
  644. for iNdEx < l {
  645. preIndex := iNdEx
  646. var wire uint64
  647. for shift := uint(0); ; shift += 7 {
  648. if shift >= 64 {
  649. return ErrIntOverflowSilentMng
  650. }
  651. if iNdEx >= l {
  652. return io.ErrUnexpectedEOF
  653. }
  654. b := dAtA[iNdEx]
  655. iNdEx++
  656. wire |= (uint64(b) & 0x7F) << shift
  657. if b < 0x80 {
  658. break
  659. }
  660. }
  661. fieldNum := int32(wire >> 3)
  662. wireType := int(wire & 0x7)
  663. if wireType == 4 {
  664. return fmt.Errorf("proto: Data: wiretype end group for non-group")
  665. }
  666. if fieldNum <= 0 {
  667. return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire)
  668. }
  669. switch fieldNum {
  670. case 1:
  671. if wireType != 0 {
  672. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  673. }
  674. m.Uid = 0
  675. for shift := uint(0); ; shift += 7 {
  676. if shift >= 64 {
  677. return ErrIntOverflowSilentMng
  678. }
  679. if iNdEx >= l {
  680. return io.ErrUnexpectedEOF
  681. }
  682. b := dAtA[iNdEx]
  683. iNdEx++
  684. m.Uid |= (int64(b) & 0x7F) << shift
  685. if b < 0x80 {
  686. break
  687. }
  688. }
  689. case 2:
  690. if wireType != 0 {
  691. return fmt.Errorf("proto: wrong wireType = %d for field Roomid", wireType)
  692. }
  693. m.Roomid = 0
  694. for shift := uint(0); ; shift += 7 {
  695. if shift >= 64 {
  696. return ErrIntOverflowSilentMng
  697. }
  698. if iNdEx >= l {
  699. return io.ErrUnexpectedEOF
  700. }
  701. b := dAtA[iNdEx]
  702. iNdEx++
  703. m.Roomid |= (int64(b) & 0x7F) << shift
  704. if b < 0x80 {
  705. break
  706. }
  707. }
  708. case 3:
  709. if wireType != 0 {
  710. return fmt.Errorf("proto: wrong wireType = %d for field IsBlockUser", wireType)
  711. }
  712. var v int
  713. for shift := uint(0); ; shift += 7 {
  714. if shift >= 64 {
  715. return ErrIntOverflowSilentMng
  716. }
  717. if iNdEx >= l {
  718. return io.ErrUnexpectedEOF
  719. }
  720. b := dAtA[iNdEx]
  721. iNdEx++
  722. v |= (int(b) & 0x7F) << shift
  723. if b < 0x80 {
  724. break
  725. }
  726. }
  727. m.IsBlockUser = bool(v != 0)
  728. case 4:
  729. if wireType != 0 {
  730. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  731. }
  732. m.Type = 0
  733. for shift := uint(0); ; shift += 7 {
  734. if shift >= 64 {
  735. return ErrIntOverflowSilentMng
  736. }
  737. if iNdEx >= l {
  738. return io.ErrUnexpectedEOF
  739. }
  740. b := dAtA[iNdEx]
  741. iNdEx++
  742. m.Type |= (int64(b) & 0x7F) << shift
  743. if b < 0x80 {
  744. break
  745. }
  746. }
  747. case 5:
  748. if wireType != 0 {
  749. return fmt.Errorf("proto: wrong wireType = %d for field BlockEndTime", wireType)
  750. }
  751. m.BlockEndTime = 0
  752. for shift := uint(0); ; shift += 7 {
  753. if shift >= 64 {
  754. return ErrIntOverflowSilentMng
  755. }
  756. if iNdEx >= l {
  757. return io.ErrUnexpectedEOF
  758. }
  759. b := dAtA[iNdEx]
  760. iNdEx++
  761. m.BlockEndTime |= (int64(b) & 0x7F) << shift
  762. if b < 0x80 {
  763. break
  764. }
  765. }
  766. default:
  767. iNdEx = preIndex
  768. skippy, err := skipSilentMng(dAtA[iNdEx:])
  769. if err != nil {
  770. return err
  771. }
  772. if skippy < 0 {
  773. return ErrInvalidLengthSilentMng
  774. }
  775. if (iNdEx + skippy) > l {
  776. return io.ErrUnexpectedEOF
  777. }
  778. iNdEx += skippy
  779. }
  780. }
  781. if iNdEx > l {
  782. return io.ErrUnexpectedEOF
  783. }
  784. return nil
  785. }
  786. func skipSilentMng(dAtA []byte) (n int, err error) {
  787. l := len(dAtA)
  788. iNdEx := 0
  789. for iNdEx < l {
  790. var wire uint64
  791. for shift := uint(0); ; shift += 7 {
  792. if shift >= 64 {
  793. return 0, ErrIntOverflowSilentMng
  794. }
  795. if iNdEx >= l {
  796. return 0, io.ErrUnexpectedEOF
  797. }
  798. b := dAtA[iNdEx]
  799. iNdEx++
  800. wire |= (uint64(b) & 0x7F) << shift
  801. if b < 0x80 {
  802. break
  803. }
  804. }
  805. wireType := int(wire & 0x7)
  806. switch wireType {
  807. case 0:
  808. for shift := uint(0); ; shift += 7 {
  809. if shift >= 64 {
  810. return 0, ErrIntOverflowSilentMng
  811. }
  812. if iNdEx >= l {
  813. return 0, io.ErrUnexpectedEOF
  814. }
  815. iNdEx++
  816. if dAtA[iNdEx-1] < 0x80 {
  817. break
  818. }
  819. }
  820. return iNdEx, nil
  821. case 1:
  822. iNdEx += 8
  823. return iNdEx, nil
  824. case 2:
  825. var length int
  826. for shift := uint(0); ; shift += 7 {
  827. if shift >= 64 {
  828. return 0, ErrIntOverflowSilentMng
  829. }
  830. if iNdEx >= l {
  831. return 0, io.ErrUnexpectedEOF
  832. }
  833. b := dAtA[iNdEx]
  834. iNdEx++
  835. length |= (int(b) & 0x7F) << shift
  836. if b < 0x80 {
  837. break
  838. }
  839. }
  840. iNdEx += length
  841. if length < 0 {
  842. return 0, ErrInvalidLengthSilentMng
  843. }
  844. return iNdEx, nil
  845. case 3:
  846. for {
  847. var innerWire uint64
  848. var start int = iNdEx
  849. for shift := uint(0); ; shift += 7 {
  850. if shift >= 64 {
  851. return 0, ErrIntOverflowSilentMng
  852. }
  853. if iNdEx >= l {
  854. return 0, io.ErrUnexpectedEOF
  855. }
  856. b := dAtA[iNdEx]
  857. iNdEx++
  858. innerWire |= (uint64(b) & 0x7F) << shift
  859. if b < 0x80 {
  860. break
  861. }
  862. }
  863. innerWireType := int(innerWire & 0x7)
  864. if innerWireType == 4 {
  865. break
  866. }
  867. next, err := skipSilentMng(dAtA[start:])
  868. if err != nil {
  869. return 0, err
  870. }
  871. iNdEx = start + next
  872. }
  873. return iNdEx, nil
  874. case 4:
  875. return iNdEx, nil
  876. case 5:
  877. iNdEx += 4
  878. return iNdEx, nil
  879. default:
  880. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  881. }
  882. }
  883. panic("unreachable")
  884. }
  885. var (
  886. ErrInvalidLengthSilentMng = fmt.Errorf("proto: negative length found during unmarshaling")
  887. ErrIntOverflowSilentMng = fmt.Errorf("proto: integer overflow")
  888. )
  889. func init() { proto.RegisterFile("v1/SilentMng.proto", fileDescriptor_SilentMng_e4a1d159043b9556) }
  890. var fileDescriptor_SilentMng_e4a1d159043b9556 = []byte{
  891. // 385 bytes of a gzipped FileDescriptorProto
  892. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x52, 0x3d, 0x4f, 0xe3, 0x40,
  893. 0x14, 0x8c, 0x13, 0x5f, 0x2e, 0xd9, 0xdc, 0x9d, 0x94, 0x6d, 0xce, 0x17, 0x45, 0xf6, 0x29, 0x15,
  894. 0x02, 0xe1, 0x90, 0x20, 0x24, 0x6a, 0x0b, 0x0a, 0x0a, 0x28, 0x16, 0x68, 0x68, 0x2c, 0x7f, 0x2c,
  895. 0xce, 0x8a, 0xd8, 0x9b, 0x78, 0x6d, 0x4b, 0xfc, 0x0b, 0x7e, 0x16, 0x65, 0x0a, 0x0a, 0x2a, 0x0b,
  896. 0x25, 0x9d, 0x7f, 0x02, 0x15, 0xda, 0xe7, 0x28, 0x88, 0x10, 0x24, 0x10, 0xcd, 0xd8, 0xe3, 0x79,
  897. 0xef, 0xcd, 0x68, 0x64, 0x84, 0xb3, 0x41, 0xff, 0x9c, 0x8d, 0x69, 0x94, 0x9c, 0x46, 0x81, 0x39,
  898. 0x89, 0x79, 0xc2, 0x71, 0xdb, 0x75, 0xa2, 0x88, 0xfa, 0xb6, 0xa0, 0x71, 0xc6, 0x3c, 0x6a, 0x66,
  899. 0x83, 0xce, 0x6e, 0xc0, 0x92, 0x51, 0xea, 0x9a, 0x1e, 0x0f, 0xfb, 0x01, 0x0f, 0x78, 0x1f, 0x26,
  900. 0xdd, 0xf4, 0x1a, 0x18, 0x10, 0x78, 0x2b, 0x2f, 0xf4, 0x32, 0xf4, 0x77, 0x75, 0xf4, 0x44, 0x58,
  901. 0x63, 0xee, 0xdd, 0x5c, 0x0a, 0x1a, 0x13, 0x3a, 0xc5, 0xff, 0x50, 0x2d, 0x65, 0xbe, 0xa6, 0xfc,
  902. 0x57, 0xb6, 0x6a, 0xd6, 0xcf, 0x22, 0x37, 0x24, 0x25, 0x12, 0x70, 0x0f, 0xd5, 0x63, 0xce, 0x43,
  903. 0xe6, 0x6b, 0x55, 0x50, 0x51, 0x91, 0x1b, 0xcb, 0x2f, 0x64, 0xf9, 0xc4, 0x5d, 0xa4, 0x26, 0xb7,
  904. 0x13, 0xaa, 0xd5, 0x60, 0xa2, 0x51, 0xe4, 0x06, 0x70, 0x02, 0xd8, 0x7b, 0xae, 0x22, 0x6d, 0xb3,
  905. 0xb1, 0x98, 0xc8, 0x55, 0x8f, 0xfb, 0x74, 0x69, 0x0d, 0xab, 0x92, 0x13, 0x40, 0x99, 0x2b, 0x14,
  906. 0x01, 0x38, 0x37, 0xcb, 0x5c, 0xa1, 0x08, 0x88, 0x04, 0x7c, 0x86, 0x54, 0xdf, 0x49, 0x1c, 0xf0,
  907. 0x6c, 0x0d, 0xf7, 0xcc, 0x77, 0xf5, 0x98, 0x1f, 0x79, 0x9a, 0x47, 0x4e, 0xe2, 0x94, 0x56, 0xf2,
  908. 0x02, 0x01, 0xec, 0x3c, 0x28, 0x48, 0x95, 0xc2, 0x77, 0xbb, 0x38, 0x40, 0xbf, 0x99, 0xb0, 0x5d,
  909. 0x69, 0x68, 0xa7, 0x82, 0xc6, 0x10, 0xb0, 0x61, 0xb5, 0x8b, 0xdc, 0x78, 0x2b, 0x90, 0x16, 0x7b,
  910. 0xcd, 0xb5, 0xaa, 0x50, 0xdd, 0x54, 0x21, 0x3e, 0x44, 0x7f, 0xca, 0x45, 0x1a, 0xf9, 0x76, 0xc2,
  911. 0x42, 0xaa, 0xfd, 0x80, 0x39, 0x5c, 0xe4, 0xc6, 0x9a, 0x42, 0x7e, 0x01, 0x3f, 0x8e, 0xfc, 0x0b,
  912. 0x16, 0xd2, 0x61, 0x8a, 0x9a, 0xab, 0x1e, 0xf0, 0x68, 0x2d, 0x1b, 0xde, 0xfe, 0x74, 0x6d, 0xd3,
  913. 0xce, 0xce, 0x17, 0x2a, 0xb6, 0xba, 0xf7, 0x73, 0x5d, 0x99, 0xcd, 0x75, 0xe5, 0x69, 0xae, 0x2b,
  914. 0x77, 0x0b, 0xbd, 0x32, 0x5b, 0xe8, 0x95, 0xc7, 0x85, 0x5e, 0xb9, 0xaa, 0x66, 0x03, 0xb7, 0x0e,
  915. 0x3f, 0xe4, 0xfe, 0x4b, 0x00, 0x00, 0x00, 0xff, 0xff, 0xdb, 0x55, 0xed, 0x6d, 0xe8, 0x02, 0x00,
  916. 0x00,
  917. }