1
2
3
4
5
6
7 package envoy_extensions_tracers_lightstep_v4alpha
8
9 import (
10 _ "github.com/cncf/udpa/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
21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
22
23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
24 )
25
26
27
28 const _ = proto.ProtoPackageIsVersion4
29
30
31 type LightstepConfig_PropagationMode int32
32
33 const (
34
35 LightstepConfig_ENVOY LightstepConfig_PropagationMode = 0
36
37 LightstepConfig_LIGHTSTEP LightstepConfig_PropagationMode = 1
38
39 LightstepConfig_B3 LightstepConfig_PropagationMode = 2
40
41 LightstepConfig_TRACE_CONTEXT LightstepConfig_PropagationMode = 3
42 )
43
44
45 var (
46 LightstepConfig_PropagationMode_name = map[int32]string{
47 0: "ENVOY",
48 1: "LIGHTSTEP",
49 2: "B3",
50 3: "TRACE_CONTEXT",
51 }
52 LightstepConfig_PropagationMode_value = map[string]int32{
53 "ENVOY": 0,
54 "LIGHTSTEP": 1,
55 "B3": 2,
56 "TRACE_CONTEXT": 3,
57 }
58 )
59
60 func (x LightstepConfig_PropagationMode) Enum() *LightstepConfig_PropagationMode {
61 p := new(LightstepConfig_PropagationMode)
62 *p = x
63 return p
64 }
65
66 func (x LightstepConfig_PropagationMode) String() string {
67 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
68 }
69
70 func (LightstepConfig_PropagationMode) Descriptor() protoreflect.EnumDescriptor {
71 return file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_enumTypes[0].Descriptor()
72 }
73
74 func (LightstepConfig_PropagationMode) Type() protoreflect.EnumType {
75 return &file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_enumTypes[0]
76 }
77
78 func (x LightstepConfig_PropagationMode) Number() protoreflect.EnumNumber {
79 return protoreflect.EnumNumber(x)
80 }
81
82
83 func (LightstepConfig_PropagationMode) EnumDescriptor() ([]byte, []int) {
84 return file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_rawDescGZIP(), []int{0, 0}
85 }
86
87
88
89 type LightstepConfig struct {
90 state protoimpl.MessageState
91 sizeCache protoimpl.SizeCache
92 unknownFields protoimpl.UnknownFields
93
94
95 CollectorCluster string `protobuf:"bytes,1,opt,name=collector_cluster,json=collectorCluster,proto3" json:"collector_cluster,omitempty"`
96
97
98 AccessTokenFile string `protobuf:"bytes,2,opt,name=access_token_file,json=accessTokenFile,proto3" json:"access_token_file,omitempty"`
99
100 PropagationModes []LightstepConfig_PropagationMode `protobuf:"varint,3,rep,packed,name=propagation_modes,json=propagationModes,proto3,enum=envoy.extensions.tracers.lightstep.v4alpha.LightstepConfig_PropagationMode" json:"propagation_modes,omitempty"`
101 }
102
103 func (x *LightstepConfig) Reset() {
104 *x = LightstepConfig{}
105 if protoimpl.UnsafeEnabled {
106 mi := &file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_msgTypes[0]
107 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
108 ms.StoreMessageInfo(mi)
109 }
110 }
111
112 func (x *LightstepConfig) String() string {
113 return protoimpl.X.MessageStringOf(x)
114 }
115
116 func (*LightstepConfig) ProtoMessage() {}
117
118 func (x *LightstepConfig) ProtoReflect() protoreflect.Message {
119 mi := &file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_msgTypes[0]
120 if protoimpl.UnsafeEnabled && x != nil {
121 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
122 if ms.LoadMessageInfo() == nil {
123 ms.StoreMessageInfo(mi)
124 }
125 return ms
126 }
127 return mi.MessageOf(x)
128 }
129
130
131 func (*LightstepConfig) Descriptor() ([]byte, []int) {
132 return file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_rawDescGZIP(), []int{0}
133 }
134
135 func (x *LightstepConfig) GetCollectorCluster() string {
136 if x != nil {
137 return x.CollectorCluster
138 }
139 return ""
140 }
141
142 func (x *LightstepConfig) GetAccessTokenFile() string {
143 if x != nil {
144 return x.AccessTokenFile
145 }
146 return ""
147 }
148
149 func (x *LightstepConfig) GetPropagationModes() []LightstepConfig_PropagationMode {
150 if x != nil {
151 return x.PropagationModes
152 }
153 return nil
154 }
155
156 var File_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto protoreflect.FileDescriptor
157
158 var file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_rawDesc = []byte{
159 0x0a, 0x3a, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
160 0x6e, 0x73, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x72, 0x73, 0x2f, 0x6c, 0x69, 0x67, 0x68, 0x74,
161 0x73, 0x74, 0x65, 0x70, 0x2f, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x6c, 0x69, 0x67,
162 0x68, 0x74, 0x73, 0x74, 0x65, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x2a, 0x65, 0x6e,
163 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x74,
164 0x72, 0x61, 0x63, 0x65, 0x72, 0x73, 0x2e, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x73, 0x74, 0x65, 0x70,
165 0x2e, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61,
166 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75,
167 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e,
168 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
169 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69,
170 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72,
171 0x6f, 0x74, 0x6f, 0x22, 0xfc, 0x02, 0x0a, 0x0f, 0x4c, 0x69, 0x67, 0x68, 0x74, 0x73, 0x74, 0x65,
172 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x34, 0x0a, 0x11, 0x63, 0x6f, 0x6c, 0x6c, 0x65,
173 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01,
174 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x10, 0x63, 0x6f, 0x6c,
175 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x33, 0x0a,
176 0x11, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x66, 0x69,
177 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10,
178 0x01, 0x52, 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x46, 0x69,
179 0x6c, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61, 0x74, 0x69,
180 0x6f, 0x6e, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x4b,
181 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
182 0x73, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x72, 0x73, 0x2e, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x73,
183 0x74, 0x65, 0x70, 0x2e, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x67, 0x68,
184 0x74, 0x73, 0x74, 0x65, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x50, 0x72, 0x6f, 0x70,
185 0x61, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x42, 0x0d, 0xfa, 0x42, 0x0a,
186 0x92, 0x01, 0x07, 0x22, 0x05, 0x82, 0x01, 0x02, 0x10, 0x01, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x70,
187 0x61, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x46, 0x0a, 0x0f,
188 0x50, 0x72, 0x6f, 0x70, 0x61, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x12,
189 0x09, 0x0a, 0x05, 0x45, 0x4e, 0x56, 0x4f, 0x59, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x4c, 0x49,
190 0x47, 0x48, 0x54, 0x53, 0x54, 0x45, 0x50, 0x10, 0x01, 0x12, 0x06, 0x0a, 0x02, 0x42, 0x33, 0x10,
191 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x54, 0x52, 0x41, 0x43, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x45,
192 0x58, 0x54, 0x10, 0x03, 0x3a, 0x2c, 0x9a, 0xc5, 0x88, 0x1e, 0x27, 0x0a, 0x25, 0x65, 0x6e, 0x76,
193 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e,
194 0x76, 0x33, 0x2e, 0x4c, 0x69, 0x67, 0x68, 0x74, 0x73, 0x74, 0x65, 0x70, 0x43, 0x6f, 0x6e, 0x66,
195 0x69, 0x67, 0x42, 0x54, 0x0a, 0x38, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72,
196 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
197 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x72, 0x73, 0x2e, 0x6c, 0x69, 0x67,
198 0x68, 0x74, 0x73, 0x74, 0x65, 0x70, 0x2e, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x0e,
199 0x4c, 0x69, 0x67, 0x68, 0x74, 0x73, 0x74, 0x65, 0x70, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
200 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x03, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
201 }
202
203 var (
204 file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_rawDescOnce sync.Once
205 file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_rawDescData = file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_rawDesc
206 )
207
208 func file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_rawDescGZIP() []byte {
209 file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_rawDescOnce.Do(func() {
210 file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_rawDescData)
211 })
212 return file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_rawDescData
213 }
214
215 var file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
216 var file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
217 var file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_goTypes = []interface{}{
218 (LightstepConfig_PropagationMode)(0),
219 (*LightstepConfig)(nil),
220 }
221 var file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_depIdxs = []int32{
222 0,
223 1,
224 1,
225 1,
226 1,
227 0,
228 }
229
230 func init() { file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_init() }
231 func file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_init() {
232 if File_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto != nil {
233 return
234 }
235 if !protoimpl.UnsafeEnabled {
236 file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
237 switch v := v.(*LightstepConfig); i {
238 case 0:
239 return &v.state
240 case 1:
241 return &v.sizeCache
242 case 2:
243 return &v.unknownFields
244 default:
245 return nil
246 }
247 }
248 }
249 type x struct{}
250 out := protoimpl.TypeBuilder{
251 File: protoimpl.DescBuilder{
252 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
253 RawDescriptor: file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_rawDesc,
254 NumEnums: 1,
255 NumMessages: 1,
256 NumExtensions: 0,
257 NumServices: 0,
258 },
259 GoTypes: file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_goTypes,
260 DependencyIndexes: file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_depIdxs,
261 EnumInfos: file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_enumTypes,
262 MessageInfos: file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_msgTypes,
263 }.Build()
264 File_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto = out.File
265 file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_rawDesc = nil
266 file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_goTypes = nil
267 file_envoy_extensions_tracers_lightstep_v4alpha_lightstep_proto_depIdxs = nil
268 }
269
View as plain text