1
2
3
4
5
6
7 package envoy_extensions_common_tap_v4alpha
8
9 import (
10 _ "github.com/cncf/udpa/go/udpa/annotations"
11 v4alpha "github.com/datawire/ambassador/v2/pkg/api/envoy/config/tap/v4alpha"
12 _ "github.com/envoyproxy/protoc-gen-validate/validate"
13 proto "github.com/golang/protobuf/proto"
14 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
15 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
16 reflect "reflect"
17 sync "sync"
18 )
19
20 const (
21
22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
23
24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
25 )
26
27
28
29 const _ = proto.ProtoPackageIsVersion4
30
31
32 type CommonExtensionConfig struct {
33 state protoimpl.MessageState
34 sizeCache protoimpl.SizeCache
35 unknownFields protoimpl.UnknownFields
36
37
38
39
40 ConfigType isCommonExtensionConfig_ConfigType `protobuf_oneof:"config_type"`
41 }
42
43 func (x *CommonExtensionConfig) Reset() {
44 *x = CommonExtensionConfig{}
45 if protoimpl.UnsafeEnabled {
46 mi := &file_envoy_extensions_common_tap_v4alpha_common_proto_msgTypes[0]
47 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
48 ms.StoreMessageInfo(mi)
49 }
50 }
51
52 func (x *CommonExtensionConfig) String() string {
53 return protoimpl.X.MessageStringOf(x)
54 }
55
56 func (*CommonExtensionConfig) ProtoMessage() {}
57
58 func (x *CommonExtensionConfig) ProtoReflect() protoreflect.Message {
59 mi := &file_envoy_extensions_common_tap_v4alpha_common_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
71 func (*CommonExtensionConfig) Descriptor() ([]byte, []int) {
72 return file_envoy_extensions_common_tap_v4alpha_common_proto_rawDescGZIP(), []int{0}
73 }
74
75 func (m *CommonExtensionConfig) GetConfigType() isCommonExtensionConfig_ConfigType {
76 if m != nil {
77 return m.ConfigType
78 }
79 return nil
80 }
81
82 func (x *CommonExtensionConfig) GetAdminConfig() *AdminConfig {
83 if x, ok := x.GetConfigType().(*CommonExtensionConfig_AdminConfig); ok {
84 return x.AdminConfig
85 }
86 return nil
87 }
88
89 func (x *CommonExtensionConfig) GetStaticConfig() *v4alpha.TapConfig {
90 if x, ok := x.GetConfigType().(*CommonExtensionConfig_StaticConfig); ok {
91 return x.StaticConfig
92 }
93 return nil
94 }
95
96 type isCommonExtensionConfig_ConfigType interface {
97 isCommonExtensionConfig_ConfigType()
98 }
99
100 type CommonExtensionConfig_AdminConfig struct {
101
102 AdminConfig *AdminConfig `protobuf:"bytes,1,opt,name=admin_config,json=adminConfig,proto3,oneof"`
103 }
104
105 type CommonExtensionConfig_StaticConfig struct {
106
107
108 StaticConfig *v4alpha.TapConfig `protobuf:"bytes,2,opt,name=static_config,json=staticConfig,proto3,oneof"`
109 }
110
111 func (*CommonExtensionConfig_AdminConfig) isCommonExtensionConfig_ConfigType() {}
112
113 func (*CommonExtensionConfig_StaticConfig) isCommonExtensionConfig_ConfigType() {}
114
115
116
117 type AdminConfig struct {
118 state protoimpl.MessageState
119 sizeCache protoimpl.SizeCache
120 unknownFields protoimpl.UnknownFields
121
122
123
124 ConfigId string `protobuf:"bytes,1,opt,name=config_id,json=configId,proto3" json:"config_id,omitempty"`
125 }
126
127 func (x *AdminConfig) Reset() {
128 *x = AdminConfig{}
129 if protoimpl.UnsafeEnabled {
130 mi := &file_envoy_extensions_common_tap_v4alpha_common_proto_msgTypes[1]
131 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
132 ms.StoreMessageInfo(mi)
133 }
134 }
135
136 func (x *AdminConfig) String() string {
137 return protoimpl.X.MessageStringOf(x)
138 }
139
140 func (*AdminConfig) ProtoMessage() {}
141
142 func (x *AdminConfig) ProtoReflect() protoreflect.Message {
143 mi := &file_envoy_extensions_common_tap_v4alpha_common_proto_msgTypes[1]
144 if protoimpl.UnsafeEnabled && x != nil {
145 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
146 if ms.LoadMessageInfo() == nil {
147 ms.StoreMessageInfo(mi)
148 }
149 return ms
150 }
151 return mi.MessageOf(x)
152 }
153
154
155 func (*AdminConfig) Descriptor() ([]byte, []int) {
156 return file_envoy_extensions_common_tap_v4alpha_common_proto_rawDescGZIP(), []int{1}
157 }
158
159 func (x *AdminConfig) GetConfigId() string {
160 if x != nil {
161 return x.ConfigId
162 }
163 return ""
164 }
165
166 var File_envoy_extensions_common_tap_v4alpha_common_proto protoreflect.FileDescriptor
167
168 var file_envoy_extensions_common_tap_v4alpha_common_proto_rawDesc = []byte{
169 0x0a, 0x30, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
170 0x6e, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x74, 0x61, 0x70, 0x2f, 0x76, 0x34,
171 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f,
172 0x74, 0x6f, 0x12, 0x23, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
173 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x74, 0x61, 0x70, 0x2e,
174 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a, 0x25, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63,
175 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x74, 0x61, 0x70, 0x2f, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68,
176 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d,
177 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
178 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x75,
179 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f,
180 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
181 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64,
182 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8b, 0x02, 0x0a, 0x15, 0x43, 0x6f,
183 0x6d, 0x6d, 0x6f, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e,
184 0x66, 0x69, 0x67, 0x12, 0x55, 0x0a, 0x0c, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x6e,
185 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x65, 0x6e, 0x76, 0x6f,
186 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x63, 0x6f, 0x6d,
187 0x6d, 0x6f, 0x6e, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e,
188 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0b, 0x61,
189 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4a, 0x0a, 0x0d, 0x73, 0x74,
190 0x61, 0x74, 0x69, 0x63, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28,
191 0x0b, 0x32, 0x23, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
192 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x54, 0x61, 0x70,
193 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63,
194 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3b, 0x9a, 0xc5, 0x88, 0x1e, 0x36, 0x0a, 0x34, 0x65,
195 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e,
196 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x6f,
197 0x6d, 0x6d, 0x6f, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e,
198 0x66, 0x69, 0x67, 0x42, 0x12, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x74, 0x79,
199 0x70, 0x65, 0x12, 0x03, 0xf8, 0x42, 0x01, 0x22, 0x66, 0x0a, 0x0b, 0x41, 0x64, 0x6d, 0x69, 0x6e,
200 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x24, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
201 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02,
202 0x10, 0x01, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x64, 0x3a, 0x31, 0x9a, 0xc5,
203 0x88, 0x1e, 0x2c, 0x0a, 0x2a, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e,
204 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x74, 0x61, 0x70,
205 0x2e, 0x76, 0x33, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42,
206 0x4a, 0x0a, 0x31, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79,
207 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
208 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x34, 0x61,
209 0x6c, 0x70, 0x68, 0x61, 0x42, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74,
210 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x03, 0x62, 0x06, 0x70, 0x72, 0x6f,
211 0x74, 0x6f, 0x33,
212 }
213
214 var (
215 file_envoy_extensions_common_tap_v4alpha_common_proto_rawDescOnce sync.Once
216 file_envoy_extensions_common_tap_v4alpha_common_proto_rawDescData = file_envoy_extensions_common_tap_v4alpha_common_proto_rawDesc
217 )
218
219 func file_envoy_extensions_common_tap_v4alpha_common_proto_rawDescGZIP() []byte {
220 file_envoy_extensions_common_tap_v4alpha_common_proto_rawDescOnce.Do(func() {
221 file_envoy_extensions_common_tap_v4alpha_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_common_tap_v4alpha_common_proto_rawDescData)
222 })
223 return file_envoy_extensions_common_tap_v4alpha_common_proto_rawDescData
224 }
225
226 var file_envoy_extensions_common_tap_v4alpha_common_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
227 var file_envoy_extensions_common_tap_v4alpha_common_proto_goTypes = []interface{}{
228 (*CommonExtensionConfig)(nil),
229 (*AdminConfig)(nil),
230 (*v4alpha.TapConfig)(nil),
231 }
232 var file_envoy_extensions_common_tap_v4alpha_common_proto_depIdxs = []int32{
233 1,
234 2,
235 2,
236 2,
237 2,
238 2,
239 0,
240 }
241
242 func init() { file_envoy_extensions_common_tap_v4alpha_common_proto_init() }
243 func file_envoy_extensions_common_tap_v4alpha_common_proto_init() {
244 if File_envoy_extensions_common_tap_v4alpha_common_proto != nil {
245 return
246 }
247 if !protoimpl.UnsafeEnabled {
248 file_envoy_extensions_common_tap_v4alpha_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
249 switch v := v.(*CommonExtensionConfig); i {
250 case 0:
251 return &v.state
252 case 1:
253 return &v.sizeCache
254 case 2:
255 return &v.unknownFields
256 default:
257 return nil
258 }
259 }
260 file_envoy_extensions_common_tap_v4alpha_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
261 switch v := v.(*AdminConfig); i {
262 case 0:
263 return &v.state
264 case 1:
265 return &v.sizeCache
266 case 2:
267 return &v.unknownFields
268 default:
269 return nil
270 }
271 }
272 }
273 file_envoy_extensions_common_tap_v4alpha_common_proto_msgTypes[0].OneofWrappers = []interface{}{
274 (*CommonExtensionConfig_AdminConfig)(nil),
275 (*CommonExtensionConfig_StaticConfig)(nil),
276 }
277 type x struct{}
278 out := protoimpl.TypeBuilder{
279 File: protoimpl.DescBuilder{
280 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
281 RawDescriptor: file_envoy_extensions_common_tap_v4alpha_common_proto_rawDesc,
282 NumEnums: 0,
283 NumMessages: 2,
284 NumExtensions: 0,
285 NumServices: 0,
286 },
287 GoTypes: file_envoy_extensions_common_tap_v4alpha_common_proto_goTypes,
288 DependencyIndexes: file_envoy_extensions_common_tap_v4alpha_common_proto_depIdxs,
289 MessageInfos: file_envoy_extensions_common_tap_v4alpha_common_proto_msgTypes,
290 }.Build()
291 File_envoy_extensions_common_tap_v4alpha_common_proto = out.File
292 file_envoy_extensions_common_tap_v4alpha_common_proto_rawDesc = nil
293 file_envoy_extensions_common_tap_v4alpha_common_proto_goTypes = nil
294 file_envoy_extensions_common_tap_v4alpha_common_proto_depIdxs = nil
295 }
296
View as plain text