ShieldMng.pb.go 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: v1/ShieldMng.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 ShieldMngIsShieldUserReq struct {
  19. //
  20. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
  21. //
  22. ShieldUid int64 `protobuf:"varint,2,opt,name=shield_uid,json=shieldUid,proto3" json:"shield_uid"`
  23. }
  24. func (m *ShieldMngIsShieldUserReq) Reset() { *m = ShieldMngIsShieldUserReq{} }
  25. func (m *ShieldMngIsShieldUserReq) String() string { return proto.CompactTextString(m) }
  26. func (*ShieldMngIsShieldUserReq) ProtoMessage() {}
  27. func (*ShieldMngIsShieldUserReq) Descriptor() ([]byte, []int) {
  28. return fileDescriptor_ShieldMng_c683407439c9b594, []int{0}
  29. }
  30. func (m *ShieldMngIsShieldUserReq) XXX_Unmarshal(b []byte) error {
  31. return m.Unmarshal(b)
  32. }
  33. func (m *ShieldMngIsShieldUserReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  34. if deterministic {
  35. return xxx_messageInfo_ShieldMngIsShieldUserReq.Marshal(b, m, deterministic)
  36. } else {
  37. b = b[:cap(b)]
  38. n, err := m.MarshalTo(b)
  39. if err != nil {
  40. return nil, err
  41. }
  42. return b[:n], nil
  43. }
  44. }
  45. func (dst *ShieldMngIsShieldUserReq) XXX_Merge(src proto.Message) {
  46. xxx_messageInfo_ShieldMngIsShieldUserReq.Merge(dst, src)
  47. }
  48. func (m *ShieldMngIsShieldUserReq) XXX_Size() int {
  49. return m.Size()
  50. }
  51. func (m *ShieldMngIsShieldUserReq) XXX_DiscardUnknown() {
  52. xxx_messageInfo_ShieldMngIsShieldUserReq.DiscardUnknown(m)
  53. }
  54. var xxx_messageInfo_ShieldMngIsShieldUserReq proto.InternalMessageInfo
  55. func (m *ShieldMngIsShieldUserReq) GetUid() int64 {
  56. if m != nil {
  57. return m.Uid
  58. }
  59. return 0
  60. }
  61. func (m *ShieldMngIsShieldUserReq) GetShieldUid() int64 {
  62. if m != nil {
  63. return m.ShieldUid
  64. }
  65. return 0
  66. }
  67. type ShieldMngIsShieldUserResp struct {
  68. //
  69. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
  70. //
  71. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
  72. //
  73. Data *ShieldMngIsShieldUserResp_Data `protobuf:"bytes,3,opt,name=data" json:"data"`
  74. }
  75. func (m *ShieldMngIsShieldUserResp) Reset() { *m = ShieldMngIsShieldUserResp{} }
  76. func (m *ShieldMngIsShieldUserResp) String() string { return proto.CompactTextString(m) }
  77. func (*ShieldMngIsShieldUserResp) ProtoMessage() {}
  78. func (*ShieldMngIsShieldUserResp) Descriptor() ([]byte, []int) {
  79. return fileDescriptor_ShieldMng_c683407439c9b594, []int{1}
  80. }
  81. func (m *ShieldMngIsShieldUserResp) XXX_Unmarshal(b []byte) error {
  82. return m.Unmarshal(b)
  83. }
  84. func (m *ShieldMngIsShieldUserResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  85. if deterministic {
  86. return xxx_messageInfo_ShieldMngIsShieldUserResp.Marshal(b, m, deterministic)
  87. } else {
  88. b = b[:cap(b)]
  89. n, err := m.MarshalTo(b)
  90. if err != nil {
  91. return nil, err
  92. }
  93. return b[:n], nil
  94. }
  95. }
  96. func (dst *ShieldMngIsShieldUserResp) XXX_Merge(src proto.Message) {
  97. xxx_messageInfo_ShieldMngIsShieldUserResp.Merge(dst, src)
  98. }
  99. func (m *ShieldMngIsShieldUserResp) XXX_Size() int {
  100. return m.Size()
  101. }
  102. func (m *ShieldMngIsShieldUserResp) XXX_DiscardUnknown() {
  103. xxx_messageInfo_ShieldMngIsShieldUserResp.DiscardUnknown(m)
  104. }
  105. var xxx_messageInfo_ShieldMngIsShieldUserResp proto.InternalMessageInfo
  106. func (m *ShieldMngIsShieldUserResp) GetCode() int64 {
  107. if m != nil {
  108. return m.Code
  109. }
  110. return 0
  111. }
  112. func (m *ShieldMngIsShieldUserResp) GetMsg() string {
  113. if m != nil {
  114. return m.Msg
  115. }
  116. return ""
  117. }
  118. func (m *ShieldMngIsShieldUserResp) GetData() *ShieldMngIsShieldUserResp_Data {
  119. if m != nil {
  120. return m.Data
  121. }
  122. return nil
  123. }
  124. type ShieldMngIsShieldUserResp_Data struct {
  125. //
  126. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
  127. //
  128. ShieldUid int64 `protobuf:"varint,2,opt,name=shield_uid,json=shieldUid,proto3" json:"shield_uid"`
  129. //
  130. IsShieldUser bool `protobuf:"varint,3,opt,name=is_shield_user,json=isShieldUser,proto3" json:"is_shield_user"`
  131. }
  132. func (m *ShieldMngIsShieldUserResp_Data) Reset() { *m = ShieldMngIsShieldUserResp_Data{} }
  133. func (m *ShieldMngIsShieldUserResp_Data) String() string { return proto.CompactTextString(m) }
  134. func (*ShieldMngIsShieldUserResp_Data) ProtoMessage() {}
  135. func (*ShieldMngIsShieldUserResp_Data) Descriptor() ([]byte, []int) {
  136. return fileDescriptor_ShieldMng_c683407439c9b594, []int{1, 0}
  137. }
  138. func (m *ShieldMngIsShieldUserResp_Data) XXX_Unmarshal(b []byte) error {
  139. return m.Unmarshal(b)
  140. }
  141. func (m *ShieldMngIsShieldUserResp_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  142. if deterministic {
  143. return xxx_messageInfo_ShieldMngIsShieldUserResp_Data.Marshal(b, m, deterministic)
  144. } else {
  145. b = b[:cap(b)]
  146. n, err := m.MarshalTo(b)
  147. if err != nil {
  148. return nil, err
  149. }
  150. return b[:n], nil
  151. }
  152. }
  153. func (dst *ShieldMngIsShieldUserResp_Data) XXX_Merge(src proto.Message) {
  154. xxx_messageInfo_ShieldMngIsShieldUserResp_Data.Merge(dst, src)
  155. }
  156. func (m *ShieldMngIsShieldUserResp_Data) XXX_Size() int {
  157. return m.Size()
  158. }
  159. func (m *ShieldMngIsShieldUserResp_Data) XXX_DiscardUnknown() {
  160. xxx_messageInfo_ShieldMngIsShieldUserResp_Data.DiscardUnknown(m)
  161. }
  162. var xxx_messageInfo_ShieldMngIsShieldUserResp_Data proto.InternalMessageInfo
  163. func (m *ShieldMngIsShieldUserResp_Data) GetUid() int64 {
  164. if m != nil {
  165. return m.Uid
  166. }
  167. return 0
  168. }
  169. func (m *ShieldMngIsShieldUserResp_Data) GetShieldUid() int64 {
  170. if m != nil {
  171. return m.ShieldUid
  172. }
  173. return 0
  174. }
  175. func (m *ShieldMngIsShieldUserResp_Data) GetIsShieldUser() bool {
  176. if m != nil {
  177. return m.IsShieldUser
  178. }
  179. return false
  180. }
  181. func init() {
  182. proto.RegisterType((*ShieldMngIsShieldUserReq)(nil), "banned_service.v1.ShieldMngIsShieldUserReq")
  183. proto.RegisterType((*ShieldMngIsShieldUserResp)(nil), "banned_service.v1.ShieldMngIsShieldUserResp")
  184. proto.RegisterType((*ShieldMngIsShieldUserResp_Data)(nil), "banned_service.v1.ShieldMngIsShieldUserResp.Data")
  185. }
  186. func (m *ShieldMngIsShieldUserReq) Marshal() (dAtA []byte, err error) {
  187. size := m.Size()
  188. dAtA = make([]byte, size)
  189. n, err := m.MarshalTo(dAtA)
  190. if err != nil {
  191. return nil, err
  192. }
  193. return dAtA[:n], nil
  194. }
  195. func (m *ShieldMngIsShieldUserReq) MarshalTo(dAtA []byte) (int, error) {
  196. var i int
  197. _ = i
  198. var l int
  199. _ = l
  200. if m.Uid != 0 {
  201. dAtA[i] = 0x8
  202. i++
  203. i = encodeVarintShieldMng(dAtA, i, uint64(m.Uid))
  204. }
  205. if m.ShieldUid != 0 {
  206. dAtA[i] = 0x10
  207. i++
  208. i = encodeVarintShieldMng(dAtA, i, uint64(m.ShieldUid))
  209. }
  210. return i, nil
  211. }
  212. func (m *ShieldMngIsShieldUserResp) Marshal() (dAtA []byte, err error) {
  213. size := m.Size()
  214. dAtA = make([]byte, size)
  215. n, err := m.MarshalTo(dAtA)
  216. if err != nil {
  217. return nil, err
  218. }
  219. return dAtA[:n], nil
  220. }
  221. func (m *ShieldMngIsShieldUserResp) MarshalTo(dAtA []byte) (int, error) {
  222. var i int
  223. _ = i
  224. var l int
  225. _ = l
  226. if m.Code != 0 {
  227. dAtA[i] = 0x8
  228. i++
  229. i = encodeVarintShieldMng(dAtA, i, uint64(m.Code))
  230. }
  231. if len(m.Msg) > 0 {
  232. dAtA[i] = 0x12
  233. i++
  234. i = encodeVarintShieldMng(dAtA, i, uint64(len(m.Msg)))
  235. i += copy(dAtA[i:], m.Msg)
  236. }
  237. if m.Data != nil {
  238. dAtA[i] = 0x1a
  239. i++
  240. i = encodeVarintShieldMng(dAtA, i, uint64(m.Data.Size()))
  241. n1, err := m.Data.MarshalTo(dAtA[i:])
  242. if err != nil {
  243. return 0, err
  244. }
  245. i += n1
  246. }
  247. return i, nil
  248. }
  249. func (m *ShieldMngIsShieldUserResp_Data) Marshal() (dAtA []byte, err error) {
  250. size := m.Size()
  251. dAtA = make([]byte, size)
  252. n, err := m.MarshalTo(dAtA)
  253. if err != nil {
  254. return nil, err
  255. }
  256. return dAtA[:n], nil
  257. }
  258. func (m *ShieldMngIsShieldUserResp_Data) MarshalTo(dAtA []byte) (int, error) {
  259. var i int
  260. _ = i
  261. var l int
  262. _ = l
  263. if m.Uid != 0 {
  264. dAtA[i] = 0x8
  265. i++
  266. i = encodeVarintShieldMng(dAtA, i, uint64(m.Uid))
  267. }
  268. if m.ShieldUid != 0 {
  269. dAtA[i] = 0x10
  270. i++
  271. i = encodeVarintShieldMng(dAtA, i, uint64(m.ShieldUid))
  272. }
  273. if m.IsShieldUser {
  274. dAtA[i] = 0x18
  275. i++
  276. if m.IsShieldUser {
  277. dAtA[i] = 1
  278. } else {
  279. dAtA[i] = 0
  280. }
  281. i++
  282. }
  283. return i, nil
  284. }
  285. func encodeVarintShieldMng(dAtA []byte, offset int, v uint64) int {
  286. for v >= 1<<7 {
  287. dAtA[offset] = uint8(v&0x7f | 0x80)
  288. v >>= 7
  289. offset++
  290. }
  291. dAtA[offset] = uint8(v)
  292. return offset + 1
  293. }
  294. func (m *ShieldMngIsShieldUserReq) Size() (n int) {
  295. if m == nil {
  296. return 0
  297. }
  298. var l int
  299. _ = l
  300. if m.Uid != 0 {
  301. n += 1 + sovShieldMng(uint64(m.Uid))
  302. }
  303. if m.ShieldUid != 0 {
  304. n += 1 + sovShieldMng(uint64(m.ShieldUid))
  305. }
  306. return n
  307. }
  308. func (m *ShieldMngIsShieldUserResp) Size() (n int) {
  309. if m == nil {
  310. return 0
  311. }
  312. var l int
  313. _ = l
  314. if m.Code != 0 {
  315. n += 1 + sovShieldMng(uint64(m.Code))
  316. }
  317. l = len(m.Msg)
  318. if l > 0 {
  319. n += 1 + l + sovShieldMng(uint64(l))
  320. }
  321. if m.Data != nil {
  322. l = m.Data.Size()
  323. n += 1 + l + sovShieldMng(uint64(l))
  324. }
  325. return n
  326. }
  327. func (m *ShieldMngIsShieldUserResp_Data) Size() (n int) {
  328. if m == nil {
  329. return 0
  330. }
  331. var l int
  332. _ = l
  333. if m.Uid != 0 {
  334. n += 1 + sovShieldMng(uint64(m.Uid))
  335. }
  336. if m.ShieldUid != 0 {
  337. n += 1 + sovShieldMng(uint64(m.ShieldUid))
  338. }
  339. if m.IsShieldUser {
  340. n += 2
  341. }
  342. return n
  343. }
  344. func sovShieldMng(x uint64) (n int) {
  345. for {
  346. n++
  347. x >>= 7
  348. if x == 0 {
  349. break
  350. }
  351. }
  352. return n
  353. }
  354. func sozShieldMng(x uint64) (n int) {
  355. return sovShieldMng(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  356. }
  357. func (m *ShieldMngIsShieldUserReq) Unmarshal(dAtA []byte) error {
  358. l := len(dAtA)
  359. iNdEx := 0
  360. for iNdEx < l {
  361. preIndex := iNdEx
  362. var wire uint64
  363. for shift := uint(0); ; shift += 7 {
  364. if shift >= 64 {
  365. return ErrIntOverflowShieldMng
  366. }
  367. if iNdEx >= l {
  368. return io.ErrUnexpectedEOF
  369. }
  370. b := dAtA[iNdEx]
  371. iNdEx++
  372. wire |= (uint64(b) & 0x7F) << shift
  373. if b < 0x80 {
  374. break
  375. }
  376. }
  377. fieldNum := int32(wire >> 3)
  378. wireType := int(wire & 0x7)
  379. if wireType == 4 {
  380. return fmt.Errorf("proto: ShieldMngIsShieldUserReq: wiretype end group for non-group")
  381. }
  382. if fieldNum <= 0 {
  383. return fmt.Errorf("proto: ShieldMngIsShieldUserReq: illegal tag %d (wire type %d)", fieldNum, wire)
  384. }
  385. switch fieldNum {
  386. case 1:
  387. if wireType != 0 {
  388. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  389. }
  390. m.Uid = 0
  391. for shift := uint(0); ; shift += 7 {
  392. if shift >= 64 {
  393. return ErrIntOverflowShieldMng
  394. }
  395. if iNdEx >= l {
  396. return io.ErrUnexpectedEOF
  397. }
  398. b := dAtA[iNdEx]
  399. iNdEx++
  400. m.Uid |= (int64(b) & 0x7F) << shift
  401. if b < 0x80 {
  402. break
  403. }
  404. }
  405. case 2:
  406. if wireType != 0 {
  407. return fmt.Errorf("proto: wrong wireType = %d for field ShieldUid", wireType)
  408. }
  409. m.ShieldUid = 0
  410. for shift := uint(0); ; shift += 7 {
  411. if shift >= 64 {
  412. return ErrIntOverflowShieldMng
  413. }
  414. if iNdEx >= l {
  415. return io.ErrUnexpectedEOF
  416. }
  417. b := dAtA[iNdEx]
  418. iNdEx++
  419. m.ShieldUid |= (int64(b) & 0x7F) << shift
  420. if b < 0x80 {
  421. break
  422. }
  423. }
  424. default:
  425. iNdEx = preIndex
  426. skippy, err := skipShieldMng(dAtA[iNdEx:])
  427. if err != nil {
  428. return err
  429. }
  430. if skippy < 0 {
  431. return ErrInvalidLengthShieldMng
  432. }
  433. if (iNdEx + skippy) > l {
  434. return io.ErrUnexpectedEOF
  435. }
  436. iNdEx += skippy
  437. }
  438. }
  439. if iNdEx > l {
  440. return io.ErrUnexpectedEOF
  441. }
  442. return nil
  443. }
  444. func (m *ShieldMngIsShieldUserResp) Unmarshal(dAtA []byte) error {
  445. l := len(dAtA)
  446. iNdEx := 0
  447. for iNdEx < l {
  448. preIndex := iNdEx
  449. var wire uint64
  450. for shift := uint(0); ; shift += 7 {
  451. if shift >= 64 {
  452. return ErrIntOverflowShieldMng
  453. }
  454. if iNdEx >= l {
  455. return io.ErrUnexpectedEOF
  456. }
  457. b := dAtA[iNdEx]
  458. iNdEx++
  459. wire |= (uint64(b) & 0x7F) << shift
  460. if b < 0x80 {
  461. break
  462. }
  463. }
  464. fieldNum := int32(wire >> 3)
  465. wireType := int(wire & 0x7)
  466. if wireType == 4 {
  467. return fmt.Errorf("proto: ShieldMngIsShieldUserResp: wiretype end group for non-group")
  468. }
  469. if fieldNum <= 0 {
  470. return fmt.Errorf("proto: ShieldMngIsShieldUserResp: illegal tag %d (wire type %d)", fieldNum, wire)
  471. }
  472. switch fieldNum {
  473. case 1:
  474. if wireType != 0 {
  475. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  476. }
  477. m.Code = 0
  478. for shift := uint(0); ; shift += 7 {
  479. if shift >= 64 {
  480. return ErrIntOverflowShieldMng
  481. }
  482. if iNdEx >= l {
  483. return io.ErrUnexpectedEOF
  484. }
  485. b := dAtA[iNdEx]
  486. iNdEx++
  487. m.Code |= (int64(b) & 0x7F) << shift
  488. if b < 0x80 {
  489. break
  490. }
  491. }
  492. case 2:
  493. if wireType != 2 {
  494. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  495. }
  496. var stringLen uint64
  497. for shift := uint(0); ; shift += 7 {
  498. if shift >= 64 {
  499. return ErrIntOverflowShieldMng
  500. }
  501. if iNdEx >= l {
  502. return io.ErrUnexpectedEOF
  503. }
  504. b := dAtA[iNdEx]
  505. iNdEx++
  506. stringLen |= (uint64(b) & 0x7F) << shift
  507. if b < 0x80 {
  508. break
  509. }
  510. }
  511. intStringLen := int(stringLen)
  512. if intStringLen < 0 {
  513. return ErrInvalidLengthShieldMng
  514. }
  515. postIndex := iNdEx + intStringLen
  516. if postIndex > l {
  517. return io.ErrUnexpectedEOF
  518. }
  519. m.Msg = string(dAtA[iNdEx:postIndex])
  520. iNdEx = postIndex
  521. case 3:
  522. if wireType != 2 {
  523. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  524. }
  525. var msglen int
  526. for shift := uint(0); ; shift += 7 {
  527. if shift >= 64 {
  528. return ErrIntOverflowShieldMng
  529. }
  530. if iNdEx >= l {
  531. return io.ErrUnexpectedEOF
  532. }
  533. b := dAtA[iNdEx]
  534. iNdEx++
  535. msglen |= (int(b) & 0x7F) << shift
  536. if b < 0x80 {
  537. break
  538. }
  539. }
  540. if msglen < 0 {
  541. return ErrInvalidLengthShieldMng
  542. }
  543. postIndex := iNdEx + msglen
  544. if postIndex > l {
  545. return io.ErrUnexpectedEOF
  546. }
  547. if m.Data == nil {
  548. m.Data = &ShieldMngIsShieldUserResp_Data{}
  549. }
  550. if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  551. return err
  552. }
  553. iNdEx = postIndex
  554. default:
  555. iNdEx = preIndex
  556. skippy, err := skipShieldMng(dAtA[iNdEx:])
  557. if err != nil {
  558. return err
  559. }
  560. if skippy < 0 {
  561. return ErrInvalidLengthShieldMng
  562. }
  563. if (iNdEx + skippy) > l {
  564. return io.ErrUnexpectedEOF
  565. }
  566. iNdEx += skippy
  567. }
  568. }
  569. if iNdEx > l {
  570. return io.ErrUnexpectedEOF
  571. }
  572. return nil
  573. }
  574. func (m *ShieldMngIsShieldUserResp_Data) Unmarshal(dAtA []byte) error {
  575. l := len(dAtA)
  576. iNdEx := 0
  577. for iNdEx < l {
  578. preIndex := iNdEx
  579. var wire uint64
  580. for shift := uint(0); ; shift += 7 {
  581. if shift >= 64 {
  582. return ErrIntOverflowShieldMng
  583. }
  584. if iNdEx >= l {
  585. return io.ErrUnexpectedEOF
  586. }
  587. b := dAtA[iNdEx]
  588. iNdEx++
  589. wire |= (uint64(b) & 0x7F) << shift
  590. if b < 0x80 {
  591. break
  592. }
  593. }
  594. fieldNum := int32(wire >> 3)
  595. wireType := int(wire & 0x7)
  596. if wireType == 4 {
  597. return fmt.Errorf("proto: Data: wiretype end group for non-group")
  598. }
  599. if fieldNum <= 0 {
  600. return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire)
  601. }
  602. switch fieldNum {
  603. case 1:
  604. if wireType != 0 {
  605. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  606. }
  607. m.Uid = 0
  608. for shift := uint(0); ; shift += 7 {
  609. if shift >= 64 {
  610. return ErrIntOverflowShieldMng
  611. }
  612. if iNdEx >= l {
  613. return io.ErrUnexpectedEOF
  614. }
  615. b := dAtA[iNdEx]
  616. iNdEx++
  617. m.Uid |= (int64(b) & 0x7F) << shift
  618. if b < 0x80 {
  619. break
  620. }
  621. }
  622. case 2:
  623. if wireType != 0 {
  624. return fmt.Errorf("proto: wrong wireType = %d for field ShieldUid", wireType)
  625. }
  626. m.ShieldUid = 0
  627. for shift := uint(0); ; shift += 7 {
  628. if shift >= 64 {
  629. return ErrIntOverflowShieldMng
  630. }
  631. if iNdEx >= l {
  632. return io.ErrUnexpectedEOF
  633. }
  634. b := dAtA[iNdEx]
  635. iNdEx++
  636. m.ShieldUid |= (int64(b) & 0x7F) << shift
  637. if b < 0x80 {
  638. break
  639. }
  640. }
  641. case 3:
  642. if wireType != 0 {
  643. return fmt.Errorf("proto: wrong wireType = %d for field IsShieldUser", wireType)
  644. }
  645. var v int
  646. for shift := uint(0); ; shift += 7 {
  647. if shift >= 64 {
  648. return ErrIntOverflowShieldMng
  649. }
  650. if iNdEx >= l {
  651. return io.ErrUnexpectedEOF
  652. }
  653. b := dAtA[iNdEx]
  654. iNdEx++
  655. v |= (int(b) & 0x7F) << shift
  656. if b < 0x80 {
  657. break
  658. }
  659. }
  660. m.IsShieldUser = bool(v != 0)
  661. default:
  662. iNdEx = preIndex
  663. skippy, err := skipShieldMng(dAtA[iNdEx:])
  664. if err != nil {
  665. return err
  666. }
  667. if skippy < 0 {
  668. return ErrInvalidLengthShieldMng
  669. }
  670. if (iNdEx + skippy) > l {
  671. return io.ErrUnexpectedEOF
  672. }
  673. iNdEx += skippy
  674. }
  675. }
  676. if iNdEx > l {
  677. return io.ErrUnexpectedEOF
  678. }
  679. return nil
  680. }
  681. func skipShieldMng(dAtA []byte) (n int, err error) {
  682. l := len(dAtA)
  683. iNdEx := 0
  684. for iNdEx < l {
  685. var wire uint64
  686. for shift := uint(0); ; shift += 7 {
  687. if shift >= 64 {
  688. return 0, ErrIntOverflowShieldMng
  689. }
  690. if iNdEx >= l {
  691. return 0, io.ErrUnexpectedEOF
  692. }
  693. b := dAtA[iNdEx]
  694. iNdEx++
  695. wire |= (uint64(b) & 0x7F) << shift
  696. if b < 0x80 {
  697. break
  698. }
  699. }
  700. wireType := int(wire & 0x7)
  701. switch wireType {
  702. case 0:
  703. for shift := uint(0); ; shift += 7 {
  704. if shift >= 64 {
  705. return 0, ErrIntOverflowShieldMng
  706. }
  707. if iNdEx >= l {
  708. return 0, io.ErrUnexpectedEOF
  709. }
  710. iNdEx++
  711. if dAtA[iNdEx-1] < 0x80 {
  712. break
  713. }
  714. }
  715. return iNdEx, nil
  716. case 1:
  717. iNdEx += 8
  718. return iNdEx, nil
  719. case 2:
  720. var length int
  721. for shift := uint(0); ; shift += 7 {
  722. if shift >= 64 {
  723. return 0, ErrIntOverflowShieldMng
  724. }
  725. if iNdEx >= l {
  726. return 0, io.ErrUnexpectedEOF
  727. }
  728. b := dAtA[iNdEx]
  729. iNdEx++
  730. length |= (int(b) & 0x7F) << shift
  731. if b < 0x80 {
  732. break
  733. }
  734. }
  735. iNdEx += length
  736. if length < 0 {
  737. return 0, ErrInvalidLengthShieldMng
  738. }
  739. return iNdEx, nil
  740. case 3:
  741. for {
  742. var innerWire uint64
  743. var start int = iNdEx
  744. for shift := uint(0); ; shift += 7 {
  745. if shift >= 64 {
  746. return 0, ErrIntOverflowShieldMng
  747. }
  748. if iNdEx >= l {
  749. return 0, io.ErrUnexpectedEOF
  750. }
  751. b := dAtA[iNdEx]
  752. iNdEx++
  753. innerWire |= (uint64(b) & 0x7F) << shift
  754. if b < 0x80 {
  755. break
  756. }
  757. }
  758. innerWireType := int(innerWire & 0x7)
  759. if innerWireType == 4 {
  760. break
  761. }
  762. next, err := skipShieldMng(dAtA[start:])
  763. if err != nil {
  764. return 0, err
  765. }
  766. iNdEx = start + next
  767. }
  768. return iNdEx, nil
  769. case 4:
  770. return iNdEx, nil
  771. case 5:
  772. iNdEx += 4
  773. return iNdEx, nil
  774. default:
  775. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  776. }
  777. }
  778. panic("unreachable")
  779. }
  780. var (
  781. ErrInvalidLengthShieldMng = fmt.Errorf("proto: negative length found during unmarshaling")
  782. ErrIntOverflowShieldMng = fmt.Errorf("proto: integer overflow")
  783. )
  784. func init() { proto.RegisterFile("v1/ShieldMng.proto", fileDescriptor_ShieldMng_c683407439c9b594) }
  785. var fileDescriptor_ShieldMng_c683407439c9b594 = []byte{
  786. // 333 bytes of a gzipped FileDescriptorProto
  787. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2a, 0x33, 0xd4, 0x0f,
  788. 0xce, 0xc8, 0x4c, 0xcd, 0x49, 0xf1, 0xcd, 0x4b, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12,
  789. 0x4c, 0x4a, 0xcc, 0xcb, 0x4b, 0x4d, 0x89, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b,
  790. 0x33, 0x94, 0xd2, 0x4d, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xcf,
  791. 0x4f, 0xcf, 0xd7, 0x07, 0xab, 0x4c, 0x2a, 0x4d, 0x03, 0xf3, 0xc0, 0x1c, 0x30, 0x0b, 0x62, 0x82,
  792. 0x52, 0x0a, 0x97, 0x04, 0xdc, 0x50, 0xcf, 0x62, 0x08, 0x33, 0xb4, 0x38, 0xb5, 0x28, 0x28, 0xb5,
  793. 0x50, 0x48, 0x92, 0x8b, 0xb9, 0x34, 0x33, 0x45, 0x82, 0x51, 0x81, 0x51, 0x83, 0xd9, 0x89, 0xfd,
  794. 0xd5, 0x3d, 0x79, 0x10, 0x37, 0x08, 0x44, 0x08, 0xe9, 0x72, 0x71, 0x15, 0x83, 0xd5, 0xc6, 0x83,
  795. 0x54, 0x30, 0x81, 0x55, 0xf0, 0xbd, 0xba, 0x27, 0x8f, 0x24, 0x1a, 0xc4, 0x09, 0x61, 0x87, 0x66,
  796. 0xa6, 0x28, 0x6d, 0x62, 0xe2, 0x92, 0xc4, 0x61, 0x4d, 0x71, 0x81, 0x90, 0x0c, 0x17, 0x4b, 0x72,
  797. 0x7e, 0x4a, 0x2a, 0xd4, 0x22, 0x8e, 0x57, 0xf7, 0xe4, 0xc1, 0xfc, 0x20, 0x30, 0x09, 0x72, 0x45,
  798. 0x6e, 0x71, 0x3a, 0xd8, 0x0e, 0x4e, 0x88, 0x2b, 0x72, 0x8b, 0xd3, 0x83, 0x40, 0x84, 0x90, 0x3f,
  799. 0x17, 0x4b, 0x4a, 0x62, 0x49, 0xa2, 0x04, 0xb3, 0x02, 0xa3, 0x06, 0xb7, 0x91, 0xa1, 0x1e, 0x46,
  800. 0x68, 0xe8, 0xe1, 0xb4, 0x54, 0xcf, 0x25, 0xb1, 0x24, 0x11, 0x62, 0x17, 0xc8, 0x88, 0x20, 0x30,
  801. 0x29, 0xd5, 0xc5, 0xc8, 0xc5, 0x02, 0x92, 0xa0, 0x9e, 0xd7, 0x85, 0x2c, 0xb8, 0xf8, 0x32, 0x8b,
  802. 0xe3, 0x61, 0x72, 0xc5, 0xa9, 0x45, 0x60, 0xd7, 0x72, 0x38, 0x09, 0xbd, 0xba, 0x27, 0x8f, 0x26,
  803. 0x13, 0xc4, 0x93, 0x89, 0xe4, 0x4a, 0xa3, 0x0a, 0x2e, 0x4e, 0xb8, 0xf3, 0x85, 0xb2, 0xd1, 0x8d,
  804. 0x11, 0xd2, 0x26, 0xde, 0xbb, 0x85, 0x52, 0x3a, 0xa4, 0x84, 0x8d, 0x93, 0xcc, 0x89, 0x47, 0x72,
  805. 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7,
  806. 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0x31, 0x95, 0x19, 0x26, 0xb1, 0x81, 0x53, 0x8e, 0x31,
  807. 0x20, 0x00, 0x00, 0xff, 0xff, 0x0a, 0xf8, 0x63, 0x71, 0x91, 0x02, 0x00, 0x00,
  808. }