mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
123 lines
5.8 KiB
Go
123 lines
5.8 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: lib/config/versioningconfiguration.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
|
|
|
|
// VersioningConfiguration is used in the code and for JSON serialization
|
|
type VersioningConfiguration struct {
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type" `
|
|
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"`
|
|
CleanupIntervalS int `protobuf:"varint,3,opt,name=cleanup_interval_s,json=cleanupIntervalS,proto3,casttype=int" json:"cleanupIntervalS" default:"3600"`
|
|
}
|
|
|
|
func (m *VersioningConfiguration) Reset() { *m = VersioningConfiguration{} }
|
|
func (m *VersioningConfiguration) String() string { return proto.CompactTextString(m) }
|
|
func (*VersioningConfiguration) ProtoMessage() {}
|
|
func (*VersioningConfiguration) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_95ba6bdb22ffea81, []int{0}
|
|
}
|
|
func (m *VersioningConfiguration) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_VersioningConfiguration.Unmarshal(m, b)
|
|
}
|
|
func (m *VersioningConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_VersioningConfiguration.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *VersioningConfiguration) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_VersioningConfiguration.Merge(m, src)
|
|
}
|
|
func (m *VersioningConfiguration) XXX_Size() int {
|
|
return xxx_messageInfo_VersioningConfiguration.Size(m)
|
|
}
|
|
func (m *VersioningConfiguration) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_VersioningConfiguration.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_VersioningConfiguration proto.InternalMessageInfo
|
|
|
|
func init() {
|
|
proto.RegisterType((*VersioningConfiguration)(nil), "config.VersioningConfiguration")
|
|
proto.RegisterMapType((map[string]string)(nil), "config.VersioningConfiguration.ParametersEntry")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("lib/config/versioningconfiguration.proto", fileDescriptor_95ba6bdb22ffea81)
|
|
}
|
|
|
|
var fileDescriptor_95ba6bdb22ffea81 = []byte{
|
|
// 383 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x52, 0xcf, 0x8b, 0x9b, 0x40,
|
|
0x18, 0x1d, 0x63, 0x22, 0x64, 0xd2, 0x5f, 0x78, 0xa9, 0x04, 0xea, 0x48, 0xea, 0xc1, 0x5e, 0x34,
|
|
0x34, 0xb4, 0x94, 0x1c, 0x2d, 0xa5, 0xf4, 0x56, 0x52, 0x28, 0xb4, 0x97, 0x60, 0xec, 0xc4, 0x0c,
|
|
0x35, 0xa3, 0xe8, 0x18, 0xea, 0xb1, 0x87, 0x42, 0x8f, 0xed, 0xfe, 0x05, 0xfb, 0xe7, 0xe4, 0x96,
|
|
0x1c, 0xf7, 0x34, 0x90, 0x78, 0x59, 0x3c, 0xe6, 0x98, 0xd3, 0xe2, 0x28, 0xd9, 0xb0, 0xcb, 0xde,
|
|
0xde, 0x7b, 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, 0xc8, 0x91, 0x4c, 0x28, 0x3b, 0x6e, 0xcc, 0x76, 0xc5, 0x27, 0xf7, 0x22, 0xfd,
|
|
0x6f, 0xf0, 0xe9, 0x9d, 0xaf, 0x56, 0x5f, 0x40, 0xf9, 0x27, 0xce, 0x9b, 0xe3, 0xf4, 0x4a, 0x8e,
|
|
0x2a, 0x2a, 0x6e, 0x53, 0x01, 0xf5, 0x25, 0xec, 0xac, 0xbc, 0x30, 0xc3, 0x5a, 0x4b, 0x18, 0x1e,
|
|
0x97, 0x1c, 0xd5, 0x82, 0xb0, 0xd4, 0x70, 0xdc, 0x7a, 0x27, 0x8d, 0xdb, 0x7f, 0xff, 0x9b, 0xc0,
|
|
0xfd, 0xb8, 0xde, 0xe9, 0x60, 0xbb, 0xd3, 0xc1, 0xf5, 0x5e, 0x07, 0xff, 0x0a, 0x1d, 0x5c, 0x16,
|
|
0xba, 0xb4, 0x2d, 0x74, 0x70, 0x55, 0xe8, 0xe0, 0xfb, 0xab, 0x80, 0xb0, 0x45, 0x36, 0xb3, 0xfd,
|
|
0x68, 0xe9, 0xa4, 0x39, 0xf5, 0xd9, 0x82, 0xd0, 0xe0, 0x0c, 0xdd, 0xbe, 0x80, 0x99, 0x22, 0xfe,
|
|
0xeb, 0xe8, 0x26, 0x00, 0x00, 0xff, 0xff, 0x08, 0x18, 0x19, 0x5e, 0x16, 0x02, 0x00, 0x00,
|
|
}
|
|
|
|
func (m *VersioningConfiguration) ProtoSize() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Type)
|
|
if l > 0 {
|
|
n += 1 + l + sovVersioningconfiguration(uint64(l))
|
|
}
|
|
if len(m.Params) > 0 {
|
|
for k, v := range m.Params {
|
|
_ = k
|
|
_ = v
|
|
mapEntrySize := 1 + len(k) + sovVersioningconfiguration(uint64(len(k))) + 1 + len(v) + sovVersioningconfiguration(uint64(len(v)))
|
|
n += mapEntrySize + 1 + sovVersioningconfiguration(uint64(mapEntrySize))
|
|
}
|
|
}
|
|
if m.CleanupIntervalS != 0 {
|
|
n += 1 + sovVersioningconfiguration(uint64(m.CleanupIntervalS))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func sovVersioningconfiguration(x uint64) (n int) {
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
}
|
|
func sozVersioningconfiguration(x uint64) (n int) {
|
|
return sovVersioningconfiguration(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
}
|