auth.pb.go 18 KB

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