github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/config/trace/v2/datadog.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/datadog.proto 6 7 package envoy_config_trace_v2 8 9 import ( 10 _ "github.com/cncf/xds/go/udpa/annotations" 11 _ "github.com/envoyproxy/protoc-gen-validate/validate" 12 proto "github.com/golang/protobuf/proto" 13 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 14 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 15 reflect "reflect" 16 sync "sync" 17 ) 18 19 const ( 20 // Verify that this generated code is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 22 // Verify that runtime/protoimpl is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 24 ) 25 26 // This is a compile-time assertion that a sufficiently up-to-date version 27 // of the legacy proto package is being used. 28 const _ = proto.ProtoPackageIsVersion4 29 30 // Configuration for the Datadog tracer. 31 // [#extension: envoy.tracers.datadog] 32 type DatadogConfig struct { 33 state protoimpl.MessageState 34 sizeCache protoimpl.SizeCache 35 unknownFields protoimpl.UnknownFields 36 37 // The cluster to use for submitting traces to the Datadog agent. 38 CollectorCluster string `protobuf:"bytes,1,opt,name=collector_cluster,json=collectorCluster,proto3" json:"collector_cluster,omitempty"` 39 // The name used for the service when traces are generated by envoy. 40 ServiceName string `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` 41 } 42 43 func (x *DatadogConfig) Reset() { 44 *x = DatadogConfig{} 45 if protoimpl.UnsafeEnabled { 46 mi := &file_envoy_config_trace_v2_datadog_proto_msgTypes[0] 47 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 48 ms.StoreMessageInfo(mi) 49 } 50 } 51 52 func (x *DatadogConfig) String() string { 53 return protoimpl.X.MessageStringOf(x) 54 } 55 56 func (*DatadogConfig) ProtoMessage() {} 57 58 func (x *DatadogConfig) ProtoReflect() protoreflect.Message { 59 mi := &file_envoy_config_trace_v2_datadog_proto_msgTypes[0] 60 if protoimpl.UnsafeEnabled && x != nil { 61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 62 if ms.LoadMessageInfo() == nil { 63 ms.StoreMessageInfo(mi) 64 } 65 return ms 66 } 67 return mi.MessageOf(x) 68 } 69 70 // Deprecated: Use DatadogConfig.ProtoReflect.Descriptor instead. 71 func (*DatadogConfig) Descriptor() ([]byte, []int) { 72 return file_envoy_config_trace_v2_datadog_proto_rawDescGZIP(), []int{0} 73 } 74 75 func (x *DatadogConfig) GetCollectorCluster() string { 76 if x != nil { 77 return x.CollectorCluster 78 } 79 return "" 80 } 81 82 func (x *DatadogConfig) GetServiceName() string { 83 if x != nil { 84 return x.ServiceName 85 } 86 return "" 87 } 88 89 var File_envoy_config_trace_v2_datadog_proto protoreflect.FileDescriptor 90 91 var file_envoy_config_trace_v2_datadog_proto_rawDesc = []byte{ 92 0x0a, 0x23, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x74, 93 0x72, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x32, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 94 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 95 0x66, 0x69, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x32, 0x1a, 0x1d, 0x75, 0x64, 96 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 97 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 98 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 99 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x71, 0x0a, 0x0d, 0x44, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x43, 100 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x34, 0x0a, 0x11, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 101 0x6f, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 102 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x20, 0x01, 0x52, 0x10, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 103 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x0c, 0x73, 104 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 105 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x20, 0x01, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 106 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x3d, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 107 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 108 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x32, 0x42, 0x0c, 109 0x44, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 110 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 111 } 112 113 var ( 114 file_envoy_config_trace_v2_datadog_proto_rawDescOnce sync.Once 115 file_envoy_config_trace_v2_datadog_proto_rawDescData = file_envoy_config_trace_v2_datadog_proto_rawDesc 116 ) 117 118 func file_envoy_config_trace_v2_datadog_proto_rawDescGZIP() []byte { 119 file_envoy_config_trace_v2_datadog_proto_rawDescOnce.Do(func() { 120 file_envoy_config_trace_v2_datadog_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_trace_v2_datadog_proto_rawDescData) 121 }) 122 return file_envoy_config_trace_v2_datadog_proto_rawDescData 123 } 124 125 var file_envoy_config_trace_v2_datadog_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 126 var file_envoy_config_trace_v2_datadog_proto_goTypes = []interface{}{ 127 (*DatadogConfig)(nil), // 0: envoy.config.trace.v2.DatadogConfig 128 } 129 var file_envoy_config_trace_v2_datadog_proto_depIdxs = []int32{ 130 0, // [0:0] is the sub-list for method output_type 131 0, // [0:0] is the sub-list for method input_type 132 0, // [0:0] is the sub-list for extension type_name 133 0, // [0:0] is the sub-list for extension extendee 134 0, // [0:0] is the sub-list for field type_name 135 } 136 137 func init() { file_envoy_config_trace_v2_datadog_proto_init() } 138 func file_envoy_config_trace_v2_datadog_proto_init() { 139 if File_envoy_config_trace_v2_datadog_proto != nil { 140 return 141 } 142 if !protoimpl.UnsafeEnabled { 143 file_envoy_config_trace_v2_datadog_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 144 switch v := v.(*DatadogConfig); i { 145 case 0: 146 return &v.state 147 case 1: 148 return &v.sizeCache 149 case 2: 150 return &v.unknownFields 151 default: 152 return nil 153 } 154 } 155 } 156 type x struct{} 157 out := protoimpl.TypeBuilder{ 158 File: protoimpl.DescBuilder{ 159 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 160 RawDescriptor: file_envoy_config_trace_v2_datadog_proto_rawDesc, 161 NumEnums: 0, 162 NumMessages: 1, 163 NumExtensions: 0, 164 NumServices: 0, 165 }, 166 GoTypes: file_envoy_config_trace_v2_datadog_proto_goTypes, 167 DependencyIndexes: file_envoy_config_trace_v2_datadog_proto_depIdxs, 168 MessageInfos: file_envoy_config_trace_v2_datadog_proto_msgTypes, 169 }.Build() 170 File_envoy_config_trace_v2_datadog_proto = out.File 171 file_envoy_config_trace_v2_datadog_proto_rawDesc = nil 172 file_envoy_config_trace_v2_datadog_proto_goTypes = nil 173 file_envoy_config_trace_v2_datadog_proto_depIdxs = nil 174 }