forked from grpc-ecosystem/go-grpc-middleware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fields.pb.go
163 lines (136 loc) · 6.3 KB
/
fields.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
// Code generated by protoc-gen-gogo.
// source: fields.proto
// DO NOT EDIT!
/*
Package mwitkow_testproto is a generated protocol buffer package.
This file is used for testing discovery of log fields from requests using reflection and gogo proto more tags.
It is generated from these files:
fields.proto
It has these top-level messages:
Metadata
PingId
Ping
PingRequest
Pong
PongRequest
*/
package mwitkow_testproto
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/gogo/protobuf/gogoproto"
// 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.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type Metadata struct {
Tags []string `protobuf:"bytes,1,rep,name=tags" json:"tags,omitempty" log_field:"meta_tags"`
}
func (m *Metadata) Reset() { *m = Metadata{} }
func (m *Metadata) String() string { return proto.CompactTextString(m) }
func (*Metadata) ProtoMessage() {}
func (*Metadata) Descriptor() ([]byte, []int) { return fileDescriptorFields, []int{0} }
type PingId struct {
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" log_field:"ping_id"`
}
func (m *PingId) Reset() { *m = PingId{} }
func (m *PingId) String() string { return proto.CompactTextString(m) }
func (*PingId) ProtoMessage() {}
func (*PingId) Descriptor() ([]byte, []int) { return fileDescriptorFields, []int{1} }
type Ping struct {
Id *PingId `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}
func (m *Ping) Reset() { *m = Ping{} }
func (m *Ping) String() string { return proto.CompactTextString(m) }
func (*Ping) ProtoMessage() {}
func (*Ping) Descriptor() ([]byte, []int) { return fileDescriptorFields, []int{2} }
func (m *Ping) GetId() *PingId {
if m != nil {
return m.Id
}
return nil
}
type PingRequest struct {
Ping *Ping `protobuf:"bytes,1,opt,name=ping" json:"ping,omitempty"`
Meta *Metadata `protobuf:"bytes,2,opt,name=meta" json:"meta,omitempty"`
}
func (m *PingRequest) Reset() { *m = PingRequest{} }
func (m *PingRequest) String() string { return proto.CompactTextString(m) }
func (*PingRequest) ProtoMessage() {}
func (*PingRequest) Descriptor() ([]byte, []int) { return fileDescriptorFields, []int{3} }
func (m *PingRequest) GetPing() *Ping {
if m != nil {
return m.Ping
}
return nil
}
func (m *PingRequest) GetMeta() *Metadata {
if m != nil {
return m.Meta
}
return nil
}
type Pong struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" log_field:"pong_id"`
}
func (m *Pong) Reset() { *m = Pong{} }
func (m *Pong) String() string { return proto.CompactTextString(m) }
func (*Pong) ProtoMessage() {}
func (*Pong) Descriptor() ([]byte, []int) { return fileDescriptorFields, []int{4} }
type PongRequest struct {
Pong *Pong `protobuf:"bytes,1,opt,name=pong" json:"pong,omitempty"`
Meta *Metadata `protobuf:"bytes,2,opt,name=meta" json:"meta,omitempty"`
}
func (m *PongRequest) Reset() { *m = PongRequest{} }
func (m *PongRequest) String() string { return proto.CompactTextString(m) }
func (*PongRequest) ProtoMessage() {}
func (*PongRequest) Descriptor() ([]byte, []int) { return fileDescriptorFields, []int{5} }
func (m *PongRequest) GetPong() *Pong {
if m != nil {
return m.Pong
}
return nil
}
func (m *PongRequest) GetMeta() *Metadata {
if m != nil {
return m.Meta
}
return nil
}
func init() {
proto.RegisterType((*Metadata)(nil), "mwitkow.testproto.Metadata")
proto.RegisterType((*PingId)(nil), "mwitkow.testproto.PingId")
proto.RegisterType((*Ping)(nil), "mwitkow.testproto.Ping")
proto.RegisterType((*PingRequest)(nil), "mwitkow.testproto.PingRequest")
proto.RegisterType((*Pong)(nil), "mwitkow.testproto.Pong")
proto.RegisterType((*PongRequest)(nil), "mwitkow.testproto.PongRequest")
}
func init() { proto.RegisterFile("fields.proto", fileDescriptorFields) }
var fileDescriptorFields = []byte{
// 304 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x50, 0x41, 0x4e, 0xeb, 0x30,
0x14, 0xfc, 0xe9, 0x77, 0x2b, 0xea, 0xb2, 0xc1, 0x80, 0xda, 0x82, 0x44, 0x2b, 0x6f, 0x28, 0x42,
0x4d, 0x44, 0x59, 0xc1, 0xb2, 0x1b, 0xc4, 0x02, 0xa9, 0xf2, 0x05, 0x22, 0x07, 0xbb, 0xc6, 0x6a,
0x92, 0x57, 0x88, 0x43, 0xaf, 0xc2, 0xe9, 0xba, 0xe1, 0x06, 0x3d, 0x01, 0xf2, 0x0b, 0xa0, 0xa0,
0x02, 0x0b, 0x76, 0x9e, 0xf7, 0x66, 0xe6, 0xcd, 0x98, 0xee, 0xce, 0xad, 0x4e, 0x55, 0x11, 0x2e,
0x9f, 0xc0, 0x01, 0xdb, 0xcb, 0x56, 0xd6, 0x2d, 0x60, 0x15, 0x3a, 0x5d, 0x38, 0x1c, 0x1d, 0x8d,
0x8d, 0x75, 0x0f, 0x65, 0x12, 0xde, 0x43, 0x16, 0x19, 0x30, 0x10, 0xe1, 0x38, 0x29, 0xe7, 0x88,
0x10, 0xe0, 0xab,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