/
archive.pb.go
86 lines (74 loc) · 3.29 KB
/
archive.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: sync/archive.proto
package sync
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Archive is a wrapper around Entry that allows identification of non-existent
// roots when serializing. In-memory, a nil-Entry (that arrives without any
// error) represents an absence of content on the filesystem. Unfortunately,
// there is no way to represent that as an encoded message (an empty byte slice
// would successfully decode to an empty directory entry). By adding a level of
// indirection that allows for an unset root entry, we can encode Entry messages
// in a way that allows us to represent absence.
type Archive struct {
Root *Entry `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Archive) Reset() { *m = Archive{} }
func (m *Archive) String() string { return proto.CompactTextString(m) }
func (*Archive) ProtoMessage() {}
func (*Archive) Descriptor() ([]byte, []int) {
return fileDescriptor_10665bc2e13e6e10, []int{0}
}
func (m *Archive) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Archive.Unmarshal(m, b)
}
func (m *Archive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Archive.Marshal(b, m, deterministic)
}
func (m *Archive) XXX_Merge(src proto.Message) {
xxx_messageInfo_Archive.Merge(m, src)
}
func (m *Archive) XXX_Size() int {
return xxx_messageInfo_Archive.Size(m)
}
func (m *Archive) XXX_DiscardUnknown() {
xxx_messageInfo_Archive.DiscardUnknown(m)
}
var xxx_messageInfo_Archive proto.InternalMessageInfo
func (m *Archive) GetRoot() *Entry {
if m != nil {
return m.Root
}
return nil
}
func init() {
proto.RegisterType((*Archive)(nil), "sync.Archive")
}
func init() { proto.RegisterFile("sync/archive.proto", fileDescriptor_10665bc2e13e6e10) }
var fileDescriptor_10665bc2e13e6e10 = []byte{
// 135 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2a, 0xae, 0xcc, 0x4b,
0xd6, 0x4f, 0x2c, 0x4a, 0xce, 0xc8, 0x2c, 0x4b, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62,
0x01, 0x89, 0x49, 0x09, 0x80, 0x65, 0x52, 0xf3, 0x4a, 0x8a, 0x2a, 0x21, 0xe2, 0x4a, 0x5a, 0x5c,
0xec, 0x8e, 0x10, 0x85, 0x42, 0xf2, 0x5c, 0x2c, 0x45, 0xf9, 0xf9, 0x25, 0x12, 0x8c, 0x0a, 0x8c,
0x1a, 0xdc, 0x46, 0xdc, 0x7a, 0x20, 0xb5, 0x7a, 0xae, 0x20, 0xb5, 0x41, 0x60, 0x09, 0x27, 0xb5,
0x28, 0x95, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0xfd, 0x8c, 0xc4, 0xb2,
0xfc, 0x64, 0xdd, 0xcc, 0x7c, 0xfd, 0xdc, 0xd2, 0x92, 0xc4, 0xf4, 0xd4, 0x3c, 0xfd, 0x82, 0xec,
0x74, 0x7d, 0x90, 0x9e, 0x24, 0x36, 0xb0, 0xd1, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x54,
0x24, 0x42, 0x9d, 0x88, 0x00, 0x00, 0x00,
}