2016-06-21 02:50:40 +02:00
|
|
|
// Code generated by protoc-gen-go.
|
|
|
|
// 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/golang/protobuf/proto"
|
|
|
|
import fmt "fmt"
|
|
|
|
import math "math"
|
|
|
|
import google_protobuf "github.com/golang/protobuf/ptypes/any"
|
|
|
|
import testdata "github.com/golang/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.ProtoPackageIsVersion1
|
|
|
|
|
|
|
|
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 fileDescriptor0, []int{0, 0} }
|
|
|
|
|
|
|
|
type Message struct {
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
|
|
|
Hilarity Message_Humour `protobuf:"varint,2,opt,name=hilarity,enum=proto3_proto.Message_Humour" json:"hilarity,omitempty"`
|
|
|
|
HeightInCm uint32 `protobuf:"varint,3,opt,name=height_in_cm,json=heightInCm" 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" json:"result_count,omitempty"`
|
|
|
|
TrueScotsman bool `protobuf:"varint,8,opt,name=true_scotsman,json=trueScotsman" json:"true_scotsman,omitempty"`
|
|
|
|
Score float32 `protobuf:"fixed32,9,opt,name=score" 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"`
|
|
|
|
RFunny []Message_Humour `protobuf:"varint,16,rep,name=r_funny,json=rFunny,enum=proto3_proto.Message_Humour" json:"r_funny,omitempty"`
|
|
|
|
Terrain map[string]*Nested `protobuf:"bytes,10,rep,name=terrain" json:"terrain,omitempty" protobuf_key:"bytes,1,opt,name=key" 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" protobuf_val:"bytes,2,opt,name=value"`
|
|
|
|
Anything *google_protobuf.Any `protobuf:"bytes,14,opt,name=anything" json:"anything,omitempty"`
|
|
|
|
ManyThings []*google_protobuf.Any `protobuf:"bytes,15,rep,name=many_things,json=manyThings" json:"many_things,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Message) Reset() { *m = Message{} }
|
|
|
|
func (m *Message) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Message) ProtoMessage() {}
|
|
|
|
func (*Message) Descriptor() ([]byte, []int) { return fileDescriptor0, []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
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Message) GetAnything() *google_protobuf.Any {
|
|
|
|
if m != nil {
|
|
|
|
return m.Anything
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Message) GetManyThings() []*google_protobuf.Any {
|
|
|
|
if m != nil {
|
|
|
|
return m.ManyThings
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type Nested struct {
|
|
|
|
Bunny string `protobuf:"bytes,1,opt,name=bunny" json:"bunny,omitempty"`
|
2016-07-04 19:06:28 +02:00
|
|
|
Cute bool `protobuf:"varint,2,opt,name=cute" json:"cute,omitempty"`
|
2016-06-21 02:50:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Nested) Reset() { *m = Nested{} }
|
|
|
|
func (m *Nested) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Nested) ProtoMessage() {}
|
|
|
|
func (*Nested) Descriptor() ([]byte, []int) { return fileDescriptor0, []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" 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 fileDescriptor0, []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 fileDescriptor0 = []byte{
|
2016-07-04 19:06:28 +02:00
|
|
|
// 621 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x84, 0x53, 0x5b, 0x6f, 0xd3, 0x4c,
|
|
|
|
0x10, 0xfd, 0x72, 0xa9, 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