1
2
3
4
5
6
7 package envoy_extensions_tracers_xray_v4alpha
8
9 import (
10 _ "github.com/cncf/udpa/go/udpa/annotations"
11 v4alpha "github.com/datawire/ambassador/v2/pkg/api/envoy/config/core/v4alpha"
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
23 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
24
25 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
26 )
27
28
29
30 const _ = proto.ProtoPackageIsVersion4
31
32 type XRayConfig struct {
33 state protoimpl.MessageState
34 sizeCache protoimpl.SizeCache
35 unknownFields protoimpl.UnknownFields
36
37
38
39 DaemonEndpoint *v4alpha.SocketAddress `protobuf:"bytes,1,opt,name=daemon_endpoint,json=daemonEndpoint,proto3" json:"daemon_endpoint,omitempty"`
40
41 SegmentName string `protobuf:"bytes,2,opt,name=segment_name,json=segmentName,proto3" json:"segment_name,omitempty"`
42
43
44
45
46 SamplingRuleManifest *v4alpha.DataSource `protobuf:"bytes,3,opt,name=sampling_rule_manifest,json=samplingRuleManifest,proto3" json:"sampling_rule_manifest,omitempty"`
47
48
49
50 SegmentFields *XRayConfig_SegmentFields `protobuf:"bytes,4,opt,name=segment_fields,json=segmentFields,proto3" json:"segment_fields,omitempty"`
51 }
52
53 func (x *XRayConfig) Reset() {
54 *x = XRayConfig{}
55 if protoimpl.UnsafeEnabled {
56 mi := &file_envoy_extensions_tracers_xray_v4alpha_xray_proto_msgTypes[0]
57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
58 ms.StoreMessageInfo(mi)
59 }
60 }
61
62 func (x *XRayConfig) String() string {
63 return protoimpl.X.MessageStringOf(x)
64 }
65
66 func (*XRayConfig) ProtoMessage() {}
67
68 func (x *XRayConfig) ProtoReflect() protoreflect.Message {
69 mi := &file_envoy_extensions_tracers_xray_v4alpha_xray_proto_msgTypes[0]
70 if protoimpl.UnsafeEnabled && x != nil {
71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
72 if ms.LoadMessageInfo() == nil {
73 ms.StoreMessageInfo(mi)
74 }
75 return ms
76 }
77 return mi.MessageOf(x)
78 }
79
80
81 func (*XRayConfig) Descriptor() ([]byte, []int) {
82 return file_envoy_extensions_tracers_xray_v4alpha_xray_proto_rawDescGZIP(), []int{0}
83 }
84
85 func (x *XRayConfig) GetDaemonEndpoint() *v4alpha.SocketAddress {
86 if x != nil {
87 return x.DaemonEndpoint
88 }
89 return nil
90 }
91
92 func (x *XRayConfig) GetSegmentName() string {
93 if x != nil {
94 return x.SegmentName
95 }
96 return ""
97 }
98
99 func (x *XRayConfig) GetSamplingRuleManifest() *v4alpha.DataSource {
100 if x != nil {
101 return x.SamplingRuleManifest
102 }
103 return nil
104 }
105
106 func (x *XRayConfig) GetSegmentFields() *XRayConfig_SegmentFields {
107 if x != nil {
108 return x.SegmentFields
109 }
110 return nil
111 }
112
113 type XRayConfig_SegmentFields struct {
114 state protoimpl.MessageState
115 sizeCache protoimpl.SizeCache
116 unknownFields protoimpl.UnknownFields
117
118
119 Origin string `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"`
120
121
122 Aws *_struct.Struct `protobuf:"bytes,2,opt,name=aws,proto3" json:"aws,omitempty"`
123 }
124
125 func (x *XRayConfig_SegmentFields) Reset() {
126 *x = XRayConfig_SegmentFields{}
127 if protoimpl.UnsafeEnabled {
128 mi := &file_envoy_extensions_tracers_xray_v4alpha_xray_proto_msgTypes[1]
129 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
130 ms.StoreMessageInfo(mi)
131 }
132 }
133
134 func (x *XRayConfig_SegmentFields) String() string {
135 return protoimpl.X.MessageStringOf(x)
136 }
137
138 func (*XRayConfig_SegmentFields) ProtoMessage() {}
139
140 func (x *XRayConfig_SegmentFields) ProtoReflect() protoreflect.Message {
141 mi := &file_envoy_extensions_tracers_xray_v4alpha_xray_proto_msgTypes[1]
142 if protoimpl.UnsafeEnabled && x != nil {
143 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
144 if ms.LoadMessageInfo() == nil {
145 ms.StoreMessageInfo(mi)
146 }
147 return ms
148 }
149 return mi.MessageOf(x)
150 }
151
152
153 func (*XRayConfig_SegmentFields) Descriptor() ([]byte, []int) {
154 return file_envoy_extensions_tracers_xray_v4alpha_xray_proto_rawDescGZIP(), []int{0, 0}
155 }
156
157 func (x *XRayConfig_SegmentFields) GetOrigin() string {
158 if x != nil {
159 return x.Origin
160 }
161 return ""
162 }
163
164 func (x *XRayConfig_SegmentFields) GetAws() *_struct.Struct {
165 if x != nil {
166 return x.Aws
167 }
168 return nil
169 }
170
171 var File_envoy_extensions_tracers_xray_v4alpha_xray_proto protoreflect.FileDescriptor
172
173 var file_envoy_extensions_tracers_xray_v4alpha_xray_proto_rawDesc = []byte{
174 0x0a, 0x30, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
175 0x6e, 0x73, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x72, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2f,
176 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f,
177 0x74, 0x6f, 0x12, 0x25, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
178 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x72, 0x73, 0x2e, 0x78, 0x72, 0x61,
179 0x79, 0x2e, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a, 0x27, 0x65, 0x6e, 0x76, 0x6f, 0x79,
180 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x61,
181 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f,
182 0x74, 0x6f, 0x1a, 0x24, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
183 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x62, 0x61,
184 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
185 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74,
186 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e,
187 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e,
188 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f,
189 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69,
190 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61,
191 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
192 0x6f, 0x22, 0x85, 0x04, 0x0a, 0x0a, 0x58, 0x52, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
193 0x12, 0x51, 0x0a, 0x0f, 0x64, 0x61, 0x65, 0x6d, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f,
194 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x65, 0x6e, 0x76, 0x6f,
195 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x34,
196 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72,
197 0x65, 0x73, 0x73, 0x52, 0x0e, 0x64, 0x61, 0x65, 0x6d, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x70, 0x6f,
198 0x69, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x0c, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6e,
199 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02,
200 0x10, 0x01, 0x52, 0x0b, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12,
201 0x5b, 0x0a, 0x16, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x75, 0x6c, 0x65,
202 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
203 0x25, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63,
204 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x61, 0x74, 0x61,
205 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x14, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67,
206 0x52, 0x75, 0x6c, 0x65, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x12, 0x66, 0x0a, 0x0e,
207 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x04,
208 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74,
209 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x72, 0x73, 0x2e,
210 0x78, 0x72, 0x61, 0x79, 0x2e, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x58, 0x52, 0x61,
211 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x46,
212 0x69, 0x65, 0x6c, 0x64, 0x73, 0x52, 0x0d, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x46, 0x69,
213 0x65, 0x6c, 0x64, 0x73, 0x1a, 0x89, 0x01, 0x0a, 0x0d, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74,
214 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e,
215 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x29,
216 0x0a, 0x03, 0x61, 0x77, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f,
217 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74,
218 0x72, 0x75, 0x63, 0x74, 0x52, 0x03, 0x61, 0x77, 0x73, 0x3a, 0x35, 0x9a, 0xc5, 0x88, 0x1e, 0x30,
219 0x0a, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74,
220 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x58, 0x52, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x66,
221 0x69, 0x67, 0x2e, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73,
222 0x3a, 0x27, 0x9a, 0xc5, 0x88, 0x1e, 0x22, 0x0a, 0x20, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63,
223 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x58,
224 0x52, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x4a, 0x0a, 0x33, 0x69, 0x6f, 0x2e,
225 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79,
226 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x74, 0x72, 0x61, 0x63,
227 0x65, 0x72, 0x73, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61,
228 0x42, 0x09, 0x58, 0x72, 0x61, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8,
229 0xd1, 0x06, 0x02, 0x10, 0x03, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
230 }
231
232 var (
233 file_envoy_extensions_tracers_xray_v4alpha_xray_proto_rawDescOnce sync.Once
234 file_envoy_extensions_tracers_xray_v4alpha_xray_proto_rawDescData = file_envoy_extensions_tracers_xray_v4alpha_xray_proto_rawDesc
235 )
236
237 func file_envoy_extensions_tracers_xray_v4alpha_xray_proto_rawDescGZIP() []byte {
238 file_envoy_extensions_tracers_xray_v4alpha_xray_proto_rawDescOnce.Do(func() {
239 file_envoy_extensions_tracers_xray_v4alpha_xray_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_tracers_xray_v4alpha_xray_proto_rawDescData)
240 })
241 return file_envoy_extensions_tracers_xray_v4alpha_xray_proto_rawDescData
242 }
243
244 var file_envoy_extensions_tracers_xray_v4alpha_xray_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
245 var file_envoy_extensions_tracers_xray_v4alpha_xray_proto_goTypes = []interface{}{
246 (*XRayConfig)(nil),
247 (*XRayConfig_SegmentFields)(nil),
248 (*v4alpha.SocketAddress)(nil),
249 (*v4alpha.DataSource)(nil),
250 (*_struct.Struct)(nil),
251 }
252 var file_envoy_extensions_tracers_xray_v4alpha_xray_proto_depIdxs = []int32{
253 2,
254 3,
255 1,
256 4,
257 4,
258 4,
259 4,
260 4,
261 0,
262 }
263
264 func init() { file_envoy_extensions_tracers_xray_v4alpha_xray_proto_init() }
265 func file_envoy_extensions_tracers_xray_v4alpha_xray_proto_init() {
266 if File_envoy_extensions_tracers_xray_v4alpha_xray_proto != nil {
267 return
268 }
269 if !protoimpl.UnsafeEnabled {
270 file_envoy_extensions_tracers_xray_v4alpha_xray_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
271 switch v := v.(*XRayConfig); i {
272 case 0:
273 return &v.state
274 case 1:
275 return &v.sizeCache
276 case 2:
277 return &v.unknownFields
278 default:
279 return nil
280 }
281 }
282 file_envoy_extensions_tracers_xray_v4alpha_xray_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
283 switch v := v.(*XRayConfig_SegmentFields); i {
284 case 0:
285 return &v.state
286 case 1:
287 return &v.sizeCache
288 case 2:
289 return &v.unknownFields
290 default:
291 return nil
292 }
293 }
294 }
295 type x struct{}
296 out := protoimpl.TypeBuilder{
297 File: protoimpl.DescBuilder{
298 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
299 RawDescriptor: file_envoy_extensions_tracers_xray_v4alpha_xray_proto_rawDesc,
300 NumEnums: 0,
301 NumMessages: 2,
302 NumExtensions: 0,
303 NumServices: 0,
304 },
305 GoTypes: file_envoy_extensions_tracers_xray_v4alpha_xray_proto_goTypes,
306 DependencyIndexes: file_envoy_extensions_tracers_xray_v4alpha_xray_proto_depIdxs,
307 MessageInfos: file_envoy_extensions_tracers_xray_v4alpha_xray_proto_msgTypes,
308 }.Build()
309 File_envoy_extensions_tracers_xray_v4alpha_xray_proto = out.File
310 file_envoy_extensions_tracers_xray_v4alpha_xray_proto_rawDesc = nil
311 file_envoy_extensions_tracers_xray_v4alpha_xray_proto_goTypes = nil
312 file_envoy_extensions_tracers_xray_v4alpha_xray_proto_depIdxs = nil
313 }
314
View as plain text