blob: 92d9e2356b92c841c325ebc3aa905a8b84162141 [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
Damien Neil1ec33152018-09-13 13:12:36 -07006import (
7 fmt "fmt"
8 proto "github.com/golang/protobuf/proto"
9 math "math"
10)
11
12// Reference imports to suppress errors if they are not otherwise used.
13var _ = proto.Marshal
14var _ = fmt.Errorf
15var _ = math.Inf
Damien Neil658051b2018-09-10 12:26:21 -070016
Damien Neild4127922018-09-12 11:13:49 -070017// This is a compile-time assertion to ensure that this generated file
18// is compatible with the proto package it is being compiled against.
19// A compilation error at this line likely means your copy of the
20// proto package needs to be updated.
21const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
22
Damien Neil658051b2018-09-10 12:26:21 -070023type FieldTestMessage_Enum int32
24
25const (
26 FieldTestMessage_ZERO FieldTestMessage_Enum = 0
27)
28
29var FieldTestMessage_Enum_name = map[int32]string{
30 0: "ZERO",
31}
32
33var FieldTestMessage_Enum_value = map[string]int32{
34 "ZERO": 0,
35}
36
37func (x FieldTestMessage_Enum) String() string {
38 return proto.EnumName(FieldTestMessage_Enum_name, int32(x))
39}
40
41func (FieldTestMessage_Enum) EnumDescriptor() ([]byte, []int) {
42 return fileDescriptor_f1e3ea068187307c, []int{0, 0}
43}
44
45type FieldTestMessage struct {
Damien Neil0bd5a382018-09-13 15:07:10 -070046 OptionalBool string `protobuf:"bytes,1,opt,name=optional_bool,json=optionalBool,proto3" json:"optional_bool,omitempty"`
47 OptionalEnum FieldTestMessage_Enum `protobuf:"varint,2,opt,name=optional_enum,json=optionalEnum,proto3,enum=goproto.protoc.proto3.FieldTestMessage_Enum" json:"optional_enum,omitempty"`
48 OptionalInt32 int32 `protobuf:"varint,3,opt,name=optional_int32,json=optionalInt32,proto3" json:"optional_int32,omitempty"`
49 OptionalSint32 int32 `protobuf:"zigzag32,4,opt,name=optional_sint32,json=optionalSint32,proto3" json:"optional_sint32,omitempty"`
50 OptionalUint32 uint32 `protobuf:"varint,5,opt,name=optional_uint32,json=optionalUint32,proto3" json:"optional_uint32,omitempty"`
51 OptionalInt64 int64 `protobuf:"varint,6,opt,name=optional_int64,json=optionalInt64,proto3" json:"optional_int64,omitempty"`
52 OptionalSint64 int64 `protobuf:"zigzag64,7,opt,name=optional_sint64,json=optionalSint64,proto3" json:"optional_sint64,omitempty"`
53 OptionalUint64 uint64 `protobuf:"varint,8,opt,name=optional_uint64,json=optionalUint64,proto3" json:"optional_uint64,omitempty"`
54 OptionalSfixed32 int32 `protobuf:"fixed32,9,opt,name=optional_sfixed32,json=optionalSfixed32,proto3" json:"optional_sfixed32,omitempty"`
55 OptionalFixed32 uint32 `protobuf:"fixed32,10,opt,name=optional_fixed32,json=optionalFixed32,proto3" json:"optional_fixed32,omitempty"`
56 OptionalFloat float32 `protobuf:"fixed32,11,opt,name=optional_float,json=optionalFloat,proto3" json:"optional_float,omitempty"`
57 OptionalSfixed64 int64 `protobuf:"fixed64,12,opt,name=optional_sfixed64,json=optionalSfixed64,proto3" json:"optional_sfixed64,omitempty"`
58 OptionalFixed64 uint64 `protobuf:"fixed64,13,opt,name=optional_fixed64,json=optionalFixed64,proto3" json:"optional_fixed64,omitempty"`
59 OptionalDouble float64 `protobuf:"fixed64,14,opt,name=optional_double,json=optionalDouble,proto3" json:"optional_double,omitempty"`
60 OptionalString string `protobuf:"bytes,15,opt,name=optional_string,json=optionalString,proto3" json:"optional_string,omitempty"`
61 OptionalBytes []byte `protobuf:"bytes,16,opt,name=optional_bytes,json=optionalBytes,proto3" json:"optional_bytes,omitempty"`
62 Optional_Message *FieldTestMessage_Message `protobuf:"bytes,17,opt,name=optional_Message,json=optionalMessage,proto3" json:"optional_Message,omitempty"`
63 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"`
64 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"`
65 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"`
66 XXX_NoUnkeyedLiteral struct{} `json:"-"`
67 XXX_unrecognized []byte `json:"-"`
68 XXX_sizecache int32 `json:"-"`
Damien Neil658051b2018-09-10 12:26:21 -070069}
70
Damien Neila1c6abc2018-09-12 13:36:34 -070071func (m *FieldTestMessage) Reset() { *m = FieldTestMessage{} }
72func (m *FieldTestMessage) String() string { return proto.CompactTextString(m) }
73func (*FieldTestMessage) ProtoMessage() {}
74func (*FieldTestMessage) Descriptor() ([]byte, []int) {
75 return fileDescriptor_f1e3ea068187307c, []int{0}
76}
Damien Neil993c04d2018-09-14 15:41:11 -070077
Damien Neila1c6abc2018-09-12 13:36:34 -070078func (m *FieldTestMessage) XXX_Unmarshal(b []byte) error {
79 return xxx_messageInfo_FieldTestMessage.Unmarshal(m, b)
80}
81func (m *FieldTestMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
82 return xxx_messageInfo_FieldTestMessage.Marshal(b, m, deterministic)
83}
84func (m *FieldTestMessage) XXX_Merge(src proto.Message) {
85 xxx_messageInfo_FieldTestMessage.Merge(m, src)
86}
87func (m *FieldTestMessage) XXX_Size() int {
88 return xxx_messageInfo_FieldTestMessage.Size(m)
89}
90func (m *FieldTestMessage) XXX_DiscardUnknown() {
91 xxx_messageInfo_FieldTestMessage.DiscardUnknown(m)
92}
93
94var xxx_messageInfo_FieldTestMessage proto.InternalMessageInfo
95
Damien Neil77f82fe2018-09-13 10:59:17 -070096func (m *FieldTestMessage) GetOptionalBool() string {
97 if m != nil {
98 return m.OptionalBool
99 }
100 return ""
101}
102
103func (m *FieldTestMessage) GetOptionalEnum() FieldTestMessage_Enum {
104 if m != nil {
105 return m.OptionalEnum
106 }
107 return FieldTestMessage_ZERO
108}
109
110func (m *FieldTestMessage) GetOptionalInt32() int32 {
111 if m != nil {
112 return m.OptionalInt32
113 }
114 return 0
115}
116
117func (m *FieldTestMessage) GetOptionalSint32() int32 {
118 if m != nil {
119 return m.OptionalSint32
120 }
121 return 0
122}
123
124func (m *FieldTestMessage) GetOptionalUint32() uint32 {
125 if m != nil {
126 return m.OptionalUint32
127 }
128 return 0
129}
130
131func (m *FieldTestMessage) GetOptionalInt64() int64 {
132 if m != nil {
133 return m.OptionalInt64
134 }
135 return 0
136}
137
138func (m *FieldTestMessage) GetOptionalSint64() int64 {
139 if m != nil {
140 return m.OptionalSint64
141 }
142 return 0
143}
144
145func (m *FieldTestMessage) GetOptionalUint64() uint64 {
146 if m != nil {
147 return m.OptionalUint64
148 }
149 return 0
150}
151
152func (m *FieldTestMessage) GetOptionalSfixed32() int32 {
153 if m != nil {
154 return m.OptionalSfixed32
155 }
156 return 0
157}
158
159func (m *FieldTestMessage) GetOptionalFixed32() uint32 {
160 if m != nil {
161 return m.OptionalFixed32
162 }
163 return 0
164}
165
166func (m *FieldTestMessage) GetOptionalFloat() float32 {
167 if m != nil {
168 return m.OptionalFloat
169 }
170 return 0
171}
172
173func (m *FieldTestMessage) GetOptionalSfixed64() int64 {
174 if m != nil {
175 return m.OptionalSfixed64
176 }
177 return 0
178}
179
180func (m *FieldTestMessage) GetOptionalFixed64() uint64 {
181 if m != nil {
182 return m.OptionalFixed64
183 }
184 return 0
185}
186
187func (m *FieldTestMessage) GetOptionalDouble() float64 {
188 if m != nil {
189 return m.OptionalDouble
190 }
191 return 0
192}
193
194func (m *FieldTestMessage) GetOptionalString() string {
195 if m != nil {
196 return m.OptionalString
197 }
198 return ""
199}
200
201func (m *FieldTestMessage) GetOptionalBytes() []byte {
202 if m != nil {
203 return m.OptionalBytes
204 }
205 return nil
206}
207
208func (m *FieldTestMessage) GetOptional_Message() *FieldTestMessage_Message {
209 if m != nil {
210 return m.Optional_Message
211 }
212 return nil
213}
214
Damien Neil0bd5a382018-09-13 15:07:10 -0700215func (m *FieldTestMessage) GetMapInt32Int64() map[int32]int64 {
216 if m != nil {
217 return m.MapInt32Int64
218 }
219 return nil
220}
221
222func (m *FieldTestMessage) GetMapStringMessage() map[string]*FieldTestMessage_Message {
223 if m != nil {
224 return m.MapStringMessage
225 }
226 return nil
227}
228
229func (m *FieldTestMessage) GetMapFixed64Enum() map[uint64]FieldTestMessage_Enum {
230 if m != nil {
231 return m.MapFixed64Enum
232 }
233 return nil
234}
235
Damien Neil658051b2018-09-10 12:26:21 -0700236type FieldTestMessage_Message struct {
237 XXX_NoUnkeyedLiteral struct{} `json:"-"`
238 XXX_unrecognized []byte `json:"-"`
239 XXX_sizecache int32 `json:"-"`
240}
241
Damien Neila1c6abc2018-09-12 13:36:34 -0700242func (m *FieldTestMessage_Message) Reset() { *m = FieldTestMessage_Message{} }
243func (m *FieldTestMessage_Message) String() string { return proto.CompactTextString(m) }
244func (*FieldTestMessage_Message) ProtoMessage() {}
245func (*FieldTestMessage_Message) Descriptor() ([]byte, []int) {
Damien Neil0bd5a382018-09-13 15:07:10 -0700246 return fileDescriptor_f1e3ea068187307c, []int{0, 3}
Damien Neila1c6abc2018-09-12 13:36:34 -0700247}
Damien Neil993c04d2018-09-14 15:41:11 -0700248
Damien Neila1c6abc2018-09-12 13:36:34 -0700249func (m *FieldTestMessage_Message) XXX_Unmarshal(b []byte) error {
250 return xxx_messageInfo_FieldTestMessage_Message.Unmarshal(m, b)
251}
252func (m *FieldTestMessage_Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
253 return xxx_messageInfo_FieldTestMessage_Message.Marshal(b, m, deterministic)
254}
255func (m *FieldTestMessage_Message) XXX_Merge(src proto.Message) {
256 xxx_messageInfo_FieldTestMessage_Message.Merge(m, src)
257}
258func (m *FieldTestMessage_Message) XXX_Size() int {
259 return xxx_messageInfo_FieldTestMessage_Message.Size(m)
260}
261func (m *FieldTestMessage_Message) XXX_DiscardUnknown() {
262 xxx_messageInfo_FieldTestMessage_Message.DiscardUnknown(m)
263}
264
265var xxx_messageInfo_FieldTestMessage_Message proto.InternalMessageInfo
266
Damien Neil658051b2018-09-10 12:26:21 -0700267func init() {
Damien Neilce36f8d2018-09-13 15:19:08 -0700268 proto.RegisterType((*FieldTestMessage)(nil), "goproto.protoc.proto3.FieldTestMessage")
269 proto.RegisterMapType((map[uint64]FieldTestMessage_Enum)(nil), "goproto.protoc.proto3.FieldTestMessage.MapFixed64EnumEntry")
270 proto.RegisterMapType((map[int32]int64)(nil), "goproto.protoc.proto3.FieldTestMessage.MapInt32Int64Entry")
271 proto.RegisterMapType((map[string]*FieldTestMessage_Message)(nil), "goproto.protoc.proto3.FieldTestMessage.MapStringMessageEntry")
272 proto.RegisterType((*FieldTestMessage_Message)(nil), "goproto.protoc.proto3.FieldTestMessage.Message")
Damien Neil658051b2018-09-10 12:26:21 -0700273 proto.RegisterEnum("goproto.protoc.proto3.FieldTestMessage_Enum", FieldTestMessage_Enum_name, FieldTestMessage_Enum_value)
274}
275
276func init() { proto.RegisterFile("proto3/fields.proto", fileDescriptor_f1e3ea068187307c) }
277
278var fileDescriptor_f1e3ea068187307c = []byte{
Damien Neil0bd5a382018-09-13 15:07:10 -0700279 // 596 bytes of a gzipped FileDescriptorProto
280 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0x4b, 0x8f, 0xd3, 0x3c,
281 0x18, 0x85, 0x3f, 0x4f, 0x7a, 0x99, 0xba, 0xb7, 0xd4, 0xf3, 0x8d, 0x64, 0xcd, 0xca, 0x1a, 0x84,
282 0x30, 0x82, 0x49, 0xa5, 0x36, 0x8a, 0x60, 0x46, 0x48, 0xa8, 0xa2, 0x95, 0x58, 0x20, 0x44, 0x80,
283 0x4d, 0x37, 0x55, 0xda, 0xba, 0x51, 0x44, 0x12, 0x57, 0x8d, 0x83, 0xe8, 0x4f, 0xe2, 0xff, 0x01,
284 0x6b, 0x14, 0x3b, 0xcd, 0xad, 0x5d, 0x4c, 0x59, 0xd9, 0x3e, 0x3d, 0x7d, 0x9f, 0x1c, 0xfb, 0xb5,
285 0xe1, 0xd5, 0x76, 0xc7, 0x05, 0x1f, 0x0f, 0x37, 0x1e, 0xf3, 0xd7, 0x91, 0x21, 0x57, 0xe8, 0xda,
286 0xe5, 0x72, 0xa2, 0x96, 0x2b, 0x35, 0x8c, 0x6f, 0x7f, 0xb6, 0xa1, 0x3e, 0x4b, 0x7c, 0x5f, 0x58,
287 0x24, 0x3e, 0xb0, 0x28, 0x72, 0x5c, 0x86, 0x9e, 0xc0, 0x2e, 0xdf, 0x0a, 0x8f, 0x87, 0x8e, 0xbf,
288 0x58, 0x72, 0xee, 0x63, 0x40, 0x00, 0x6d, 0xd9, 0x9d, 0x83, 0x38, 0xe1, 0xdc, 0x47, 0x9f, 0x0a,
289 0x26, 0x16, 0xc6, 0x01, 0xbe, 0x20, 0x80, 0xf6, 0x46, 0x2f, 0x8d, 0x93, 0x20, 0xa3, 0x0a, 0x31,
290 0xa6, 0x61, 0x1c, 0xe4, 0x25, 0x93, 0x15, 0x7a, 0x0a, 0x7b, 0x59, 0x49, 0x2f, 0x14, 0xe3, 0x11,
291 0xd6, 0x08, 0xa0, 0x75, 0x3b, 0x03, 0xbd, 0x4f, 0x44, 0xf4, 0x0c, 0xf6, 0x33, 0x5b, 0xa4, 0x7c,
292 0x35, 0x02, 0xe8, 0xc0, 0xce, 0xfe, 0xfd, 0xd9, 0x3b, 0x32, 0xc6, 0xca, 0x58, 0x27, 0x80, 0x76,
293 0x73, 0xe3, 0x57, 0x65, 0xac, 0x80, 0x2d, 0x13, 0x37, 0x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 0x61, 0xd9, 0x4e,
305 0xd3, 0x50, 0xec, 0xf6, 0x76, 0x37, 0x28, 0x6a, 0xc8, 0x87, 0x28, 0x81, 0xa8, 0xbd, 0x58, 0x04,
306 0x69, 0x84, 0xdf, 0x8a, 0xf3, 0xe6, 0x0c, 0x8e, 0xda, 0xb7, 0x54, 0x50, 0x28, 0x3d, 0xa8, 0xc8,
307 0x68, 0x03, 0x13, 0xed, 0x70, 0x9a, 0xea, 0x1a, 0xff, 0x51, 0xac, 0x87, 0x33, 0x58, 0xe9, 0xb1,
308 0x27, 0x77, 0x58, 0x91, 0x7a, 0x41, 0x49, 0xbc, 0x79, 0x0b, 0xd1, 0x71, 0x74, 0xa4, 0x43, 0xed,
309 0x1b, 0xdb, 0xcb, 0xc7, 0xa5, 0x6e, 0x27, 0x53, 0xf4, 0x3f, 0xac, 0x7f, 0x77, 0xfc, 0x98, 0xc9,
310 0xb7, 0x44, 0xb3, 0xd5, 0xe2, 0xfe, 0xe2, 0x15, 0xb8, 0x11, 0xf0, 0xfa, 0x64, 0xa8, 0x62, 0x91,
311 0x96, 0x2a, 0x32, 0x2d, 0x16, 0xf9, 0x87, 0x83, 0x2f, 0x50, 0x39, 0xbc, 0x3a, 0x11, 0xaf, 0xc8,
312 0x6c, 0x28, 0xe6, 0xa4, 0xc8, 0x3c, 0xf7, 0x11, 0x2c, 0x00, 0x5b, 0xb0, 0x99, 0xfe, 0x74, 0xab,
313 0xc3, 0x9a, 0x7c, 0x14, 0x2f, 0x61, 0x6d, 0x3e, 0xb5, 0x3f, 0xea, 0xff, 0x4d, 0x1e, 0xe6, 0xaf,
314 0x5d, 0xce, 0x5d, 0x9f, 0x19, 0x2e, 0xf7, 0x9d, 0xd0, 0x35, 0xf8, 0xce, 0x1d, 0xca, 0xca, 0xc3,
315 0x55, 0xb0, 0x56, 0xb3, 0xd5, 0x9d, 0xcb, 0xc2, 0x3b, 0x97, 0x0f, 0x05, 0x8b, 0xc4, 0xda, 0x11,
316 0x8e, 0x92, 0xc7, 0xcb, 0x86, 0x1a, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x3e, 0xd2, 0xfc, 0xf5,
317 0x1d, 0x06, 0x00, 0x00,
Damien Neil658051b2018-09-10 12:26:21 -0700318}