mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-16 10:28:49 -07:00
214 lines
12 KiB
Go
214 lines
12 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: lib/config/deviceconfiguration.proto
|
|
|
|
package config
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/gogo/protobuf/proto"
|
|
github_com_syncthing_syncthing_lib_protocol "github.com/syncthing/syncthing/lib/protocol"
|
|
protocol "github.com/syncthing/syncthing/lib/protocol"
|
|
_ "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 DeviceConfiguration struct {
|
|
DeviceID github_com_syncthing_syncthing_lib_protocol.DeviceID `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3,customtype=github.com/syncthing/syncthing/lib/protocol.DeviceID" json:"deviceID" xml:"id,attr"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name" xml:"name,attr,omitempty"`
|
|
Addresses []string `protobuf:"bytes,3,rep,name=addresses,proto3" json:"addresses" xml:"address,omitempty" default:"dynamic"`
|
|
Compression protocol.Compression `protobuf:"varint,4,opt,name=compression,proto3,enum=protocol.Compression" json:"compression" xml:"compression,attr"`
|
|
CertName string `protobuf:"bytes,5,opt,name=cert_name,json=certName,proto3" json:"certName" xml:"certName,attr,omitempty"`
|
|
Introducer bool `protobuf:"varint,6,opt,name=introducer,proto3" json:"introducer" xml:"introducer,attr"`
|
|
SkipIntroductionRemovals bool `protobuf:"varint,7,opt,name=skip_introduction_removals,json=skipIntroductionRemovals,proto3" json:"skipIntroductionRemovals" xml:"skipIntroductionRemovals,attr"`
|
|
IntroducedBy github_com_syncthing_syncthing_lib_protocol.DeviceID `protobuf:"bytes,8,opt,name=introduced_by,json=introducedBy,proto3,customtype=github.com/syncthing/syncthing/lib/protocol.DeviceID" json:"introducedBy" xml:"introducedBy,attr"`
|
|
Paused bool `protobuf:"varint,9,opt,name=paused,proto3" json:"paused" xml:"paused"`
|
|
AllowedNetworks []string `protobuf:"bytes,10,rep,name=allowed_networks,json=allowedNetworks,proto3" json:"allowedNetworks" xml:"allowedNetwork,omitempty"`
|
|
AutoAcceptFolders bool `protobuf:"varint,11,opt,name=auto_accept_folders,json=autoAcceptFolders,proto3" json:"autoAcceptFolders" xml:"autoAcceptFolders"`
|
|
MaxSendKbps int `protobuf:"varint,12,opt,name=max_send_kbps,json=maxSendKbps,proto3,casttype=int" json:"maxSendKbps" xml:"maxSendKbps"`
|
|
MaxRecvKbps int `protobuf:"varint,13,opt,name=max_recv_kbps,json=maxRecvKbps,proto3,casttype=int" json:"maxRecvKbps" xml:"maxRecvKbps"`
|
|
IgnoredFolders []ObservedFolder `protobuf:"bytes,14,rep,name=ignored_folders,json=ignoredFolders,proto3" json:"ignoredFolders" xml:"ignoredFolder"`
|
|
PendingFolders []ObservedFolder `protobuf:"bytes,15,rep,name=pending_folders,json=pendingFolders,proto3" json:"pendingFolders" xml:"pendingFolder"`
|
|
MaxRequestKiB int `protobuf:"varint,16,opt,name=max_request_kib,json=maxRequestKib,proto3,casttype=int" json:"maxRequestKiB" xml:"maxRequestKiB"`
|
|
}
|
|
|
|
func (m *DeviceConfiguration) Reset() { *m = DeviceConfiguration{} }
|
|
func (m *DeviceConfiguration) String() string { return proto.CompactTextString(m) }
|
|
func (*DeviceConfiguration) ProtoMessage() {}
|
|
func (*DeviceConfiguration) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_744b782bd13071dd, []int{0}
|
|
}
|
|
func (m *DeviceConfiguration) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DeviceConfiguration.Unmarshal(m, b)
|
|
}
|
|
func (m *DeviceConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DeviceConfiguration.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *DeviceConfiguration) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DeviceConfiguration.Merge(m, src)
|
|
}
|
|
func (m *DeviceConfiguration) XXX_Size() int {
|
|
return xxx_messageInfo_DeviceConfiguration.Size(m)
|
|
}
|
|
func (m *DeviceConfiguration) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DeviceConfiguration.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DeviceConfiguration proto.InternalMessageInfo
|
|
|
|
func init() {
|
|
proto.RegisterType((*DeviceConfiguration)(nil), "config.DeviceConfiguration")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("lib/config/deviceconfiguration.proto", fileDescriptor_744b782bd13071dd)
|
|
}
|
|
|
|
var fileDescriptor_744b782bd13071dd = []byte{
|
|
// 900 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0x31, 0x6f, 0xdb, 0x46,
|
|
0x18, 0x15, 0xeb, 0xc4, 0xb6, 0xce, 0x96, 0x65, 0xd3, 0x88, 0xc3, 0x18, 0x88, 0x4e, 0x60, 0x35,
|
|
0x28, 0x68, 0x2a, 0x17, 0x6e, 0x27, 0xa3, 0x1d, 0xca, 0x04, 0x6d, 0x83, 0xa0, 0x49, 0x7b, 0xdd,
|
|
0xbc, 0xb0, 0x24, 0xef, 0xac, 0x1c, 0x2c, 0xf2, 0x58, 0xf2, 0xa4, 0x48, 0x40, 0x87, 0x8e, 0x1d,
|
|
0x3a, 0x14, 0x59, 0xbb, 0x14, 0x1d, 0x3a, 0xf4, 0x97, 0x04, 0xe8, 0x60, 0x8d, 0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e5, 0xe5,
|
|
0xc7, 0xea, 0x79, 0x15, 0xd8, 0x44, 0x35, 0x99, 0xfe, 0x8b, 0x06, 0xda, 0xaa, 0xb1, 0xef, 0xc6,
|
|
0x24, 0xe6, 0xf6, 0x39, 0x75, 0x8d, 0x5d, 0xd9, 0x59, 0x7c, 0x29, 0x60, 0xeb, 0xcb, 0xac, 0x0a,
|
|
0xc9, 0x3c, 0xa6, 0x56, 0x22, 0x60, 0xcb, 0x2f, 0x03, 0x45, 0x48, 0x05, 0x5d, 0x14, 0x99, 0x5c,
|
|
0xf4, 0x6a, 0xf2, 0x3a, 0xf0, 0x62, 0xde, 0xab, 0x26, 0xa0, 0x0a, 0xef, 0x5a, 0x9f, 0xbf, 0x7c,
|
|
0xd5, 0x69, 0xcc, 0x5f, 0x75, 0x1a, 0xff, 0x5c, 0x76, 0x1a, 0x3f, 0x5f, 0x75, 0x1a, 0xbf, 0x5e,
|
|
0x75, 0xb4, 0xf9, 0x55, 0xa7, 0xf1, 0xd7, 0x55, 0xa7, 0x71, 0x7a, 0xef, 0x2d, 0x26, 0x5b, 0x95,
|
|
0xe6, 0xae, 0xcb, 0x09, 0xff, 0xf0, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3c, 0x69, 0xcb, 0x9f,
|
|
0x0b, 0x08, 0x00, 0x00,
|
|
}
|
|
|
|
func (m *DeviceConfiguration) ProtoSize() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = m.DeviceID.ProtoSize()
|
|
n += 1 + l + sovDeviceconfiguration(uint64(l))
|
|
l = len(m.Name)
|
|
if l > 0 {
|
|
n += 1 + l + sovDeviceconfiguration(uint64(l))
|
|
}
|
|
if len(m.Addresses) > 0 {
|
|
for _, s := range m.Addresses {
|
|
l = len(s)
|
|
n += 1 + l + sovDeviceconfiguration(uint64(l))
|
|
}
|
|
}
|
|
if m.Compression != 0 {
|
|
n += 1 + sovDeviceconfiguration(uint64(m.Compression))
|
|
}
|
|
l = len(m.CertName)
|
|
if l > 0 {
|
|
n += 1 + l + sovDeviceconfiguration(uint64(l))
|
|
}
|
|
if m.Introducer {
|
|
n += 2
|
|
}
|
|
if m.SkipIntroductionRemovals {
|
|
n += 2
|
|
}
|
|
l = m.IntroducedBy.ProtoSize()
|
|
n += 1 + l + sovDeviceconfiguration(uint64(l))
|
|
if m.Paused {
|
|
n += 2
|
|
}
|
|
if len(m.AllowedNetworks) > 0 {
|
|
for _, s := range m.AllowedNetworks {
|
|
l = len(s)
|
|
n += 1 + l + sovDeviceconfiguration(uint64(l))
|
|
}
|
|
}
|
|
if m.AutoAcceptFolders {
|
|
n += 2
|
|
}
|
|
if m.MaxSendKbps != 0 {
|
|
n += 1 + sovDeviceconfiguration(uint64(m.MaxSendKbps))
|
|
}
|
|
if m.MaxRecvKbps != 0 {
|
|
n += 1 + sovDeviceconfiguration(uint64(m.MaxRecvKbps))
|
|
}
|
|
if len(m.IgnoredFolders) > 0 {
|
|
for _, e := range m.IgnoredFolders {
|
|
l = e.ProtoSize()
|
|
n += 1 + l + sovDeviceconfiguration(uint64(l))
|
|
}
|
|
}
|
|
if len(m.PendingFolders) > 0 {
|
|
for _, e := range m.PendingFolders {
|
|
l = e.ProtoSize()
|
|
n += 1 + l + sovDeviceconfiguration(uint64(l))
|
|
}
|
|
}
|
|
if m.MaxRequestKiB != 0 {
|
|
n += 2 + sovDeviceconfiguration(uint64(m.MaxRequestKiB))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func sovDeviceconfiguration(x uint64) (n int) {
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
}
|
|
func sozDeviceconfiguration(x uint64) (n int) {
|
|
return sovDeviceconfiguration(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
}
|