| 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/lightstep.proto |
| 6 |
|
| 7 |
package tracev2 |
| 8 |
|
| 9 |
import ( |
| 10 |
_ "github.com/cncf/xds/go/udpa/annotations" |
| 11 |
_ "github.com/envoyproxy/protoc-gen-validate/validate" |
| 12 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 13 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 14 |
reflect "reflect" |
| 15 |
sync "sync" |
| 16 |
) |
| 17 |
|
| 18 |
const ( |
| 19 |
// Verify that this generated code is sufficiently up-to-date. |
| 20 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 21 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 22 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 23 |
) |
| 24 |
|
| 25 |
// Available propagation modes |
| 26 |
type LightstepConfig_PropagationMode int32 |
| 27 |
|
| 28 |
const ( |
| 29 |
// Propagate trace context in the single header x-ot-span-context. |
| 30 |
LightstepConfig_ENVOY LightstepConfig_PropagationMode = 0 |
| 31 |
// Propagate trace context using LightStep's native format. |
| 32 |
LightstepConfig_LIGHTSTEP LightstepConfig_PropagationMode = 1 |
| 33 |
// Propagate trace context using the b3 format. |
| 34 |
LightstepConfig_B3 LightstepConfig_PropagationMode = 2 |
| 35 |
// Propagation trace context using the w3 trace-context standard. |
| 36 |
LightstepConfig_TRACE_CONTEXT LightstepConfig_PropagationMode = 3 |
| 37 |
) |
| 38 |
|
| 39 |
// Enum value maps for LightstepConfig_PropagationMode. |
| 40 |
var ( |
| 41 |
LightstepConfig_PropagationMode_name = map[int32]string{ |
| 42 |
0: "ENVOY", |
| 43 |
1: "LIGHTSTEP", |
| 44 |
2: "B3", |
| 45 |
3: "TRACE_CONTEXT", |
| 46 |
} |
| 47 |
LightstepConfig_PropagationMode_value = map[string]int32{ |
| 48 |
"ENVOY": 0, |
| 49 |
"LIGHTSTEP": 1, |
| 50 |
"B3": 2, |
| 51 |
"TRACE_CONTEXT": 3, |
| 52 |
} |
| 53 |
) |
| 54 |
|
| 55 |
func (x LightstepConfig_PropagationMode) Enum() *LightstepConfig_PropagationMode { |
| 56 |
p := new(LightstepConfig_PropagationMode) |
| 57 |
*p = x |
| 58 |
return p |
| 59 |
} |
| 60 |
|
| 61 |
func (x LightstepConfig_PropagationMode) String() string { |
| 62 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 63 |
} |
| 64 |
|
| 65 |
func (LightstepConfig_PropagationMode) Descriptor() protoreflect.EnumDescriptor { |
| 66 |
return file_envoy_config_trace_v2_lightstep_proto_enumTypes[0].Descriptor() |
| 67 |
} |
| 68 |
|
| 69 |
func (LightstepConfig_PropagationMode) Type() protoreflect.EnumType { |
| 70 |
return &file_envoy_config_trace_v2_lightstep_proto_enumTypes[0] |
| 71 |
} |
| 72 |
|
| 73 |
func (x LightstepConfig_PropagationMode) Number() protoreflect.EnumNumber { |
| 74 |
return protoreflect.EnumNumber(x) |
| 75 |
} |
| 76 |
|
| 77 |
// Deprecated: Use LightstepConfig_PropagationMode.Descriptor instead. |
| 78 |
func (LightstepConfig_PropagationMode) EnumDescriptor() ([]byte, []int) { |
| 79 |
return file_envoy_config_trace_v2_lightstep_proto_rawDescGZIP(), []int{0, 0} |
| 80 |
} |
| 81 |
|
| 82 |
// Configuration for the LightStep tracer. |
| 83 |
// [#extension: envoy.tracers.lightstep] |
| 84 |
type LightstepConfig struct { |
| 85 |
state protoimpl.MessageState |
| 86 |
sizeCache protoimpl.SizeCache |
| 87 |
unknownFields protoimpl.UnknownFields |
| 88 |
|
| 89 |
// The cluster manager cluster that hosts the LightStep collectors. |
| 90 |
CollectorCluster string `protobuf:"bytes,1,opt,name=collector_cluster,json=collectorCluster,proto3" json:"collector_cluster,omitempty"` |
| 91 |
// File containing the access token to the `LightStep |
| 92 |
// <https://lightstep.com/>`_ API. |
| 93 |
AccessTokenFile string `protobuf:"bytes,2,opt,name=access_token_file,json=accessTokenFile,proto3" json:"access_token_file,omitempty"` |
| 94 |
// Propagation modes to use by LightStep's tracer. |
| 95 |
PropagationModes []LightstepConfig_PropagationMode `protobuf:"varint,3,rep,packed,name=propagation_modes,json=propagationModes,proto3,enum=envoy.config.trace.v2.LightstepConfig_PropagationMode" json:"propagation_modes,omitempty"` |
| 96 |
} |
| 97 |
|
| 98 |
func (x *LightstepConfig) Reset() { |
| 99 |
*x = LightstepConfig{} |
| 100 |
if protoimpl.UnsafeEnabled { |
| 101 |
mi := &file_envoy_config_trace_v2_lightstep_proto_msgTypes[0] |
| 102 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 103 |
ms.StoreMessageInfo(mi) |
| 104 |
} |
| 105 |
} |
| 106 |
|
| 107 |
func (x *LightstepConfig) String() string { |
| 108 |
return protoimpl.X.MessageStringOf(x) |
| 109 |
} |
| 110 |
|
| 111 |
func (*LightstepConfig) ProtoMessage() {} |
| 112 |
|
| 113 |
func (x *LightstepConfig) ProtoReflect() protoreflect.Message { |
| 114 |
mi := &file_envoy_config_trace_v2_lightstep_proto_msgTypes[0] |
| 115 |
if protoimpl.UnsafeEnabled && x != nil { |
| 116 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 117 |
if ms.LoadMessageInfo() == nil { |
| 118 |
ms.StoreMessageInfo(mi) |
| 119 |
} |
| 120 |
return ms |
| 121 |
} |
| 122 |
return mi.MessageOf(x) |
| 123 |
} |
| 124 |
|
| 125 |
// Deprecated: Use LightstepConfig.ProtoReflect.Descriptor instead. |
| 126 |
func (*LightstepConfig) Descriptor() ([]byte, []int) { |
| 127 |
return file_envoy_config_trace_v2_lightstep_proto_rawDescGZIP(), []int{0} |
| 128 |
} |
| 129 |
|
| 130 |
func (x *LightstepConfig) GetCollectorCluster() string { |
| 131 |
if x != nil { |
| 132 |
return x.CollectorCluster |
| 133 |
} |
| 134 |
return "" |
| 135 |
} |
| 136 |
|
| 137 |
func (x *LightstepConfig) GetAccessTokenFile() string { |
| 138 |
if x != nil { |
| 139 |
return x.AccessTokenFile |
| 140 |
} |
| 141 |
return "" |
| 142 |
} |
| 143 |
|
| 144 |
func (x *LightstepConfig) GetPropagationModes() []LightstepConfig_PropagationMode { |
| 145 |
if x != nil { |
| 146 |
return x.PropagationModes |
| 147 |
} |
| 148 |
return nil |
| 149 |
} |
| 150 |
|
| 151 |
var File_envoy_config_trace_v2_lightstep_proto protoreflect.FileDescriptor |
| 152 |
|
| 153 |
var file_envoy_config_trace_v2_lightstep_proto_rawDesc = []byte{ |
| 154 |
0x0a, 0x25, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x74, |
| 155 |
0x72, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x32, 0x2f, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x73, 0x74, 0x65, |
| 156 |
0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, |
| 157 |
0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x32, 0x1a, 0x1d, |
| 158 |
0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, |
| 159 |
0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, |
| 160 |
0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, |
| 161 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb8, 0x02, 0x0a, 0x0f, 0x4c, 0x69, 0x67, 0x68, 0x74, |
| 162 |
0x73, 0x74, 0x65, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x34, 0x0a, 0x11, 0x63, 0x6f, |
| 163 |
0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, |
| 164 |
0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x20, 0x01, 0x52, 0x10, |
| 165 |
0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, |
| 166 |
0x12, 0x33, 0x0a, 0x11, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, |
| 167 |
0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, |
| 168 |
0x72, 0x02, 0x20, 0x01, 0x52, 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, |
| 169 |
0x6e, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x72, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61, |
| 170 |
0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0e, |
| 171 |
0x32, 0x36, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, |
| 172 |
0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x67, 0x68, 0x74, 0x73, 0x74, |
| 173 |
0x65, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61, |
| 174 |
0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x42, 0x0d, 0xfa, 0x42, 0x0a, 0x92, 0x01, 0x07, |
| 175 |
0x22, 0x05, 0x82, 0x01, 0x02, 0x10, 0x01, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61, |
| 176 |
0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x46, 0x0a, 0x0f, 0x50, 0x72, 0x6f, |
| 177 |
0x70, 0x61, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x09, 0x0a, 0x05, |
| 178 |
0x45, 0x4e, 0x56, 0x4f, 0x59, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x4c, 0x49, 0x47, 0x48, 0x54, |
| 179 |
0x53, 0x54, 0x45, 0x50, 0x10, 0x01, 0x12, 0x06, 0x0a, 0x02, 0x42, 0x33, 0x10, 0x02, 0x12, 0x11, |
| 180 |
0x0a, 0x0d, 0x54, 0x52, 0x41, 0x43, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x58, 0x54, 0x10, |
| 181 |
0x03, 0x42, 0x85, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x01, 0x0a, 0x23, 0x69, 0x6f, |
| 182 |
0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, |
| 183 |
0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, |
| 184 |
0x32, 0x42, 0x0e, 0x4c, 0x69, 0x67, 0x68, 0x74, 0x73, 0x74, 0x65, 0x70, 0x50, 0x72, 0x6f, 0x74, |
| 185 |
0x6f, 0x50, 0x01, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, |
| 186 |
0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, |
| 187 |
0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, |
| 188 |
0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2f, 0x76, |
| 189 |
0x32, 0x3b, 0x74, 0x72, 0x61, 0x63, 0x65, 0x76, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 190 |
0x33, |
| 191 |
} |
| 192 |
|
| 193 |
var ( |
| 194 |
file_envoy_config_trace_v2_lightstep_proto_rawDescOnce sync.Once |
| 195 |
file_envoy_config_trace_v2_lightstep_proto_rawDescData = file_envoy_config_trace_v2_lightstep_proto_rawDesc |
| 196 |
) |
| 197 |
|
| 198 |
func file_envoy_config_trace_v2_lightstep_proto_rawDescGZIP() []byte { |
| 199 |
file_envoy_config_trace_v2_lightstep_proto_rawDescOnce.Do(func() { |
| 200 |
file_envoy_config_trace_v2_lightstep_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_trace_v2_lightstep_proto_rawDescData) |
| 201 |
}) |
| 202 |
return file_envoy_config_trace_v2_lightstep_proto_rawDescData |
| 203 |
} |
| 204 |
|
| 205 |
var file_envoy_config_trace_v2_lightstep_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 206 |
var file_envoy_config_trace_v2_lightstep_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 207 |
var file_envoy_config_trace_v2_lightstep_proto_goTypes = []interface{}{ |
| 208 |
(LightstepConfig_PropagationMode)(0), // 0: envoy.config.trace.v2.LightstepConfig.PropagationMode |
| 209 |
(*LightstepConfig)(nil), // 1: envoy.config.trace.v2.LightstepConfig |
| 210 |
} |
| 211 |
var file_envoy_config_trace_v2_lightstep_proto_depIdxs = []int32{ |
| 212 |
0, // 0: envoy.config.trace.v2.LightstepConfig.propagation_modes:type_name -> envoy.config.trace.v2.LightstepConfig.PropagationMode |
| 213 |
1, // [1:1] is the sub-list for method output_type |
| 214 |
1, // [1:1] is the sub-list for method input_type |
| 215 |
1, // [1:1] is the sub-list for extension type_name |
| 216 |
1, // [1:1] is the sub-list for extension extendee |
| 217 |
0, // [0:1] is the sub-list for field type_name |
| 218 |
} |
| 219 |
|
| 220 |
func init() { file_envoy_config_trace_v2_lightstep_proto_init() } |
| 221 |
func file_envoy_config_trace_v2_lightstep_proto_init() { |
| 222 |
if File_envoy_config_trace_v2_lightstep_proto != nil { |
| 223 |
return |
| 224 |
} |
| 225 |
if !protoimpl.UnsafeEnabled { |
| 226 |
file_envoy_config_trace_v2_lightstep_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 227 |
switch v := v.(*LightstepConfig); i { |
| 228 |
case 0: |
| 229 |
return &v.state |
| 230 |
case 1: |
| 231 |
return &v.sizeCache |
| 232 |
case 2: |
| 233 |
return &v.unknownFields |
| 234 |
default: |
| 235 |
return nil |
| 236 |
} |
| 237 |
} |
| 238 |
} |
| 239 |
type x struct{} |
| 240 |
out := protoimpl.TypeBuilder{ |
| 241 |
File: protoimpl.DescBuilder{ |
| 242 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 243 |
RawDescriptor: file_envoy_config_trace_v2_lightstep_proto_rawDesc, |
| 244 |
NumEnums: 1, |
| 245 |
NumMessages: 1, |
| 246 |
NumExtensions: 0, |
| 247 |
NumServices: 0, |
| 248 |
}, |
| 249 |
GoTypes: file_envoy_config_trace_v2_lightstep_proto_goTypes, |
| 250 |
DependencyIndexes: file_envoy_config_trace_v2_lightstep_proto_depIdxs, |
| 251 |
EnumInfos: file_envoy_config_trace_v2_lightstep_proto_enumTypes, |
| 252 |
MessageInfos: file_envoy_config_trace_v2_lightstep_proto_msgTypes, |
| 253 |
}.Build() |
| 254 |
File_envoy_config_trace_v2_lightstep_proto = out.File |
| 255 |
file_envoy_config_trace_v2_lightstep_proto_rawDesc = nil |
| 256 |
file_envoy_config_trace_v2_lightstep_proto_goTypes = nil |
| 257 |
file_envoy_config_trace_v2_lightstep_proto_depIdxs = nil |
| 258 |
} |