sns.pb.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: sns.proto
  3. /*
  4. Package model is a generated protocol buffer package.
  5. It is generated from these files:
  6. sns.proto
  7. It has these top-level messages:
  8. SnsProto
  9. Oauth2Proto
  10. */
  11. package model
  12. import proto "github.com/golang/protobuf/proto"
  13. import fmt "fmt"
  14. import math "math"
  15. import _ "github.com/gogo/protobuf/gogoproto"
  16. import io "io"
  17. // Reference imports to suppress errors if they are not otherwise used.
  18. var _ = proto.Marshal
  19. var _ = fmt.Errorf
  20. var _ = math.Inf
  21. // This is a compile-time assertion to ensure that this generated file
  22. // is compatible with the proto package it is being compiled against.
  23. // A compilation error at this line likely means your copy of the
  24. // proto package needs to be updated.
  25. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  26. type SnsProto struct {
  27. Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"`
  28. UnionID string `protobuf:"bytes,2,opt,name=UnionID,proto3" json:"unionid"`
  29. Platform int32 `protobuf:"varint,3,opt,name=Platform,proto3" json:"platform"`
  30. Expires int64 `protobuf:"varint,4,opt,name=Expires,proto3" json:"expires"`
  31. }
  32. func (m *SnsProto) Reset() { *m = SnsProto{} }
  33. func (m *SnsProto) String() string { return proto.CompactTextString(m) }
  34. func (*SnsProto) ProtoMessage() {}
  35. func (*SnsProto) Descriptor() ([]byte, []int) { return fileDescriptorSns, []int{0} }
  36. func (m *SnsProto) GetMid() int64 {
  37. if m != nil {
  38. return m.Mid
  39. }
  40. return 0
  41. }
  42. func (m *SnsProto) GetUnionID() string {
  43. if m != nil {
  44. return m.UnionID
  45. }
  46. return ""
  47. }
  48. func (m *SnsProto) GetPlatform() int32 {
  49. if m != nil {
  50. return m.Platform
  51. }
  52. return 0
  53. }
  54. func (m *SnsProto) GetExpires() int64 {
  55. if m != nil {
  56. return m.Expires
  57. }
  58. return 0
  59. }
  60. type Oauth2Proto struct {
  61. Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"`
  62. UnionID string `protobuf:"bytes,2,opt,name=UnionID,proto3" json:"unionid"`
  63. OpenID string `protobuf:"bytes,3,opt,name=OpenID,proto3" json:"openid"`
  64. Platform int32 `protobuf:"varint,4,opt,name=Platform,proto3" json:"platform"`
  65. AppID string `protobuf:"bytes,5,opt,name=AppID,proto3" json:"appid"`
  66. Token string `protobuf:"bytes,6,opt,name=Token,proto3" json:"token"`
  67. Expires int64 `protobuf:"varint,7,opt,name=Expires,proto3" json:"expires"`
  68. }
  69. func (m *Oauth2Proto) Reset() { *m = Oauth2Proto{} }
  70. func (m *Oauth2Proto) String() string { return proto.CompactTextString(m) }
  71. func (*Oauth2Proto) ProtoMessage() {}
  72. func (*Oauth2Proto) Descriptor() ([]byte, []int) { return fileDescriptorSns, []int{1} }
  73. func (m *Oauth2Proto) GetMid() int64 {
  74. if m != nil {
  75. return m.Mid
  76. }
  77. return 0
  78. }
  79. func (m *Oauth2Proto) GetUnionID() string {
  80. if m != nil {
  81. return m.UnionID
  82. }
  83. return ""
  84. }
  85. func (m *Oauth2Proto) GetOpenID() string {
  86. if m != nil {
  87. return m.OpenID
  88. }
  89. return ""
  90. }
  91. func (m *Oauth2Proto) GetPlatform() int32 {
  92. if m != nil {
  93. return m.Platform
  94. }
  95. return 0
  96. }
  97. func (m *Oauth2Proto) GetAppID() string {
  98. if m != nil {
  99. return m.AppID
  100. }
  101. return ""
  102. }
  103. func (m *Oauth2Proto) GetToken() string {
  104. if m != nil {
  105. return m.Token
  106. }
  107. return ""
  108. }
  109. func (m *Oauth2Proto) GetExpires() int64 {
  110. if m != nil {
  111. return m.Expires
  112. }
  113. return 0
  114. }
  115. func init() {
  116. proto.RegisterType((*SnsProto)(nil), "passport.service.sns.SnsProto")
  117. proto.RegisterType((*Oauth2Proto)(nil), "passport.service.sns.Oauth2Proto")
  118. }
  119. func (m *SnsProto) Marshal() (dAtA []byte, err error) {
  120. size := m.Size()
  121. dAtA = make([]byte, size)
  122. n, err := m.MarshalTo(dAtA)
  123. if err != nil {
  124. return nil, err
  125. }
  126. return dAtA[:n], nil
  127. }
  128. func (m *SnsProto) MarshalTo(dAtA []byte) (int, error) {
  129. var i int
  130. _ = i
  131. var l int
  132. _ = l
  133. if m.Mid != 0 {
  134. dAtA[i] = 0x8
  135. i++
  136. i = encodeVarintSns(dAtA, i, uint64(m.Mid))
  137. }
  138. if len(m.UnionID) > 0 {
  139. dAtA[i] = 0x12
  140. i++
  141. i = encodeVarintSns(dAtA, i, uint64(len(m.UnionID)))
  142. i += copy(dAtA[i:], m.UnionID)
  143. }
  144. if m.Platform != 0 {
  145. dAtA[i] = 0x18
  146. i++
  147. i = encodeVarintSns(dAtA, i, uint64(m.Platform))
  148. }
  149. if m.Expires != 0 {
  150. dAtA[i] = 0x20
  151. i++
  152. i = encodeVarintSns(dAtA, i, uint64(m.Expires))
  153. }
  154. return i, nil
  155. }
  156. func (m *Oauth2Proto) Marshal() (dAtA []byte, err error) {
  157. size := m.Size()
  158. dAtA = make([]byte, size)
  159. n, err := m.MarshalTo(dAtA)
  160. if err != nil {
  161. return nil, err
  162. }
  163. return dAtA[:n], nil
  164. }
  165. func (m *Oauth2Proto) MarshalTo(dAtA []byte) (int, error) {
  166. var i int
  167. _ = i
  168. var l int
  169. _ = l
  170. if m.Mid != 0 {
  171. dAtA[i] = 0x8
  172. i++
  173. i = encodeVarintSns(dAtA, i, uint64(m.Mid))
  174. }
  175. if len(m.UnionID) > 0 {
  176. dAtA[i] = 0x12
  177. i++
  178. i = encodeVarintSns(dAtA, i, uint64(len(m.UnionID)))
  179. i += copy(dAtA[i:], m.UnionID)
  180. }
  181. if len(m.OpenID) > 0 {
  182. dAtA[i] = 0x1a
  183. i++
  184. i = encodeVarintSns(dAtA, i, uint64(len(m.OpenID)))
  185. i += copy(dAtA[i:], m.OpenID)
  186. }
  187. if m.Platform != 0 {
  188. dAtA[i] = 0x20
  189. i++
  190. i = encodeVarintSns(dAtA, i, uint64(m.Platform))
  191. }
  192. if len(m.AppID) > 0 {
  193. dAtA[i] = 0x2a
  194. i++
  195. i = encodeVarintSns(dAtA, i, uint64(len(m.AppID)))
  196. i += copy(dAtA[i:], m.AppID)
  197. }
  198. if len(m.Token) > 0 {
  199. dAtA[i] = 0x32
  200. i++
  201. i = encodeVarintSns(dAtA, i, uint64(len(m.Token)))
  202. i += copy(dAtA[i:], m.Token)
  203. }
  204. if m.Expires != 0 {
  205. dAtA[i] = 0x38
  206. i++
  207. i = encodeVarintSns(dAtA, i, uint64(m.Expires))
  208. }
  209. return i, nil
  210. }
  211. func encodeVarintSns(dAtA []byte, offset int, v uint64) int {
  212. for v >= 1<<7 {
  213. dAtA[offset] = uint8(v&0x7f | 0x80)
  214. v >>= 7
  215. offset++
  216. }
  217. dAtA[offset] = uint8(v)
  218. return offset + 1
  219. }
  220. func (m *SnsProto) Size() (n int) {
  221. var l int
  222. _ = l
  223. if m.Mid != 0 {
  224. n += 1 + sovSns(uint64(m.Mid))
  225. }
  226. l = len(m.UnionID)
  227. if l > 0 {
  228. n += 1 + l + sovSns(uint64(l))
  229. }
  230. if m.Platform != 0 {
  231. n += 1 + sovSns(uint64(m.Platform))
  232. }
  233. if m.Expires != 0 {
  234. n += 1 + sovSns(uint64(m.Expires))
  235. }
  236. return n
  237. }
  238. func (m *Oauth2Proto) Size() (n int) {
  239. var l int
  240. _ = l
  241. if m.Mid != 0 {
  242. n += 1 + sovSns(uint64(m.Mid))
  243. }
  244. l = len(m.UnionID)
  245. if l > 0 {
  246. n += 1 + l + sovSns(uint64(l))
  247. }
  248. l = len(m.OpenID)
  249. if l > 0 {
  250. n += 1 + l + sovSns(uint64(l))
  251. }
  252. if m.Platform != 0 {
  253. n += 1 + sovSns(uint64(m.Platform))
  254. }
  255. l = len(m.AppID)
  256. if l > 0 {
  257. n += 1 + l + sovSns(uint64(l))
  258. }
  259. l = len(m.Token)
  260. if l > 0 {
  261. n += 1 + l + sovSns(uint64(l))
  262. }
  263. if m.Expires != 0 {
  264. n += 1 + sovSns(uint64(m.Expires))
  265. }
  266. return n
  267. }
  268. func sovSns(x uint64) (n int) {
  269. for {
  270. n++
  271. x >>= 7
  272. if x == 0 {
  273. break
  274. }
  275. }
  276. return n
  277. }
  278. func sozSns(x uint64) (n int) {
  279. return sovSns(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  280. }
  281. func (m *SnsProto) Unmarshal(dAtA []byte) error {
  282. l := len(dAtA)
  283. iNdEx := 0
  284. for iNdEx < l {
  285. preIndex := iNdEx
  286. var wire uint64
  287. for shift := uint(0); ; shift += 7 {
  288. if shift >= 64 {
  289. return ErrIntOverflowSns
  290. }
  291. if iNdEx >= l {
  292. return io.ErrUnexpectedEOF
  293. }
  294. b := dAtA[iNdEx]
  295. iNdEx++
  296. wire |= (uint64(b) & 0x7F) << shift
  297. if b < 0x80 {
  298. break
  299. }
  300. }
  301. fieldNum := int32(wire >> 3)
  302. wireType := int(wire & 0x7)
  303. if wireType == 4 {
  304. return fmt.Errorf("proto: SnsProto: wiretype end group for non-group")
  305. }
  306. if fieldNum <= 0 {
  307. return fmt.Errorf("proto: SnsProto: illegal tag %d (wire type %d)", fieldNum, wire)
  308. }
  309. switch fieldNum {
  310. case 1:
  311. if wireType != 0 {
  312. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  313. }
  314. m.Mid = 0
  315. for shift := uint(0); ; shift += 7 {
  316. if shift >= 64 {
  317. return ErrIntOverflowSns
  318. }
  319. if iNdEx >= l {
  320. return io.ErrUnexpectedEOF
  321. }
  322. b := dAtA[iNdEx]
  323. iNdEx++
  324. m.Mid |= (int64(b) & 0x7F) << shift
  325. if b < 0x80 {
  326. break
  327. }
  328. }
  329. case 2:
  330. if wireType != 2 {
  331. return fmt.Errorf("proto: wrong wireType = %d for field UnionID", wireType)
  332. }
  333. var stringLen uint64
  334. for shift := uint(0); ; shift += 7 {
  335. if shift >= 64 {
  336. return ErrIntOverflowSns
  337. }
  338. if iNdEx >= l {
  339. return io.ErrUnexpectedEOF
  340. }
  341. b := dAtA[iNdEx]
  342. iNdEx++
  343. stringLen |= (uint64(b) & 0x7F) << shift
  344. if b < 0x80 {
  345. break
  346. }
  347. }
  348. intStringLen := int(stringLen)
  349. if intStringLen < 0 {
  350. return ErrInvalidLengthSns
  351. }
  352. postIndex := iNdEx + intStringLen
  353. if postIndex > l {
  354. return io.ErrUnexpectedEOF
  355. }
  356. m.UnionID = string(dAtA[iNdEx:postIndex])
  357. iNdEx = postIndex
  358. case 3:
  359. if wireType != 0 {
  360. return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType)
  361. }
  362. m.Platform = 0
  363. for shift := uint(0); ; shift += 7 {
  364. if shift >= 64 {
  365. return ErrIntOverflowSns
  366. }
  367. if iNdEx >= l {
  368. return io.ErrUnexpectedEOF
  369. }
  370. b := dAtA[iNdEx]
  371. iNdEx++
  372. m.Platform |= (int32(b) & 0x7F) << shift
  373. if b < 0x80 {
  374. break
  375. }
  376. }
  377. case 4:
  378. if wireType != 0 {
  379. return fmt.Errorf("proto: wrong wireType = %d for field Expires", wireType)
  380. }
  381. m.Expires = 0
  382. for shift := uint(0); ; shift += 7 {
  383. if shift >= 64 {
  384. return ErrIntOverflowSns
  385. }
  386. if iNdEx >= l {
  387. return io.ErrUnexpectedEOF
  388. }
  389. b := dAtA[iNdEx]
  390. iNdEx++
  391. m.Expires |= (int64(b) & 0x7F) << shift
  392. if b < 0x80 {
  393. break
  394. }
  395. }
  396. default:
  397. iNdEx = preIndex
  398. skippy, err := skipSns(dAtA[iNdEx:])
  399. if err != nil {
  400. return err
  401. }
  402. if skippy < 0 {
  403. return ErrInvalidLengthSns
  404. }
  405. if (iNdEx + skippy) > l {
  406. return io.ErrUnexpectedEOF
  407. }
  408. iNdEx += skippy
  409. }
  410. }
  411. if iNdEx > l {
  412. return io.ErrUnexpectedEOF
  413. }
  414. return nil
  415. }
  416. func (m *Oauth2Proto) Unmarshal(dAtA []byte) error {
  417. l := len(dAtA)
  418. iNdEx := 0
  419. for iNdEx < l {
  420. preIndex := iNdEx
  421. var wire uint64
  422. for shift := uint(0); ; shift += 7 {
  423. if shift >= 64 {
  424. return ErrIntOverflowSns
  425. }
  426. if iNdEx >= l {
  427. return io.ErrUnexpectedEOF
  428. }
  429. b := dAtA[iNdEx]
  430. iNdEx++
  431. wire |= (uint64(b) & 0x7F) << shift
  432. if b < 0x80 {
  433. break
  434. }
  435. }
  436. fieldNum := int32(wire >> 3)
  437. wireType := int(wire & 0x7)
  438. if wireType == 4 {
  439. return fmt.Errorf("proto: Oauth2Proto: wiretype end group for non-group")
  440. }
  441. if fieldNum <= 0 {
  442. return fmt.Errorf("proto: Oauth2Proto: illegal tag %d (wire type %d)", fieldNum, wire)
  443. }
  444. switch fieldNum {
  445. case 1:
  446. if wireType != 0 {
  447. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  448. }
  449. m.Mid = 0
  450. for shift := uint(0); ; shift += 7 {
  451. if shift >= 64 {
  452. return ErrIntOverflowSns
  453. }
  454. if iNdEx >= l {
  455. return io.ErrUnexpectedEOF
  456. }
  457. b := dAtA[iNdEx]
  458. iNdEx++
  459. m.Mid |= (int64(b) & 0x7F) << shift
  460. if b < 0x80 {
  461. break
  462. }
  463. }
  464. case 2:
  465. if wireType != 2 {
  466. return fmt.Errorf("proto: wrong wireType = %d for field UnionID", wireType)
  467. }
  468. var stringLen uint64
  469. for shift := uint(0); ; shift += 7 {
  470. if shift >= 64 {
  471. return ErrIntOverflowSns
  472. }
  473. if iNdEx >= l {
  474. return io.ErrUnexpectedEOF
  475. }
  476. b := dAtA[iNdEx]
  477. iNdEx++
  478. stringLen |= (uint64(b) & 0x7F) << shift
  479. if b < 0x80 {
  480. break
  481. }
  482. }
  483. intStringLen := int(stringLen)
  484. if intStringLen < 0 {
  485. return ErrInvalidLengthSns
  486. }
  487. postIndex := iNdEx + intStringLen
  488. if postIndex > l {
  489. return io.ErrUnexpectedEOF
  490. }
  491. m.UnionID = string(dAtA[iNdEx:postIndex])
  492. iNdEx = postIndex
  493. case 3:
  494. if wireType != 2 {
  495. return fmt.Errorf("proto: wrong wireType = %d for field OpenID", wireType)
  496. }
  497. var stringLen uint64
  498. for shift := uint(0); ; shift += 7 {
  499. if shift >= 64 {
  500. return ErrIntOverflowSns
  501. }
  502. if iNdEx >= l {
  503. return io.ErrUnexpectedEOF
  504. }
  505. b := dAtA[iNdEx]
  506. iNdEx++
  507. stringLen |= (uint64(b) & 0x7F) << shift
  508. if b < 0x80 {
  509. break
  510. }
  511. }
  512. intStringLen := int(stringLen)
  513. if intStringLen < 0 {
  514. return ErrInvalidLengthSns
  515. }
  516. postIndex := iNdEx + intStringLen
  517. if postIndex > l {
  518. return io.ErrUnexpectedEOF
  519. }
  520. m.OpenID = string(dAtA[iNdEx:postIndex])
  521. iNdEx = postIndex
  522. case 4:
  523. if wireType != 0 {
  524. return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType)
  525. }
  526. m.Platform = 0
  527. for shift := uint(0); ; shift += 7 {
  528. if shift >= 64 {
  529. return ErrIntOverflowSns
  530. }
  531. if iNdEx >= l {
  532. return io.ErrUnexpectedEOF
  533. }
  534. b := dAtA[iNdEx]
  535. iNdEx++
  536. m.Platform |= (int32(b) & 0x7F) << shift
  537. if b < 0x80 {
  538. break
  539. }
  540. }
  541. case 5:
  542. if wireType != 2 {
  543. return fmt.Errorf("proto: wrong wireType = %d for field AppID", wireType)
  544. }
  545. var stringLen uint64
  546. for shift := uint(0); ; shift += 7 {
  547. if shift >= 64 {
  548. return ErrIntOverflowSns
  549. }
  550. if iNdEx >= l {
  551. return io.ErrUnexpectedEOF
  552. }
  553. b := dAtA[iNdEx]
  554. iNdEx++
  555. stringLen |= (uint64(b) & 0x7F) << shift
  556. if b < 0x80 {
  557. break
  558. }
  559. }
  560. intStringLen := int(stringLen)
  561. if intStringLen < 0 {
  562. return ErrInvalidLengthSns
  563. }
  564. postIndex := iNdEx + intStringLen
  565. if postIndex > l {
  566. return io.ErrUnexpectedEOF
  567. }
  568. m.AppID = string(dAtA[iNdEx:postIndex])
  569. iNdEx = postIndex
  570. case 6:
  571. if wireType != 2 {
  572. return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
  573. }
  574. var stringLen uint64
  575. for shift := uint(0); ; shift += 7 {
  576. if shift >= 64 {
  577. return ErrIntOverflowSns
  578. }
  579. if iNdEx >= l {
  580. return io.ErrUnexpectedEOF
  581. }
  582. b := dAtA[iNdEx]
  583. iNdEx++
  584. stringLen |= (uint64(b) & 0x7F) << shift
  585. if b < 0x80 {
  586. break
  587. }
  588. }
  589. intStringLen := int(stringLen)
  590. if intStringLen < 0 {
  591. return ErrInvalidLengthSns
  592. }
  593. postIndex := iNdEx + intStringLen
  594. if postIndex > l {
  595. return io.ErrUnexpectedEOF
  596. }
  597. m.Token = string(dAtA[iNdEx:postIndex])
  598. iNdEx = postIndex
  599. case 7:
  600. if wireType != 0 {
  601. return fmt.Errorf("proto: wrong wireType = %d for field Expires", wireType)
  602. }
  603. m.Expires = 0
  604. for shift := uint(0); ; shift += 7 {
  605. if shift >= 64 {
  606. return ErrIntOverflowSns
  607. }
  608. if iNdEx >= l {
  609. return io.ErrUnexpectedEOF
  610. }
  611. b := dAtA[iNdEx]
  612. iNdEx++
  613. m.Expires |= (int64(b) & 0x7F) << shift
  614. if b < 0x80 {
  615. break
  616. }
  617. }
  618. default:
  619. iNdEx = preIndex
  620. skippy, err := skipSns(dAtA[iNdEx:])
  621. if err != nil {
  622. return err
  623. }
  624. if skippy < 0 {
  625. return ErrInvalidLengthSns
  626. }
  627. if (iNdEx + skippy) > l {
  628. return io.ErrUnexpectedEOF
  629. }
  630. iNdEx += skippy
  631. }
  632. }
  633. if iNdEx > l {
  634. return io.ErrUnexpectedEOF
  635. }
  636. return nil
  637. }
  638. func skipSns(dAtA []byte) (n int, err error) {
  639. l := len(dAtA)
  640. iNdEx := 0
  641. for iNdEx < l {
  642. var wire uint64
  643. for shift := uint(0); ; shift += 7 {
  644. if shift >= 64 {
  645. return 0, ErrIntOverflowSns
  646. }
  647. if iNdEx >= l {
  648. return 0, io.ErrUnexpectedEOF
  649. }
  650. b := dAtA[iNdEx]
  651. iNdEx++
  652. wire |= (uint64(b) & 0x7F) << shift
  653. if b < 0x80 {
  654. break
  655. }
  656. }
  657. wireType := int(wire & 0x7)
  658. switch wireType {
  659. case 0:
  660. for shift := uint(0); ; shift += 7 {
  661. if shift >= 64 {
  662. return 0, ErrIntOverflowSns
  663. }
  664. if iNdEx >= l {
  665. return 0, io.ErrUnexpectedEOF
  666. }
  667. iNdEx++
  668. if dAtA[iNdEx-1] < 0x80 {
  669. break
  670. }
  671. }
  672. return iNdEx, nil
  673. case 1:
  674. iNdEx += 8
  675. return iNdEx, nil
  676. case 2:
  677. var length int
  678. for shift := uint(0); ; shift += 7 {
  679. if shift >= 64 {
  680. return 0, ErrIntOverflowSns
  681. }
  682. if iNdEx >= l {
  683. return 0, io.ErrUnexpectedEOF
  684. }
  685. b := dAtA[iNdEx]
  686. iNdEx++
  687. length |= (int(b) & 0x7F) << shift
  688. if b < 0x80 {
  689. break
  690. }
  691. }
  692. iNdEx += length
  693. if length < 0 {
  694. return 0, ErrInvalidLengthSns
  695. }
  696. return iNdEx, nil
  697. case 3:
  698. for {
  699. var innerWire uint64
  700. var start int = iNdEx
  701. for shift := uint(0); ; shift += 7 {
  702. if shift >= 64 {
  703. return 0, ErrIntOverflowSns
  704. }
  705. if iNdEx >= l {
  706. return 0, io.ErrUnexpectedEOF
  707. }
  708. b := dAtA[iNdEx]
  709. iNdEx++
  710. innerWire |= (uint64(b) & 0x7F) << shift
  711. if b < 0x80 {
  712. break
  713. }
  714. }
  715. innerWireType := int(innerWire & 0x7)
  716. if innerWireType == 4 {
  717. break
  718. }
  719. next, err := skipSns(dAtA[start:])
  720. if err != nil {
  721. return 0, err
  722. }
  723. iNdEx = start + next
  724. }
  725. return iNdEx, nil
  726. case 4:
  727. return iNdEx, nil
  728. case 5:
  729. iNdEx += 4
  730. return iNdEx, nil
  731. default:
  732. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  733. }
  734. }
  735. panic("unreachable")
  736. }
  737. var (
  738. ErrInvalidLengthSns = fmt.Errorf("proto: negative length found during unmarshaling")
  739. ErrIntOverflowSns = fmt.Errorf("proto: integer overflow")
  740. )
  741. func init() { proto.RegisterFile("sns.proto", fileDescriptorSns) }
  742. var fileDescriptorSns = []byte{
  743. // 326 bytes of a gzipped FileDescriptorProto
  744. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x91, 0x3f, 0x4e, 0xf3, 0x30,
  745. 0x18, 0xc6, 0x3f, 0x37, 0x4d, 0xd2, 0xba, 0xdf, 0x54, 0x21, 0x61, 0x18, 0xe2, 0xaa, 0x12, 0x52,
  746. 0x16, 0x52, 0x09, 0x4e, 0x40, 0x54, 0x86, 0x0e, 0xa8, 0x95, 0x81, 0x85, 0x2d, 0x6d, 0xdc, 0xd6,
  747. 0xa2, 0xb1, 0xad, 0xd8, 0x41, 0x9c, 0x80, 0x33, 0xb0, 0x70, 0x1f, 0x46, 0x4e, 0x10, 0xa1, 0xb0,
  748. 0xe5, 0x14, 0xc8, 0x4e, 0xcb, 0x9f, 0x01, 0x26, 0xb6, 0xbc, 0xbf, 0xe7, 0xa7, 0x27, 0x79, 0xdf,
  749. 0xc0, 0xae, 0xe2, 0x2a, 0x92, 0xb9, 0xd0, 0xa2, 0xbf, 0x27, 0x13, 0xa5, 0xa4, 0xc8, 0x75, 0xa4,
  750. 0x68, 0x7e, 0xc7, 0x16, 0x34, 0x52, 0x5c, 0x1d, 0x1e, 0xaf, 0x98, 0x5e, 0x17, 0xf3, 0x68, 0x21,
  751. 0xb2, 0xd1, 0x4a, 0xac, 0xc4, 0xc8, 0xca, 0xf3, 0x62, 0x69, 0x27, 0x3b, 0xd8, 0xa7, 0xa6, 0x64,
  752. 0xf8, 0x04, 0x60, 0xe7, 0x92, 0xab, 0x99, 0x6d, 0x3c, 0x80, 0xce, 0x05, 0x4b, 0x11, 0x18, 0x80,
  753. 0xd0, 0x89, 0xfd, 0xba, 0xc4, 0x4e, 0xc6, 0x52, 0x62, 0x58, 0xff, 0x08, 0xfa, 0xd7, 0x9c, 0x09,
  754. 0x3e, 0x19, 0xa3, 0xd6, 0x00, 0x84, 0xdd, 0xb8, 0x57, 0x97, 0xd8, 0x2f, 0x0c, 0x62, 0x29, 0xd9,
  755. 0x65, 0xfd, 0x10, 0x76, 0x66, 0x9b, 0x44, 0x2f, 0x45, 0x9e, 0x21, 0x67, 0x00, 0x42, 0x37, 0xfe,
  756. 0x5f, 0x97, 0xb8, 0x23, 0xb7, 0x8c, 0x7c, 0xa4, 0xa6, 0xf0, 0xfc, 0x5e, 0xb2, 0x9c, 0x2a, 0xd4,
  757. 0xb6, 0xef, 0xb3, 0x85, 0xb4, 0x41, 0x64, 0x97, 0x0d, 0x1f, 0x5a, 0xb0, 0x37, 0x4d, 0x0a, 0xbd,
  758. 0x3e, 0xf9, 0xab, 0x4f, 0x1c, 0x42, 0x6f, 0x2a, 0xa9, 0xb1, 0x1c, 0x6b, 0xc1, 0xba, 0xc4, 0x9e,
  759. 0x90, 0xd4, 0x48, 0xdb, 0xe4, 0xdb, 0x1a, 0xed, 0x5f, 0xd7, 0xc0, 0xd0, 0x3d, 0x93, 0x72, 0x32,
  760. 0x46, 0xae, 0x2d, 0xeb, 0xd6, 0x25, 0x76, 0x13, 0x29, 0x59, 0x4a, 0x1a, 0x6e, 0x84, 0x2b, 0x71,
  761. 0x4b, 0x39, 0xf2, 0x3e, 0x05, 0x6d, 0x00, 0x69, 0xf8, 0xd7, 0x43, 0xf8, 0x3f, 0x1f, 0x22, 0xde,
  762. 0x7f, 0xae, 0x02, 0xf0, 0x52, 0x05, 0xe0, 0xb5, 0x0a, 0xc0, 0xe3, 0x5b, 0xf0, 0xef, 0xc6, 0xcd,
  763. 0x44, 0x4a, 0x37, 0x73, 0xcf, 0xfe, 0xc8, 0xd3, 0xf7, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6e, 0x2d,
  764. 0x91, 0x85, 0x1a, 0x02, 0x00, 0x00,
  765. }