/
snap.pb.go
99 lines (81 loc) · 2.48 KB
/
snap.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
// Code generated by protoc-gen-go.
// source: bazil.org/bazil/fs/snap/wire/snap.proto
// DO NOT EDIT!
/*
Package wire is a generated protocol buffer package.
It is generated from these files:
bazil.org/bazil/fs/snap/wire/snap.proto
It has these top-level messages:
Dirent
File
Dir
Snapshot
*/
package wire
import proto "github.com/golang/protobuf/proto"
import bazil_cas "bazil.org/bazil/cas/wire"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
type Dirent struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
File *File `protobuf:"bytes,2,opt,name=file" json:"file,omitempty"`
Dir *Dir `protobuf:"bytes,3,opt,name=dir" json:"dir,omitempty"`
}
func (m *Dirent) Reset() { *m = Dirent{} }
func (m *Dirent) String() string { return proto.CompactTextString(m) }
func (*Dirent) ProtoMessage() {}
func (m *Dirent) GetFile() *File {
if m != nil {
return m.File
}
return nil
}
func (m *Dirent) GetDir() *Dir {
if m != nil {
return m.Dir
}
return nil
}
type File struct {
Manifest *bazil_cas.Manifest `protobuf:"bytes,1,opt,name=manifest" json:"manifest,omitempty"`
}
func (m *File) Reset() { *m = File{} }
func (m *File) String() string { return proto.CompactTextString(m) }
func (*File) ProtoMessage() {}
func (m *File) GetManifest() *bazil_cas.Manifest {
if m != nil {
return m.Manifest
}
return nil
}
type Dir struct {
Manifest *bazil_cas.Manifest `protobuf:"bytes,1,opt,name=manifest" json:"manifest,omitempty"`
// If >0, the direntries are guaranteed to be aligned at
// 1<<(12+align-1) byte boundaries (that is, minimum alignment is
// 4kB).
Align uint32 `protobuf:"varint,2,opt,name=align" json:"align,omitempty"`
}
func (m *Dir) Reset() { *m = Dir{} }
func (m *Dir) String() string { return proto.CompactTextString(m) }
func (*Dir) ProtoMessage() {}
func (m *Dir) GetManifest() *bazil_cas.Manifest {
if m != nil {
return m.Manifest
}
return nil
}
// Snapshot as it is stored into CAS.
type Snapshot struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// The name field of the root directory is empty.
Contents *Dirent `protobuf:"bytes,2,opt,name=contents" json:"contents,omitempty"`
}
func (m *Snapshot) Reset() { *m = Snapshot{} }
func (m *Snapshot) String() string { return proto.CompactTextString(m) }
func (*Snapshot) ProtoMessage() {}
func (m *Snapshot) GetContents() *Dirent {
if m != nil {
return m.Contents
}
return nil
}