1
2
3
4
5
6
7 package envoy_config_trace_v3
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_HTTP_JSON_V1 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_HTTP_JSON_V1",
58 1: "HTTP_JSON",
59 2: "HTTP_PROTO",
60 3: "GRPC",
61 }
62 ZipkinConfig_CollectorEndpointVersion_value = map[string]int32{
63 "hidden_envoy_deprecated_HTTP_JSON_V1": 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_config_trace_v3_zipkin_proto_enumTypes[0].Descriptor()
82 }
83
84 func (ZipkinConfig_CollectorEndpointVersion) Type() protoreflect.EnumType {
85 return &file_envoy_config_trace_v3_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_config_trace_v3_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.config.trace.v3.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_config_trace_v3_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_config_trace_v3_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_config_trace_v3_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_HTTP_JSON_V1
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_config_trace_v3_zipkin_proto protoreflect.FileDescriptor
200
201 var file_envoy_config_trace_v3_zipkin_proto_rawDesc = []byte{
202 0x0a, 0x22, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x74,
203 0x72, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x7a, 0x69, 0x70, 0x6b, 0x69, 0x6e, 0x2e, 0x70,
204 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66,
205 0x69, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x33, 0x1a, 0x1e, 0x67, 0x6f, 0x6f,
206 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61,
207 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x65, 0x6e, 0x76,
208 0x6f, 0x79, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x64,
209 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
210 0x1a, 0x1e, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
211 0x6e, 0x73, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
212 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
213 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
214 0x21, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
215 0x73, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f,
216 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c,
217 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbf, 0x04, 0x0a, 0x0c,
218 0x5a, 0x69, 0x70, 0x6b, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x34, 0x0a, 0x11,
219 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65,
220 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01,
221 0x52, 0x10, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74,
222 0x65, 0x72, 0x12, 0x36, 0x0a, 0x12, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f,
223 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07,
224 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x11, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74,
225 0x6f, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x72,
226 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x5f, 0x31, 0x32, 0x38, 0x62, 0x69, 0x74, 0x18, 0x03, 0x20,
227 0x01, 0x28, 0x08, 0x52, 0x0d, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x31, 0x32, 0x38, 0x62,
228 0x69, 0x74, 0x12, 0x4a, 0x0a, 0x13, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x5f, 0x73, 0x70, 0x61,
229 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
230 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
231 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x11, 0x73, 0x68, 0x61,
232 0x72, 0x65, 0x64, 0x53, 0x70, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x7a,
233 0x0a, 0x1a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x65, 0x6e, 0x64, 0x70,
234 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01,
235 0x28, 0x0e, 0x32, 0x3c, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69,
236 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x5a, 0x69, 0x70, 0x6b, 0x69,
237 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f,
238 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
239 0x52, 0x18, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f,
240 0x69, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x6f,
241 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65,
242 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f,
243 0x72, 0x48, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x77, 0x0a, 0x18, 0x43, 0x6f, 0x6c,
244 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x56, 0x65,
245 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x24, 0x68, 0x69, 0x64, 0x64, 0x65, 0x6e, 0x5f,
246 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x5f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64,
247 0x5f, 0x48, 0x54, 0x54, 0x50, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x5f, 0x56, 0x31, 0x10, 0x00, 0x1a,
248 0x08, 0x08, 0x01, 0xa8, 0xf7, 0xb4, 0x8b, 0x02, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x48, 0x54, 0x54,
249 0x50, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x48, 0x54, 0x54, 0x50,
250 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x47, 0x52, 0x50, 0x43,
251 0x10, 0x03, 0x3a, 0x29, 0x9a, 0xc5, 0x88, 0x1e, 0x24, 0x0a, 0x22, 0x65, 0x6e, 0x76, 0x6f, 0x79,
252 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x32,
253 0x2e, 0x5a, 0x69, 0x70, 0x6b, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x6b, 0x0a,
254 0x23, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65,
255 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63,
256 0x65, 0x2e, 0x76, 0x33, 0x42, 0x0b, 0x5a, 0x69, 0x70, 0x6b, 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x74,
257 0x6f, 0x50, 0x01, 0xf2, 0x98, 0xfe, 0x8f, 0x05, 0x29, 0x12, 0x27, 0x65, 0x6e, 0x76, 0x6f, 0x79,
258 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x74, 0x72, 0x61, 0x63,
259 0x65, 0x72, 0x73, 0x2e, 0x7a, 0x69, 0x70, 0x6b, 0x69, 0x6e, 0x2e, 0x76, 0x34, 0x61, 0x6c, 0x70,
260 0x68, 0x61, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
261 0x6f, 0x33,
262 }
263
264 var (
265 file_envoy_config_trace_v3_zipkin_proto_rawDescOnce sync.Once
266 file_envoy_config_trace_v3_zipkin_proto_rawDescData = file_envoy_config_trace_v3_zipkin_proto_rawDesc
267 )
268
269 func file_envoy_config_trace_v3_zipkin_proto_rawDescGZIP() []byte {
270 file_envoy_config_trace_v3_zipkin_proto_rawDescOnce.Do(func() {
271 file_envoy_config_trace_v3_zipkin_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_trace_v3_zipkin_proto_rawDescData)
272 })
273 return file_envoy_config_trace_v3_zipkin_proto_rawDescData
274 }
275
276 var file_envoy_config_trace_v3_zipkin_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
277 var file_envoy_config_trace_v3_zipkin_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
278 var file_envoy_config_trace_v3_zipkin_proto_goTypes = []interface{}{
279 (ZipkinConfig_CollectorEndpointVersion)(0),
280 (*ZipkinConfig)(nil),
281 (*wrappers.BoolValue)(nil),
282 }
283 var file_envoy_config_trace_v3_zipkin_proto_depIdxs = []int32{
284 2,
285 0,
286 2,
287 2,
288 2,
289 2,
290 0,
291 }
292
293 func init() { file_envoy_config_trace_v3_zipkin_proto_init() }
294 func file_envoy_config_trace_v3_zipkin_proto_init() {
295 if File_envoy_config_trace_v3_zipkin_proto != nil {
296 return
297 }
298 if !protoimpl.UnsafeEnabled {
299 file_envoy_config_trace_v3_zipkin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
300 switch v := v.(*ZipkinConfig); i {
301 case 0:
302 return &v.state
303 case 1:
304 return &v.sizeCache
305 case 2:
306 return &v.unknownFields
307 default:
308 return nil
309 }
310 }
311 }
312 type x struct{}
313 out := protoimpl.TypeBuilder{
314 File: protoimpl.DescBuilder{
315 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
316 RawDescriptor: file_envoy_config_trace_v3_zipkin_proto_rawDesc,
317 NumEnums: 1,
318 NumMessages: 1,
319 NumExtensions: 0,
320 NumServices: 0,
321 },
322 GoTypes: file_envoy_config_trace_v3_zipkin_proto_goTypes,
323 DependencyIndexes: file_envoy_config_trace_v3_zipkin_proto_depIdxs,
324 EnumInfos: file_envoy_config_trace_v3_zipkin_proto_enumTypes,
325 MessageInfos: file_envoy_config_trace_v3_zipkin_proto_msgTypes,
326 }.Build()
327 File_envoy_config_trace_v3_zipkin_proto = out.File
328 file_envoy_config_trace_v3_zipkin_proto_rawDesc = nil
329 file_envoy_config_trace_v3_zipkin_proto_goTypes = nil
330 file_envoy_config_trace_v3_zipkin_proto_depIdxs = nil
331 }
332
View as plain text