mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-14 01:04:14 +00:00
152 lines
7.1 KiB
Go
152 lines
7.1 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: lib/config/config.proto
|
|
|
|
package config
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/gogo/protobuf/proto"
|
|
_ "github.com/syncthing/syncthing/proto/ext"
|
|
math "math"
|
|
math_bits "math/bits"
|
|
)
|
|
|
|
// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type Configuration struct {
|
|
Version int `protobuf:"varint,1,opt,name=version,proto3,casttype=int" json:"version" xml:"version,attr"`
|
|
Folders []FolderConfiguration `protobuf:"bytes,2,rep,name=folders,proto3" json:"folders" xml:"folder"`
|
|
Devices []DeviceConfiguration `protobuf:"bytes,3,rep,name=devices,proto3" json:"devices" xml:"device"`
|
|
GUI GUIConfiguration `protobuf:"bytes,4,opt,name=gui,proto3" json:"gui" xml:"gui"`
|
|
LDAP LDAPConfiguration `protobuf:"bytes,5,opt,name=ldap,proto3" json:"ldap" xml:"ldap"`
|
|
Options OptionsConfiguration `protobuf:"bytes,6,opt,name=options,proto3" json:"options" xml:"options"`
|
|
IgnoredDevices []ObservedDevice `protobuf:"bytes,7,rep,name=ignored_devices,json=ignoredDevices,proto3" json:"remoteIgnoredDevices" xml:"remoteIgnoredDevice"`
|
|
PendingDevices []ObservedDevice `protobuf:"bytes,8,rep,name=pending_devices,json=pendingDevices,proto3" json:"pendingDevices" xml:"pendingDevice"`
|
|
}
|
|
|
|
func (m *Configuration) Reset() { *m = Configuration{} }
|
|
func (m *Configuration) String() string { return proto.CompactTextString(m) }
|
|
func (*Configuration) ProtoMessage() {}
|
|
func (*Configuration) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_baadf209193dc627, []int{0}
|
|
}
|
|
func (m *Configuration) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Configuration.Unmarshal(m, b)
|
|
}
|
|
func (m *Configuration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Configuration.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Configuration) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Configuration.Merge(m, src)
|
|
}
|
|
func (m *Configuration) XXX_Size() int {
|
|
return xxx_messageInfo_Configuration.Size(m)
|
|
}
|
|
func (m *Configuration) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Configuration.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Configuration proto.InternalMessageInfo
|
|
|
|
func init() {
|
|
proto.RegisterType((*Configuration)(nil), "config.Configuration")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("lib/config/config.proto", fileDescriptor_baadf209193dc627) }
|
|
|
|
var fileDescriptor_baadf209193dc627 = []byte{
|
|
// 544 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0x4f, 0x8b, 0xd3, 0x40,
|
|
0x18, 0xc6, 0x53, 0xdb, 0x6d, 0xdd, 0xec, 0x3f, 0xc8, 0x8a, 0xa6, 0x2a, 0x99, 0x3a, 0x54, 0xa9,
|
|
0xa2, 0x5d, 0x58, 0x2f, 0xe2, 0xcd, 0x5a, 0x2c, 0x05, 0x41, 0x19, 0x58, 0x51, 0x2f, 0xd2, 0x36,
|
|
0xb3, 0xe9, 0x40, 0x3b, 0x53, 0x92, 0xb4, 0xac, 0xdf, 0x42, 0xfc, 0x04, 0x5e, 0xfd, 0x06, 0x7e,
|
|
0x84, 0xbd, 0xb5, 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59, 0x8c, 0xfb, 0x2a, 0xdc, 0xdd, 0x5c, 0xbc, 0x2e, 0x27, 0x15, 0x88,
|
|
0x30, 0x59, 0x36, 0x0f, 0x0b, 0xfa, 0xe9, 0xb2, 0x59, 0xc8, 0x42, 0xfb, 0x24, 0x57, 0x3b, 0xd4,
|
|
0x3e, 0x98, 0x61, 0xea, 0x13, 0x1a, 0x6c, 0x56, 0xbd, 0xfe, 0xdf, 0x55, 0x9f, 0xe8, 0x55, 0xf7,
|
|
0x75, 0xec, 0x6a, 0xc9, 0x43, 0xb9, 0x64, 0xae, 0x0d, 0xd1, 0x5f, 0xb6, 0x4e, 0xef, 0xfc, 0xc2,
|
|
0xb3, 0x56, 0x17, 0x9e, 0xf5, 0xeb, 0xd2, 0xb3, 0xbe, 0xac, 0x3d, 0xeb, 0xdb, 0xda, 0x2b, 0xad,
|
|
0xd6, 0x9e, 0xf5, 0x73, 0xed, 0x59, 0x1f, 0x1f, 0x06, 0x24, 0x1e, 0xcf, 0x87, 0xed, 0x11, 0x9b,
|
|
0x1e, 0x45, 0x9f, 0xe9, 0x28, 0x1e, 0x13, 0x1a, 0x64, 0x9e, 0xae, 0xbe, 0xce, 0x61, 0x55, 0x7e,
|
|
0x8a, 0x4f, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0xce, 0xc5, 0x80, 0x7a, 0x8d, 0x04, 0x00, 0x00,
|
|
}
|
|
|
|
func (m *Configuration) ProtoSize() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if m.Version != 0 {
|
|
n += 1 + sovConfig(uint64(m.Version))
|
|
}
|
|
if len(m.Folders) > 0 {
|
|
for _, e := range m.Folders {
|
|
l = e.ProtoSize()
|
|
n += 1 + l + sovConfig(uint64(l))
|
|
}
|
|
}
|
|
if len(m.Devices) > 0 {
|
|
for _, e := range m.Devices {
|
|
l = e.ProtoSize()
|
|
n += 1 + l + sovConfig(uint64(l))
|
|
}
|
|
}
|
|
l = m.GUI.ProtoSize()
|
|
n += 1 + l + sovConfig(uint64(l))
|
|
l = m.LDAP.ProtoSize()
|
|
n += 1 + l + sovConfig(uint64(l))
|
|
l = m.Options.ProtoSize()
|
|
n += 1 + l + sovConfig(uint64(l))
|
|
if len(m.IgnoredDevices) > 0 {
|
|
for _, e := range m.IgnoredDevices {
|
|
l = e.ProtoSize()
|
|
n += 1 + l + sovConfig(uint64(l))
|
|
}
|
|
}
|
|
if len(m.PendingDevices) > 0 {
|
|
for _, e := range m.PendingDevices {
|
|
l = e.ProtoSize()
|
|
n += 1 + l + sovConfig(uint64(l))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func sovConfig(x uint64) (n int) {
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
}
|
|
func sozConfig(x uint64) (n int) {
|
|
return sovConfig(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
}
|