github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/config/trace/v2/zipkin.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.16.0 5 // source: envoy/config/trace/v2/zipkin.proto 6 7 package envoy_config_trace_v2 8 9 import ( 10 _ "github.com/cncf/xds/go/udpa/annotations" 11 _ "github.com/hxx258456/ccgo/go-control-plane/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 // Verify that this generated code is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 24 // Verify that runtime/protoimpl is sufficiently up-to-date. 25 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 26 ) 27 28 // This is a compile-time assertion that a sufficiently up-to-date version 29 // of the legacy proto package is being used. 30 const _ = proto.ProtoPackageIsVersion4 31 32 // Available Zipkin collector endpoint versions. 33 type ZipkinConfig_CollectorEndpointVersion int32 34 35 const ( 36 // Zipkin API v1, JSON over HTTP. 37 // [#comment: The default implementation of Zipkin client before this field is added was only v1 38 // and the way user configure this was by not explicitly specifying the version. Consequently, 39 // before this is added, the corresponding Zipkin collector expected to receive v1 payload. 40 // Hence the motivation of adding HTTP_JSON_V1 as the default is to avoid a breaking change when 41 // user upgrading Envoy with this change. Furthermore, we also immediately deprecate this field, 42 // since in Zipkin realm this v1 version is considered to be not preferable anymore.] 43 // 44 // Deprecated: Do not use. 45 ZipkinConfig_HTTP_JSON_V1 ZipkinConfig_CollectorEndpointVersion = 0 46 // Zipkin API v2, JSON over HTTP. 47 ZipkinConfig_HTTP_JSON ZipkinConfig_CollectorEndpointVersion = 1 48 // Zipkin API v2, protobuf over HTTP. 49 ZipkinConfig_HTTP_PROTO ZipkinConfig_CollectorEndpointVersion = 2 50 // [#not-implemented-hide:] 51 ZipkinConfig_GRPC ZipkinConfig_CollectorEndpointVersion = 3 52 ) 53 54 // Enum value maps for ZipkinConfig_CollectorEndpointVersion. 55 var ( 56 ZipkinConfig_CollectorEndpointVersion_name = map[int32]string{ 57 0: "HTTP_JSON_V1", 58 1: "HTTP_JSON", 59 2: "HTTP_PROTO", 60 3: "GRPC", 61 } 62 ZipkinConfig_CollectorEndpointVersion_value = map[string]int32{ 63 "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_v2_zipkin_proto_enumTypes[0].Descriptor() 82 } 83 84 func (ZipkinConfig_CollectorEndpointVersion) Type() protoreflect.EnumType { 85 return &file_envoy_config_trace_v2_zipkin_proto_enumTypes[0] 86 } 87 88 func (x ZipkinConfig_CollectorEndpointVersion) Number() protoreflect.EnumNumber { 89 return protoreflect.EnumNumber(x) 90 } 91 92 // Deprecated: Use ZipkinConfig_CollectorEndpointVersion.Descriptor instead. 93 func (ZipkinConfig_CollectorEndpointVersion) EnumDescriptor() ([]byte, []int) { 94 return file_envoy_config_trace_v2_zipkin_proto_rawDescGZIP(), []int{0, 0} 95 } 96 97 // Configuration for the Zipkin tracer. 98 // [#extension: envoy.tracers.zipkin] 99 // [#next-free-field: 6] 100 type ZipkinConfig struct { 101 state protoimpl.MessageState 102 sizeCache protoimpl.SizeCache 103 unknownFields protoimpl.UnknownFields 104 105 // The cluster manager cluster that hosts the Zipkin collectors. Note that the 106 // Zipkin cluster must be defined in the :ref:`Bootstrap static cluster 107 // resources <envoy_api_field_config.bootstrap.v2.Bootstrap.StaticResources.clusters>`. 108 CollectorCluster string `protobuf:"bytes,1,opt,name=collector_cluster,json=collectorCluster,proto3" json:"collector_cluster,omitempty"` 109 // The API endpoint of the Zipkin service where the spans will be sent. When 110 // using a standard Zipkin installation, the API endpoint is typically 111 // /api/v1/spans, which is the default value. 112 CollectorEndpoint string `protobuf:"bytes,2,opt,name=collector_endpoint,json=collectorEndpoint,proto3" json:"collector_endpoint,omitempty"` 113 // Determines whether a 128bit trace id will be used when creating a new 114 // trace instance. The default value is false, which will result in a 64 bit trace id being used. 115 TraceId_128Bit bool `protobuf:"varint,3,opt,name=trace_id_128bit,json=traceId128bit,proto3" json:"trace_id_128bit,omitempty"` 116 // Determines whether client and server spans will share the same span context. 117 // The default value is true. 118 SharedSpanContext *wrappers.BoolValue `protobuf:"bytes,4,opt,name=shared_span_context,json=sharedSpanContext,proto3" json:"shared_span_context,omitempty"` 119 // Determines the selected collector endpoint version. By default, the ``HTTP_JSON_V1`` will be 120 // used. 121 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"` 122 } 123 124 func (x *ZipkinConfig) Reset() { 125 *x = ZipkinConfig{} 126 if protoimpl.UnsafeEnabled { 127 mi := &file_envoy_config_trace_v2_zipkin_proto_msgTypes[0] 128 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 129 ms.StoreMessageInfo(mi) 130 } 131 } 132 133 func (x *ZipkinConfig) String() string { 134 return protoimpl.X.MessageStringOf(x) 135 } 136 137 func (*ZipkinConfig) ProtoMessage() {} 138 139 func (x *ZipkinConfig) ProtoReflect() protoreflect.Message { 140 mi := &file_envoy_config_trace_v2_zipkin_proto_msgTypes[0] 141 if protoimpl.UnsafeEnabled && x != nil { 142 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 143 if ms.LoadMessageInfo() == nil { 144 ms.StoreMessageInfo(mi) 145 } 146 return ms 147 } 148 return mi.MessageOf(x) 149 } 150 151 // Deprecated: Use ZipkinConfig.ProtoReflect.Descriptor instead. 152 func (*ZipkinConfig) Descriptor() ([]byte, []int) { 153 return file_envoy_config_trace_v2_zipkin_proto_rawDescGZIP(), []int{0} 154 } 155 156 func (x *ZipkinConfig) GetCollectorCluster() string { 157 if x != nil { 158 return x.CollectorCluster 159 } 160 return "" 161 } 162 163 func (x *ZipkinConfig) GetCollectorEndpoint() string { 164 if x != nil { 165 return x.CollectorEndpoint 166 } 167 return "" 168 } 169 170 func (x *ZipkinConfig) GetTraceId_128Bit() bool { 171 if x != nil { 172 return x.TraceId_128Bit 173 } 174 return false 175 } 176 177 func (x *ZipkinConfig) GetSharedSpanContext() *wrappers.BoolValue { 178 if x != nil { 179 return x.SharedSpanContext 180 } 181 return nil 182 } 183 184 func (x *ZipkinConfig) GetCollectorEndpointVersion() ZipkinConfig_CollectorEndpointVersion { 185 if x != nil { 186 return x.CollectorEndpointVersion 187 } 188 return ZipkinConfig_HTTP_JSON_V1 189 } 190 191 var File_envoy_config_trace_v2_zipkin_proto protoreflect.FileDescriptor 192 193 var file_envoy_config_trace_v2_zipkin_proto_rawDesc = []byte{ 194 0x0a, 0x22, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x74, 195 0x72, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x32, 0x2f, 0x7a, 0x69, 0x70, 0x6b, 0x69, 0x6e, 0x2e, 0x70, 196 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 197 0x69, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x32, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 198 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 199 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x65, 0x6e, 0x76, 200 0x6f, 0x79, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x64, 201 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 202 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 203 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 204 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 205 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcd, 0x03, 0x0a, 0x0c, 0x5a, 0x69, 0x70, 206 0x6b, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x34, 0x0a, 0x11, 0x63, 0x6f, 0x6c, 207 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 208 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x20, 0x01, 0x52, 0x10, 0x63, 209 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 210 0x36, 0x0a, 0x12, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x65, 0x6e, 0x64, 211 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 212 0x72, 0x02, 0x20, 0x01, 0x52, 0x11, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x45, 213 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x72, 0x61, 0x63, 0x65, 214 0x5f, 0x69, 0x64, 0x5f, 0x31, 0x32, 0x38, 0x62, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 215 0x52, 0x0d, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x31, 0x32, 0x38, 0x62, 0x69, 0x74, 0x12, 216 0x4a, 0x0a, 0x13, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x5f, 0x73, 0x70, 0x61, 0x6e, 0x5f, 0x63, 217 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 218 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 219 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x11, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 220 0x53, 0x70, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x7a, 0x0a, 0x1a, 0x63, 221 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 222 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 223 0x3c, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 224 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x5a, 0x69, 0x70, 0x6b, 0x69, 0x6e, 0x43, 0x6f, 225 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x45, 0x6e, 226 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x18, 0x63, 227 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 228 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x5f, 0x0a, 0x18, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 229 0x63, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 230 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x0c, 0x48, 0x54, 0x54, 0x50, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 231 0x5f, 0x56, 0x31, 0x10, 0x00, 0x1a, 0x08, 0x08, 0x01, 0xa8, 0xf7, 0xb4, 0x8b, 0x02, 0x01, 0x12, 232 0x0d, 0x0a, 0x09, 0x48, 0x54, 0x54, 0x50, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x0e, 233 0x0a, 0x0a, 0x48, 0x54, 0x54, 0x50, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x10, 0x02, 0x12, 0x08, 234 0x0a, 0x04, 0x47, 0x52, 0x50, 0x43, 0x10, 0x03, 0x42, 0x3c, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x65, 235 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 236 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x32, 0x42, 237 0x0b, 0x5a, 0x69, 0x70, 0x6b, 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 238 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x01, 0x62, 0x06, 0x70, 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 (*wrappers.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 }