1
2
3
4
5
6
7 package envoy_extensions_tracers_zipkin_v4alpha
8
9 import (
10 _ "github.com/cncf/udpa/go/udpa/annotations"
11 _ "github.com/datawire/ambassador/v2/pkg/api/envoy/annotations"
12 _ "github.com/envoyproxy/protoc-gen-validate/validate"
13 proto "github.com/golang/protobuf/proto"
14 wrappers "github.com/golang/protobuf/ptypes/wrappers"
15 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
16 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
17 reflect "reflect"
18 sync "sync"
19 )
20
21 const (
22
23 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
24
25 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
26 )
27
28
29
30 const _ = proto.ProtoPackageIsVersion4
31
32
33 type ZipkinConfig_CollectorEndpointVersion int32
34
35 const (
36
37
38
39
40
41
42
43
44
45 ZipkinConfig_hidden_envoy_deprecated_DEPRECATED_AND_UNAVAILABLE_DO_NOT_USE ZipkinConfig_CollectorEndpointVersion = 0
46
47 ZipkinConfig_HTTP_JSON ZipkinConfig_CollectorEndpointVersion = 1
48
49 ZipkinConfig_HTTP_PROTO ZipkinConfig_CollectorEndpointVersion = 2
50
51 ZipkinConfig_GRPC ZipkinConfig_CollectorEndpointVersion = 3
52 )
53
54
55 var (
56 ZipkinConfig_CollectorEndpointVersion_name = map[int32]string{
57 0: "hidden_envoy_deprecated_DEPRECATED_AND_UNAVAILABLE_DO_NOT_USE",
58 1: "HTTP_JSON",
59 2: "HTTP_PROTO",
60 3: "GRPC",
61 }
62 ZipkinConfig_CollectorEndpointVersion_value = map[string]int32{
63 "hidden_envoy_deprecated_DEPRECATED_AND_UNAVAILABLE_DO_NOT_USE": 0,
64 "HTTP_JSON": 1,
65 "HTTP_PROTO": 2,
66 "GRPC": 3,
67 }
68 )
69
70 func (x ZipkinConfig_CollectorEndpointVersion) Enum() *ZipkinConfig_CollectorEndpointVersion {
71 p := new(ZipkinConfig_CollectorEndpointVersion)
72 *p = x
73 return p
74 }
75
76 func (x ZipkinConfig_CollectorEndpointVersion) String() string {
77 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
78 }
79
80 func (ZipkinConfig_CollectorEndpointVersion) Descriptor() protoreflect.EnumDescriptor {
81 return file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_enumTypes[0].Descriptor()
82 }
83
84 func (ZipkinConfig_CollectorEndpointVersion) Type() protoreflect.EnumType {
85 return &file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_enumTypes[0]
86 }
87
88 func (x ZipkinConfig_CollectorEndpointVersion) Number() protoreflect.EnumNumber {
89 return protoreflect.EnumNumber(x)
90 }
91
92
93 func (ZipkinConfig_CollectorEndpointVersion) EnumDescriptor() ([]byte, []int) {
94 return file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_rawDescGZIP(), []int{0, 0}
95 }
96
97
98
99
100 type ZipkinConfig struct {
101 state protoimpl.MessageState
102 sizeCache protoimpl.SizeCache
103 unknownFields protoimpl.UnknownFields
104
105
106 CollectorCluster string `protobuf:"bytes,1,opt,name=collector_cluster,json=collectorCluster,proto3" json:"collector_cluster,omitempty"`
107
108
109
110 CollectorEndpoint string `protobuf:"bytes,2,opt,name=collector_endpoint,json=collectorEndpoint,proto3" json:"collector_endpoint,omitempty"`
111
112
113 TraceId_128Bit bool `protobuf:"varint,3,opt,name=trace_id_128bit,json=traceId128bit,proto3" json:"trace_id_128bit,omitempty"`
114
115
116 SharedSpanContext *wrappers.BoolValue `protobuf:"bytes,4,opt,name=shared_span_context,json=sharedSpanContext,proto3" json:"shared_span_context,omitempty"`
117
118
119 CollectorEndpointVersion ZipkinConfig_CollectorEndpointVersion `protobuf:"varint,5,opt,name=collector_endpoint_version,json=collectorEndpointVersion,proto3,enum=envoy.extensions.tracers.zipkin.v4alpha.ZipkinConfig_CollectorEndpointVersion" json:"collector_endpoint_version,omitempty"`
120
121
122 CollectorHostname string `protobuf:"bytes,6,opt,name=collector_hostname,json=collectorHostname,proto3" json:"collector_hostname,omitempty"`
123 }
124
125 func (x *ZipkinConfig) Reset() {
126 *x = ZipkinConfig{}
127 if protoimpl.UnsafeEnabled {
128 mi := &file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_msgTypes[0]
129 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
130 ms.StoreMessageInfo(mi)
131 }
132 }
133
134 func (x *ZipkinConfig) String() string {
135 return protoimpl.X.MessageStringOf(x)
136 }
137
138 func (*ZipkinConfig) ProtoMessage() {}
139
140 func (x *ZipkinConfig) ProtoReflect() protoreflect.Message {
141 mi := &file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_msgTypes[0]
142 if protoimpl.UnsafeEnabled && x != nil {
143 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
144 if ms.LoadMessageInfo() == nil {
145 ms.StoreMessageInfo(mi)
146 }
147 return ms
148 }
149 return mi.MessageOf(x)
150 }
151
152
153 func (*ZipkinConfig) Descriptor() ([]byte, []int) {
154 return file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_rawDescGZIP(), []int{0}
155 }
156
157 func (x *ZipkinConfig) GetCollectorCluster() string {
158 if x != nil {
159 return x.CollectorCluster
160 }
161 return ""
162 }
163
164 func (x *ZipkinConfig) GetCollectorEndpoint() string {
165 if x != nil {
166 return x.CollectorEndpoint
167 }
168 return ""
169 }
170
171 func (x *ZipkinConfig) GetTraceId_128Bit() bool {
172 if x != nil {
173 return x.TraceId_128Bit
174 }
175 return false
176 }
177
178 func (x *ZipkinConfig) GetSharedSpanContext() *wrappers.BoolValue {
179 if x != nil {
180 return x.SharedSpanContext
181 }
182 return nil
183 }
184
185 func (x *ZipkinConfig) GetCollectorEndpointVersion() ZipkinConfig_CollectorEndpointVersion {
186 if x != nil {
187 return x.CollectorEndpointVersion
188 }
189 return ZipkinConfig_hidden_envoy_deprecated_DEPRECATED_AND_UNAVAILABLE_DO_NOT_USE
190 }
191
192 func (x *ZipkinConfig) GetCollectorHostname() string {
193 if x != nil {
194 return x.CollectorHostname
195 }
196 return ""
197 }
198
199 var File_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto protoreflect.FileDescriptor
200
201 var file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_rawDesc = []byte{
202 0x0a, 0x34, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
203 0x6e, 0x73, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x72, 0x73, 0x2f, 0x7a, 0x69, 0x70, 0x6b, 0x69,
204 0x6e, 0x2f, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x7a, 0x69, 0x70, 0x6b, 0x69, 0x6e,
205 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x27, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78,
206 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x72, 0x73,
207 0x2e, 0x7a, 0x69, 0x70, 0x6b, 0x69, 0x6e, 0x2e, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a,
208 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
209 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
210 0x23, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
211 0x6e, 0x73, 0x2f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70,
212 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74,
213 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72,
214 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61,
215 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67,
216 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65,
217 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
218 0xec, 0x04, 0x0a, 0x0c, 0x5a, 0x69, 0x70, 0x6b, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
219 0x12, 0x34, 0x0a, 0x11, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x63, 0x6c,
220 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04,
221 0x72, 0x02, 0x10, 0x01, 0x52, 0x10, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43,
222 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x36, 0x0a, 0x12, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63,
223 0x74, 0x6f, 0x72, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01,
224 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x11, 0x63, 0x6f, 0x6c,
225 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x26,
226 0x0a, 0x0f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x5f, 0x31, 0x32, 0x38, 0x62, 0x69,
227 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64,
228 0x31, 0x32, 0x38, 0x62, 0x69, 0x74, 0x12, 0x4a, 0x0a, 0x13, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64,
229 0x5f, 0x73, 0x70, 0x61, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x04, 0x20,
230 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
231 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52,
232 0x11, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x53, 0x70, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65,
233 0x78, 0x74, 0x12, 0x8c, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72,
234 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
235 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x4e, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e,
236 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65,
237 0x72, 0x73, 0x2e, 0x7a, 0x69, 0x70, 0x6b, 0x69, 0x6e, 0x2e, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68,
238 0x61, 0x2e, 0x5a, 0x69, 0x70, 0x6b, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43,
239 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74,
240 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x18, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74,
241 0x6f, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,
242 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x68,
243 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x63,
244 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x48, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65,
245 0x22, 0x90, 0x01, 0x0a, 0x18, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x45, 0x6e,
246 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a,
247 0x3d, 0x68, 0x69, 0x64, 0x64, 0x65, 0x6e, 0x5f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x5f, 0x64, 0x65,
248 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x44, 0x45, 0x50, 0x52, 0x45, 0x43, 0x41,
249 0x54, 0x45, 0x44, 0x5f, 0x41, 0x4e, 0x44, 0x5f, 0x55, 0x4e, 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41,
250 0x42, 0x4c, 0x45, 0x5f, 0x44, 0x4f, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x10, 0x00,
251 0x1a, 0x08, 0x08, 0x01, 0xa8, 0xf7, 0xb4, 0x8b, 0x02, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x48, 0x54,
252 0x54, 0x50, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x48, 0x54, 0x54,
253 0x50, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x47, 0x52, 0x50,
254 0x43, 0x10, 0x03, 0x3a, 0x29, 0x9a, 0xc5, 0x88, 0x1e, 0x24, 0x0a, 0x22, 0x65, 0x6e, 0x76, 0x6f,
255 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76,
256 0x33, 0x2e, 0x5a, 0x69, 0x70, 0x6b, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x4e,
257 0x0a, 0x35, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e,
258 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73,
259 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x72, 0x73, 0x2e, 0x7a, 0x69, 0x70, 0x6b, 0x69, 0x6e, 0x2e,
260 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x0b, 0x5a, 0x69, 0x70, 0x6b, 0x69, 0x6e, 0x50,
261 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x03, 0x62, 0x06,
262 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
263 }
264
265 var (
266 file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_rawDescOnce sync.Once
267 file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_rawDescData = file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_rawDesc
268 )
269
270 func file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_rawDescGZIP() []byte {
271 file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_rawDescOnce.Do(func() {
272 file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_rawDescData)
273 })
274 return file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_rawDescData
275 }
276
277 var file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
278 var file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
279 var file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_goTypes = []interface{}{
280 (ZipkinConfig_CollectorEndpointVersion)(0),
281 (*ZipkinConfig)(nil),
282 (*wrappers.BoolValue)(nil),
283 }
284 var file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_depIdxs = []int32{
285 2,
286 0,
287 2,
288 2,
289 2,
290 2,
291 0,
292 }
293
294 func init() { file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_init() }
295 func file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_init() {
296 if File_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto != nil {
297 return
298 }
299 if !protoimpl.UnsafeEnabled {
300 file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
301 switch v := v.(*ZipkinConfig); i {
302 case 0:
303 return &v.state
304 case 1:
305 return &v.sizeCache
306 case 2:
307 return &v.unknownFields
308 default:
309 return nil
310 }
311 }
312 }
313 type x struct{}
314 out := protoimpl.TypeBuilder{
315 File: protoimpl.DescBuilder{
316 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
317 RawDescriptor: file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_rawDesc,
318 NumEnums: 1,
319 NumMessages: 1,
320 NumExtensions: 0,
321 NumServices: 0,
322 },
323 GoTypes: file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_goTypes,
324 DependencyIndexes: file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_depIdxs,
325 EnumInfos: file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_enumTypes,
326 MessageInfos: file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_msgTypes,
327 }.Build()
328 File_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto = out.File
329 file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_rawDesc = nil
330 file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_goTypes = nil
331 file_envoy_extensions_tracers_zipkin_v4alpha_zipkin_proto_depIdxs = nil
332 }
333
View as plain text