1
2
3
4
5
6
7 package envoy_config_common_tap_v2alpha
8
9 import (
10 _ "github.com/cncf/udpa/go/udpa/annotations"
11 v2alpha "github.com/datawire/ambassador/v2/pkg/api/envoy/service/tap/v2alpha"
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_config_common_tap_v2alpha_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_config_common_tap_v2alpha_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_config_common_tap_v2alpha_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() *v2alpha.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 *v2alpha.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_config_common_tap_v2alpha_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_config_common_tap_v2alpha_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_config_common_tap_v2alpha_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_config_common_tap_v2alpha_common_proto protoreflect.FileDescriptor
167
168 var file_envoy_config_common_tap_v2alpha_common_proto_rawDesc = []byte{
169 0x0a, 0x2c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63,
170 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x74, 0x61, 0x70, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68,
171 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f,
172 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x6d,
173 0x6d, 0x6f, 0x6e, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a,
174 0x26, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x74,
175 0x61, 0x70, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
176 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e,
177 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74,
178 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e,
179 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
180 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65,
181 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
182 0xcb, 0x01, 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73,
183 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x51, 0x0a, 0x0c, 0x61, 0x64, 0x6d,
184 0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
185 0x2c, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63,
186 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68,
187 0x61, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52,
188 0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4b, 0x0a, 0x0d,
189 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20,
190 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76,
191 0x69, 0x63, 0x65, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e,
192 0x54, 0x61, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61,
193 0x74, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x12, 0x0a, 0x0b, 0x63, 0x6f, 0x6e,
194 0x66, 0x69, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x03, 0xf8, 0x42, 0x01, 0x22, 0x33, 0x0a,
195 0x0b, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x24, 0x0a, 0x09,
196 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
197 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x20, 0x01, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
198 0x49, 0x64, 0x42, 0x6c, 0x0a, 0x2d, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72,
199 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
200 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c,
201 0x70, 0x68, 0x61, 0x42, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f,
202 0x50, 0x01, 0xf2, 0x98, 0xfe, 0x8f, 0x05, 0x20, 0x12, 0x1e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e,
203 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
204 0x6e, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x33, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x01,
205 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
206 }
207
208 var (
209 file_envoy_config_common_tap_v2alpha_common_proto_rawDescOnce sync.Once
210 file_envoy_config_common_tap_v2alpha_common_proto_rawDescData = file_envoy_config_common_tap_v2alpha_common_proto_rawDesc
211 )
212
213 func file_envoy_config_common_tap_v2alpha_common_proto_rawDescGZIP() []byte {
214 file_envoy_config_common_tap_v2alpha_common_proto_rawDescOnce.Do(func() {
215 file_envoy_config_common_tap_v2alpha_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_common_tap_v2alpha_common_proto_rawDescData)
216 })
217 return file_envoy_config_common_tap_v2alpha_common_proto_rawDescData
218 }
219
220 var file_envoy_config_common_tap_v2alpha_common_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
221 var file_envoy_config_common_tap_v2alpha_common_proto_goTypes = []interface{}{
222 (*CommonExtensionConfig)(nil),
223 (*AdminConfig)(nil),
224 (*v2alpha.TapConfig)(nil),
225 }
226 var file_envoy_config_common_tap_v2alpha_common_proto_depIdxs = []int32{
227 1,
228 2,
229 2,
230 2,
231 2,
232 2,
233 0,
234 }
235
236 func init() { file_envoy_config_common_tap_v2alpha_common_proto_init() }
237 func file_envoy_config_common_tap_v2alpha_common_proto_init() {
238 if File_envoy_config_common_tap_v2alpha_common_proto != nil {
239 return
240 }
241 if !protoimpl.UnsafeEnabled {
242 file_envoy_config_common_tap_v2alpha_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
243 switch v := v.(*CommonExtensionConfig); i {
244 case 0:
245 return &v.state
246 case 1:
247 return &v.sizeCache
248 case 2:
249 return &v.unknownFields
250 default:
251 return nil
252 }
253 }
254 file_envoy_config_common_tap_v2alpha_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
255 switch v := v.(*AdminConfig); i {
256 case 0:
257 return &v.state
258 case 1:
259 return &v.sizeCache
260 case 2:
261 return &v.unknownFields
262 default:
263 return nil
264 }
265 }
266 }
267 file_envoy_config_common_tap_v2alpha_common_proto_msgTypes[0].OneofWrappers = []interface{}{
268 (*CommonExtensionConfig_AdminConfig)(nil),
269 (*CommonExtensionConfig_StaticConfig)(nil),
270 }
271 type x struct{}
272 out := protoimpl.TypeBuilder{
273 File: protoimpl.DescBuilder{
274 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
275 RawDescriptor: file_envoy_config_common_tap_v2alpha_common_proto_rawDesc,
276 NumEnums: 0,
277 NumMessages: 2,
278 NumExtensions: 0,
279 NumServices: 0,
280 },
281 GoTypes: file_envoy_config_common_tap_v2alpha_common_proto_goTypes,
282 DependencyIndexes: file_envoy_config_common_tap_v2alpha_common_proto_depIdxs,
283 MessageInfos: file_envoy_config_common_tap_v2alpha_common_proto_msgTypes,
284 }.Build()
285 File_envoy_config_common_tap_v2alpha_common_proto = out.File
286 file_envoy_config_common_tap_v2alpha_common_proto_rawDesc = nil
287 file_envoy_config_common_tap_v2alpha_common_proto_goTypes = nil
288 file_envoy_config_common_tap_v2alpha_common_proto_depIdxs = nil
289 }
290
View as plain text