versioningconfiguration.pb.go 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: lib/config/versioningconfiguration.proto
  3. package config
  4. import (
  5. fmt "fmt"
  6. proto "github.com/gogo/protobuf/proto"
  7. _ "github.com/syncthing/syncthing/proto/ext"
  8. math "math"
  9. math_bits "math/bits"
  10. )
  11. // Reference imports to suppress errors if they are not otherwise used.
  12. var _ = proto.Marshal
  13. var _ = fmt.Errorf
  14. var _ = math.Inf
  15. // This is a compile-time assertion to ensure that this generated file
  16. // is compatible with the proto package it is being compiled against.
  17. // A compilation error at this line likely means your copy of the
  18. // proto package needs to be updated.
  19. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  20. // VersioningConfiguration is used in the code and for JSON serialization
  21. type VersioningConfiguration struct {
  22. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type" `
  23. Params map[string]string `protobuf:"bytes,2,rep,name=parameters,proto3" json:"params" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  24. CleanupIntervalS int `protobuf:"varint,3,opt,name=cleanup_interval_s,json=cleanupIntervalS,proto3,casttype=int" json:"cleanupIntervalS" default:"3600"`
  25. }
  26. func (m *VersioningConfiguration) Reset() { *m = VersioningConfiguration{} }
  27. func (m *VersioningConfiguration) String() string { return proto.CompactTextString(m) }
  28. func (*VersioningConfiguration) ProtoMessage() {}
  29. func (*VersioningConfiguration) Descriptor() ([]byte, []int) {
  30. return fileDescriptor_95ba6bdb22ffea81, []int{0}
  31. }
  32. func (m *VersioningConfiguration) XXX_Unmarshal(b []byte) error {
  33. return xxx_messageInfo_VersioningConfiguration.Unmarshal(m, b)
  34. }
  35. func (m *VersioningConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  36. return xxx_messageInfo_VersioningConfiguration.Marshal(b, m, deterministic)
  37. }
  38. func (m *VersioningConfiguration) XXX_Merge(src proto.Message) {
  39. xxx_messageInfo_VersioningConfiguration.Merge(m, src)
  40. }
  41. func (m *VersioningConfiguration) XXX_Size() int {
  42. return xxx_messageInfo_VersioningConfiguration.Size(m)
  43. }
  44. func (m *VersioningConfiguration) XXX_DiscardUnknown() {
  45. xxx_messageInfo_VersioningConfiguration.DiscardUnknown(m)
  46. }
  47. var xxx_messageInfo_VersioningConfiguration proto.InternalMessageInfo
  48. func init() {
  49. proto.RegisterType((*VersioningConfiguration)(nil), "config.VersioningConfiguration")
  50. proto.RegisterMapType((map[string]string)(nil), "config.VersioningConfiguration.ParametersEntry")
  51. }
  52. func init() {
  53. proto.RegisterFile("lib/config/versioningconfiguration.proto", fileDescriptor_95ba6bdb22ffea81)
  54. }
  55. var fileDescriptor_95ba6bdb22ffea81 = []byte{
  56. // 383 bytes of a gzipped FileDescriptorProto
  57. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x52, 0xcf, 0x8b, 0x9b, 0x40,
  58. 0x18, 0x1d, 0x63, 0x22, 0x64, 0xd2, 0x5f, 0x78, 0xa9, 0x04, 0xea, 0x48, 0xea, 0xc1, 0x5e, 0x34,
  59. 0x34, 0xb4, 0x94, 0x1c, 0x2d, 0xa5, 0xf4, 0x56, 0x52, 0x28, 0xb4, 0x97, 0x60, 0xec, 0xc4, 0x0c,
  60. 0x35, 0xa3, 0xe8, 0x18, 0xea, 0xb1, 0x87, 0x42, 0x8f, 0xed, 0xfe, 0x05, 0xfb, 0xe7, 0xe4, 0x96,
  61. 0x1c, 0xf7, 0x34, 0x90, 0x78, 0x59, 0x3c, 0xe6, 0x98, 0xd3, 0xe2, 0x28, 0xd9, 0xb0, 0xcb, 0xde,
  62. 0xde, 0x7b, 0xdf, 0x7b, 0xdf, 0x93, 0xcf, 0x81, 0x56, 0x48, 0x66, 0x8e, 0x1f,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f7, 0x22, 0xfd,
  74. 0x6f, 0xf0, 0xe9, 0x9d, 0xaf, 0x56, 0x5f, 0x40, 0xf9, 0x27, 0xce, 0x9b, 0xe3, 0xf4, 0x4a, 0x8e,
  75. 0x2a, 0x2a, 0x6e, 0x53, 0x01, 0xf5, 0x25, 0xec, 0xac, 0xbc, 0x30, 0xc3, 0x5a, 0x4b, 0x18, 0x1e,
  76. 0x97, 0x1c, 0xd5, 0x82, 0xb0, 0xd4, 0x70, 0xdc, 0x7a, 0x27, 0x8d, 0xdb, 0x7f, 0xff, 0x9b, 0xc0,
  77. 0xfd, 0xb8, 0xde, 0xe9, 0x60, 0xbb, 0xd3, 0xc1, 0xf5, 0x5e, 0x07, 0xff, 0x0a, 0x1d, 0x5c, 0x16,
  78. 0xba, 0xb4, 0x2d, 0x74, 0x70, 0x55, 0xe8, 0xe0, 0xfb, 0xab, 0x80, 0xb0, 0x45, 0x36, 0xb3, 0xfd,
  79. 0x68, 0xe9, 0xa4, 0x39, 0xf5, 0xd9, 0x82, 0xd0, 0xe0, 0x0c, 0xdd, 0xbe, 0x80, 0x99, 0x22, 0xfe,
  80. 0xeb, 0xe8, 0x26, 0x00, 0x00, 0xff, 0xff, 0x08, 0x18, 0x19, 0x5e, 0x16, 0x02, 0x00, 0x00,
  81. }
  82. func (m *VersioningConfiguration) ProtoSize() (n int) {
  83. if m == nil {
  84. return 0
  85. }
  86. var l int
  87. _ = l
  88. l = len(m.Type)
  89. if l > 0 {
  90. n += 1 + l + sovVersioningconfiguration(uint64(l))
  91. }
  92. if len(m.Params) > 0 {
  93. for k, v := range m.Params {
  94. _ = k
  95. _ = v
  96. mapEntrySize := 1 + len(k) + sovVersioningconfiguration(uint64(len(k))) + 1 + len(v) + sovVersioningconfiguration(uint64(len(v)))
  97. n += mapEntrySize + 1 + sovVersioningconfiguration(uint64(mapEntrySize))
  98. }
  99. }
  100. if m.CleanupIntervalS != 0 {
  101. n += 1 + sovVersioningconfiguration(uint64(m.CleanupIntervalS))
  102. }
  103. return n
  104. }
  105. func sovVersioningconfiguration(x uint64) (n int) {
  106. return (math_bits.Len64(x|1) + 6) / 7
  107. }
  108. func sozVersioningconfiguration(x uint64) (n int) {
  109. return sovVersioningconfiguration(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  110. }