blob: 4ccfc1373fee49836759acedf614bba7ed19d927 [file] [log] [blame]
Damien Neil658051b2018-09-10 12:26:21 -07001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: proto3/fields.proto
3
4package proto3
5
6import proto "github.com/golang/protobuf/proto"
7
Damien Neild4127922018-09-12 11:13:49 -07008// This is a compile-time assertion to ensure that this generated file
9// is compatible with the proto package it is being compiled against.
10// A compilation error at this line likely means your copy of the
11// proto package needs to be updated.
12const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
13
Damien Neil658051b2018-09-10 12:26:21 -070014type FieldTestMessage_Enum int32
15
16const (
17 FieldTestMessage_ZERO FieldTestMessage_Enum = 0
18)
19
20var FieldTestMessage_Enum_name = map[int32]string{
21 0: "ZERO",
22}
23
24var FieldTestMessage_Enum_value = map[string]int32{
25 "ZERO": 0,
26}
27
28func (x FieldTestMessage_Enum) String() string {
29 return proto.EnumName(FieldTestMessage_Enum_name, int32(x))
30}
31
32func (FieldTestMessage_Enum) EnumDescriptor() ([]byte, []int) {
33 return fileDescriptor_f1e3ea068187307c, []int{0, 0}
34}
35
36type FieldTestMessage struct {
Damien Neil0bd5a382018-09-13 15:07:10 -070037 OptionalBool string `protobuf:"bytes,1,opt,name=optional_bool,json=optionalBool,proto3" json:"optional_bool,omitempty"`
38 OptionalEnum FieldTestMessage_Enum `protobuf:"varint,2,opt,name=optional_enum,json=optionalEnum,proto3,enum=goproto.protoc.proto3.FieldTestMessage_Enum" json:"optional_enum,omitempty"`
39 OptionalInt32 int32 `protobuf:"varint,3,opt,name=optional_int32,json=optionalInt32,proto3" json:"optional_int32,omitempty"`
40 OptionalSint32 int32 `protobuf:"zigzag32,4,opt,name=optional_sint32,json=optionalSint32,proto3" json:"optional_sint32,omitempty"`
41 OptionalUint32 uint32 `protobuf:"varint,5,opt,name=optional_uint32,json=optionalUint32,proto3" json:"optional_uint32,omitempty"`
42 OptionalInt64 int64 `protobuf:"varint,6,opt,name=optional_int64,json=optionalInt64,proto3" json:"optional_int64,omitempty"`
43 OptionalSint64 int64 `protobuf:"zigzag64,7,opt,name=optional_sint64,json=optionalSint64,proto3" json:"optional_sint64,omitempty"`
44 OptionalUint64 uint64 `protobuf:"varint,8,opt,name=optional_uint64,json=optionalUint64,proto3" json:"optional_uint64,omitempty"`
45 OptionalSfixed32 int32 `protobuf:"fixed32,9,opt,name=optional_sfixed32,json=optionalSfixed32,proto3" json:"optional_sfixed32,omitempty"`
46 OptionalFixed32 uint32 `protobuf:"fixed32,10,opt,name=optional_fixed32,json=optionalFixed32,proto3" json:"optional_fixed32,omitempty"`
47 OptionalFloat float32 `protobuf:"fixed32,11,opt,name=optional_float,json=optionalFloat,proto3" json:"optional_float,omitempty"`
48 OptionalSfixed64 int64 `protobuf:"fixed64,12,opt,name=optional_sfixed64,json=optionalSfixed64,proto3" json:"optional_sfixed64,omitempty"`
49 OptionalFixed64 uint64 `protobuf:"fixed64,13,opt,name=optional_fixed64,json=optionalFixed64,proto3" json:"optional_fixed64,omitempty"`
50 OptionalDouble float64 `protobuf:"fixed64,14,opt,name=optional_double,json=optionalDouble,proto3" json:"optional_double,omitempty"`
51 OptionalString string `protobuf:"bytes,15,opt,name=optional_string,json=optionalString,proto3" json:"optional_string,omitempty"`
52 OptionalBytes []byte `protobuf:"bytes,16,opt,name=optional_bytes,json=optionalBytes,proto3" json:"optional_bytes,omitempty"`
53 Optional_Message *FieldTestMessage_Message `protobuf:"bytes,17,opt,name=optional_Message,json=optionalMessage,proto3" json:"optional_Message,omitempty"`
54 MapInt32Int64 map[int32]int64 `protobuf:"bytes,500,rep,name=map_int32_int64,json=mapInt32Int64,proto3" json:"map_int32_int64,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
55 MapStringMessage map[string]*FieldTestMessage_Message `protobuf:"bytes,501,rep,name=map_string_message,json=mapStringMessage,proto3" json:"map_string_message,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
56 MapFixed64Enum map[uint64]FieldTestMessage_Enum `protobuf:"bytes,502,rep,name=map_fixed64_enum,json=mapFixed64Enum,proto3" json:"map_fixed64_enum,omitempty" protobuf_key:"fixed64,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=goproto.protoc.proto3.FieldTestMessage_Enum"`
57 XXX_NoUnkeyedLiteral struct{} `json:"-"`
58 XXX_unrecognized []byte `json:"-"`
59 XXX_sizecache int32 `json:"-"`
Damien Neil658051b2018-09-10 12:26:21 -070060}
61
Damien Neila1c6abc2018-09-12 13:36:34 -070062func (m *FieldTestMessage) Reset() { *m = FieldTestMessage{} }
63func (m *FieldTestMessage) String() string { return proto.CompactTextString(m) }
64func (*FieldTestMessage) ProtoMessage() {}
65func (*FieldTestMessage) Descriptor() ([]byte, []int) {
66 return fileDescriptor_f1e3ea068187307c, []int{0}
67}
68func (m *FieldTestMessage) XXX_Unmarshal(b []byte) error {
69 return xxx_messageInfo_FieldTestMessage.Unmarshal(m, b)
70}
71func (m *FieldTestMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
72 return xxx_messageInfo_FieldTestMessage.Marshal(b, m, deterministic)
73}
74func (m *FieldTestMessage) XXX_Merge(src proto.Message) {
75 xxx_messageInfo_FieldTestMessage.Merge(m, src)
76}
77func (m *FieldTestMessage) XXX_Size() int {
78 return xxx_messageInfo_FieldTestMessage.Size(m)
79}
80func (m *FieldTestMessage) XXX_DiscardUnknown() {
81 xxx_messageInfo_FieldTestMessage.DiscardUnknown(m)
82}
83
84var xxx_messageInfo_FieldTestMessage proto.InternalMessageInfo
85
Damien Neil77f82fe2018-09-13 10:59:17 -070086func (m *FieldTestMessage) GetOptionalBool() string {
87 if m != nil {
88 return m.OptionalBool
89 }
90 return ""
91}
92
93func (m *FieldTestMessage) GetOptionalEnum() FieldTestMessage_Enum {
94 if m != nil {
95 return m.OptionalEnum
96 }
97 return FieldTestMessage_ZERO
98}
99
100func (m *FieldTestMessage) GetOptionalInt32() int32 {
101 if m != nil {
102 return m.OptionalInt32
103 }
104 return 0
105}
106
107func (m *FieldTestMessage) GetOptionalSint32() int32 {
108 if m != nil {
109 return m.OptionalSint32
110 }
111 return 0
112}
113
114func (m *FieldTestMessage) GetOptionalUint32() uint32 {
115 if m != nil {
116 return m.OptionalUint32
117 }
118 return 0
119}
120
121func (m *FieldTestMessage) GetOptionalInt64() int64 {
122 if m != nil {
123 return m.OptionalInt64
124 }
125 return 0
126}
127
128func (m *FieldTestMessage) GetOptionalSint64() int64 {
129 if m != nil {
130 return m.OptionalSint64
131 }
132 return 0
133}
134
135func (m *FieldTestMessage) GetOptionalUint64() uint64 {
136 if m != nil {
137 return m.OptionalUint64
138 }
139 return 0
140}
141
142func (m *FieldTestMessage) GetOptionalSfixed32() int32 {
143 if m != nil {
144 return m.OptionalSfixed32
145 }
146 return 0
147}
148
149func (m *FieldTestMessage) GetOptionalFixed32() uint32 {
150 if m != nil {
151 return m.OptionalFixed32
152 }
153 return 0
154}
155
156func (m *FieldTestMessage) GetOptionalFloat() float32 {
157 if m != nil {
158 return m.OptionalFloat
159 }
160 return 0
161}
162
163func (m *FieldTestMessage) GetOptionalSfixed64() int64 {
164 if m != nil {
165 return m.OptionalSfixed64
166 }
167 return 0
168}
169
170func (m *FieldTestMessage) GetOptionalFixed64() uint64 {
171 if m != nil {
172 return m.OptionalFixed64
173 }
174 return 0
175}
176
177func (m *FieldTestMessage) GetOptionalDouble() float64 {
178 if m != nil {
179 return m.OptionalDouble
180 }
181 return 0
182}
183
184func (m *FieldTestMessage) GetOptionalString() string {
185 if m != nil {
186 return m.OptionalString
187 }
188 return ""
189}
190
191func (m *FieldTestMessage) GetOptionalBytes() []byte {
192 if m != nil {
193 return m.OptionalBytes
194 }
195 return nil
196}
197
198func (m *FieldTestMessage) GetOptional_Message() *FieldTestMessage_Message {
199 if m != nil {
200 return m.Optional_Message
201 }
202 return nil
203}
204
Damien Neil0bd5a382018-09-13 15:07:10 -0700205func (m *FieldTestMessage) GetMapInt32Int64() map[int32]int64 {
206 if m != nil {
207 return m.MapInt32Int64
208 }
209 return nil
210}
211
212func (m *FieldTestMessage) GetMapStringMessage() map[string]*FieldTestMessage_Message {
213 if m != nil {
214 return m.MapStringMessage
215 }
216 return nil
217}
218
219func (m *FieldTestMessage) GetMapFixed64Enum() map[uint64]FieldTestMessage_Enum {
220 if m != nil {
221 return m.MapFixed64Enum
222 }
223 return nil
224}
225
Damien Neil658051b2018-09-10 12:26:21 -0700226type FieldTestMessage_Message struct {
227 XXX_NoUnkeyedLiteral struct{} `json:"-"`
228 XXX_unrecognized []byte `json:"-"`
229 XXX_sizecache int32 `json:"-"`
230}
231
Damien Neila1c6abc2018-09-12 13:36:34 -0700232func (m *FieldTestMessage_Message) Reset() { *m = FieldTestMessage_Message{} }
233func (m *FieldTestMessage_Message) String() string { return proto.CompactTextString(m) }
234func (*FieldTestMessage_Message) ProtoMessage() {}
235func (*FieldTestMessage_Message) Descriptor() ([]byte, []int) {
Damien Neil0bd5a382018-09-13 15:07:10 -0700236 return fileDescriptor_f1e3ea068187307c, []int{0, 3}
Damien Neila1c6abc2018-09-12 13:36:34 -0700237}
238func (m *FieldTestMessage_Message) XXX_Unmarshal(b []byte) error {
239 return xxx_messageInfo_FieldTestMessage_Message.Unmarshal(m, b)
240}
241func (m *FieldTestMessage_Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
242 return xxx_messageInfo_FieldTestMessage_Message.Marshal(b, m, deterministic)
243}
244func (m *FieldTestMessage_Message) XXX_Merge(src proto.Message) {
245 xxx_messageInfo_FieldTestMessage_Message.Merge(m, src)
246}
247func (m *FieldTestMessage_Message) XXX_Size() int {
248 return xxx_messageInfo_FieldTestMessage_Message.Size(m)
249}
250func (m *FieldTestMessage_Message) XXX_DiscardUnknown() {
251 xxx_messageInfo_FieldTestMessage_Message.DiscardUnknown(m)
252}
253
254var xxx_messageInfo_FieldTestMessage_Message proto.InternalMessageInfo
255
Damien Neil658051b2018-09-10 12:26:21 -0700256func init() {
Damien Neilce36f8d2018-09-13 15:19:08 -0700257 proto.RegisterType((*FieldTestMessage)(nil), "goproto.protoc.proto3.FieldTestMessage")
258 proto.RegisterMapType((map[uint64]FieldTestMessage_Enum)(nil), "goproto.protoc.proto3.FieldTestMessage.MapFixed64EnumEntry")
259 proto.RegisterMapType((map[int32]int64)(nil), "goproto.protoc.proto3.FieldTestMessage.MapInt32Int64Entry")
260 proto.RegisterMapType((map[string]*FieldTestMessage_Message)(nil), "goproto.protoc.proto3.FieldTestMessage.MapStringMessageEntry")
261 proto.RegisterType((*FieldTestMessage_Message)(nil), "goproto.protoc.proto3.FieldTestMessage.Message")
Damien Neil658051b2018-09-10 12:26:21 -0700262 proto.RegisterEnum("goproto.protoc.proto3.FieldTestMessage_Enum", FieldTestMessage_Enum_name, FieldTestMessage_Enum_value)
263}
264
265func init() { proto.RegisterFile("proto3/fields.proto", fileDescriptor_f1e3ea068187307c) }
266
267var fileDescriptor_f1e3ea068187307c = []byte{
Damien Neil0bd5a382018-09-13 15:07:10 -0700268 // 596 bytes of a gzipped FileDescriptorProto
269 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0x4b, 0x8f, 0xd3, 0x3c,
270 0x18, 0x85, 0x3f, 0x4f, 0x7a, 0x99, 0xba, 0xb7, 0xd4, 0xf3, 0x8d, 0x64, 0xcd, 0xca, 0x1a, 0x84,
271 0x30, 0x82, 0x49, 0xa5, 0x36, 0x8a, 0x60, 0x46, 0x48, 0xa8, 0xa2, 0x95, 0x58, 0x20, 0x44, 0x80,
272 0x4d, 0x37, 0x55, 0xda, 0xba, 0x51, 0x44, 0x12, 0x57, 0x8d, 0x83, 0xe8, 0x4f, 0xe2, 0xff, 0x01,
273 0x6b, 0x14, 0x3b, 0xcd, 0xad, 0x5d, 0x4c, 0x59, 0xd9, 0x3e, 0x3d, 0x7d, 0x9f, 0x1c, 0xfb, 0xb5,
274 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x59, 0xcd, 0x54, 0x47, 0xcf, 0x61, 0xa6, 0x2d, 0x0e, 0x5e, 0x48, 0x00,
286 0x6d, 0xda, 0x19, 0x6d, 0x96, 0x5a, 0x8b, 0x81, 0x36, 0x3e, 0x77, 0x04, 0x6e, 0x13, 0x40, 0x2f,
287 0xf2, 0x40, 0xb3, 0x44, 0x3c, 0x81, 0xb7, 0x4c, 0xdc, 0x21, 0x80, 0xea, 0x55, 0xbc, 0x65, 0x1e,
288 0xe3, 0x2d, 0x13, 0x77, 0x09, 0xa0, 0x8d, 0x0a, 0xbe, 0x92, 0x7f, 0xcd, 0xe3, 0xa5, 0xcf, 0x70,
289 0x8f, 0x00, 0x0a, 0xf2, 0xfc, 0xef, 0xa4, 0x5a, 0xde, 0x51, 0xb1, 0xf3, 0x42, 0x17, 0xf7, 0x65,
290 0xaf, 0xe5, 0x3b, 0x2a, 0xd5, 0x52, 0xa0, 0xe5, 0x5e, 0xb0, 0x08, 0xeb, 0x04, 0xd0, 0x4e, 0x1e,
291 0x68, 0x92, 0x88, 0x68, 0x5e, 0xf8, 0xc6, 0xb4, 0xd1, 0xf0, 0x80, 0x00, 0xda, 0x1e, 0x0d, 0x1f,
292 0xdb, 0x97, 0xe9, 0x98, 0x87, 0x3a, 0xdc, 0x8a, 0x15, 0xec, 0x07, 0xce, 0x56, 0x35, 0x66, 0xda,
293 0x25, 0xbf, 0x34, 0xa2, 0xd1, 0xf6, 0xe8, 0xfe, 0xd1, 0xb5, 0x9d, 0xad, 0x6c, 0x61, 0xd9, 0x4e,
294 0xd3, 0x50, 0xec, 0xf6, 0x76, 0x37, 0x28, 0x6a, 0xc8, 0x87, 0x28, 0x81, 0xa8, 0xbd, 0x58, 0x04,
295 0x69, 0x84, 0xdf, 0x8a, 0xf3, 0xe6, 0x0c, 0x8e, 0xda, 0xb7, 0x54, 0x50, 0x28, 0x3d, 0xa8, 0xc8,
296 0x68, 0x03, 0x13, 0xed, 0x70, 0x9a, 0xea, 0x1a, 0xff, 0x51, 0xac, 0x87, 0x33, 0x58, 0xe9, 0xb1,
297 0x27, 0x77, 0x58, 0x91, 0x7a, 0x41, 0x49, 0xbc, 0x79, 0x0b, 0xd1, 0x71, 0x74, 0xa4, 0x43, 0xed,
298 0x1b, 0xdb, 0xcb, 0xc7, 0xa5, 0x6e, 0x27, 0x53, 0xf4, 0x3f, 0xac, 0x7f, 0x77, 0xfc, 0x98, 0xc9,
299 0xb7, 0x44, 0xb3, 0xd5, 0xe2, 0xfe, 0xe2, 0x15, 0xb8, 0x11, 0xf0, 0xfa, 0x64, 0xa8, 0x62, 0x91,
300 0x96, 0x2a, 0x32, 0x2d, 0x16, 0xf9, 0x87, 0x83, 0x2f, 0x50, 0x39, 0xbc, 0x3a, 0x11, 0xaf, 0xc8,
301 0x6c, 0x28, 0xe6, 0xa4, 0xc8, 0x3c, 0xf7, 0x11, 0x2c, 0x00, 0x5b, 0xb0, 0x99, 0xfe, 0x74, 0xab,
302 0xc3, 0x9a, 0x7c, 0x14, 0x2f, 0x61, 0x6d, 0x3e, 0xb5, 0x3f, 0xea, 0xff, 0x4d, 0x1e, 0xe6, 0xaf,
303 0x5d, 0xce, 0x5d, 0x9f, 0x19, 0x2e, 0xf7, 0x9d, 0xd0, 0x35, 0xf8, 0xce, 0x1d, 0xca, 0xca, 0xc3,
304 0x55, 0xb0, 0x56, 0xb3, 0xd5, 0x9d, 0xcb, 0xc2, 0x3b, 0x97, 0x0f, 0x05, 0x8b, 0xc4, 0xda, 0x11,
305 0x8e, 0x92, 0xc7, 0xcb, 0x86, 0x1a, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x3e, 0xd2, 0xfc, 0xf5,
306 0x1d, 0x06, 0x00, 0x00,
Damien Neil658051b2018-09-10 12:26:21 -0700307}