1
2
3
4
5
6 package mwitkow_testproto
7
8 import (
9 fmt "fmt"
10 _ "github.com/gogo/protobuf/gogoproto"
11 proto "github.com/golang/protobuf/proto"
12 _ "github.com/golang/protobuf/ptypes/timestamp"
13 math "math"
14 time "time"
15 )
16
17
18 var _ = proto.Marshal
19 var _ = fmt.Errorf
20 var _ = math.Inf
21 var _ = time.Kitchen
22
23
24
25
26
27 const _ = proto.ProtoPackageIsVersion3
28
29 type Metadata struct {
30 Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty" log_field:"meta_tags"`
31 XXX_NoUnkeyedLiteral struct{} `json:"-"`
32 XXX_unrecognized []byte `json:"-"`
33 XXX_sizecache int32 `json:"-"`
34 }
35
36 func (m *Metadata) Reset() { *m = Metadata{} }
37 func (m *Metadata) String() string { return proto.CompactTextString(m) }
38 func (*Metadata) ProtoMessage() {}
39 func (*Metadata) Descriptor() ([]byte, []int) {
40 return fileDescriptor_d39ad626ec0e575e, []int{0}
41 }
42 func (m *Metadata) XXX_Unmarshal(b []byte) error {
43 return xxx_messageInfo_Metadata.Unmarshal(m, b)
44 }
45 func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
46 return xxx_messageInfo_Metadata.Marshal(b, m, deterministic)
47 }
48 func (m *Metadata) XXX_Merge(src proto.Message) {
49 xxx_messageInfo_Metadata.Merge(m, src)
50 }
51 func (m *Metadata) XXX_Size() int {
52 return xxx_messageInfo_Metadata.Size(m)
53 }
54 func (m *Metadata) XXX_DiscardUnknown() {
55 xxx_messageInfo_Metadata.DiscardUnknown(m)
56 }
57
58 var xxx_messageInfo_Metadata proto.InternalMessageInfo
59
60 func (m *Metadata) GetTags() []string {
61 if m != nil {
62 return m.Tags
63 }
64 return nil
65 }
66
67 type PingId struct {
68 Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" log_field:"ping_id"`
69 XXX_NoUnkeyedLiteral struct{} `json:"-"`
70 XXX_unrecognized []byte `json:"-"`
71 XXX_sizecache int32 `json:"-"`
72 }
73
74 func (m *PingId) Reset() { *m = PingId{} }
75 func (m *PingId) String() string { return proto.CompactTextString(m) }
76 func (*PingId) ProtoMessage() {}
77 func (*PingId) Descriptor() ([]byte, []int) {
78 return fileDescriptor_d39ad626ec0e575e, []int{1}
79 }
80 func (m *PingId) XXX_Unmarshal(b []byte) error {
81 return xxx_messageInfo_PingId.Unmarshal(m, b)
82 }
83 func (m *PingId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
84 return xxx_messageInfo_PingId.Marshal(b, m, deterministic)
85 }
86 func (m *PingId) XXX_Merge(src proto.Message) {
87 xxx_messageInfo_PingId.Merge(m, src)
88 }
89 func (m *PingId) XXX_Size() int {
90 return xxx_messageInfo_PingId.Size(m)
91 }
92 func (m *PingId) XXX_DiscardUnknown() {
93 xxx_messageInfo_PingId.DiscardUnknown(m)
94 }
95
96 var xxx_messageInfo_PingId proto.InternalMessageInfo
97
98 func (m *PingId) GetId() int32 {
99 if m != nil {
100 return m.Id
101 }
102 return 0
103 }
104
105 type Ping struct {
106 Id *PingId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
107 Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
108 XXX_NoUnkeyedLiteral struct{} `json:"-"`
109 XXX_unrecognized []byte `json:"-"`
110 XXX_sizecache int32 `json:"-"`
111 }
112
113 func (m *Ping) Reset() { *m = Ping{} }
114 func (m *Ping) String() string { return proto.CompactTextString(m) }
115 func (*Ping) ProtoMessage() {}
116 func (*Ping) Descriptor() ([]byte, []int) {
117 return fileDescriptor_d39ad626ec0e575e, []int{2}
118 }
119 func (m *Ping) XXX_Unmarshal(b []byte) error {
120 return xxx_messageInfo_Ping.Unmarshal(m, b)
121 }
122 func (m *Ping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
123 return xxx_messageInfo_Ping.Marshal(b, m, deterministic)
124 }
125 func (m *Ping) XXX_Merge(src proto.Message) {
126 xxx_messageInfo_Ping.Merge(m, src)
127 }
128 func (m *Ping) XXX_Size() int {
129 return xxx_messageInfo_Ping.Size(m)
130 }
131 func (m *Ping) XXX_DiscardUnknown() {
132 xxx_messageInfo_Ping.DiscardUnknown(m)
133 }
134
135 var xxx_messageInfo_Ping proto.InternalMessageInfo
136
137 func (m *Ping) GetId() *PingId {
138 if m != nil {
139 return m.Id
140 }
141 return nil
142 }
143
144 func (m *Ping) GetValue() string {
145 if m != nil {
146 return m.Value
147 }
148 return ""
149 }
150
151 type PingRequest struct {
152 Ping *Ping `protobuf:"bytes,1,opt,name=ping,proto3" json:"ping,omitempty"`
153 Meta *Metadata `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
154 XXX_NoUnkeyedLiteral struct{} `json:"-"`
155 XXX_unrecognized []byte `json:"-"`
156 XXX_sizecache int32 `json:"-"`
157 }
158
159 func (m *PingRequest) Reset() { *m = PingRequest{} }
160 func (m *PingRequest) String() string { return proto.CompactTextString(m) }
161 func (*PingRequest) ProtoMessage() {}
162 func (*PingRequest) Descriptor() ([]byte, []int) {
163 return fileDescriptor_d39ad626ec0e575e, []int{3}
164 }
165 func (m *PingRequest) XXX_Unmarshal(b []byte) error {
166 return xxx_messageInfo_PingRequest.Unmarshal(m, b)
167 }
168 func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
169 return xxx_messageInfo_PingRequest.Marshal(b, m, deterministic)
170 }
171 func (m *PingRequest) XXX_Merge(src proto.Message) {
172 xxx_messageInfo_PingRequest.Merge(m, src)
173 }
174 func (m *PingRequest) XXX_Size() int {
175 return xxx_messageInfo_PingRequest.Size(m)
176 }
177 func (m *PingRequest) XXX_DiscardUnknown() {
178 xxx_messageInfo_PingRequest.DiscardUnknown(m)
179 }
180
181 var xxx_messageInfo_PingRequest proto.InternalMessageInfo
182
183 func (m *PingRequest) GetPing() *Ping {
184 if m != nil {
185 return m.Ping
186 }
187 return nil
188 }
189
190 func (m *PingRequest) GetMeta() *Metadata {
191 if m != nil {
192 return m.Meta
193 }
194 return nil
195 }
196
197 type Pong struct {
198 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" log_field:"pong_id"`
199 XXX_NoUnkeyedLiteral struct{} `json:"-"`
200 XXX_unrecognized []byte `json:"-"`
201 XXX_sizecache int32 `json:"-"`
202 }
203
204 func (m *Pong) Reset() { *m = Pong{} }
205 func (m *Pong) String() string { return proto.CompactTextString(m) }
206 func (*Pong) ProtoMessage() {}
207 func (*Pong) Descriptor() ([]byte, []int) {
208 return fileDescriptor_d39ad626ec0e575e, []int{4}
209 }
210 func (m *Pong) XXX_Unmarshal(b []byte) error {
211 return xxx_messageInfo_Pong.Unmarshal(m, b)
212 }
213 func (m *Pong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
214 return xxx_messageInfo_Pong.Marshal(b, m, deterministic)
215 }
216 func (m *Pong) XXX_Merge(src proto.Message) {
217 xxx_messageInfo_Pong.Merge(m, src)
218 }
219 func (m *Pong) XXX_Size() int {
220 return xxx_messageInfo_Pong.Size(m)
221 }
222 func (m *Pong) XXX_DiscardUnknown() {
223 xxx_messageInfo_Pong.DiscardUnknown(m)
224 }
225
226 var xxx_messageInfo_Pong proto.InternalMessageInfo
227
228 func (m *Pong) GetId() string {
229 if m != nil {
230 return m.Id
231 }
232 return ""
233 }
234
235 type OneOfLogField struct {
236
237
238
239 Identifier isOneOfLogField_Identifier `protobuf_oneof:"identifier"`
240 XXX_NoUnkeyedLiteral struct{} `json:"-"`
241 XXX_unrecognized []byte `json:"-"`
242 XXX_sizecache int32 `json:"-"`
243 }
244
245 func (m *OneOfLogField) Reset() { *m = OneOfLogField{} }
246 func (m *OneOfLogField) String() string { return proto.CompactTextString(m) }
247 func (*OneOfLogField) ProtoMessage() {}
248 func (*OneOfLogField) Descriptor() ([]byte, []int) {
249 return fileDescriptor_d39ad626ec0e575e, []int{5}
250 }
251 func (m *OneOfLogField) XXX_Unmarshal(b []byte) error {
252 return xxx_messageInfo_OneOfLogField.Unmarshal(m, b)
253 }
254 func (m *OneOfLogField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
255 return xxx_messageInfo_OneOfLogField.Marshal(b, m, deterministic)
256 }
257 func (m *OneOfLogField) XXX_Merge(src proto.Message) {
258 xxx_messageInfo_OneOfLogField.Merge(m, src)
259 }
260 func (m *OneOfLogField) XXX_Size() int {
261 return xxx_messageInfo_OneOfLogField.Size(m)
262 }
263 func (m *OneOfLogField) XXX_DiscardUnknown() {
264 xxx_messageInfo_OneOfLogField.DiscardUnknown(m)
265 }
266
267 var xxx_messageInfo_OneOfLogField proto.InternalMessageInfo
268
269 type isOneOfLogField_Identifier interface {
270 isOneOfLogField_Identifier()
271 }
272
273 type OneOfLogField_BarId struct {
274 BarId string `protobuf:"bytes,1,opt,name=bar_id,json=barId,proto3,oneof" json:"bar_id,omitempty" log_field:"bar_id"`
275 }
276 type OneOfLogField_BazId struct {
277 BazId string `protobuf:"bytes,2,opt,name=baz_id,json=bazId,proto3,oneof" json:"baz_id,omitempty" log_field:"baz_id"`
278 }
279
280 func (*OneOfLogField_BarId) isOneOfLogField_Identifier() {}
281 func (*OneOfLogField_BazId) isOneOfLogField_Identifier() {}
282
283 func (m *OneOfLogField) GetIdentifier() isOneOfLogField_Identifier {
284 if m != nil {
285 return m.Identifier
286 }
287 return nil
288 }
289
290 func (m *OneOfLogField) GetBarId() string {
291 if x, ok := m.GetIdentifier().(*OneOfLogField_BarId); ok {
292 return x.BarId
293 }
294 return ""
295 }
296
297 func (m *OneOfLogField) GetBazId() string {
298 if x, ok := m.GetIdentifier().(*OneOfLogField_BazId); ok {
299 return x.BazId
300 }
301 return ""
302 }
303
304
305 func (*OneOfLogField) XXX_OneofWrappers() []interface{} {
306 return []interface{}{
307 (*OneOfLogField_BarId)(nil),
308 (*OneOfLogField_BazId)(nil),
309 }
310 }
311
312 type PongRequest struct {
313 Pong *Pong `protobuf:"bytes,1,opt,name=pong,proto3" json:"pong,omitempty"`
314 Meta *Metadata `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
315 XXX_NoUnkeyedLiteral struct{} `json:"-"`
316 XXX_unrecognized []byte `json:"-"`
317 XXX_sizecache int32 `json:"-"`
318 }
319
320 func (m *PongRequest) Reset() { *m = PongRequest{} }
321 func (m *PongRequest) String() string { return proto.CompactTextString(m) }
322 func (*PongRequest) ProtoMessage() {}
323 func (*PongRequest) Descriptor() ([]byte, []int) {
324 return fileDescriptor_d39ad626ec0e575e, []int{6}
325 }
326 func (m *PongRequest) XXX_Unmarshal(b []byte) error {
327 return xxx_messageInfo_PongRequest.Unmarshal(m, b)
328 }
329 func (m *PongRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
330 return xxx_messageInfo_PongRequest.Marshal(b, m, deterministic)
331 }
332 func (m *PongRequest) XXX_Merge(src proto.Message) {
333 xxx_messageInfo_PongRequest.Merge(m, src)
334 }
335 func (m *PongRequest) XXX_Size() int {
336 return xxx_messageInfo_PongRequest.Size(m)
337 }
338 func (m *PongRequest) XXX_DiscardUnknown() {
339 xxx_messageInfo_PongRequest.DiscardUnknown(m)
340 }
341
342 var xxx_messageInfo_PongRequest proto.InternalMessageInfo
343
344 func (m *PongRequest) GetPong() *Pong {
345 if m != nil {
346 return m.Pong
347 }
348 return nil
349 }
350
351 func (m *PongRequest) GetMeta() *Metadata {
352 if m != nil {
353 return m.Meta
354 }
355 return nil
356 }
357
358 type GoGoProtoStdTime struct {
359 Timestamp *time.Time `protobuf:"bytes,1,opt,name=timestamp,proto3,stdtime" json:"timestamp,omitempty"`
360 XXX_NoUnkeyedLiteral struct{} `json:"-"`
361 XXX_unrecognized []byte `json:"-"`
362 XXX_sizecache int32 `json:"-"`
363 }
364
365 func (m *GoGoProtoStdTime) Reset() { *m = GoGoProtoStdTime{} }
366 func (m *GoGoProtoStdTime) String() string { return proto.CompactTextString(m) }
367 func (*GoGoProtoStdTime) ProtoMessage() {}
368 func (*GoGoProtoStdTime) Descriptor() ([]byte, []int) {
369 return fileDescriptor_d39ad626ec0e575e, []int{7}
370 }
371 func (m *GoGoProtoStdTime) XXX_Unmarshal(b []byte) error {
372 return xxx_messageInfo_GoGoProtoStdTime.Unmarshal(m, b)
373 }
374 func (m *GoGoProtoStdTime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
375 return xxx_messageInfo_GoGoProtoStdTime.Marshal(b, m, deterministic)
376 }
377 func (m *GoGoProtoStdTime) XXX_Merge(src proto.Message) {
378 xxx_messageInfo_GoGoProtoStdTime.Merge(m, src)
379 }
380 func (m *GoGoProtoStdTime) XXX_Size() int {
381 return xxx_messageInfo_GoGoProtoStdTime.Size(m)
382 }
383 func (m *GoGoProtoStdTime) XXX_DiscardUnknown() {
384 xxx_messageInfo_GoGoProtoStdTime.DiscardUnknown(m)
385 }
386
387 var xxx_messageInfo_GoGoProtoStdTime proto.InternalMessageInfo
388
389 func (m *GoGoProtoStdTime) GetTimestamp() *time.Time {
390 if m != nil {
391 return m.Timestamp
392 }
393 return nil
394 }
395
396 func init() {
397 proto.RegisterType((*Metadata)(nil), "mwitkow.testproto.Metadata")
398 proto.RegisterType((*PingId)(nil), "mwitkow.testproto.PingId")
399 proto.RegisterType((*Ping)(nil), "mwitkow.testproto.Ping")
400 proto.RegisterType((*PingRequest)(nil), "mwitkow.testproto.PingRequest")
401 proto.RegisterType((*Pong)(nil), "mwitkow.testproto.Pong")
402 proto.RegisterType((*OneOfLogField)(nil), "mwitkow.testproto.OneOfLogField")
403 proto.RegisterType((*PongRequest)(nil), "mwitkow.testproto.PongRequest")
404 proto.RegisterType((*GoGoProtoStdTime)(nil), "mwitkow.testproto.GoGoProtoStdTime")
405 }
406
407 func init() { proto.RegisterFile("fields.proto", fileDescriptor_d39ad626ec0e575e) }
408
409 var fileDescriptor_d39ad626ec0e575e = []byte{
410
411 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0xcd, 0x8e, 0xd3, 0x30,
412 0x14, 0x85, 0x27, 0x25, 0xad, 0xe8, 0xed, 0x20, 0x81, 0xf9, 0x99, 0x4e, 0x91, 0x48, 0xe5, 0x0d,
413 0x45, 0x68, 0x1c, 0x31, 0xac, 0x60, 0xc1, 0x22, 0x0b, 0x4a, 0x25, 0xd0, 0x54, 0x66, 0xf6, 0x95,
414 0x83, 0x5d, 0x63, 0x4d, 0x93, 0x5b, 0x1a, 0x87, 0x91, 0xba, 0xe1, 0x15, 0x58, 0xf2, 0x74, 0x65,
415 0xc1, 0x1b, 0xf4, 0x09, 0x90, 0x9d, 0xfe, 0x04, 0x0d, 0x65, 0xc1, 0x2e, 0xf6, 0x3d, 0xdf, 0x71,
416 0xce, 0xd1, 0x85, 0xe3, 0xa9, 0x51, 0x33, 0x59, 0xb0, 0xf9, 0x02, 0x2d, 0x92, 0x7b, 0xd9, 0xb5,
417 0xb1, 0x57, 0x78, 0xcd, 0xac, 0x2a, 0xac, 0xbf, 0xea, 0x9d, 0x69, 0x63, 0x3f, 0x97, 0x29, 0xfb,
418 0x84, 0x59, 0xac, 0x51, 0x63, 0xec, 0xaf, 0xd3, 0x72, 0xea, 0x4f, 0xfe, 0xe0, 0xbf, 0x2a, 0x87,
419 0x5e, 0xa4, 0x11, 0xf5, 0x4c, 0xed, 0x55, 0xd6, 0x64, 0xaa, 0xb0, 0x22, 0x9b, 0x57, 0x02, 0xfa,
420 0x0a, 0x6e, 0x7f, 0x50, 0x56, 0x48, 0x61, 0x05, 0x39, 0x83, 0xd0, 0x0a, 0x5d, 0x74, 0x83, 0xfe,
421 0xad, 0x41, 0x3b, 0x39, 0x5d, 0xaf, 0xa2, 0x87, 0x33, 0xd4, 0x13, 0xff, 0x4b, 0xaf, 0x69, 0xa6,
422 0xac, 0x98, 0xb8, 0x39, 0xe5, 0x5e, 0x46, 0x5f, 0x40, 0x6b, 0x6c, 0x72, 0x3d, 0x92, 0xe4, 0x29,
423 0x34, 0x8c, 0xec, 0x06, 0xfd, 0x60, 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0xc8, 0x1b, 0x68, 0xef, 0x36, 0x6d,
435 0xf3, 0x6c, 0x8f, 0x55, 0xbb, 0xc8, 0xb6, 0xbb, 0xc8, 0x2e, 0xb7, 0x8a, 0x24, 0xfc, 0xfe, 0x33,
436 0x0a, 0xf8, 0x1e, 0x49, 0xc2, 0x1f, 0xbf, 0x9e, 0x1c, 0xa5, 0x2d, 0x2f, 0x7d, 0xf9, 0x3b, 0x00,
437 0x00, 0xff, 0xff, 0xa5, 0x38, 0xdf, 0x28, 0x16, 0x03, 0x00, 0x00,
438 }
439
View as plain text