Debian Codegraph @

envoy/config/trace/v2/zipkin.pb.go

raw
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // versions:
3 // protoc-gen-go v1.30.0
4 // protoc v5.29.1
5 // source: envoy/config/trace/v2/zipkin.proto
6
7 package tracev2
8
9 import (
10 _ "github.com/cncf/xds/go/udpa/annotations"
11 _ "github.com/envoyproxy/go-control-plane/envoy/annotations"
12 _ "github.com/envoyproxy/protoc-gen-validate/validate"
13 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
14 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
15 wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
16 reflect "reflect"
17 sync "sync"
18 )
19
20 const (
21 // Verify that this generated code is sufficiently up-to-date.
22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
23 // Verify that runtime/protoimpl is sufficiently up-to-date.
24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
25 )
26
27 // Available Zipkin collector endpoint versions.
28 type ZipkinConfig_CollectorEndpointVersion int32
29
30 const (
31 // Zipkin API v1, JSON over HTTP.
32 // [#comment: The default implementation of Zipkin client before this field is added was only v1
33 // and the way user configure this was by not explicitly specifying the version. Consequently,
34 // before this is added, the corresponding Zipkin collector expected to receive v1 payload.
35 // Hence the motivation of adding HTTP_JSON_V1 as the default is to avoid a breaking change when
36 // user upgrading Envoy with this change. Furthermore, we also immediately deprecate this field,
37 // since in Zipkin realm this v1 version is considered to be not preferable anymore.]
38 //
39 // Deprecated: Marked as deprecated in envoy/config/trace/v2/zipkin.proto.
40 ZipkinConfig_HTTP_JSON_V1 ZipkinConfig_CollectorEndpointVersion = 0
41 // Zipkin API v2, JSON over HTTP.
42 ZipkinConfig_HTTP_JSON ZipkinConfig_CollectorEndpointVersion = 1
43 // Zipkin API v2, protobuf over HTTP.
44 ZipkinConfig_HTTP_PROTO ZipkinConfig_CollectorEndpointVersion = 2
45 // [#not-implemented-hide:]
46 ZipkinConfig_GRPC ZipkinConfig_CollectorEndpointVersion = 3
47 )
48
49 // Enum value maps for ZipkinConfig_CollectorEndpointVersion.
50 var (
51 ZipkinConfig_CollectorEndpointVersion_name = map[int32]string{
52 0: "HTTP_JSON_V1",
53 1: "HTTP_JSON",
54 2: "HTTP_PROTO",
55 3: "GRPC",
56 }
57 ZipkinConfig_CollectorEndpointVersion_value = map[string]int32{
58 "HTTP_JSON_V1": 0,
59 "HTTP_JSON": 1,
60 "HTTP_PROTO": 2,
61 "GRPC": 3,
62 }
63 )
64
65 func (x ZipkinConfig_CollectorEndpointVersion) Enum() *ZipkinConfig_CollectorEndpointVersion {
66 p := new(ZipkinConfig_CollectorEndpointVersion)
67 *p = x
68 return p
69 }
70
71 func (x ZipkinConfig_CollectorEndpointVersion) String() string {
72 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
73 }
74
75 func (ZipkinConfig_CollectorEndpointVersion) Descriptor() protoreflect.EnumDescriptor {
76 return file_envoy_config_trace_v2_zipkin_proto_enumTypes[0].Descriptor()
77 }
78
79 func (ZipkinConfig_CollectorEndpointVersion) Type() protoreflect.EnumType {
80 return &file_envoy_config_trace_v2_zipkin_proto_enumTypes[0]
81 }
82
83 func (x ZipkinConfig_CollectorEndpointVersion) Number() protoreflect.EnumNumber {
84 return protoreflect.EnumNumber(x)
85 }
86
87 // Deprecated: Use ZipkinConfig_CollectorEndpointVersion.Descriptor instead.
88 func (ZipkinConfig_CollectorEndpointVersion) EnumDescriptor() ([]byte, []int) {
89 return file_envoy_config_trace_v2_zipkin_proto_rawDescGZIP(), []int{0, 0}
90 }
91
92 // Configuration for the Zipkin tracer.
93 // [#extension: envoy.tracers.zipkin]
94 // [#next-free-field: 6]
95 type ZipkinConfig struct {
96 state protoimpl.MessageState
97 sizeCache protoimpl.SizeCache
98 unknownFields protoimpl.UnknownFields
99
100 // The cluster manager cluster that hosts the Zipkin collectors. Note that the
101 // Zipkin cluster must be defined in the :ref:`Bootstrap static cluster
102 // resources <envoy_api_field_config.bootstrap.v2.Bootstrap.StaticResources.clusters>`.
103 CollectorCluster string `protobuf:"bytes,1,opt,name=collector_cluster,json=collectorCluster,proto3" json:"collector_cluster,omitempty"`
104 // The API endpoint of the Zipkin service where the spans will be sent. When
105 // using a standard Zipkin installation, the API endpoint is typically
106 // /api/v1/spans, which is the default value.
107 CollectorEndpoint string `protobuf:"bytes,2,opt,name=collector_endpoint,json=collectorEndpoint,proto3" json:"collector_endpoint,omitempty"`
108 // Determines whether a 128bit trace id will be used when creating a new
109 // trace instance. The default value is false, which will result in a 64 bit trace id being used.
110 TraceId_128Bit bool `protobuf:"varint,3,opt,name=trace_id_128bit,json=traceId128bit,proto3" json:"trace_id_128bit,omitempty"`
111 // Determines whether client and server spans will share the same span context.
112 // The default value is true.
113 SharedSpanContext *wrapperspb.BoolValue `protobuf:"bytes,4,opt,name=shared_span_context,json=sharedSpanContext,proto3" json:"shared_span_context,omitempty"`
114 // Determines the selected collector endpoint version. By default, the “HTTP_JSON_V1“ will be
115 // used.
116 CollectorEndpointVersion ZipkinConfig_CollectorEndpointVersion `protobuf:"varint,5,opt,name=collector_endpoint_version,json=collectorEndpointVersion,proto3,enum=envoy.config.trace.v2.ZipkinConfig_CollectorEndpointVersion" json:"collector_endpoint_version,omitempty"`
117 }
118
119 func (x *ZipkinConfig) Reset() {
120 *x = ZipkinConfig{}
121 if protoimpl.UnsafeEnabled {
122 mi := &file_envoy_config_trace_v2_zipkin_proto_msgTypes[0]
123 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
124 ms.StoreMessageInfo(mi)
125 }
126 }
127
128 func (x *ZipkinConfig) String() string {
129 return protoimpl.X.MessageStringOf(x)
130 }
131
132 func (*ZipkinConfig) ProtoMessage() {}
133
134 func (x *ZipkinConfig) ProtoReflect() protoreflect.Message {
135 mi := &file_envoy_config_trace_v2_zipkin_proto_msgTypes[0]
136 if protoimpl.UnsafeEnabled && x != nil {
137 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
138 if ms.LoadMessageInfo() == nil {
139 ms.StoreMessageInfo(mi)
140 }
141 return ms
142 }
143 return mi.MessageOf(x)
144 }
145
146 // Deprecated: Use ZipkinConfig.ProtoReflect.Descriptor instead.
147 func (*ZipkinConfig) Descriptor() ([]byte, []int) {
148 return file_envoy_config_trace_v2_zipkin_proto_rawDescGZIP(), []int{0}
149 }
150
151 func (x *ZipkinConfig) GetCollectorCluster() string {
152 if x != nil {
153 return x.CollectorCluster
154 }
155 return ""
156 }
157
158 func (x *ZipkinConfig) GetCollectorEndpoint() string {
159 if x != nil {
160 return x.CollectorEndpoint
161 }
162 return ""
163 }
164
165 func (x *ZipkinConfig) GetTraceId_128Bit() bool {
166 if x != nil {
167 return x.TraceId_128Bit
168 }
169 return false
170 }
171
172 func (x *ZipkinConfig) GetSharedSpanContext() *wrapperspb.BoolValue {
173 if x != nil {
174 return x.SharedSpanContext
175 }
176 return nil
177 }
178
179 func (x *ZipkinConfig) GetCollectorEndpointVersion() ZipkinConfig_CollectorEndpointVersion {
180 if x != nil {
181 return x.CollectorEndpointVersion
182 }
183 return ZipkinConfig_HTTP_JSON_V1
184 }
185
186 var File_envoy_config_trace_v2_zipkin_proto protoreflect.FileDescriptor
187
188 var file_envoy_config_trace_v2_zipkin_proto_rawDesc = []byte{
189 0x0a, 0x22, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x74,
190 0x72, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x32, 0x2f, 0x7a, 0x69, 0x70, 0x6b, 0x69, 0x6e, 0x2e, 0x70,
191 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66,
192 0x69, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x32, 0x1a, 0x1e, 0x67, 0x6f, 0x6f,
193 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61,
194 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x65, 0x6e, 0x76,
195 0x6f, 0x79, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x64,
196 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
197 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
198 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
199 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61,
200 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcd, 0x03, 0x0a, 0x0c, 0x5a, 0x69, 0x70,
201 0x6b, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x34, 0x0a, 0x11, 0x63, 0x6f, 0x6c,
202 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01,
203 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x20, 0x01, 0x52, 0x10, 0x63,
204 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12,
205 0x36, 0x0a, 0x12, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x65, 0x6e, 0x64,
206 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04,
207 0x72, 0x02, 0x20, 0x01, 0x52, 0x11, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x45,
208 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x72, 0x61, 0x63, 0x65,
209 0x5f, 0x69, 0x64, 0x5f, 0x31, 0x32, 0x38, 0x62, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08,
210 0x52, 0x0d, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x31, 0x32, 0x38, 0x62, 0x69, 0x74, 0x12,
211 0x4a, 0x0a, 0x13, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x5f, 0x73, 0x70, 0x61, 0x6e, 0x5f, 0x63,
212 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
213 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42,
214 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x11, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64,
215 0x53, 0x70, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x7a, 0x0a, 0x1a, 0x63,
216 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e,
217 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32,
218 0x3c, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74,
219 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x5a, 0x69, 0x70, 0x6b, 0x69, 0x6e, 0x43, 0x6f,
220 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x45, 0x6e,
221 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x18, 0x63,
222 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74,
223 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x5f, 0x0a, 0x18, 0x43, 0x6f, 0x6c, 0x6c, 0x65,
224 0x63, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73,
225 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x0c, 0x48, 0x54, 0x54, 0x50, 0x5f, 0x4a, 0x53, 0x4f, 0x4e,
226 0x5f, 0x56, 0x31, 0x10, 0x00, 0x1a, 0x08, 0xa8, 0xf7, 0xb4, 0x8b, 0x02, 0x01, 0x08, 0x01, 0x12,
227 0x0d, 0x0a, 0x09, 0x48, 0x54, 0x54, 0x50, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x0e,
228 0x0a, 0x0a, 0x48, 0x54, 0x54, 0x50, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x10, 0x02, 0x12, 0x08,
229 0x0a, 0x04, 0x47, 0x52, 0x50, 0x43, 0x10, 0x03, 0x42, 0x82, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06,
230 0x02, 0x10, 0x01, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f,
231 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
232 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x32, 0x42, 0x0b, 0x5a, 0x69, 0x70, 0x6b, 0x69, 0x6e,
233 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
234 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67,
235 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f,
236 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x74, 0x72, 0x61,
237 0x63, 0x65, 0x2f, 0x76, 0x32, 0x3b, 0x74, 0x72, 0x61, 0x63, 0x65, 0x76, 0x32, 0x62, 0x06, 0x70,
238 0x72, 0x6f, 0x74, 0x6f, 0x33,
239 }
240
241 var (
242 file_envoy_config_trace_v2_zipkin_proto_rawDescOnce sync.Once
243 file_envoy_config_trace_v2_zipkin_proto_rawDescData = file_envoy_config_trace_v2_zipkin_proto_rawDesc
244 )
245
246 func file_envoy_config_trace_v2_zipkin_proto_rawDescGZIP() []byte {
247 file_envoy_config_trace_v2_zipkin_proto_rawDescOnce.Do(func() {
248 file_envoy_config_trace_v2_zipkin_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_trace_v2_zipkin_proto_rawDescData)
249 })
250 return file_envoy_config_trace_v2_zipkin_proto_rawDescData
251 }
252
253 var file_envoy_config_trace_v2_zipkin_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
254 var file_envoy_config_trace_v2_zipkin_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
255 var file_envoy_config_trace_v2_zipkin_proto_goTypes = []interface{}{
256 (ZipkinConfig_CollectorEndpointVersion)(0), // 0: envoy.config.trace.v2.ZipkinConfig.CollectorEndpointVersion
257 (*ZipkinConfig)(nil), // 1: envoy.config.trace.v2.ZipkinConfig
258 (*wrapperspb.BoolValue)(nil), // 2: google.protobuf.BoolValue
259 }
260 var file_envoy_config_trace_v2_zipkin_proto_depIdxs = []int32{
261 2, // 0: envoy.config.trace.v2.ZipkinConfig.shared_span_context:type_name -> google.protobuf.BoolValue
262 0, // 1: envoy.config.trace.v2.ZipkinConfig.collector_endpoint_version:type_name -> envoy.config.trace.v2.ZipkinConfig.CollectorEndpointVersion
263 2, // [2:2] is the sub-list for method output_type
264 2, // [2:2] is the sub-list for method input_type
265 2, // [2:2] is the sub-list for extension type_name
266 2, // [2:2] is the sub-list for extension extendee
267 0, // [0:2] is the sub-list for field type_name
268 }
269
270 func init() { file_envoy_config_trace_v2_zipkin_proto_init() }
271 func file_envoy_config_trace_v2_zipkin_proto_init() {
272 if File_envoy_config_trace_v2_zipkin_proto != nil {
273 return
274 }
275 if !protoimpl.UnsafeEnabled {
276 file_envoy_config_trace_v2_zipkin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
277 switch v := v.(*ZipkinConfig); i {
278 case 0:
279 return &v.state
280 case 1:
281 return &v.sizeCache
282 case 2:
283 return &v.unknownFields
284 default:
285 return nil
286 }
287 }
288 }
289 type x struct{}
290 out := protoimpl.TypeBuilder{
291 File: protoimpl.DescBuilder{
292 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
293 RawDescriptor: file_envoy_config_trace_v2_zipkin_proto_rawDesc,
294 NumEnums: 1,
295 NumMessages: 1,
296 NumExtensions: 0,
297 NumServices: 0,
298 },
299 GoTypes: file_envoy_config_trace_v2_zipkin_proto_goTypes,
300 DependencyIndexes: file_envoy_config_trace_v2_zipkin_proto_depIdxs,
301 EnumInfos: file_envoy_config_trace_v2_zipkin_proto_enumTypes,
302 MessageInfos: file_envoy_config_trace_v2_zipkin_proto_msgTypes,
303 }.Build()
304 File_envoy_config_trace_v2_zipkin_proto = out.File
305 file_envoy_config_trace_v2_zipkin_proto_rawDesc = nil
306 file_envoy_config_trace_v2_zipkin_proto_goTypes = nil
307 file_envoy_config_trace_v2_zipkin_proto_depIdxs = nil
308 }