github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/config/trace/v3/skywalking.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/v3/skywalking.proto 6 7 package envoy_config_trace_v3 8 9 import ( 10 _ "github.com/cncf/xds/go/udpa/annotations" 11 v3 "github.com/hxx258456/ccgo/go-control-plane/envoy/config/core/v3" 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 // Configuration for the SkyWalking tracer. Please note that if SkyWalking tracer is used as the 33 // provider of http tracer, then 34 // :ref:`start_child_span <envoy_v3_api_field_extensions.filters.http.router.v3.Router.start_child_span>` 35 // in the router must be set to true to get the correct topology and tracing data. Moreover, SkyWalking 36 // Tracer does not support SkyWalking extension header (``sw8-x``) temporarily. 37 // [#extension: envoy.tracers.skywalking] 38 type SkyWalkingConfig struct { 39 state protoimpl.MessageState 40 sizeCache protoimpl.SizeCache 41 unknownFields protoimpl.UnknownFields 42 43 // SkyWalking collector service. 44 GrpcService *v3.GrpcService `protobuf:"bytes,1,opt,name=grpc_service,json=grpcService,proto3" json:"grpc_service,omitempty"` 45 ClientConfig *ClientConfig `protobuf:"bytes,2,opt,name=client_config,json=clientConfig,proto3" json:"client_config,omitempty"` 46 } 47 48 func (x *SkyWalkingConfig) Reset() { 49 *x = SkyWalkingConfig{} 50 if protoimpl.UnsafeEnabled { 51 mi := &file_envoy_config_trace_v3_skywalking_proto_msgTypes[0] 52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 53 ms.StoreMessageInfo(mi) 54 } 55 } 56 57 func (x *SkyWalkingConfig) String() string { 58 return protoimpl.X.MessageStringOf(x) 59 } 60 61 func (*SkyWalkingConfig) ProtoMessage() {} 62 63 func (x *SkyWalkingConfig) ProtoReflect() protoreflect.Message { 64 mi := &file_envoy_config_trace_v3_skywalking_proto_msgTypes[0] 65 if protoimpl.UnsafeEnabled && x != nil { 66 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 67 if ms.LoadMessageInfo() == nil { 68 ms.StoreMessageInfo(mi) 69 } 70 return ms 71 } 72 return mi.MessageOf(x) 73 } 74 75 // Deprecated: Use SkyWalkingConfig.ProtoReflect.Descriptor instead. 76 func (*SkyWalkingConfig) Descriptor() ([]byte, []int) { 77 return file_envoy_config_trace_v3_skywalking_proto_rawDescGZIP(), []int{0} 78 } 79 80 func (x *SkyWalkingConfig) GetGrpcService() *v3.GrpcService { 81 if x != nil { 82 return x.GrpcService 83 } 84 return nil 85 } 86 87 func (x *SkyWalkingConfig) GetClientConfig() *ClientConfig { 88 if x != nil { 89 return x.ClientConfig 90 } 91 return nil 92 } 93 94 // Client config for SkyWalking tracer. 95 type ClientConfig struct { 96 state protoimpl.MessageState 97 sizeCache protoimpl.SizeCache 98 unknownFields protoimpl.UnknownFields 99 100 // Service name for SkyWalking tracer. If this field is empty, then local service cluster name 101 // that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>` 102 // message's :ref:`cluster <envoy_v3_api_field_config.core.v3.Node.cluster>` field or command line 103 // option :option:`--service-cluster` will be used. If both this field and local service cluster 104 // name are empty, ``EnvoyProxy`` is used as the service name by default. 105 ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` 106 // Service instance name for SkyWalking tracer. If this field is empty, then local service node 107 // that configured by :ref:`Bootstrap node <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.node>` 108 // message's :ref:`id <envoy_v3_api_field_config.core.v3.Node.id>` field or command line option 109 // :option:`--service-node` will be used. If both this field and local service node are empty, 110 // ``EnvoyProxy`` is used as the instance name by default. 111 InstanceName string `protobuf:"bytes,2,opt,name=instance_name,json=instanceName,proto3" json:"instance_name,omitempty"` 112 // Authentication token config for SkyWalking. SkyWalking can use token authentication to secure 113 // that monitoring application data can be trusted. In current version, Token is considered as a 114 // simple string. 115 // [#comment:TODO(wbpcode): Get backend token through the SDS API.] 116 // 117 // Types that are assignable to BackendTokenSpecifier: 118 // *ClientConfig_BackendToken 119 BackendTokenSpecifier isClientConfig_BackendTokenSpecifier `protobuf_oneof:"backend_token_specifier"` 120 // Envoy caches the segment in memory when the SkyWalking backend service is temporarily unavailable. 121 // This field specifies the maximum number of segments that can be cached. If not specified, the 122 // default is 1024. 123 MaxCacheSize *wrappers.UInt32Value `protobuf:"bytes,4,opt,name=max_cache_size,json=maxCacheSize,proto3" json:"max_cache_size,omitempty"` 124 } 125 126 func (x *ClientConfig) Reset() { 127 *x = ClientConfig{} 128 if protoimpl.UnsafeEnabled { 129 mi := &file_envoy_config_trace_v3_skywalking_proto_msgTypes[1] 130 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 131 ms.StoreMessageInfo(mi) 132 } 133 } 134 135 func (x *ClientConfig) String() string { 136 return protoimpl.X.MessageStringOf(x) 137 } 138 139 func (*ClientConfig) ProtoMessage() {} 140 141 func (x *ClientConfig) ProtoReflect() protoreflect.Message { 142 mi := &file_envoy_config_trace_v3_skywalking_proto_msgTypes[1] 143 if protoimpl.UnsafeEnabled && x != nil { 144 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 145 if ms.LoadMessageInfo() == nil { 146 ms.StoreMessageInfo(mi) 147 } 148 return ms 149 } 150 return mi.MessageOf(x) 151 } 152 153 // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead. 154 func (*ClientConfig) Descriptor() ([]byte, []int) { 155 return file_envoy_config_trace_v3_skywalking_proto_rawDescGZIP(), []int{1} 156 } 157 158 func (x *ClientConfig) GetServiceName() string { 159 if x != nil { 160 return x.ServiceName 161 } 162 return "" 163 } 164 165 func (x *ClientConfig) GetInstanceName() string { 166 if x != nil { 167 return x.InstanceName 168 } 169 return "" 170 } 171 172 func (m *ClientConfig) GetBackendTokenSpecifier() isClientConfig_BackendTokenSpecifier { 173 if m != nil { 174 return m.BackendTokenSpecifier 175 } 176 return nil 177 } 178 179 func (x *ClientConfig) GetBackendToken() string { 180 if x, ok := x.GetBackendTokenSpecifier().(*ClientConfig_BackendToken); ok { 181 return x.BackendToken 182 } 183 return "" 184 } 185 186 func (x *ClientConfig) GetMaxCacheSize() *wrappers.UInt32Value { 187 if x != nil { 188 return x.MaxCacheSize 189 } 190 return nil 191 } 192 193 type isClientConfig_BackendTokenSpecifier interface { 194 isClientConfig_BackendTokenSpecifier() 195 } 196 197 type ClientConfig_BackendToken struct { 198 // Inline authentication token string. 199 BackendToken string `protobuf:"bytes,3,opt,name=backend_token,json=backendToken,proto3,oneof"` 200 } 201 202 func (*ClientConfig_BackendToken) isClientConfig_BackendTokenSpecifier() {} 203 204 var File_envoy_config_trace_v3_skywalking_proto protoreflect.FileDescriptor 205 206 var file_envoy_config_trace_v3_skywalking_proto_rawDesc = []byte{ 207 0x0a, 0x26, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x74, 208 0x72, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 209 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 210 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x33, 0x1a, 211 0x27, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, 212 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 213 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 214 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 215 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 216 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 217 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 218 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x65, 0x6e, 0x73, 0x69, 219 0x74, 0x69, 0x76, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 220 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 221 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 222 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 223 0x74, 0x6f, 0x22, 0xac, 0x01, 0x0a, 0x10, 0x53, 0x6b, 0x79, 0x57, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 224 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4e, 0x0a, 0x0c, 0x67, 0x72, 0x70, 0x63, 0x5f, 225 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 226 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 227 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x47, 0x72, 0x70, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 228 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, 0x0b, 0x67, 0x72, 0x70, 0x63, 229 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 230 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 231 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 0x72, 232 0x61, 0x63, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 233 0x66, 0x69, 0x67, 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 234 0x67, 0x22, 0xe4, 0x01, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 235 0x69, 0x67, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61, 236 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 237 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 238 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x6e, 239 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x0d, 0x62, 0x61, 240 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 241 0x09, 0x42, 0x06, 0xb8, 0xb7, 0x8b, 0xa4, 0x02, 0x01, 0x48, 0x00, 0x52, 0x0c, 0x62, 0x61, 0x63, 242 0x6b, 0x65, 0x6e, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x42, 0x0a, 0x0e, 0x6d, 0x61, 0x78, 243 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 244 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 245 0x62, 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 246 0x0c, 0x6d, 0x61, 0x78, 0x43, 0x61, 0x63, 0x68, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x42, 0x19, 0x0a, 247 0x17, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x73, 248 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x72, 0x42, 0x73, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x65, 249 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 250 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x33, 0x42, 251 0x0f, 0x53, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 252 0x50, 0x01, 0xf2, 0x98, 0xfe, 0x8f, 0x05, 0x2d, 0x12, 0x2b, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 253 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 254 0x72, 0x73, 0x2e, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x34, 255 0x61, 0x6c, 0x70, 0x68, 0x61, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0x62, 0x06, 0x70, 256 0x72, 0x6f, 0x74, 0x6f, 0x33, 257 } 258 259 var ( 260 file_envoy_config_trace_v3_skywalking_proto_rawDescOnce sync.Once 261 file_envoy_config_trace_v3_skywalking_proto_rawDescData = file_envoy_config_trace_v3_skywalking_proto_rawDesc 262 ) 263 264 func file_envoy_config_trace_v3_skywalking_proto_rawDescGZIP() []byte { 265 file_envoy_config_trace_v3_skywalking_proto_rawDescOnce.Do(func() { 266 file_envoy_config_trace_v3_skywalking_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_trace_v3_skywalking_proto_rawDescData) 267 }) 268 return file_envoy_config_trace_v3_skywalking_proto_rawDescData 269 } 270 271 var file_envoy_config_trace_v3_skywalking_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 272 var file_envoy_config_trace_v3_skywalking_proto_goTypes = []interface{}{ 273 (*SkyWalkingConfig)(nil), // 0: envoy.config.trace.v3.SkyWalkingConfig 274 (*ClientConfig)(nil), // 1: envoy.config.trace.v3.ClientConfig 275 (*v3.GrpcService)(nil), // 2: envoy.config.core.v3.GrpcService 276 (*wrappers.UInt32Value)(nil), // 3: google.protobuf.UInt32Value 277 } 278 var file_envoy_config_trace_v3_skywalking_proto_depIdxs = []int32{ 279 2, // 0: envoy.config.trace.v3.SkyWalkingConfig.grpc_service:type_name -> envoy.config.core.v3.GrpcService 280 1, // 1: envoy.config.trace.v3.SkyWalkingConfig.client_config:type_name -> envoy.config.trace.v3.ClientConfig 281 3, // 2: envoy.config.trace.v3.ClientConfig.max_cache_size:type_name -> google.protobuf.UInt32Value 282 3, // [3:3] is the sub-list for method output_type 283 3, // [3:3] is the sub-list for method input_type 284 3, // [3:3] is the sub-list for extension type_name 285 3, // [3:3] is the sub-list for extension extendee 286 0, // [0:3] is the sub-list for field type_name 287 } 288 289 func init() { file_envoy_config_trace_v3_skywalking_proto_init() } 290 func file_envoy_config_trace_v3_skywalking_proto_init() { 291 if File_envoy_config_trace_v3_skywalking_proto != nil { 292 return 293 } 294 if !protoimpl.UnsafeEnabled { 295 file_envoy_config_trace_v3_skywalking_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 296 switch v := v.(*SkyWalkingConfig); i { 297 case 0: 298 return &v.state 299 case 1: 300 return &v.sizeCache 301 case 2: 302 return &v.unknownFields 303 default: 304 return nil 305 } 306 } 307 file_envoy_config_trace_v3_skywalking_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 308 switch v := v.(*ClientConfig); i { 309 case 0: 310 return &v.state 311 case 1: 312 return &v.sizeCache 313 case 2: 314 return &v.unknownFields 315 default: 316 return nil 317 } 318 } 319 } 320 file_envoy_config_trace_v3_skywalking_proto_msgTypes[1].OneofWrappers = []interface{}{ 321 (*ClientConfig_BackendToken)(nil), 322 } 323 type x struct{} 324 out := protoimpl.TypeBuilder{ 325 File: protoimpl.DescBuilder{ 326 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 327 RawDescriptor: file_envoy_config_trace_v3_skywalking_proto_rawDesc, 328 NumEnums: 0, 329 NumMessages: 2, 330 NumExtensions: 0, 331 NumServices: 0, 332 }, 333 GoTypes: file_envoy_config_trace_v3_skywalking_proto_goTypes, 334 DependencyIndexes: file_envoy_config_trace_v3_skywalking_proto_depIdxs, 335 MessageInfos: file_envoy_config_trace_v3_skywalking_proto_msgTypes, 336 }.Build() 337 File_envoy_config_trace_v3_skywalking_proto = out.File 338 file_envoy_config_trace_v3_skywalking_proto_rawDesc = nil 339 file_envoy_config_trace_v3_skywalking_proto_goTypes = nil 340 file_envoy_config_trace_v3_skywalking_proto_depIdxs = nil 341 }