1
2
3
4
5
6
7 package proto
8
9 import (
10 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 reflect "reflect"
13 sync "sync"
14 )
15
16 const (
17
18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
19
20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
21 )
22
23
24
25 type Manifest struct {
26 state protoimpl.MessageState
27 sizeCache protoimpl.SizeCache
28 unknownFields protoimpl.UnknownFields
29
30 Resource []*Resource `protobuf:"bytes,1,rep,name=resource,proto3" json:"resource,omitempty"`
31 }
32
33 func (x *Manifest) Reset() {
34 *x = Manifest{}
35 if protoimpl.UnsafeEnabled {
36 mi := &file_manifest_proto_msgTypes[0]
37 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
38 ms.StoreMessageInfo(mi)
39 }
40 }
41
42 func (x *Manifest) String() string {
43 return protoimpl.X.MessageStringOf(x)
44 }
45
46 func (*Manifest) ProtoMessage() {}
47
48 func (x *Manifest) ProtoReflect() protoreflect.Message {
49 mi := &file_manifest_proto_msgTypes[0]
50 if protoimpl.UnsafeEnabled && x != nil {
51 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
52 if ms.LoadMessageInfo() == nil {
53 ms.StoreMessageInfo(mi)
54 }
55 return ms
56 }
57 return mi.MessageOf(x)
58 }
59
60
61 func (*Manifest) Descriptor() ([]byte, []int) {
62 return file_manifest_proto_rawDescGZIP(), []int{0}
63 }
64
65 func (x *Manifest) GetResource() []*Resource {
66 if x != nil {
67 return x.Resource
68 }
69 return nil
70 }
71
72 type Resource struct {
73 state protoimpl.MessageState
74 sizeCache protoimpl.SizeCache
75 unknownFields protoimpl.UnknownFields
76
77
78
79
80 Path []string `protobuf:"bytes,1,rep,name=path,proto3" json:"path,omitempty"`
81
82 Uid int64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"`
83
84 Gid int64 `protobuf:"varint,3,opt,name=gid,proto3" json:"gid,omitempty"`
85
86
87
88
89 User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"`
90
91 Group string `protobuf:"bytes,5,opt,name=group,proto3" json:"group,omitempty"`
92
93
94
95
96 Mode uint32 `protobuf:"varint,6,opt,name=mode,proto3" json:"mode,omitempty"`
97
98
99 Size uint64 `protobuf:"varint,7,opt,name=size,proto3" json:"size,omitempty"`
100
101
102
103
104
105
106 Digest []string `protobuf:"bytes,8,rep,name=digest,proto3" json:"digest,omitempty"`
107
108
109
110
111 Target string `protobuf:"bytes,9,opt,name=target,proto3" json:"target,omitempty"`
112
113 Major uint64 `protobuf:"varint,10,opt,name=major,proto3" json:"major,omitempty"`
114
115 Minor uint64 `protobuf:"varint,11,opt,name=minor,proto3" json:"minor,omitempty"`
116
117 Xattr []*XAttr `protobuf:"bytes,12,rep,name=xattr,proto3" json:"xattr,omitempty"`
118
119 Ads []*ADSEntry `protobuf:"bytes,13,rep,name=ads,proto3" json:"ads,omitempty"`
120 }
121
122 func (x *Resource) Reset() {
123 *x = Resource{}
124 if protoimpl.UnsafeEnabled {
125 mi := &file_manifest_proto_msgTypes[1]
126 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
127 ms.StoreMessageInfo(mi)
128 }
129 }
130
131 func (x *Resource) String() string {
132 return protoimpl.X.MessageStringOf(x)
133 }
134
135 func (*Resource) ProtoMessage() {}
136
137 func (x *Resource) ProtoReflect() protoreflect.Message {
138 mi := &file_manifest_proto_msgTypes[1]
139 if protoimpl.UnsafeEnabled && x != nil {
140 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
141 if ms.LoadMessageInfo() == nil {
142 ms.StoreMessageInfo(mi)
143 }
144 return ms
145 }
146 return mi.MessageOf(x)
147 }
148
149
150 func (*Resource) Descriptor() ([]byte, []int) {
151 return file_manifest_proto_rawDescGZIP(), []int{1}
152 }
153
154 func (x *Resource) GetPath() []string {
155 if x != nil {
156 return x.Path
157 }
158 return nil
159 }
160
161 func (x *Resource) GetUid() int64 {
162 if x != nil {
163 return x.Uid
164 }
165 return 0
166 }
167
168 func (x *Resource) GetGid() int64 {
169 if x != nil {
170 return x.Gid
171 }
172 return 0
173 }
174
175
176 func (x *Resource) GetUser() string {
177 if x != nil {
178 return x.User
179 }
180 return ""
181 }
182
183
184 func (x *Resource) GetGroup() string {
185 if x != nil {
186 return x.Group
187 }
188 return ""
189 }
190
191 func (x *Resource) GetMode() uint32 {
192 if x != nil {
193 return x.Mode
194 }
195 return 0
196 }
197
198 func (x *Resource) GetSize() uint64 {
199 if x != nil {
200 return x.Size
201 }
202 return 0
203 }
204
205 func (x *Resource) GetDigest() []string {
206 if x != nil {
207 return x.Digest
208 }
209 return nil
210 }
211
212 func (x *Resource) GetTarget() string {
213 if x != nil {
214 return x.Target
215 }
216 return ""
217 }
218
219 func (x *Resource) GetMajor() uint64 {
220 if x != nil {
221 return x.Major
222 }
223 return 0
224 }
225
226 func (x *Resource) GetMinor() uint64 {
227 if x != nil {
228 return x.Minor
229 }
230 return 0
231 }
232
233 func (x *Resource) GetXattr() []*XAttr {
234 if x != nil {
235 return x.Xattr
236 }
237 return nil
238 }
239
240 func (x *Resource) GetAds() []*ADSEntry {
241 if x != nil {
242 return x.Ads
243 }
244 return nil
245 }
246
247
248 type XAttr struct {
249 state protoimpl.MessageState
250 sizeCache protoimpl.SizeCache
251 unknownFields protoimpl.UnknownFields
252
253
254 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
255
256 Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
257 }
258
259 func (x *XAttr) Reset() {
260 *x = XAttr{}
261 if protoimpl.UnsafeEnabled {
262 mi := &file_manifest_proto_msgTypes[2]
263 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
264 ms.StoreMessageInfo(mi)
265 }
266 }
267
268 func (x *XAttr) String() string {
269 return protoimpl.X.MessageStringOf(x)
270 }
271
272 func (*XAttr) ProtoMessage() {}
273
274 func (x *XAttr) ProtoReflect() protoreflect.Message {
275 mi := &file_manifest_proto_msgTypes[2]
276 if protoimpl.UnsafeEnabled && x != nil {
277 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
278 if ms.LoadMessageInfo() == nil {
279 ms.StoreMessageInfo(mi)
280 }
281 return ms
282 }
283 return mi.MessageOf(x)
284 }
285
286
287 func (*XAttr) Descriptor() ([]byte, []int) {
288 return file_manifest_proto_rawDescGZIP(), []int{2}
289 }
290
291 func (x *XAttr) GetName() string {
292 if x != nil {
293 return x.Name
294 }
295 return ""
296 }
297
298 func (x *XAttr) GetData() []byte {
299 if x != nil {
300 return x.Data
301 }
302 return nil
303 }
304
305
306 type ADSEntry struct {
307 state protoimpl.MessageState
308 sizeCache protoimpl.SizeCache
309 unknownFields protoimpl.UnknownFields
310
311
312 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
313
314
315 Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
316
317
318
319
320
321
322
323
324 Digest string `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"`
325 }
326
327 func (x *ADSEntry) Reset() {
328 *x = ADSEntry{}
329 if protoimpl.UnsafeEnabled {
330 mi := &file_manifest_proto_msgTypes[3]
331 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
332 ms.StoreMessageInfo(mi)
333 }
334 }
335
336 func (x *ADSEntry) String() string {
337 return protoimpl.X.MessageStringOf(x)
338 }
339
340 func (*ADSEntry) ProtoMessage() {}
341
342 func (x *ADSEntry) ProtoReflect() protoreflect.Message {
343 mi := &file_manifest_proto_msgTypes[3]
344 if protoimpl.UnsafeEnabled && x != nil {
345 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
346 if ms.LoadMessageInfo() == nil {
347 ms.StoreMessageInfo(mi)
348 }
349 return ms
350 }
351 return mi.MessageOf(x)
352 }
353
354
355 func (*ADSEntry) Descriptor() ([]byte, []int) {
356 return file_manifest_proto_rawDescGZIP(), []int{3}
357 }
358
359 func (x *ADSEntry) GetName() string {
360 if x != nil {
361 return x.Name
362 }
363 return ""
364 }
365
366 func (x *ADSEntry) GetData() []byte {
367 if x != nil {
368 return x.Data
369 }
370 return nil
371 }
372
373 func (x *ADSEntry) GetDigest() string {
374 if x != nil {
375 return x.Digest
376 }
377 return ""
378 }
379
380 var File_manifest_proto protoreflect.FileDescriptor
381
382 var file_manifest_proto_rawDesc = []byte{
383 0x0a, 0x0e, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
384 0x12, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x37, 0x0a, 0x08, 0x4d, 0x61, 0x6e, 0x69, 0x66,
385 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18,
386 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65,
387 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
388 0x22, 0xbf, 0x02, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x12, 0x0a,
389 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74,
390 0x68, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03,
391 0x75, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x67, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03,
392 0x52, 0x03, 0x67, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x04, 0x20,
393 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x18, 0x0a,
394 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01,
395 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18,
396 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73,
397 0x69, 0x7a, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12,
398 0x16, 0x0a, 0x06, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52,
399 0x06, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65,
400 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12,
401 0x14, 0x0a, 0x05, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05,
402 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x18, 0x0b,
403 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x12, 0x22, 0x0a, 0x05, 0x78,
404 0x61, 0x74, 0x74, 0x72, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x72, 0x6f,
405 0x74, 0x6f, 0x2e, 0x58, 0x41, 0x74, 0x74, 0x72, 0x52, 0x05, 0x78, 0x61, 0x74, 0x74, 0x72, 0x12,
406 0x21, 0x0a, 0x03, 0x61, 0x64, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70,
407 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x44, 0x53, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x03, 0x61,
408 0x64, 0x73, 0x22, 0x2f, 0x0a, 0x05, 0x58, 0x41, 0x74, 0x74, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e,
409 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
410 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64,
411 0x61, 0x74, 0x61, 0x22, 0x4a, 0x0a, 0x08, 0x41, 0x44, 0x53, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
412 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
413 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28,
414 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x69, 0x67, 0x65, 0x73,
415 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x42,
416 0x2e, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f,
417 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75,
418 0x69, 0x74, 0x79, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
419 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
420 }
421
422 var (
423 file_manifest_proto_rawDescOnce sync.Once
424 file_manifest_proto_rawDescData = file_manifest_proto_rawDesc
425 )
426
427 func file_manifest_proto_rawDescGZIP() []byte {
428 file_manifest_proto_rawDescOnce.Do(func() {
429 file_manifest_proto_rawDescData = protoimpl.X.CompressGZIP(file_manifest_proto_rawDescData)
430 })
431 return file_manifest_proto_rawDescData
432 }
433
434 var file_manifest_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
435 var file_manifest_proto_goTypes = []interface{}{
436 (*Manifest)(nil),
437 (*Resource)(nil),
438 (*XAttr)(nil),
439 (*ADSEntry)(nil),
440 }
441 var file_manifest_proto_depIdxs = []int32{
442 1,
443 2,
444 3,
445 3,
446 3,
447 3,
448 3,
449 0,
450 }
451
452 func init() { file_manifest_proto_init() }
453 func file_manifest_proto_init() {
454 if File_manifest_proto != nil {
455 return
456 }
457 if !protoimpl.UnsafeEnabled {
458 file_manifest_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
459 switch v := v.(*Manifest); i {
460 case 0:
461 return &v.state
462 case 1:
463 return &v.sizeCache
464 case 2:
465 return &v.unknownFields
466 default:
467 return nil
468 }
469 }
470 file_manifest_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
471 switch v := v.(*Resource); i {
472 case 0:
473 return &v.state
474 case 1:
475 return &v.sizeCache
476 case 2:
477 return &v.unknownFields
478 default:
479 return nil
480 }
481 }
482 file_manifest_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
483 switch v := v.(*XAttr); i {
484 case 0:
485 return &v.state
486 case 1:
487 return &v.sizeCache
488 case 2:
489 return &v.unknownFields
490 default:
491 return nil
492 }
493 }
494 file_manifest_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
495 switch v := v.(*ADSEntry); i {
496 case 0:
497 return &v.state
498 case 1:
499 return &v.sizeCache
500 case 2:
501 return &v.unknownFields
502 default:
503 return nil
504 }
505 }
506 }
507 type x struct{}
508 out := protoimpl.TypeBuilder{
509 File: protoimpl.DescBuilder{
510 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
511 RawDescriptor: file_manifest_proto_rawDesc,
512 NumEnums: 0,
513 NumMessages: 4,
514 NumExtensions: 0,
515 NumServices: 0,
516 },
517 GoTypes: file_manifest_proto_goTypes,
518 DependencyIndexes: file_manifest_proto_depIdxs,
519 MessageInfos: file_manifest_proto_msgTypes,
520 }.Build()
521 File_manifest_proto = out.File
522 file_manifest_proto_rawDesc = nil
523 file_manifest_proto_goTypes = nil
524 file_manifest_proto_depIdxs = nil
525 }
526
View as plain text