deviceconfiguration.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: lib/config/deviceconfiguration.proto
  3. package config
  4. import (
  5. fmt "fmt"
  6. proto "github.com/gogo/protobuf/proto"
  7. github_com_syncthing_syncthing_lib_protocol "github.com/syncthing/syncthing/lib/protocol"
  8. protocol "github.com/syncthing/syncthing/lib/protocol"
  9. _ "github.com/syncthing/syncthing/proto/ext"
  10. math "math"
  11. math_bits "math/bits"
  12. )
  13. // Reference imports to suppress errors if they are not otherwise used.
  14. var _ = proto.Marshal
  15. var _ = fmt.Errorf
  16. var _ = math.Inf
  17. // This is a compile-time assertion to ensure that this generated file
  18. // is compatible with the proto package it is being compiled against.
  19. // A compilation error at this line likely means your copy of the
  20. // proto package needs to be updated.
  21. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  22. type DeviceConfiguration struct {
  23. 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"`
  24. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name" xml:"name,attr,omitempty"`
  25. Addresses []string `protobuf:"bytes,3,rep,name=addresses,proto3" json:"addresses" xml:"address,omitempty" default:"dynamic"`
  26. Compression protocol.Compression `protobuf:"varint,4,opt,name=compression,proto3,enum=protocol.Compression" json:"compression" xml:"compression,attr"`
  27. CertName string `protobuf:"bytes,5,opt,name=cert_name,json=certName,proto3" json:"certName" xml:"certName,attr,omitempty"`
  28. Introducer bool `protobuf:"varint,6,opt,name=introducer,proto3" json:"introducer" xml:"introducer,attr"`
  29. SkipIntroductionRemovals bool `protobuf:"varint,7,opt,name=skip_introduction_removals,json=skipIntroductionRemovals,proto3" json:"skipIntroductionRemovals" xml:"skipIntroductionRemovals,attr"`
  30. 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"`
  31. Paused bool `protobuf:"varint,9,opt,name=paused,proto3" json:"paused" xml:"paused"`
  32. AllowedNetworks []string `protobuf:"bytes,10,rep,name=allowed_networks,json=allowedNetworks,proto3" json:"allowedNetworks" xml:"allowedNetwork,omitempty"`
  33. AutoAcceptFolders bool `protobuf:"varint,11,opt,name=auto_accept_folders,json=autoAcceptFolders,proto3" json:"autoAcceptFolders" xml:"autoAcceptFolders"`
  34. MaxSendKbps int `protobuf:"varint,12,opt,name=max_send_kbps,json=maxSendKbps,proto3,casttype=int" json:"maxSendKbps" xml:"maxSendKbps"`
  35. MaxRecvKbps int `protobuf:"varint,13,opt,name=max_recv_kbps,json=maxRecvKbps,proto3,casttype=int" json:"maxRecvKbps" xml:"maxRecvKbps"`
  36. IgnoredFolders []ObservedFolder `protobuf:"bytes,14,rep,name=ignored_folders,json=ignoredFolders,proto3" json:"ignoredFolders" xml:"ignoredFolder"`
  37. PendingFolders []ObservedFolder `protobuf:"bytes,15,rep,name=pending_folders,json=pendingFolders,proto3" json:"pendingFolders" xml:"pendingFolder"`
  38. MaxRequestKiB int `protobuf:"varint,16,opt,name=max_request_kib,json=maxRequestKib,proto3,casttype=int" json:"maxRequestKiB" xml:"maxRequestKiB"`
  39. }
  40. func (m *DeviceConfiguration) Reset() { *m = DeviceConfiguration{} }
  41. func (m *DeviceConfiguration) String() string { return proto.CompactTextString(m) }
  42. func (*DeviceConfiguration) ProtoMessage() {}
  43. func (*DeviceConfiguration) Descriptor() ([]byte, []int) {
  44. return fileDescriptor_744b782bd13071dd, []int{0}
  45. }
  46. func (m *DeviceConfiguration) XXX_Unmarshal(b []byte) error {
  47. return xxx_messageInfo_DeviceConfiguration.Unmarshal(m, b)
  48. }
  49. func (m *DeviceConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  50. return xxx_messageInfo_DeviceConfiguration.Marshal(b, m, deterministic)
  51. }
  52. func (m *DeviceConfiguration) XXX_Merge(src proto.Message) {
  53. xxx_messageInfo_DeviceConfiguration.Merge(m, src)
  54. }
  55. func (m *DeviceConfiguration) XXX_Size() int {
  56. return xxx_messageInfo_DeviceConfiguration.Size(m)
  57. }
  58. func (m *DeviceConfiguration) XXX_DiscardUnknown() {
  59. xxx_messageInfo_DeviceConfiguration.DiscardUnknown(m)
  60. }
  61. var xxx_messageInfo_DeviceConfiguration proto.InternalMessageInfo
  62. func init() {
  63. proto.RegisterType((*DeviceConfiguration)(nil), "config.DeviceConfiguration")
  64. }
  65. func init() {
  66. proto.RegisterFile("lib/config/deviceconfiguration.proto", fileDescriptor_744b782bd13071dd)
  67. }
  68. var fileDescriptor_744b782bd13071dd = []byte{
  69. // 900 bytes of a gzipped FileDescriptorProto
  70. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0x31, 0x6f, 0xdb, 0x46,
  71. 0x18, 0x15, 0xeb, 0xc4, 0xb6, 0xce, 0x96, 0x65, 0xd3, 0x88, 0xc3, 0x18, 0x88, 0x4e, 0x60, 0x35,
  72. 0x28, 0x68, 0x2a, 0x17, 0x6e, 0x27, 0xa3, 0x1d, 0xca, 0x04, 0x6d, 0x83, 0xa0, 0x49, 0x7b, 0xdd,
  73. 0xbc, 0xb0, 0x24, 0xef, 0xac, 0x1c, 0x2c, 0xf2, 0x58, 0xf2, 0xa4, 0x48, 0x40, 0x87, 0x8e, 0x1d,
  74. 0x3a, 0x14, 0x59, 0xbb, 0x14, 0x1d, 0x3a, 0xf4, 0x97, 0x04, 0xe8, 0x60, 0x8d, 0x45, 0x87, 0x03,
  75. 0x62, 0x2f, 0x05, 0x47, 0x8e, 0x99, 0x0a, 0xde, 0x51, 0x14, 0x49, 0x47, 0x45, 0x80, 0x6e, 0x77,
  76. 0xef, 0xbd, 0x7b, 0xef, 0xf8, 0x74, 0x1f, 0x04, 0x7a, 0x23, 0xea, 0x1e, 0x79, 0x2c, 0x38, 0xa3,
  77. 0xc3, 0x23, 0x4c, 0x26, 0xd4, 0x23, 0x6a, 0x33, 0x8e, 0x1c, 0x4e, 0x59, 0x30, 0x08, 0x23, 0xc6,
  78. 0x99, 0xbe, 0xae, 0xc0, 0xc3, 0x83, 0x4c, 0x2d, 0x21, 0x8f, 0x8d, 0x8e, 0x5c, 0x12, 0x2a, 0xfe,
  79. 0xf0, 0x4e, 0xc9, 0x85, 0xb9, 0x31, 0x89, 0x26, 0x04, 0xe7, 0x54, 0x93, 0x4c, 0xb9, 0x5a, 0x9a,
  80. 0x7f, 0xee, 0x80, 0xfd, 0x87, 0x32, 0xe3, 0x41, 0x39, 0x43, 0xff, 0x43, 0x03, 0x4d, 0x95, 0x6d,
  81. 0x53, 0x6c, 0x68, 0x5d, 0xad, 0xbf, 0x6d, 0xfd, 0xa4, 0xbd, 0x14, 0xb0, 0xf1, 0xb7, 0x80, 0x1f,
  82. 0x0d, 0x29, 0x7f, 0x36, 0x76, 0x07, 0x1e, 0xf3, 0x8f, 0xe2, 0x59, 0xe0, 0xf1, 0x67, 0x34, 0x18,
  83. 0x96, 0x56, 0xe5, 0x1b, 0x0d, 0x94, 0xfb, 0xa3, 0x87, 0x97, 0x02, 0x6e, 0x2e, 0xd6, 0x89, 0x80,
  84. 0x9b, 0x38, 0x5f, 0xa7, 0x02, 0xb6, 0xa6, 0xfe, 0xe8, 0xc4, 0xa4, 0xf8, 0xbe, 0xc3, 0x79, 0x64,
  85. 0x26, 0x17, 0xbd, 0x8d, 0x7c, 0x9d, 0x5e, 0xf4, 0x0a, 0xdd, 0x8f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a1, 0xc2, 0x45, 0x3f, 0x05,
  97. 0x80, 0x06, 0x3c, 0x62, 0x78, 0xec, 0x91, 0xc8, 0x58, 0xef, 0x6a, 0xfd, 0x4d, 0xeb, 0x24, 0x11,
  98. 0xb0, 0x84, 0xa6, 0x02, 0xde, 0x52, 0x0f, 0xa2, 0x80, 0x8a, 0x8f, 0x68, 0xd7, 0x30, 0x54, 0x3a,
  99. 0xa7, 0xff, 0xa6, 0x81, 0xc3, 0xf8, 0x9c, 0x86, 0xf6, 0x02, 0xcb, 0x5e, 0xb2, 0x1d, 0x11, 0x9f,
  100. 0x4d, 0x9c, 0x51, 0x6c, 0x6c, 0xc8, 0x30, 0x9c, 0x08, 0x68, 0x64, 0xaa, 0x47, 0x25, 0x11, 0xca,
  101. 0x35, 0xa9, 0x80, 0xef, 0xca, 0xe8, 0x55, 0x82, 0xe2, 0x22, 0x77, 0xff, 0x53, 0x81, 0x56, 0x26,
  102. 0xe8, 0xbf, 0x6b, 0xa0, 0x55, 0xdc, 0x19, 0xdb, 0xee, 0xcc, 0xd8, 0x94, 0xc3, 0xf5, 0xc3, 0xff,
  103. 0x1a, 0xae, 0x44, 0xc0, 0xed, 0xa5, 0xab, 0x35, 0x4b, 0x05, 0xbc, 0x5d, 0xed, 0x10, 0x5b, 0xb3,
  104. 0xe2, 0xf2, 0x7b, 0xd7, 0xd0, 0x6c, 0xb8, 0x50, 0xc5, 0x41, 0x3f, 0x06, 0xeb, 0xa1, 0x33, 0x8e,
  105. 0x09, 0x36, 0x9a, 0xb2, 0xb8, 0xc3, 0x44, 0xc0, 0x1c, 0x49, 0x05, 0xdc, 0x96, 0xee, 0x6a, 0x6b,
  106. 0xa2, 0x1c, 0xd7, 0xbf, 0x07, 0xbb, 0xce, 0x68, 0xc4, 0x9e, 0x13, 0x6c, 0x07, 0x84, 0x3f, 0x67,
  107. 0xd1, 0x79, 0x6c, 0x00, 0x39, 0x3d, 0x5f, 0x27, 0x02, 0xb6, 0x73, 0xee, 0x49, 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0xbc, 0xf6, 0xdb, 0xe5, 0xe5,
  119. 0xc7, 0xea, 0x79, 0x15, 0xd8, 0x44, 0x35, 0x99, 0xfe, 0x8b, 0x06, 0xda, 0xaa, 0xb1, 0xef, 0xc6,
  120. 0x24, 0xe6, 0xf6, 0x39, 0x75, 0x8d, 0x5d, 0xd9, 0x59, 0x7c, 0x29, 0x60, 0xeb, 0xcb, 0xac, 0x0a,
  121. 0xc9, 0x3c, 0xa6, 0x56, 0x22, 0x60, 0xcb, 0x2f, 0x03, 0x45, 0x48, 0x05, 0x5d, 0x14, 0x99, 0x5c,
  122. 0xf4, 0x6a, 0xf2, 0x3a, 0xf0, 0x62, 0xde, 0xab, 0x26, 0xa0, 0x0a, 0xef, 0x5a, 0x9f, 0xbf, 0x7c,
  123. 0xd5, 0x69, 0xcc, 0x5f, 0x75, 0x1a, 0xff, 0x5c, 0x76, 0x1a, 0x3f, 0x5f, 0x75, 0x1a, 0xbf, 0x5e,
  124. 0x75, 0xb4, 0xf9, 0x55, 0xa7, 0xf1, 0xd7, 0x55, 0xa7, 0x71, 0x7a, 0xef, 0x2d, 0x26, 0x5b, 0x95,
  125. 0xe6, 0xae, 0xcb, 0x09, 0xff, 0xf0, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3c, 0x69, 0xcb, 0x9f,
  126. 0x0b, 0x08, 0x00, 0x00,
  127. }
  128. func (m *DeviceConfiguration) ProtoSize() (n int) {
  129. if m == nil {
  130. return 0
  131. }
  132. var l int
  133. _ = l
  134. l = m.DeviceID.ProtoSize()
  135. n += 1 + l + sovDeviceconfiguration(uint64(l))
  136. l = len(m.Name)
  137. if l > 0 {
  138. n += 1 + l + sovDeviceconfiguration(uint64(l))
  139. }
  140. if len(m.Addresses) > 0 {
  141. for _, s := range m.Addresses {
  142. l = len(s)
  143. n += 1 + l + sovDeviceconfiguration(uint64(l))
  144. }
  145. }
  146. if m.Compression != 0 {
  147. n += 1 + sovDeviceconfiguration(uint64(m.Compression))
  148. }
  149. l = len(m.CertName)
  150. if l > 0 {
  151. n += 1 + l + sovDeviceconfiguration(uint64(l))
  152. }
  153. if m.Introducer {
  154. n += 2
  155. }
  156. if m.SkipIntroductionRemovals {
  157. n += 2
  158. }
  159. l = m.IntroducedBy.ProtoSize()
  160. n += 1 + l + sovDeviceconfiguration(uint64(l))
  161. if m.Paused {
  162. n += 2
  163. }
  164. if len(m.AllowedNetworks) > 0 {
  165. for _, s := range m.AllowedNetworks {
  166. l = len(s)
  167. n += 1 + l + sovDeviceconfiguration(uint64(l))
  168. }
  169. }
  170. if m.AutoAcceptFolders {
  171. n += 2
  172. }
  173. if m.MaxSendKbps != 0 {
  174. n += 1 + sovDeviceconfiguration(uint64(m.MaxSendKbps))
  175. }
  176. if m.MaxRecvKbps != 0 {
  177. n += 1 + sovDeviceconfiguration(uint64(m.MaxRecvKbps))
  178. }
  179. if len(m.IgnoredFolders) > 0 {
  180. for _, e := range m.IgnoredFolders {
  181. l = e.ProtoSize()
  182. n += 1 + l + sovDeviceconfiguration(uint64(l))
  183. }
  184. }
  185. if len(m.PendingFolders) > 0 {
  186. for _, e := range m.PendingFolders {
  187. l = e.ProtoSize()
  188. n += 1 + l + sovDeviceconfiguration(uint64(l))
  189. }
  190. }
  191. if m.MaxRequestKiB != 0 {
  192. n += 2 + sovDeviceconfiguration(uint64(m.MaxRequestKiB))
  193. }
  194. return n
  195. }
  196. func sovDeviceconfiguration(x uint64) (n int) {
  197. return (math_bits.Len64(x|1) + 6) / 7
  198. }
  199. func sozDeviceconfiguration(x uint64) (n int) {
  200. return sovDeviceconfiguration(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  201. }