TitleStuff.pb.go 18 KB

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