observed.pb.go 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: lib/config/observed.proto
  3. package config
  4. import (
  5. fmt "fmt"
  6. proto "github.com/gogo/protobuf/proto"
  7. github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
  8. _ "github.com/golang/protobuf/ptypes/timestamp"
  9. github_com_syncthing_syncthing_lib_protocol "github.com/syncthing/syncthing/lib/protocol"
  10. _ "github.com/syncthing/syncthing/proto/ext"
  11. math "math"
  12. math_bits "math/bits"
  13. time "time"
  14. )
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. var _ = time.Kitchen
  20. // This is a compile-time assertion to ensure that this generated file
  21. // is compatible with the proto package it is being compiled against.
  22. // A compilation error at this line likely means your copy of the
  23. // proto package needs to be updated.
  24. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  25. type ObservedFolder struct {
  26. Time time.Time `protobuf:"bytes,1,opt,name=time,proto3,stdtime" json:"time" xml:"time,attr"`
  27. ID string `protobuf:"bytes,2,opt,name=id,proto3" json:"id" xml:"id,attr"`
  28. Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label" xml:"label,attr"`
  29. }
  30. func (m *ObservedFolder) Reset() { *m = ObservedFolder{} }
  31. func (m *ObservedFolder) String() string { return proto.CompactTextString(m) }
  32. func (*ObservedFolder) ProtoMessage() {}
  33. func (*ObservedFolder) Descriptor() ([]byte, []int) {
  34. return fileDescriptor_49f68ff7b178722f, []int{0}
  35. }
  36. func (m *ObservedFolder) XXX_Unmarshal(b []byte) error {
  37. return xxx_messageInfo_ObservedFolder.Unmarshal(m, b)
  38. }
  39. func (m *ObservedFolder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  40. return xxx_messageInfo_ObservedFolder.Marshal(b, m, deterministic)
  41. }
  42. func (m *ObservedFolder) XXX_Merge(src proto.Message) {
  43. xxx_messageInfo_ObservedFolder.Merge(m, src)
  44. }
  45. func (m *ObservedFolder) XXX_Size() int {
  46. return xxx_messageInfo_ObservedFolder.Size(m)
  47. }
  48. func (m *ObservedFolder) XXX_DiscardUnknown() {
  49. xxx_messageInfo_ObservedFolder.DiscardUnknown(m)
  50. }
  51. var xxx_messageInfo_ObservedFolder proto.InternalMessageInfo
  52. type ObservedDevice struct {
  53. Time time.Time `protobuf:"bytes,1,opt,name=time,proto3,stdtime" json:"time" xml:"time,attr"`
  54. ID github_com_syncthing_syncthing_lib_protocol.DeviceID `protobuf:"bytes,2,opt,name=id,proto3,customtype=github.com/syncthing/syncthing/lib/protocol.DeviceID" json:"deviceID" xml:"id,attr"`
  55. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name" xml:"name,attr"`
  56. Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address" xml:"address,attr"`
  57. }
  58. func (m *ObservedDevice) Reset() { *m = ObservedDevice{} }
  59. func (m *ObservedDevice) String() string { return proto.CompactTextString(m) }
  60. func (*ObservedDevice) ProtoMessage() {}
  61. func (*ObservedDevice) Descriptor() ([]byte, []int) {
  62. return fileDescriptor_49f68ff7b178722f, []int{1}
  63. }
  64. func (m *ObservedDevice) XXX_Unmarshal(b []byte) error {
  65. return xxx_messageInfo_ObservedDevice.Unmarshal(m, b)
  66. }
  67. func (m *ObservedDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  68. return xxx_messageInfo_ObservedDevice.Marshal(b, m, deterministic)
  69. }
  70. func (m *ObservedDevice) XXX_Merge(src proto.Message) {
  71. xxx_messageInfo_ObservedDevice.Merge(m, src)
  72. }
  73. func (m *ObservedDevice) XXX_Size() int {
  74. return xxx_messageInfo_ObservedDevice.Size(m)
  75. }
  76. func (m *ObservedDevice) XXX_DiscardUnknown() {
  77. xxx_messageInfo_ObservedDevice.DiscardUnknown(m)
  78. }
  79. var xxx_messageInfo_ObservedDevice proto.InternalMessageInfo
  80. func init() {
  81. proto.RegisterType((*ObservedFolder)(nil), "config.ObservedFolder")
  82. proto.RegisterType((*ObservedDevice)(nil), "config.ObservedDevice")
  83. }
  84. func init() { proto.RegisterFile("lib/config/observed.proto", fileDescriptor_49f68ff7b178722f) }
  85. var fileDescriptor_49f68ff7b178722f = []byte{
  86. // 438 bytes of a gzipped FileDescriptorProto
  87. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x93, 0x3f, 0x6f, 0xd4, 0x30,
  88. 0x00, 0xc5, 0xe3, 0xf4, 0x68, 0x39, 0x53, 0xfe, 0x28, 0xd3, 0x71, 0x43, 0x5c, 0x9d, 0x32, 0x1c,
  89. 0x02, 0x25, 0xfc, 0x9b, 0x10, 0x42, 0x22, 0x8a, 0x40, 0x27, 0x06, 0xa4, 0x88, 0x89, 0x89, 0x24,
  90. 0x76, 0x53, 0x4b, 0x49, 0x5c, 0x25, 0x6e, 0x55, 0x36, 0x46, 0xc6, 0x96, 0x4f, 0xc0, 0xc7, 0xe9,
  91. 0x76, 0x19, 0x11, 0x83, 0x51, 0x9b, 0x05, 0x65, 0x8c, 0xc4, 0x8e, 0x62, 0x27, 0xee, 0x4d, 0x88,
  92. 0xa9, 0x9b, 0xdf, 0xd3, 0xf3, 0x4f, 0x7e, 0x2f, 0x0a, 0xbc, 0x9f, 0xd1, 0xd8, 0x4b, 0x58, 0xb1,
  93. 0x4f, 0x53, 0x8f, 0xc5, 0x15, 0x29, 0x8f, 0x09, 0x76, 0x0f, 0x4b, 0xc6, 0x99, 0xb5, 0xad, 0xec,
  94. 0x39, 0x4a, 0x19, 0x4b, 0x33, 0xe2, 0x49, 0x37, 0x3e, 0xda, 0xf7, 0x38, 0xcd, 0x49, 0xc5, 0xa3,
  95. 0xfc, 0x50, 0x05, 0xe7, 0x53, 0x72, 0xc2, 0xd5, 0x71, 0xf1, 0x07, 0xc0, 0x3b, 0xef, 0x07, 0xcc,
  96. 0x1b, 0x96, 0x61, 0x52, 0x5a, 0x9f, 0xe0, 0xa4, 0xbf, 0x30, 0x03, 0x7b, 0x60, 0x79, 0xeb, 0xe9,
  97. 0xdc, 0x55, 0x34, 0x77, 0xa4, 0xb9, 0x1f, 0x46, 0x9a, 0xff, 0xf8, 0x5c, 0x20, 0xa3, 0x15, 0x48,
  98. 0xe6, 0x3b, 0x81, 0xee, 0x9e, 0xe4, 0xd9, 0x8b, 0x45, 0x2f, 0x1e, 0x45, 0x9c, 0x97, 0x8b, 0xd3,
  99. 0x5f, 0x08, 0xb4, 0x6b, 0x67, 0xaa, 0x9d, 0x50, 0x26, 0xad, 0x57, 0xd0, 0xa4, 0x78, 0x66, 0xee,
  100. 0x81, 0xe5, 0xd4, 0x77, 0x2f, 0x05, 0x32, 0x57, 0x41, 0x2b, 0x90, 0x49, 0x71, 0x27, 0xd0, 0x6d,
  101. 0xc9, 0xa0, 0x58, 0x11, 0xda, 0xb5, 0xb3, 0x33, 0x9c, 0xbf, 0xd5, 0x8e, 0xb9, 0x0a, 0x42, 0x93,
  102. 0x62, 0xeb, 0x35, 0xbc, 0x91, 0x45, 0x31, 0xc9, 0x66, 0x5b, 0x12, 0xf1, 0xb0, 0x15, 0x48, 0x19,
  103. 0x9d, 0x40, 0xf7, 0xe4, 0x7d, 0xa9, 0x34, 0x02, 0x5e, 0xc9, 0x50, 0x05, 0x17, 0x67, 0x5b, 0x57,
  104. 0xbd, 0x03, 0x72, 0x4c, 0x13, 0x72, 0x0d, 0xbd, 0xcf, 0x80, 0x2e, 0xbe, 0xeb, 0x7f, 0x01, 0x3d,
  105. 0xe5, 0xa7, 0x40, 0xcf, 0x53, 0xca, 0x0f, 0x8e, 0x62, 0x37, 0x61, 0xb9, 0x57, 0x7d, 0x2e, 0x12,
  106. 0x7e, 0x40, 0x8b, 0x74, 0xe3, 0xd4, 0x7f, 0x70, 0xf9, 0x88, 0x84, 0x65, 0xae, 0x7a, 0xeb, 0x2a,
  107. 0xd0, 0xab, 0xdd, 0xc4, 0x83, 0xf3, 0xaf, 0xed, 0xba, 0xb5, 0xa3, 0x73, 0x5f, 0x6b, 0x07, 0x6c,
  108. 0x6c, 0xf9, 0x12, 0x4e, 0x8a, 0x28, 0x27, 0xc3, 0x94, 0xcb, 0xbe, 0x55, 0xaf, 0x75, 0xab, 0x5e,
  109. 0x68, 0xde, 0x54, 0xab, 0x50, 0xa6, 0xac, 0x77, 0x70, 0x27, 0xc2, 0xb8, 0x24, 0x55, 0x35, 0x9b,
  110. 0x48, 0xc0, 0x93, 0x56, 0xa0, 0xd1, 0xea, 0x04, 0xb2, 0x24, 0x63, 0xd0, 0x1a, 0xb3, 0xbb, 0x69,
  111. 0x84, 0x63, 0xdc, 0x7f, 0x7b, 0x7e, 0x61, 0x1b, 0xf5, 0x85, 0x6d, 0xfc, 0xbe, 0xb4, 0x8d, 0xd3,
  112. 0xc6, 0x36, 0xbe, 0x37, 0x36, 0xa8, 0x1b, 0xdb, 0xf8, 0xd1, 0xd8, 0xc6, 0xc7, 0x07, 0xff, 0x31,
  113. 0x93, 0xfa, 0x01, 0xe2, 0x6d, 0x39, 0xd7, 0xb3, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xfb, 0xcb,
  114. 0x46, 0x92, 0x2c, 0x03, 0x00, 0x00,
  115. }
  116. func (m *ObservedFolder) ProtoSize() (n int) {
  117. if m == nil {
  118. return 0
  119. }
  120. var l int
  121. _ = l
  122. l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time)
  123. n += 1 + l + sovObserved(uint64(l))
  124. l = len(m.ID)
  125. if l > 0 {
  126. n += 1 + l + sovObserved(uint64(l))
  127. }
  128. l = len(m.Label)
  129. if l > 0 {
  130. n += 1 + l + sovObserved(uint64(l))
  131. }
  132. return n
  133. }
  134. func (m *ObservedDevice) ProtoSize() (n int) {
  135. if m == nil {
  136. return 0
  137. }
  138. var l int
  139. _ = l
  140. l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time)
  141. n += 1 + l + sovObserved(uint64(l))
  142. l = m.ID.ProtoSize()
  143. n += 1 + l + sovObserved(uint64(l))
  144. l = len(m.Name)
  145. if l > 0 {
  146. n += 1 + l + sovObserved(uint64(l))
  147. }
  148. l = len(m.Address)
  149. if l > 0 {
  150. n += 1 + l + sovObserved(uint64(l))
  151. }
  152. return n
  153. }
  154. func sovObserved(x uint64) (n int) {
  155. return (math_bits.Len64(x|1) + 6) / 7
  156. }
  157. func sozObserved(x uint64) (n int) {
  158. return sovObserved(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  159. }