manifest.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: manifest.proto
  3. package protos
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import io "io"
  8. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. type ManifestChange_Operation int32
  13. const (
  14. ManifestChange_CREATE ManifestChange_Operation = 0
  15. ManifestChange_DELETE ManifestChange_Operation = 1
  16. )
  17. var ManifestChange_Operation_name = map[int32]string{
  18. 0: "CREATE",
  19. 1: "DELETE",
  20. }
  21. var ManifestChange_Operation_value = map[string]int32{
  22. "CREATE": 0,
  23. "DELETE": 1,
  24. }
  25. func (x ManifestChange_Operation) String() string {
  26. return proto.EnumName(ManifestChange_Operation_name, int32(x))
  27. }
  28. func (ManifestChange_Operation) EnumDescriptor() ([]byte, []int) {
  29. return fileDescriptorManifest, []int{1, 0}
  30. }
  31. type ManifestChangeSet struct {
  32. // A set of changes that are applied atomically.
  33. Changes []*ManifestChange `protobuf:"bytes,1,rep,name=changes" json:"changes,omitempty"`
  34. }
  35. func (m *ManifestChangeSet) Reset() { *m = ManifestChangeSet{} }
  36. func (m *ManifestChangeSet) String() string { return proto.CompactTextString(m) }
  37. func (*ManifestChangeSet) ProtoMessage() {}
  38. func (*ManifestChangeSet) Descriptor() ([]byte, []int) { return fileDescriptorManifest, []int{0} }
  39. func (m *ManifestChangeSet) GetChanges() []*ManifestChange {
  40. if m != nil {
  41. return m.Changes
  42. }
  43. return nil
  44. }
  45. type ManifestChange struct {
  46. Id uint64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"`
  47. Op ManifestChange_Operation `protobuf:"varint,2,opt,name=Op,proto3,enum=protos.ManifestChange_Operation" json:"Op,omitempty"`
  48. Level uint32 `protobuf:"varint,3,opt,name=Level,proto3" json:"Level,omitempty"`
  49. }
  50. func (m *ManifestChange) Reset() { *m = ManifestChange{} }
  51. func (m *ManifestChange) String() string { return proto.CompactTextString(m) }
  52. func (*ManifestChange) ProtoMessage() {}
  53. func (*ManifestChange) Descriptor() ([]byte, []int) { return fileDescriptorManifest, []int{1} }
  54. func (m *ManifestChange) GetId() uint64 {
  55. if m != nil {
  56. return m.Id
  57. }
  58. return 0
  59. }
  60. func (m *ManifestChange) GetOp() ManifestChange_Operation {
  61. if m != nil {
  62. return m.Op
  63. }
  64. return ManifestChange_CREATE
  65. }
  66. func (m *ManifestChange) GetLevel() uint32 {
  67. if m != nil {
  68. return m.Level
  69. }
  70. return 0
  71. }
  72. func init() {
  73. proto.RegisterType((*ManifestChangeSet)(nil), "protos.ManifestChangeSet")
  74. proto.RegisterType((*ManifestChange)(nil), "protos.ManifestChange")
  75. proto.RegisterEnum("protos.ManifestChange_Operation", ManifestChange_Operation_name, ManifestChange_Operation_value)
  76. }
  77. func (m *ManifestChangeSet) Marshal() (dAtA []byte, err error) {
  78. size := m.Size()
  79. dAtA = make([]byte, size)
  80. n, err := m.MarshalTo(dAtA)
  81. if err != nil {
  82. return nil, err
  83. }
  84. return dAtA[:n], nil
  85. }
  86. func (m *ManifestChangeSet) MarshalTo(dAtA []byte) (int, error) {
  87. var i int
  88. _ = i
  89. var l int
  90. _ = l
  91. if len(m.Changes) > 0 {
  92. for _, msg := range m.Changes {
  93. dAtA[i] = 0xa
  94. i++
  95. i = encodeVarintManifest(dAtA, i, uint64(msg.Size()))
  96. n, err := msg.MarshalTo(dAtA[i:])
  97. if err != nil {
  98. return 0, err
  99. }
  100. i += n
  101. }
  102. }
  103. return i, nil
  104. }
  105. func (m *ManifestChange) Marshal() (dAtA []byte, err error) {
  106. size := m.Size()
  107. dAtA = make([]byte, size)
  108. n, err := m.MarshalTo(dAtA)
  109. if err != nil {
  110. return nil, err
  111. }
  112. return dAtA[:n], nil
  113. }
  114. func (m *ManifestChange) MarshalTo(dAtA []byte) (int, error) {
  115. var i int
  116. _ = i
  117. var l int
  118. _ = l
  119. if m.Id != 0 {
  120. dAtA[i] = 0x8
  121. i++
  122. i = encodeVarintManifest(dAtA, i, uint64(m.Id))
  123. }
  124. if m.Op != 0 {
  125. dAtA[i] = 0x10
  126. i++
  127. i = encodeVarintManifest(dAtA, i, uint64(m.Op))
  128. }
  129. if m.Level != 0 {
  130. dAtA[i] = 0x18
  131. i++
  132. i = encodeVarintManifest(dAtA, i, uint64(m.Level))
  133. }
  134. return i, nil
  135. }
  136. func encodeFixed64Manifest(dAtA []byte, offset int, v uint64) int {
  137. dAtA[offset] = uint8(v)
  138. dAtA[offset+1] = uint8(v >> 8)
  139. dAtA[offset+2] = uint8(v >> 16)
  140. dAtA[offset+3] = uint8(v >> 24)
  141. dAtA[offset+4] = uint8(v >> 32)
  142. dAtA[offset+5] = uint8(v >> 40)
  143. dAtA[offset+6] = uint8(v >> 48)
  144. dAtA[offset+7] = uint8(v >> 56)
  145. return offset + 8
  146. }
  147. func encodeFixed32Manifest(dAtA []byte, offset int, v uint32) int {
  148. dAtA[offset] = uint8(v)
  149. dAtA[offset+1] = uint8(v >> 8)
  150. dAtA[offset+2] = uint8(v >> 16)
  151. dAtA[offset+3] = uint8(v >> 24)
  152. return offset + 4
  153. }
  154. func encodeVarintManifest(dAtA []byte, offset int, v uint64) int {
  155. for v >= 1<<7 {
  156. dAtA[offset] = uint8(v&0x7f | 0x80)
  157. v >>= 7
  158. offset++
  159. }
  160. dAtA[offset] = uint8(v)
  161. return offset + 1
  162. }
  163. func (m *ManifestChangeSet) Size() (n int) {
  164. var l int
  165. _ = l
  166. if len(m.Changes) > 0 {
  167. for _, e := range m.Changes {
  168. l = e.Size()
  169. n += 1 + l + sovManifest(uint64(l))
  170. }
  171. }
  172. return n
  173. }
  174. func (m *ManifestChange) Size() (n int) {
  175. var l int
  176. _ = l
  177. if m.Id != 0 {
  178. n += 1 + sovManifest(uint64(m.Id))
  179. }
  180. if m.Op != 0 {
  181. n += 1 + sovManifest(uint64(m.Op))
  182. }
  183. if m.Level != 0 {
  184. n += 1 + sovManifest(uint64(m.Level))
  185. }
  186. return n
  187. }
  188. func sovManifest(x uint64) (n int) {
  189. for {
  190. n++
  191. x >>= 7
  192. if x == 0 {
  193. break
  194. }
  195. }
  196. return n
  197. }
  198. func sozManifest(x uint64) (n int) {
  199. return sovManifest(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  200. }
  201. func (m *ManifestChangeSet) Unmarshal(dAtA []byte) error {
  202. l := len(dAtA)
  203. iNdEx := 0
  204. for iNdEx < l {
  205. preIndex := iNdEx
  206. var wire uint64
  207. for shift := uint(0); ; shift += 7 {
  208. if shift >= 64 {
  209. return ErrIntOverflowManifest
  210. }
  211. if iNdEx >= l {
  212. return io.ErrUnexpectedEOF
  213. }
  214. b := dAtA[iNdEx]
  215. iNdEx++
  216. wire |= (uint64(b) & 0x7F) << shift
  217. if b < 0x80 {
  218. break
  219. }
  220. }
  221. fieldNum := int32(wire >> 3)
  222. wireType := int(wire & 0x7)
  223. if wireType == 4 {
  224. return fmt.Errorf("proto: ManifestChangeSet: wiretype end group for non-group")
  225. }
  226. if fieldNum <= 0 {
  227. return fmt.Errorf("proto: ManifestChangeSet: illegal tag %d (wire type %d)", fieldNum, wire)
  228. }
  229. switch fieldNum {
  230. case 1:
  231. if wireType != 2 {
  232. return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType)
  233. }
  234. var msglen int
  235. for shift := uint(0); ; shift += 7 {
  236. if shift >= 64 {
  237. return ErrIntOverflowManifest
  238. }
  239. if iNdEx >= l {
  240. return io.ErrUnexpectedEOF
  241. }
  242. b := dAtA[iNdEx]
  243. iNdEx++
  244. msglen |= (int(b) & 0x7F) << shift
  245. if b < 0x80 {
  246. break
  247. }
  248. }
  249. if msglen < 0 {
  250. return ErrInvalidLengthManifest
  251. }
  252. postIndex := iNdEx + msglen
  253. if postIndex > l {
  254. return io.ErrUnexpectedEOF
  255. }
  256. m.Changes = append(m.Changes, &ManifestChange{})
  257. if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  258. return err
  259. }
  260. iNdEx = postIndex
  261. default:
  262. iNdEx = preIndex
  263. skippy, err := skipManifest(dAtA[iNdEx:])
  264. if err != nil {
  265. return err
  266. }
  267. if skippy < 0 {
  268. return ErrInvalidLengthManifest
  269. }
  270. if (iNdEx + skippy) > l {
  271. return io.ErrUnexpectedEOF
  272. }
  273. iNdEx += skippy
  274. }
  275. }
  276. if iNdEx > l {
  277. return io.ErrUnexpectedEOF
  278. }
  279. return nil
  280. }
  281. func (m *ManifestChange) 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 ErrIntOverflowManifest
  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: ManifestChange: wiretype end group for non-group")
  305. }
  306. if fieldNum <= 0 {
  307. return fmt.Errorf("proto: ManifestChange: 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 Id", wireType)
  313. }
  314. m.Id = 0
  315. for shift := uint(0); ; shift += 7 {
  316. if shift >= 64 {
  317. return ErrIntOverflowManifest
  318. }
  319. if iNdEx >= l {
  320. return io.ErrUnexpectedEOF
  321. }
  322. b := dAtA[iNdEx]
  323. iNdEx++
  324. m.Id |= (uint64(b) & 0x7F) << shift
  325. if b < 0x80 {
  326. break
  327. }
  328. }
  329. case 2:
  330. if wireType != 0 {
  331. return fmt.Errorf("proto: wrong wireType = %d for field Op", wireType)
  332. }
  333. m.Op = 0
  334. for shift := uint(0); ; shift += 7 {
  335. if shift >= 64 {
  336. return ErrIntOverflowManifest
  337. }
  338. if iNdEx >= l {
  339. return io.ErrUnexpectedEOF
  340. }
  341. b := dAtA[iNdEx]
  342. iNdEx++
  343. m.Op |= (ManifestChange_Operation(b) & 0x7F) << shift
  344. if b < 0x80 {
  345. break
  346. }
  347. }
  348. case 3:
  349. if wireType != 0 {
  350. return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType)
  351. }
  352. m.Level = 0
  353. for shift := uint(0); ; shift += 7 {
  354. if shift >= 64 {
  355. return ErrIntOverflowManifest
  356. }
  357. if iNdEx >= l {
  358. return io.ErrUnexpectedEOF
  359. }
  360. b := dAtA[iNdEx]
  361. iNdEx++
  362. m.Level |= (uint32(b) & 0x7F) << shift
  363. if b < 0x80 {
  364. break
  365. }
  366. }
  367. default:
  368. iNdEx = preIndex
  369. skippy, err := skipManifest(dAtA[iNdEx:])
  370. if err != nil {
  371. return err
  372. }
  373. if skippy < 0 {
  374. return ErrInvalidLengthManifest
  375. }
  376. if (iNdEx + skippy) > l {
  377. return io.ErrUnexpectedEOF
  378. }
  379. iNdEx += skippy
  380. }
  381. }
  382. if iNdEx > l {
  383. return io.ErrUnexpectedEOF
  384. }
  385. return nil
  386. }
  387. func skipManifest(dAtA []byte) (n int, err error) {
  388. l := len(dAtA)
  389. iNdEx := 0
  390. for iNdEx < l {
  391. var wire uint64
  392. for shift := uint(0); ; shift += 7 {
  393. if shift >= 64 {
  394. return 0, ErrIntOverflowManifest
  395. }
  396. if iNdEx >= l {
  397. return 0, io.ErrUnexpectedEOF
  398. }
  399. b := dAtA[iNdEx]
  400. iNdEx++
  401. wire |= (uint64(b) & 0x7F) << shift
  402. if b < 0x80 {
  403. break
  404. }
  405. }
  406. wireType := int(wire & 0x7)
  407. switch wireType {
  408. case 0:
  409. for shift := uint(0); ; shift += 7 {
  410. if shift >= 64 {
  411. return 0, ErrIntOverflowManifest
  412. }
  413. if iNdEx >= l {
  414. return 0, io.ErrUnexpectedEOF
  415. }
  416. iNdEx++
  417. if dAtA[iNdEx-1] < 0x80 {
  418. break
  419. }
  420. }
  421. return iNdEx, nil
  422. case 1:
  423. iNdEx += 8
  424. return iNdEx, nil
  425. case 2:
  426. var length int
  427. for shift := uint(0); ; shift += 7 {
  428. if shift >= 64 {
  429. return 0, ErrIntOverflowManifest
  430. }
  431. if iNdEx >= l {
  432. return 0, io.ErrUnexpectedEOF
  433. }
  434. b := dAtA[iNdEx]
  435. iNdEx++
  436. length |= (int(b) & 0x7F) << shift
  437. if b < 0x80 {
  438. break
  439. }
  440. }
  441. iNdEx += length
  442. if length < 0 {
  443. return 0, ErrInvalidLengthManifest
  444. }
  445. return iNdEx, nil
  446. case 3:
  447. for {
  448. var innerWire uint64
  449. var start int = iNdEx
  450. for shift := uint(0); ; shift += 7 {
  451. if shift >= 64 {
  452. return 0, ErrIntOverflowManifest
  453. }
  454. if iNdEx >= l {
  455. return 0, io.ErrUnexpectedEOF
  456. }
  457. b := dAtA[iNdEx]
  458. iNdEx++
  459. innerWire |= (uint64(b) & 0x7F) << shift
  460. if b < 0x80 {
  461. break
  462. }
  463. }
  464. innerWireType := int(innerWire & 0x7)
  465. if innerWireType == 4 {
  466. break
  467. }
  468. next, err := skipManifest(dAtA[start:])
  469. if err != nil {
  470. return 0, err
  471. }
  472. iNdEx = start + next
  473. }
  474. return iNdEx, nil
  475. case 4:
  476. return iNdEx, nil
  477. case 5:
  478. iNdEx += 4
  479. return iNdEx, nil
  480. default:
  481. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  482. }
  483. }
  484. panic("unreachable")
  485. }
  486. var (
  487. ErrInvalidLengthManifest = fmt.Errorf("proto: negative length found during unmarshaling")
  488. ErrIntOverflowManifest = fmt.Errorf("proto: integer overflow")
  489. )
  490. func init() { proto.RegisterFile("manifest.proto", fileDescriptorManifest) }
  491. var fileDescriptorManifest = []byte{
  492. // 208 bytes of a gzipped FileDescriptorProto
  493. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xcb, 0x4d, 0xcc, 0xcb,
  494. 0x4c, 0x4b, 0x2d, 0x2e, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x03, 0x53, 0xc5, 0x4a,
  495. 0xae, 0x5c, 0x82, 0xbe, 0x50, 0x19, 0xe7, 0x8c, 0xc4, 0xbc, 0xf4, 0xd4, 0xe0, 0xd4, 0x12, 0x21,
  496. 0x03, 0x2e, 0xf6, 0x64, 0x30, 0xa7, 0x58, 0x82, 0x51, 0x81, 0x59, 0x83, 0xdb, 0x48, 0x0c, 0xa2,
  497. 0xab, 0x58, 0x0f, 0x55, 0x6d, 0x10, 0x4c, 0x99, 0x52, 0x2f, 0x23, 0x17, 0x1f, 0xaa, 0x9c, 0x10,
  498. 0x1f, 0x17, 0x93, 0x67, 0x8a, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0x4b, 0x10, 0x93, 0x67, 0x8a, 0x90,
  499. 0x01, 0x17, 0x93, 0x7f, 0x81, 0x04, 0x93, 0x02, 0xa3, 0x06, 0x9f, 0x91, 0x02, 0x76, 0xf3, 0xf4,
  500. 0xfc, 0x0b, 0x52, 0x8b, 0x12, 0x4b, 0x32, 0xf3, 0xf3, 0x82, 0x98, 0xfc, 0x0b, 0x84, 0x44, 0xb8,
  501. 0x58, 0x7d, 0x52, 0xcb, 0x52, 0x73, 0x24, 0x98, 0x15, 0x18, 0x35, 0x78, 0x83, 0x20, 0x1c, 0x25,
  502. 0x65, 0x2e, 0x4e, 0xb8, 0x32, 0x21, 0x2e, 0x2e, 0x36, 0xe7, 0x20, 0x57, 0xc7, 0x10, 0x57, 0x01,
  503. 0x06, 0x10, 0xdb, 0xc5, 0xd5, 0xc7, 0x35, 0xc4, 0x55, 0x80, 0xd1, 0x49, 0xe0, 0xc4, 0x23, 0x39,
  504. 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf1, 0x58, 0x8e, 0x21, 0x09, 0xe2,
  505. 0x61, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x42, 0x6f, 0x23, 0xc9, 0x09, 0x01, 0x00, 0x00,
  506. }