SiteBlockMng.pb.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: v1/SiteBlockMng.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 SiteBlockMngIsBlockUserReq struct {
  19. //
  20. Tuid int64 `protobuf:"varint,1,opt,name=tuid,proto3" json:"tuid"`
  21. }
  22. func (m *SiteBlockMngIsBlockUserReq) Reset() { *m = SiteBlockMngIsBlockUserReq{} }
  23. func (m *SiteBlockMngIsBlockUserReq) String() string { return proto.CompactTextString(m) }
  24. func (*SiteBlockMngIsBlockUserReq) ProtoMessage() {}
  25. func (*SiteBlockMngIsBlockUserReq) Descriptor() ([]byte, []int) {
  26. return fileDescriptor_SiteBlockMng_7cdfb51c66347671, []int{0}
  27. }
  28. func (m *SiteBlockMngIsBlockUserReq) XXX_Unmarshal(b []byte) error {
  29. return m.Unmarshal(b)
  30. }
  31. func (m *SiteBlockMngIsBlockUserReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  32. if deterministic {
  33. return xxx_messageInfo_SiteBlockMngIsBlockUserReq.Marshal(b, m, deterministic)
  34. } else {
  35. b = b[:cap(b)]
  36. n, err := m.MarshalTo(b)
  37. if err != nil {
  38. return nil, err
  39. }
  40. return b[:n], nil
  41. }
  42. }
  43. func (dst *SiteBlockMngIsBlockUserReq) XXX_Merge(src proto.Message) {
  44. xxx_messageInfo_SiteBlockMngIsBlockUserReq.Merge(dst, src)
  45. }
  46. func (m *SiteBlockMngIsBlockUserReq) XXX_Size() int {
  47. return m.Size()
  48. }
  49. func (m *SiteBlockMngIsBlockUserReq) XXX_DiscardUnknown() {
  50. xxx_messageInfo_SiteBlockMngIsBlockUserReq.DiscardUnknown(m)
  51. }
  52. var xxx_messageInfo_SiteBlockMngIsBlockUserReq proto.InternalMessageInfo
  53. func (m *SiteBlockMngIsBlockUserReq) GetTuid() int64 {
  54. if m != nil {
  55. return m.Tuid
  56. }
  57. return 0
  58. }
  59. type SiteBlockMngIsBlockUserResp struct {
  60. // code
  61. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
  62. // msg
  63. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
  64. //
  65. Data *SiteBlockMngIsBlockUserResp_Data `protobuf:"bytes,3,opt,name=data" json:"data"`
  66. }
  67. func (m *SiteBlockMngIsBlockUserResp) Reset() { *m = SiteBlockMngIsBlockUserResp{} }
  68. func (m *SiteBlockMngIsBlockUserResp) String() string { return proto.CompactTextString(m) }
  69. func (*SiteBlockMngIsBlockUserResp) ProtoMessage() {}
  70. func (*SiteBlockMngIsBlockUserResp) Descriptor() ([]byte, []int) {
  71. return fileDescriptor_SiteBlockMng_7cdfb51c66347671, []int{1}
  72. }
  73. func (m *SiteBlockMngIsBlockUserResp) XXX_Unmarshal(b []byte) error {
  74. return m.Unmarshal(b)
  75. }
  76. func (m *SiteBlockMngIsBlockUserResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  77. if deterministic {
  78. return xxx_messageInfo_SiteBlockMngIsBlockUserResp.Marshal(b, m, deterministic)
  79. } else {
  80. b = b[:cap(b)]
  81. n, err := m.MarshalTo(b)
  82. if err != nil {
  83. return nil, err
  84. }
  85. return b[:n], nil
  86. }
  87. }
  88. func (dst *SiteBlockMngIsBlockUserResp) XXX_Merge(src proto.Message) {
  89. xxx_messageInfo_SiteBlockMngIsBlockUserResp.Merge(dst, src)
  90. }
  91. func (m *SiteBlockMngIsBlockUserResp) XXX_Size() int {
  92. return m.Size()
  93. }
  94. func (m *SiteBlockMngIsBlockUserResp) XXX_DiscardUnknown() {
  95. xxx_messageInfo_SiteBlockMngIsBlockUserResp.DiscardUnknown(m)
  96. }
  97. var xxx_messageInfo_SiteBlockMngIsBlockUserResp proto.InternalMessageInfo
  98. func (m *SiteBlockMngIsBlockUserResp) GetCode() int64 {
  99. if m != nil {
  100. return m.Code
  101. }
  102. return 0
  103. }
  104. func (m *SiteBlockMngIsBlockUserResp) GetMsg() string {
  105. if m != nil {
  106. return m.Msg
  107. }
  108. return ""
  109. }
  110. func (m *SiteBlockMngIsBlockUserResp) GetData() *SiteBlockMngIsBlockUserResp_Data {
  111. if m != nil {
  112. return m.Data
  113. }
  114. return nil
  115. }
  116. type SiteBlockMngIsBlockUserResp_Data struct {
  117. //
  118. IsBlock bool `protobuf:"varint,1,opt,name=is_block,json=isBlock,proto3" json:"is_block"`
  119. }
  120. func (m *SiteBlockMngIsBlockUserResp_Data) Reset() { *m = SiteBlockMngIsBlockUserResp_Data{} }
  121. func (m *SiteBlockMngIsBlockUserResp_Data) String() string { return proto.CompactTextString(m) }
  122. func (*SiteBlockMngIsBlockUserResp_Data) ProtoMessage() {}
  123. func (*SiteBlockMngIsBlockUserResp_Data) Descriptor() ([]byte, []int) {
  124. return fileDescriptor_SiteBlockMng_7cdfb51c66347671, []int{1, 0}
  125. }
  126. func (m *SiteBlockMngIsBlockUserResp_Data) XXX_Unmarshal(b []byte) error {
  127. return m.Unmarshal(b)
  128. }
  129. func (m *SiteBlockMngIsBlockUserResp_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  130. if deterministic {
  131. return xxx_messageInfo_SiteBlockMngIsBlockUserResp_Data.Marshal(b, m, deterministic)
  132. } else {
  133. b = b[:cap(b)]
  134. n, err := m.MarshalTo(b)
  135. if err != nil {
  136. return nil, err
  137. }
  138. return b[:n], nil
  139. }
  140. }
  141. func (dst *SiteBlockMngIsBlockUserResp_Data) XXX_Merge(src proto.Message) {
  142. xxx_messageInfo_SiteBlockMngIsBlockUserResp_Data.Merge(dst, src)
  143. }
  144. func (m *SiteBlockMngIsBlockUserResp_Data) XXX_Size() int {
  145. return m.Size()
  146. }
  147. func (m *SiteBlockMngIsBlockUserResp_Data) XXX_DiscardUnknown() {
  148. xxx_messageInfo_SiteBlockMngIsBlockUserResp_Data.DiscardUnknown(m)
  149. }
  150. var xxx_messageInfo_SiteBlockMngIsBlockUserResp_Data proto.InternalMessageInfo
  151. func (m *SiteBlockMngIsBlockUserResp_Data) GetIsBlock() bool {
  152. if m != nil {
  153. return m.IsBlock
  154. }
  155. return false
  156. }
  157. func init() {
  158. proto.RegisterType((*SiteBlockMngIsBlockUserReq)(nil), "banned_service.v1.SiteBlockMngIsBlockUserReq")
  159. proto.RegisterType((*SiteBlockMngIsBlockUserResp)(nil), "banned_service.v1.SiteBlockMngIsBlockUserResp")
  160. proto.RegisterType((*SiteBlockMngIsBlockUserResp_Data)(nil), "banned_service.v1.SiteBlockMngIsBlockUserResp.Data")
  161. }
  162. func (m *SiteBlockMngIsBlockUserReq) Marshal() (dAtA []byte, err error) {
  163. size := m.Size()
  164. dAtA = make([]byte, size)
  165. n, err := m.MarshalTo(dAtA)
  166. if err != nil {
  167. return nil, err
  168. }
  169. return dAtA[:n], nil
  170. }
  171. func (m *SiteBlockMngIsBlockUserReq) MarshalTo(dAtA []byte) (int, error) {
  172. var i int
  173. _ = i
  174. var l int
  175. _ = l
  176. if m.Tuid != 0 {
  177. dAtA[i] = 0x8
  178. i++
  179. i = encodeVarintSiteBlockMng(dAtA, i, uint64(m.Tuid))
  180. }
  181. return i, nil
  182. }
  183. func (m *SiteBlockMngIsBlockUserResp) Marshal() (dAtA []byte, err error) {
  184. size := m.Size()
  185. dAtA = make([]byte, size)
  186. n, err := m.MarshalTo(dAtA)
  187. if err != nil {
  188. return nil, err
  189. }
  190. return dAtA[:n], nil
  191. }
  192. func (m *SiteBlockMngIsBlockUserResp) MarshalTo(dAtA []byte) (int, error) {
  193. var i int
  194. _ = i
  195. var l int
  196. _ = l
  197. if m.Code != 0 {
  198. dAtA[i] = 0x8
  199. i++
  200. i = encodeVarintSiteBlockMng(dAtA, i, uint64(m.Code))
  201. }
  202. if len(m.Msg) > 0 {
  203. dAtA[i] = 0x12
  204. i++
  205. i = encodeVarintSiteBlockMng(dAtA, i, uint64(len(m.Msg)))
  206. i += copy(dAtA[i:], m.Msg)
  207. }
  208. if m.Data != nil {
  209. dAtA[i] = 0x1a
  210. i++
  211. i = encodeVarintSiteBlockMng(dAtA, i, uint64(m.Data.Size()))
  212. n1, err := m.Data.MarshalTo(dAtA[i:])
  213. if err != nil {
  214. return 0, err
  215. }
  216. i += n1
  217. }
  218. return i, nil
  219. }
  220. func (m *SiteBlockMngIsBlockUserResp_Data) Marshal() (dAtA []byte, err error) {
  221. size := m.Size()
  222. dAtA = make([]byte, size)
  223. n, err := m.MarshalTo(dAtA)
  224. if err != nil {
  225. return nil, err
  226. }
  227. return dAtA[:n], nil
  228. }
  229. func (m *SiteBlockMngIsBlockUserResp_Data) MarshalTo(dAtA []byte) (int, error) {
  230. var i int
  231. _ = i
  232. var l int
  233. _ = l
  234. if m.IsBlock {
  235. dAtA[i] = 0x8
  236. i++
  237. if m.IsBlock {
  238. dAtA[i] = 1
  239. } else {
  240. dAtA[i] = 0
  241. }
  242. i++
  243. }
  244. return i, nil
  245. }
  246. func encodeVarintSiteBlockMng(dAtA []byte, offset int, v uint64) int {
  247. for v >= 1<<7 {
  248. dAtA[offset] = uint8(v&0x7f | 0x80)
  249. v >>= 7
  250. offset++
  251. }
  252. dAtA[offset] = uint8(v)
  253. return offset + 1
  254. }
  255. func (m *SiteBlockMngIsBlockUserReq) Size() (n int) {
  256. if m == nil {
  257. return 0
  258. }
  259. var l int
  260. _ = l
  261. if m.Tuid != 0 {
  262. n += 1 + sovSiteBlockMng(uint64(m.Tuid))
  263. }
  264. return n
  265. }
  266. func (m *SiteBlockMngIsBlockUserResp) Size() (n int) {
  267. if m == nil {
  268. return 0
  269. }
  270. var l int
  271. _ = l
  272. if m.Code != 0 {
  273. n += 1 + sovSiteBlockMng(uint64(m.Code))
  274. }
  275. l = len(m.Msg)
  276. if l > 0 {
  277. n += 1 + l + sovSiteBlockMng(uint64(l))
  278. }
  279. if m.Data != nil {
  280. l = m.Data.Size()
  281. n += 1 + l + sovSiteBlockMng(uint64(l))
  282. }
  283. return n
  284. }
  285. func (m *SiteBlockMngIsBlockUserResp_Data) Size() (n int) {
  286. if m == nil {
  287. return 0
  288. }
  289. var l int
  290. _ = l
  291. if m.IsBlock {
  292. n += 2
  293. }
  294. return n
  295. }
  296. func sovSiteBlockMng(x uint64) (n int) {
  297. for {
  298. n++
  299. x >>= 7
  300. if x == 0 {
  301. break
  302. }
  303. }
  304. return n
  305. }
  306. func sozSiteBlockMng(x uint64) (n int) {
  307. return sovSiteBlockMng(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  308. }
  309. func (m *SiteBlockMngIsBlockUserReq) Unmarshal(dAtA []byte) error {
  310. l := len(dAtA)
  311. iNdEx := 0
  312. for iNdEx < l {
  313. preIndex := iNdEx
  314. var wire uint64
  315. for shift := uint(0); ; shift += 7 {
  316. if shift >= 64 {
  317. return ErrIntOverflowSiteBlockMng
  318. }
  319. if iNdEx >= l {
  320. return io.ErrUnexpectedEOF
  321. }
  322. b := dAtA[iNdEx]
  323. iNdEx++
  324. wire |= (uint64(b) & 0x7F) << shift
  325. if b < 0x80 {
  326. break
  327. }
  328. }
  329. fieldNum := int32(wire >> 3)
  330. wireType := int(wire & 0x7)
  331. if wireType == 4 {
  332. return fmt.Errorf("proto: SiteBlockMngIsBlockUserReq: wiretype end group for non-group")
  333. }
  334. if fieldNum <= 0 {
  335. return fmt.Errorf("proto: SiteBlockMngIsBlockUserReq: illegal tag %d (wire type %d)", fieldNum, wire)
  336. }
  337. switch fieldNum {
  338. case 1:
  339. if wireType != 0 {
  340. return fmt.Errorf("proto: wrong wireType = %d for field Tuid", wireType)
  341. }
  342. m.Tuid = 0
  343. for shift := uint(0); ; shift += 7 {
  344. if shift >= 64 {
  345. return ErrIntOverflowSiteBlockMng
  346. }
  347. if iNdEx >= l {
  348. return io.ErrUnexpectedEOF
  349. }
  350. b := dAtA[iNdEx]
  351. iNdEx++
  352. m.Tuid |= (int64(b) & 0x7F) << shift
  353. if b < 0x80 {
  354. break
  355. }
  356. }
  357. default:
  358. iNdEx = preIndex
  359. skippy, err := skipSiteBlockMng(dAtA[iNdEx:])
  360. if err != nil {
  361. return err
  362. }
  363. if skippy < 0 {
  364. return ErrInvalidLengthSiteBlockMng
  365. }
  366. if (iNdEx + skippy) > l {
  367. return io.ErrUnexpectedEOF
  368. }
  369. iNdEx += skippy
  370. }
  371. }
  372. if iNdEx > l {
  373. return io.ErrUnexpectedEOF
  374. }
  375. return nil
  376. }
  377. func (m *SiteBlockMngIsBlockUserResp) Unmarshal(dAtA []byte) error {
  378. l := len(dAtA)
  379. iNdEx := 0
  380. for iNdEx < l {
  381. preIndex := iNdEx
  382. var wire uint64
  383. for shift := uint(0); ; shift += 7 {
  384. if shift >= 64 {
  385. return ErrIntOverflowSiteBlockMng
  386. }
  387. if iNdEx >= l {
  388. return io.ErrUnexpectedEOF
  389. }
  390. b := dAtA[iNdEx]
  391. iNdEx++
  392. wire |= (uint64(b) & 0x7F) << shift
  393. if b < 0x80 {
  394. break
  395. }
  396. }
  397. fieldNum := int32(wire >> 3)
  398. wireType := int(wire & 0x7)
  399. if wireType == 4 {
  400. return fmt.Errorf("proto: SiteBlockMngIsBlockUserResp: wiretype end group for non-group")
  401. }
  402. if fieldNum <= 0 {
  403. return fmt.Errorf("proto: SiteBlockMngIsBlockUserResp: illegal tag %d (wire type %d)", fieldNum, wire)
  404. }
  405. switch fieldNum {
  406. case 1:
  407. if wireType != 0 {
  408. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  409. }
  410. m.Code = 0
  411. for shift := uint(0); ; shift += 7 {
  412. if shift >= 64 {
  413. return ErrIntOverflowSiteBlockMng
  414. }
  415. if iNdEx >= l {
  416. return io.ErrUnexpectedEOF
  417. }
  418. b := dAtA[iNdEx]
  419. iNdEx++
  420. m.Code |= (int64(b) & 0x7F) << shift
  421. if b < 0x80 {
  422. break
  423. }
  424. }
  425. case 2:
  426. if wireType != 2 {
  427. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  428. }
  429. var stringLen uint64
  430. for shift := uint(0); ; shift += 7 {
  431. if shift >= 64 {
  432. return ErrIntOverflowSiteBlockMng
  433. }
  434. if iNdEx >= l {
  435. return io.ErrUnexpectedEOF
  436. }
  437. b := dAtA[iNdEx]
  438. iNdEx++
  439. stringLen |= (uint64(b) & 0x7F) << shift
  440. if b < 0x80 {
  441. break
  442. }
  443. }
  444. intStringLen := int(stringLen)
  445. if intStringLen < 0 {
  446. return ErrInvalidLengthSiteBlockMng
  447. }
  448. postIndex := iNdEx + intStringLen
  449. if postIndex > l {
  450. return io.ErrUnexpectedEOF
  451. }
  452. m.Msg = string(dAtA[iNdEx:postIndex])
  453. iNdEx = postIndex
  454. case 3:
  455. if wireType != 2 {
  456. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  457. }
  458. var msglen int
  459. for shift := uint(0); ; shift += 7 {
  460. if shift >= 64 {
  461. return ErrIntOverflowSiteBlockMng
  462. }
  463. if iNdEx >= l {
  464. return io.ErrUnexpectedEOF
  465. }
  466. b := dAtA[iNdEx]
  467. iNdEx++
  468. msglen |= (int(b) & 0x7F) << shift
  469. if b < 0x80 {
  470. break
  471. }
  472. }
  473. if msglen < 0 {
  474. return ErrInvalidLengthSiteBlockMng
  475. }
  476. postIndex := iNdEx + msglen
  477. if postIndex > l {
  478. return io.ErrUnexpectedEOF
  479. }
  480. if m.Data == nil {
  481. m.Data = &SiteBlockMngIsBlockUserResp_Data{}
  482. }
  483. if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  484. return err
  485. }
  486. iNdEx = postIndex
  487. default:
  488. iNdEx = preIndex
  489. skippy, err := skipSiteBlockMng(dAtA[iNdEx:])
  490. if err != nil {
  491. return err
  492. }
  493. if skippy < 0 {
  494. return ErrInvalidLengthSiteBlockMng
  495. }
  496. if (iNdEx + skippy) > l {
  497. return io.ErrUnexpectedEOF
  498. }
  499. iNdEx += skippy
  500. }
  501. }
  502. if iNdEx > l {
  503. return io.ErrUnexpectedEOF
  504. }
  505. return nil
  506. }
  507. func (m *SiteBlockMngIsBlockUserResp_Data) 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 ErrIntOverflowSiteBlockMng
  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: Data: wiretype end group for non-group")
  531. }
  532. if fieldNum <= 0 {
  533. return fmt.Errorf("proto: Data: 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 IsBlock", wireType)
  539. }
  540. var v int
  541. for shift := uint(0); ; shift += 7 {
  542. if shift >= 64 {
  543. return ErrIntOverflowSiteBlockMng
  544. }
  545. if iNdEx >= l {
  546. return io.ErrUnexpectedEOF
  547. }
  548. b := dAtA[iNdEx]
  549. iNdEx++
  550. v |= (int(b) & 0x7F) << shift
  551. if b < 0x80 {
  552. break
  553. }
  554. }
  555. m.IsBlock = bool(v != 0)
  556. default:
  557. iNdEx = preIndex
  558. skippy, err := skipSiteBlockMng(dAtA[iNdEx:])
  559. if err != nil {
  560. return err
  561. }
  562. if skippy < 0 {
  563. return ErrInvalidLengthSiteBlockMng
  564. }
  565. if (iNdEx + skippy) > l {
  566. return io.ErrUnexpectedEOF
  567. }
  568. iNdEx += skippy
  569. }
  570. }
  571. if iNdEx > l {
  572. return io.ErrUnexpectedEOF
  573. }
  574. return nil
  575. }
  576. func skipSiteBlockMng(dAtA []byte) (n int, err error) {
  577. l := len(dAtA)
  578. iNdEx := 0
  579. for iNdEx < l {
  580. var wire uint64
  581. for shift := uint(0); ; shift += 7 {
  582. if shift >= 64 {
  583. return 0, ErrIntOverflowSiteBlockMng
  584. }
  585. if iNdEx >= l {
  586. return 0, io.ErrUnexpectedEOF
  587. }
  588. b := dAtA[iNdEx]
  589. iNdEx++
  590. wire |= (uint64(b) & 0x7F) << shift
  591. if b < 0x80 {
  592. break
  593. }
  594. }
  595. wireType := int(wire & 0x7)
  596. switch wireType {
  597. case 0:
  598. for shift := uint(0); ; shift += 7 {
  599. if shift >= 64 {
  600. return 0, ErrIntOverflowSiteBlockMng
  601. }
  602. if iNdEx >= l {
  603. return 0, io.ErrUnexpectedEOF
  604. }
  605. iNdEx++
  606. if dAtA[iNdEx-1] < 0x80 {
  607. break
  608. }
  609. }
  610. return iNdEx, nil
  611. case 1:
  612. iNdEx += 8
  613. return iNdEx, nil
  614. case 2:
  615. var length int
  616. for shift := uint(0); ; shift += 7 {
  617. if shift >= 64 {
  618. return 0, ErrIntOverflowSiteBlockMng
  619. }
  620. if iNdEx >= l {
  621. return 0, io.ErrUnexpectedEOF
  622. }
  623. b := dAtA[iNdEx]
  624. iNdEx++
  625. length |= (int(b) & 0x7F) << shift
  626. if b < 0x80 {
  627. break
  628. }
  629. }
  630. iNdEx += length
  631. if length < 0 {
  632. return 0, ErrInvalidLengthSiteBlockMng
  633. }
  634. return iNdEx, nil
  635. case 3:
  636. for {
  637. var innerWire uint64
  638. var start int = iNdEx
  639. for shift := uint(0); ; shift += 7 {
  640. if shift >= 64 {
  641. return 0, ErrIntOverflowSiteBlockMng
  642. }
  643. if iNdEx >= l {
  644. return 0, io.ErrUnexpectedEOF
  645. }
  646. b := dAtA[iNdEx]
  647. iNdEx++
  648. innerWire |= (uint64(b) & 0x7F) << shift
  649. if b < 0x80 {
  650. break
  651. }
  652. }
  653. innerWireType := int(innerWire & 0x7)
  654. if innerWireType == 4 {
  655. break
  656. }
  657. next, err := skipSiteBlockMng(dAtA[start:])
  658. if err != nil {
  659. return 0, err
  660. }
  661. iNdEx = start + next
  662. }
  663. return iNdEx, nil
  664. case 4:
  665. return iNdEx, nil
  666. case 5:
  667. iNdEx += 4
  668. return iNdEx, nil
  669. default:
  670. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  671. }
  672. }
  673. panic("unreachable")
  674. }
  675. var (
  676. ErrInvalidLengthSiteBlockMng = fmt.Errorf("proto: negative length found during unmarshaling")
  677. ErrIntOverflowSiteBlockMng = fmt.Errorf("proto: integer overflow")
  678. )
  679. func init() { proto.RegisterFile("v1/SiteBlockMng.proto", fileDescriptor_SiteBlockMng_7cdfb51c66347671) }
  680. var fileDescriptor_SiteBlockMng_7cdfb51c66347671 = []byte{
  681. // 308 bytes of a gzipped FileDescriptorProto
  682. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2d, 0x33, 0xd4, 0x0f,
  683. 0xce, 0x2c, 0x49, 0x75, 0xca, 0xc9, 0x4f, 0xce, 0xf6, 0xcd, 0x4b, 0xd7, 0x2b, 0x28, 0xca, 0x2f,
  684. 0xc9, 0x17, 0x12, 0x4c, 0x4a, 0xcc, 0xcb, 0x4b, 0x4d, 0x89, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c,
  685. 0x4e, 0xd5, 0x2b, 0x33, 0x94, 0xd2, 0x4d, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf,
  686. 0xd5, 0x4f, 0xcf, 0x4f, 0xcf, 0xd7, 0x07, 0xab, 0x4c, 0x2a, 0x4d, 0x03, 0xf3, 0xc0, 0x1c, 0x30,
  687. 0x0b, 0x62, 0x82, 0x92, 0x15, 0x97, 0x14, 0xb2, 0xb9, 0x9e, 0xc5, 0x60, 0x56, 0x68, 0x71, 0x6a,
  688. 0x51, 0x50, 0x6a, 0xa1, 0x90, 0x0c, 0x17, 0x4b, 0x49, 0x69, 0x66, 0x8a, 0x04, 0xa3, 0x02, 0xa3,
  689. 0x06, 0xb3, 0x13, 0xc7, 0xab, 0x7b, 0xf2, 0x60, 0x7e, 0x10, 0x98, 0x54, 0xba, 0xc5, 0xc8, 0x25,
  690. 0x8d, 0x53, 0x73, 0x71, 0x01, 0x48, 0x77, 0x72, 0x7e, 0x4a, 0x2a, 0xb2, 0x6e, 0x10, 0x3f, 0x08,
  691. 0x4c, 0x0a, 0x49, 0x72, 0x31, 0xe7, 0x16, 0xa7, 0x4b, 0x30, 0x29, 0x30, 0x6a, 0x70, 0x3a, 0xb1,
  692. 0xbf, 0xba, 0x27, 0x0f, 0xe2, 0x06, 0x81, 0x08, 0xa1, 0x40, 0x2e, 0x96, 0x94, 0xc4, 0x92, 0x44,
  693. 0x09, 0x66, 0x05, 0x46, 0x0d, 0x6e, 0x23, 0x63, 0x3d, 0x0c, 0x5f, 0xea, 0xe1, 0xb1, 0x56, 0xcf,
  694. 0x25, 0xb1, 0x24, 0x11, 0x62, 0x1b, 0xc8, 0x90, 0x20, 0x30, 0x29, 0xa5, 0xcf, 0xc5, 0x02, 0x12,
  695. 0x17, 0x52, 0xe7, 0xe2, 0xc8, 0x2c, 0x8e, 0x4f, 0x02, 0x69, 0x00, 0xbb, 0x8b, 0xc3, 0x89, 0xe7,
  696. 0xd5, 0x3d, 0x79, 0xb8, 0x58, 0x10, 0x7b, 0x26, 0xc4, 0x34, 0xa3, 0x1a, 0x2e, 0x1e, 0x64, 0x4b,
  697. 0x84, 0x72, 0xb8, 0xb8, 0x33, 0x11, 0x16, 0x09, 0xe9, 0x92, 0xe2, 0xa8, 0x42, 0x29, 0x3d, 0xd2,
  698. 0xfc, 0xe0, 0x24, 0x73, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31,
  699. 0x4e, 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0x4c, 0x65,
  700. 0x86, 0x49, 0x6c, 0xe0, 0xb8, 0x33, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x00, 0x1b, 0x90, 0xa5,
  701. 0x16, 0x02, 0x00, 0x00,
  702. }