1
2
3
4
5
6
7 package envoy_config_trace_v3
8
9 import (
10 _ "github.com/cncf/udpa/go/udpa/annotations"
11 v3 "github.com/datawire/ambassador/v2/pkg/api/envoy/config/core/v3"
12 _ "github.com/envoyproxy/protoc-gen-validate/validate"
13 proto "github.com/golang/protobuf/proto"
14 wrappers "github.com/golang/protobuf/ptypes/wrappers"
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
33
34
35
36
37
38 type SkyWalkingConfig struct {
39 state protoimpl.MessageState
40 sizeCache protoimpl.SizeCache
41 unknownFields protoimpl.UnknownFields
42
43
44 GrpcService *v3.GrpcService `protobuf:"bytes,1,opt,name=grpc_service,json=grpcService,proto3" json:"grpc_service,omitempty"`
45 ClientConfig *ClientConfig `protobuf:"bytes,2,opt,name=client_config,json=clientConfig,proto3" json:"client_config,omitempty"`
46 }
47
48 func (x *SkyWalkingConfig) Reset() {
49 *x = SkyWalkingConfig{}
50 if protoimpl.UnsafeEnabled {
51 mi := &file_envoy_config_trace_v3_skywalking_proto_msgTypes[0]
52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
53 ms.StoreMessageInfo(mi)
54 }
55 }
56
57 func (x *SkyWalkingConfig) String() string {
58 return protoimpl.X.MessageStringOf(x)
59 }
60
61 func (*SkyWalkingConfig) ProtoMessage() {}
62
63 func (x *SkyWalkingConfig) ProtoReflect() protoreflect.Message {
64 mi := &file_envoy_config_trace_v3_skywalking_proto_msgTypes[0]
65 if protoimpl.UnsafeEnabled && x != nil {
66 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
67 if ms.LoadMessageInfo() == nil {
68 ms.StoreMessageInfo(mi)
69 }
70 return ms
71 }
72 return mi.MessageOf(x)
73 }
74
75
76 func (*SkyWalkingConfig) Descriptor() ([]byte, []int) {
77 return file_envoy_config_trace_v3_skywalking_proto_rawDescGZIP(), []int{0}
78 }
79
80 func (x *SkyWalkingConfig) GetGrpcService() *v3.GrpcService {
81 if x != nil {
82 return x.GrpcService
83 }
84 return nil
85 }
86
87 func (x *SkyWalkingConfig) GetClientConfig() *ClientConfig {
88 if x != nil {
89 return x.ClientConfig
90 }
91 return nil
92 }
93
94
95 type ClientConfig struct {
96 state protoimpl.MessageState
97 sizeCache protoimpl.SizeCache
98 unknownFields protoimpl.UnknownFields
99
100
101
102
103
104
105 ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
106
107
108
109
110
111 InstanceName string `protobuf:"bytes,2,opt,name=instance_name,json=instanceName,proto3" json:"instance_name,omitempty"`
112
113
114
115
116
117
118
119 BackendTokenSpecifier isClientConfig_BackendTokenSpecifier `protobuf_oneof:"backend_token_specifier"`
120
121
122
123 MaxCacheSize *wrappers.UInt32Value `protobuf:"bytes,4,opt,name=max_cache_size,json=maxCacheSize,proto3" json:"max_cache_size,omitempty"`
124 }
125
126 func (x *ClientConfig) Reset() {
127 *x = ClientConfig{}
128 if protoimpl.UnsafeEnabled {
129 mi := &file_envoy_config_trace_v3_skywalking_proto_msgTypes[1]
130 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
131 ms.StoreMessageInfo(mi)
132 }
133 }
134
135 func (x *ClientConfig) String() string {
136 return protoimpl.X.MessageStringOf(x)
137 }
138
139 func (*ClientConfig) ProtoMessage() {}
140
141 func (x *ClientConfig) ProtoReflect() protoreflect.Message {
142 mi := &file_envoy_config_trace_v3_skywalking_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
154 func (*ClientConfig) Descriptor() ([]byte, []int) {
155 return file_envoy_config_trace_v3_skywalking_proto_rawDescGZIP(), []int{1}
156 }
157
158 func (x *ClientConfig) GetServiceName() string {
159 if x != nil {
160 return x.ServiceName
161 }
162 return ""
163 }
164
165 func (x *ClientConfig) GetInstanceName() string {
166 if x != nil {
167 return x.InstanceName
168 }
169 return ""
170 }
171
172 func (m *ClientConfig) GetBackendTokenSpecifier() isClientConfig_BackendTokenSpecifier {
173 if m != nil {
174 return m.BackendTokenSpecifier
175 }
176 return nil
177 }
178
179 func (x *ClientConfig) GetBackendToken() string {
180 if x, ok := x.GetBackendTokenSpecifier().(*ClientConfig_BackendToken); ok {
181 return x.BackendToken
182 }
183 return ""
184 }
185
186 func (x *ClientConfig) GetMaxCacheSize() *wrappers.UInt32Value {
187 if x != nil {
188 return x.MaxCacheSize
189 }
190 return nil
191 }
192
193 type isClientConfig_BackendTokenSpecifier interface {
194 isClientConfig_BackendTokenSpecifier()
195 }
196
197 type ClientConfig_BackendToken struct {
198
199 BackendToken string `protobuf:"bytes,3,opt,name=backend_token,json=backendToken,proto3,oneof"`
200 }
201
202 func (*ClientConfig_BackendToken) isClientConfig_BackendTokenSpecifier() {}
203
204 var File_envoy_config_trace_v3_skywalking_proto protoreflect.FileDescriptor
205
206 var file_envoy_config_trace_v3_skywalking_proto_rawDesc = []byte{
207 0x0a, 0x26, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x74,
208 0x72, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69,
209 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e,
210 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x33, 0x1a,
211 0x27, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f,
212 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69,
213 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
214 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65,
215 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61,
216 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61,
217 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61,
218 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x65, 0x6e, 0x73, 0x69,
219 0x74, 0x69, 0x76, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61,
220 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61,
221 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x75, 0x64, 0x70, 0x61, 0x2f,
222 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x73,
223 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61,
224 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e,
225 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xac, 0x01, 0x0a, 0x10, 0x53, 0x6b, 0x79, 0x57, 0x61, 0x6c,
226 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4e, 0x0a, 0x0c, 0x67, 0x72,
227 0x70, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
228 0x32, 0x21, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
229 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x47, 0x72, 0x70, 0x63, 0x53, 0x65, 0x72, 0x76,
230 0x69, 0x63, 0x65, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, 0x0b, 0x67,
231 0x72, 0x70, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x0d, 0x63, 0x6c,
232 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28,
233 0x0b, 0x32, 0x23, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
234 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74,
235 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f,
236 0x6e, 0x66, 0x69, 0x67, 0x22, 0xe4, 0x01, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43,
237 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
238 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72,
239 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x73, 0x74,
240 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
241 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a,
242 0x0d, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03,
243 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xb8, 0xb7, 0x8b, 0xa4, 0x02, 0x01, 0x48, 0x00, 0x52, 0x0c,
244 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x42, 0x0a, 0x0e,
245 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04,
246 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
247 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c,
248 0x75, 0x65, 0x52, 0x0c, 0x6d, 0x61, 0x78, 0x43, 0x61, 0x63, 0x68, 0x65, 0x53, 0x69, 0x7a, 0x65,
249 0x42, 0x19, 0x0a, 0x17, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65,
250 0x6e, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x72, 0x42, 0x73, 0x0a, 0x23, 0x69,
251 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76,
252 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e,
253 0x76, 0x33, 0x42, 0x0f, 0x53, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67, 0x50, 0x72,
254 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xf2, 0x98, 0xfe, 0x8f, 0x05, 0x2d, 0x12, 0x2b, 0x65, 0x6e, 0x76,
255 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x74, 0x72,
256 0x61, 0x63, 0x65, 0x72, 0x73, 0x2e, 0x73, 0x6b, 0x79, 0x77, 0x61, 0x6c, 0x6b, 0x69, 0x6e, 0x67,
257 0x2e, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02,
258 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
259 }
260
261 var (
262 file_envoy_config_trace_v3_skywalking_proto_rawDescOnce sync.Once
263 file_envoy_config_trace_v3_skywalking_proto_rawDescData = file_envoy_config_trace_v3_skywalking_proto_rawDesc
264 )
265
266 func file_envoy_config_trace_v3_skywalking_proto_rawDescGZIP() []byte {
267 file_envoy_config_trace_v3_skywalking_proto_rawDescOnce.Do(func() {
268 file_envoy_config_trace_v3_skywalking_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_trace_v3_skywalking_proto_rawDescData)
269 })
270 return file_envoy_config_trace_v3_skywalking_proto_rawDescData
271 }
272
273 var file_envoy_config_trace_v3_skywalking_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
274 var file_envoy_config_trace_v3_skywalking_proto_goTypes = []interface{}{
275 (*SkyWalkingConfig)(nil),
276 (*ClientConfig)(nil),
277 (*v3.GrpcService)(nil),
278 (*wrappers.UInt32Value)(nil),
279 }
280 var file_envoy_config_trace_v3_skywalking_proto_depIdxs = []int32{
281 2,
282 1,
283 3,
284 3,
285 3,
286 3,
287 3,
288 0,
289 }
290
291 func init() { file_envoy_config_trace_v3_skywalking_proto_init() }
292 func file_envoy_config_trace_v3_skywalking_proto_init() {
293 if File_envoy_config_trace_v3_skywalking_proto != nil {
294 return
295 }
296 if !protoimpl.UnsafeEnabled {
297 file_envoy_config_trace_v3_skywalking_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
298 switch v := v.(*SkyWalkingConfig); i {
299 case 0:
300 return &v.state
301 case 1:
302 return &v.sizeCache
303 case 2:
304 return &v.unknownFields
305 default:
306 return nil
307 }
308 }
309 file_envoy_config_trace_v3_skywalking_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
310 switch v := v.(*ClientConfig); i {
311 case 0:
312 return &v.state
313 case 1:
314 return &v.sizeCache
315 case 2:
316 return &v.unknownFields
317 default:
318 return nil
319 }
320 }
321 }
322 file_envoy_config_trace_v3_skywalking_proto_msgTypes[1].OneofWrappers = []interface{}{
323 (*ClientConfig_BackendToken)(nil),
324 }
325 type x struct{}
326 out := protoimpl.TypeBuilder{
327 File: protoimpl.DescBuilder{
328 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
329 RawDescriptor: file_envoy_config_trace_v3_skywalking_proto_rawDesc,
330 NumEnums: 0,
331 NumMessages: 2,
332 NumExtensions: 0,
333 NumServices: 0,
334 },
335 GoTypes: file_envoy_config_trace_v3_skywalking_proto_goTypes,
336 DependencyIndexes: file_envoy_config_trace_v3_skywalking_proto_depIdxs,
337 MessageInfos: file_envoy_config_trace_v3_skywalking_proto_msgTypes,
338 }.Build()
339 File_envoy_config_trace_v3_skywalking_proto = out.File
340 file_envoy_config_trace_v3_skywalking_proto_rawDesc = nil
341 file_envoy_config_trace_v3_skywalking_proto_goTypes = nil
342 file_envoy_config_trace_v3_skywalking_proto_depIdxs = nil
343 }
344
View as plain text