mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-30 02:18:25 +00:00
fa0101bd60
This changes the BEP protocol to use protocol buffer serialization instead of XDR, and therefore also the database format. The local discovery protocol is also updated to be protocol buffer format. GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3276 LGTM: AudriusButkevicius
177 lines
8.4 KiB
Go
177 lines
8.4 KiB
Go
// Code generated by protoc-gen-gogo.
|
|
// source: proto3_proto/proto3.proto
|
|
// DO NOT EDIT!
|
|
|
|
/*
|
|
Package proto3_proto is a generated protocol buffer package.
|
|
|
|
It is generated from these files:
|
|
proto3_proto/proto3.proto
|
|
|
|
It has these top-level messages:
|
|
Message
|
|
Nested
|
|
MessageWithMap
|
|
*/
|
|
package proto3_proto
|
|
|
|
import proto "github.com/gogo/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
import testdata "github.com/gogo/protobuf/proto/testdata"
|
|
|
|
// 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.
|
|
const _ = proto.GoGoProtoPackageIsVersion1
|
|
|
|
type Message_Humour int32
|
|
|
|
const (
|
|
Message_UNKNOWN Message_Humour = 0
|
|
Message_PUNS Message_Humour = 1
|
|
Message_SLAPSTICK Message_Humour = 2
|
|
Message_BILL_BAILEY Message_Humour = 3
|
|
)
|
|
|
|
var Message_Humour_name = map[int32]string{
|
|
0: "UNKNOWN",
|
|
1: "PUNS",
|
|
2: "SLAPSTICK",
|
|
3: "BILL_BAILEY",
|
|
}
|
|
var Message_Humour_value = map[string]int32{
|
|
"UNKNOWN": 0,
|
|
"PUNS": 1,
|
|
"SLAPSTICK": 2,
|
|
"BILL_BAILEY": 3,
|
|
}
|
|
|
|
func (x Message_Humour) String() string {
|
|
return proto.EnumName(Message_Humour_name, int32(x))
|
|
}
|
|
func (Message_Humour) EnumDescriptor() ([]byte, []int) { return fileDescriptorProto3, []int{0, 0} }
|
|
|
|
type Message struct {
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Hilarity Message_Humour `protobuf:"varint,2,opt,name=hilarity,proto3,enum=proto3_proto.Message_Humour" json:"hilarity,omitempty"`
|
|
HeightInCm uint32 `protobuf:"varint,3,opt,name=height_in_cm,json=heightInCm,proto3" json:"height_in_cm,omitempty"`
|
|
Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
|
|
ResultCount int64 `protobuf:"varint,7,opt,name=result_count,json=resultCount,proto3" json:"result_count,omitempty"`
|
|
TrueScotsman bool `protobuf:"varint,8,opt,name=true_scotsman,json=trueScotsman,proto3" json:"true_scotsman,omitempty"`
|
|
Score float32 `protobuf:"fixed32,9,opt,name=score,proto3" json:"score,omitempty"`
|
|
Key []uint64 `protobuf:"varint,5,rep,name=key" json:"key,omitempty"`
|
|
Nested *Nested `protobuf:"bytes,6,opt,name=nested" json:"nested,omitempty"`
|
|
Terrain map[string]*Nested `protobuf:"bytes,10,rep,name=terrain" json:"terrain,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"`
|
|
Proto2Field *testdata.SubDefaults `protobuf:"bytes,11,opt,name=proto2_field,json=proto2Field" json:"proto2_field,omitempty"`
|
|
Proto2Value map[string]*testdata.SubDefaults `protobuf:"bytes,13,rep,name=proto2_value,json=proto2Value" json:"proto2_value,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"`
|
|
}
|
|
|
|
func (m *Message) Reset() { *m = Message{} }
|
|
func (m *Message) String() string { return proto.CompactTextString(m) }
|
|
func (*Message) ProtoMessage() {}
|
|
func (*Message) Descriptor() ([]byte, []int) { return fileDescriptorProto3, []int{0} }
|
|
|
|
func (m *Message) GetNested() *Nested {
|
|
if m != nil {
|
|
return m.Nested
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Message) GetTerrain() map[string]*Nested {
|
|
if m != nil {
|
|
return m.Terrain
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Message) GetProto2Field() *testdata.SubDefaults {
|
|
if m != nil {
|
|
return m.Proto2Field
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Message) GetProto2Value() map[string]*testdata.SubDefaults {
|
|
if m != nil {
|
|
return m.Proto2Value
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Nested struct {
|
|
Bunny string `protobuf:"bytes,1,opt,name=bunny,proto3" json:"bunny,omitempty"`
|
|
}
|
|
|
|
func (m *Nested) Reset() { *m = Nested{} }
|
|
func (m *Nested) String() string { return proto.CompactTextString(m) }
|
|
func (*Nested) ProtoMessage() {}
|
|
func (*Nested) Descriptor() ([]byte, []int) { return fileDescriptorProto3, []int{1} }
|
|
|
|
type MessageWithMap struct {
|
|
ByteMapping map[bool][]byte `protobuf:"bytes,1,rep,name=byte_mapping,json=byteMapping" json:"byte_mapping,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
}
|
|
|
|
func (m *MessageWithMap) Reset() { *m = MessageWithMap{} }
|
|
func (m *MessageWithMap) String() string { return proto.CompactTextString(m) }
|
|
func (*MessageWithMap) ProtoMessage() {}
|
|
func (*MessageWithMap) Descriptor() ([]byte, []int) { return fileDescriptorProto3, []int{2} }
|
|
|
|
func (m *MessageWithMap) GetByteMapping() map[bool][]byte {
|
|
if m != nil {
|
|
return m.ByteMapping
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*Message)(nil), "proto3_proto.Message")
|
|
proto.RegisterType((*Nested)(nil), "proto3_proto.Nested")
|
|
proto.RegisterType((*MessageWithMap)(nil), "proto3_proto.MessageWithMap")
|
|
proto.RegisterEnum("proto3_proto.Message_Humour", Message_Humour_name, Message_Humour_value)
|
|
}
|
|
|
|
var fileDescriptorProto3 = []byte{
|
|
// 550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