github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/config/trace/v3/xray.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/xray.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 _struct "github.com/golang/protobuf/ptypes/struct" 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 // [#extension: envoy.tracers.xray] 33 type XRayConfig struct { 34 state protoimpl.MessageState 35 sizeCache protoimpl.SizeCache 36 unknownFields protoimpl.UnknownFields 37 38 // The UDP endpoint of the X-Ray Daemon where the spans will be sent. 39 // If this value is not set, the default value of 127.0.0.1:2000 will be used. 40 DaemonEndpoint *v3.SocketAddress `protobuf:"bytes,1,opt,name=daemon_endpoint,json=daemonEndpoint,proto3" json:"daemon_endpoint,omitempty"` 41 // The name of the X-Ray segment. 42 SegmentName string `protobuf:"bytes,2,opt,name=segment_name,json=segmentName,proto3" json:"segment_name,omitempty"` 43 // The location of a local custom sampling rules JSON file. 44 // For an example of the sampling rules see: 45 // `X-Ray SDK documentation 46 // <https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-go-configuration.html#xray-sdk-go-configuration-sampling>`_ 47 SamplingRuleManifest *v3.DataSource `protobuf:"bytes,3,opt,name=sampling_rule_manifest,json=samplingRuleManifest,proto3" json:"sampling_rule_manifest,omitempty"` 48 // Optional custom fields to be added to each trace segment. 49 // see: `X-Ray Segment Document documentation 50 // <https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html>`__ 51 SegmentFields *XRayConfig_SegmentFields `protobuf:"bytes,4,opt,name=segment_fields,json=segmentFields,proto3" json:"segment_fields,omitempty"` 52 } 53 54 func (x *XRayConfig) Reset() { 55 *x = XRayConfig{} 56 if protoimpl.UnsafeEnabled { 57 mi := &file_envoy_config_trace_v3_xray_proto_msgTypes[0] 58 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 59 ms.StoreMessageInfo(mi) 60 } 61 } 62 63 func (x *XRayConfig) String() string { 64 return protoimpl.X.MessageStringOf(x) 65 } 66 67 func (*XRayConfig) ProtoMessage() {} 68 69 func (x *XRayConfig) ProtoReflect() protoreflect.Message { 70 mi := &file_envoy_config_trace_v3_xray_proto_msgTypes[0] 71 if protoimpl.UnsafeEnabled && x != nil { 72 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 73 if ms.LoadMessageInfo() == nil { 74 ms.StoreMessageInfo(mi) 75 } 76 return ms 77 } 78 return mi.MessageOf(x) 79 } 80 81 // Deprecated: Use XRayConfig.ProtoReflect.Descriptor instead. 82 func (*XRayConfig) Descriptor() ([]byte, []int) { 83 return file_envoy_config_trace_v3_xray_proto_rawDescGZIP(), []int{0} 84 } 85 86 func (x *XRayConfig) GetDaemonEndpoint() *v3.SocketAddress { 87 if x != nil { 88 return x.DaemonEndpoint 89 } 90 return nil 91 } 92 93 func (x *XRayConfig) GetSegmentName() string { 94 if x != nil { 95 return x.SegmentName 96 } 97 return "" 98 } 99 100 func (x *XRayConfig) GetSamplingRuleManifest() *v3.DataSource { 101 if x != nil { 102 return x.SamplingRuleManifest 103 } 104 return nil 105 } 106 107 func (x *XRayConfig) GetSegmentFields() *XRayConfig_SegmentFields { 108 if x != nil { 109 return x.SegmentFields 110 } 111 return nil 112 } 113 114 type XRayConfig_SegmentFields struct { 115 state protoimpl.MessageState 116 sizeCache protoimpl.SizeCache 117 unknownFields protoimpl.UnknownFields 118 119 // The type of AWS resource, e.g. "AWS::AppMesh::Proxy". 120 Origin string `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"` 121 // AWS resource metadata dictionary. 122 // See: `X-Ray Segment Document documentation <https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html#api-segmentdocuments-aws>`__ 123 Aws *_struct.Struct `protobuf:"bytes,2,opt,name=aws,proto3" json:"aws,omitempty"` 124 } 125 126 func (x *XRayConfig_SegmentFields) Reset() { 127 *x = XRayConfig_SegmentFields{} 128 if protoimpl.UnsafeEnabled { 129 mi := &file_envoy_config_trace_v3_xray_proto_msgTypes[1] 130 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 131 ms.StoreMessageInfo(mi) 132 } 133 } 134 135 func (x *XRayConfig_SegmentFields) String() string { 136 return protoimpl.X.MessageStringOf(x) 137 } 138 139 func (*XRayConfig_SegmentFields) ProtoMessage() {} 140 141 func (x *XRayConfig_SegmentFields) ProtoReflect() protoreflect.Message { 142 mi := &file_envoy_config_trace_v3_xray_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 XRayConfig_SegmentFields.ProtoReflect.Descriptor instead. 154 func (*XRayConfig_SegmentFields) Descriptor() ([]byte, []int) { 155 return file_envoy_config_trace_v3_xray_proto_rawDescGZIP(), []int{0, 0} 156 } 157 158 func (x *XRayConfig_SegmentFields) GetOrigin() string { 159 if x != nil { 160 return x.Origin 161 } 162 return "" 163 } 164 165 func (x *XRayConfig_SegmentFields) GetAws() *_struct.Struct { 166 if x != nil { 167 return x.Aws 168 } 169 return nil 170 } 171 172 var File_envoy_config_trace_v3_xray_proto protoreflect.FileDescriptor 173 174 var file_envoy_config_trace_v3_xray_proto_rawDesc = []byte{ 175 0x0a, 0x20, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x74, 176 0x72, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 177 0x74, 0x6f, 0x12, 0x15, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 178 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x33, 0x1a, 0x22, 0x65, 0x6e, 0x76, 0x6f, 0x79, 179 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 180 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x65, 181 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, 0x72, 0x65, 182 0x2f, 0x76, 0x33, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 183 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 184 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x75, 0x64, 185 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6d, 186 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 187 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 188 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x75, 0x64, 0x70, 189 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x65, 190 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 191 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 192 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb8, 0x03, 0x0a, 0x0a, 0x58, 0x52, 0x61, 0x79, 193 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4c, 0x0a, 0x0f, 0x64, 0x61, 0x65, 0x6d, 0x6f, 0x6e, 194 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 195 0x23, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 196 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x41, 0x64, 0x64, 197 0x72, 0x65, 0x73, 0x73, 0x52, 0x0e, 0x64, 0x61, 0x65, 0x6d, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x70, 198 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x0c, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 199 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 200 0x02, 0x10, 0x01, 0x52, 0x0b, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 201 0x12, 0x56, 0x0a, 0x16, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x75, 0x6c, 202 0x65, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 203 0x32, 0x20, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 204 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 205 0x63, 0x65, 0x52, 0x14, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 206 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x12, 0x56, 0x0a, 0x0e, 0x73, 0x65, 0x67, 0x6d, 207 0x65, 0x6e, 0x74, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 208 0x32, 0x2f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 209 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x58, 0x52, 0x61, 0x79, 0x43, 0x6f, 0x6e, 210 0x66, 0x69, 0x67, 0x2e, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 211 0x73, 0x52, 0x0d, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 212 0x1a, 0x52, 0x0a, 0x0d, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 213 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 214 0x09, 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x29, 0x0a, 0x03, 0x61, 0x77, 0x73, 215 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 216 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 217 0x03, 0x61, 0x77, 0x73, 0x3a, 0x2c, 0x9a, 0xc5, 0x88, 0x1e, 0x27, 0x0a, 0x25, 0x65, 0x6e, 0x76, 218 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 219 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x58, 0x52, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x66, 220 0x69, 0x67, 0x42, 0x67, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 221 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 222 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x33, 0x42, 0x09, 0x58, 0x72, 0x61, 0x79, 0x50, 223 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xf2, 0x98, 0xfe, 0x8f, 0x05, 0x27, 0x12, 0x25, 0x65, 0x6e, 224 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x74, 225 0x72, 0x61, 0x63, 0x65, 0x72, 0x73, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x76, 0x34, 0x61, 0x6c, 226 0x70, 0x68, 0x61, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 227 0x74, 0x6f, 0x33, 228 } 229 230 var ( 231 file_envoy_config_trace_v3_xray_proto_rawDescOnce sync.Once 232 file_envoy_config_trace_v3_xray_proto_rawDescData = file_envoy_config_trace_v3_xray_proto_rawDesc 233 ) 234 235 func file_envoy_config_trace_v3_xray_proto_rawDescGZIP() []byte { 236 file_envoy_config_trace_v3_xray_proto_rawDescOnce.Do(func() { 237 file_envoy_config_trace_v3_xray_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_trace_v3_xray_proto_rawDescData) 238 }) 239 return file_envoy_config_trace_v3_xray_proto_rawDescData 240 } 241 242 var file_envoy_config_trace_v3_xray_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 243 var file_envoy_config_trace_v3_xray_proto_goTypes = []interface{}{ 244 (*XRayConfig)(nil), // 0: envoy.config.trace.v3.XRayConfig 245 (*XRayConfig_SegmentFields)(nil), // 1: envoy.config.trace.v3.XRayConfig.SegmentFields 246 (*v3.SocketAddress)(nil), // 2: envoy.config.core.v3.SocketAddress 247 (*v3.DataSource)(nil), // 3: envoy.config.core.v3.DataSource 248 (*_struct.Struct)(nil), // 4: google.protobuf.Struct 249 } 250 var file_envoy_config_trace_v3_xray_proto_depIdxs = []int32{ 251 2, // 0: envoy.config.trace.v3.XRayConfig.daemon_endpoint:type_name -> envoy.config.core.v3.SocketAddress 252 3, // 1: envoy.config.trace.v3.XRayConfig.sampling_rule_manifest:type_name -> envoy.config.core.v3.DataSource 253 1, // 2: envoy.config.trace.v3.XRayConfig.segment_fields:type_name -> envoy.config.trace.v3.XRayConfig.SegmentFields 254 4, // 3: envoy.config.trace.v3.XRayConfig.SegmentFields.aws:type_name -> google.protobuf.Struct 255 4, // [4:4] is the sub-list for method output_type 256 4, // [4:4] is the sub-list for method input_type 257 4, // [4:4] is the sub-list for extension type_name 258 4, // [4:4] is the sub-list for extension extendee 259 0, // [0:4] is the sub-list for field type_name 260 } 261 262 func init() { file_envoy_config_trace_v3_xray_proto_init() } 263 func file_envoy_config_trace_v3_xray_proto_init() { 264 if File_envoy_config_trace_v3_xray_proto != nil { 265 return 266 } 267 if !protoimpl.UnsafeEnabled { 268 file_envoy_config_trace_v3_xray_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 269 switch v := v.(*XRayConfig); i { 270 case 0: 271 return &v.state 272 case 1: 273 return &v.sizeCache 274 case 2: 275 return &v.unknownFields 276 default: 277 return nil 278 } 279 } 280 file_envoy_config_trace_v3_xray_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 281 switch v := v.(*XRayConfig_SegmentFields); i { 282 case 0: 283 return &v.state 284 case 1: 285 return &v.sizeCache 286 case 2: 287 return &v.unknownFields 288 default: 289 return nil 290 } 291 } 292 } 293 type x struct{} 294 out := protoimpl.TypeBuilder{ 295 File: protoimpl.DescBuilder{ 296 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 297 RawDescriptor: file_envoy_config_trace_v3_xray_proto_rawDesc, 298 NumEnums: 0, 299 NumMessages: 2, 300 NumExtensions: 0, 301 NumServices: 0, 302 }, 303 GoTypes: file_envoy_config_trace_v3_xray_proto_goTypes, 304 DependencyIndexes: file_envoy_config_trace_v3_xray_proto_depIdxs, 305 MessageInfos: file_envoy_config_trace_v3_xray_proto_msgTypes, 306 }.Build() 307 File_envoy_config_trace_v3_xray_proto = out.File 308 file_envoy_config_trace_v3_xray_proto_rawDesc = nil 309 file_envoy_config_trace_v3_xray_proto_goTypes = nil 310 file_envoy_config_trace_v3_xray_proto_depIdxs = nil 311 }