| 1 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 |
// versions: |
| 3 |
// protoc-gen-go v1.30.0 |
| 4 |
// protoc v5.29.1 |
| 5 |
// source: envoy/config/common/tap/v2alpha/common.proto |
| 6 |
|
| 7 |
package v2alpha |
| 8 |
|
| 9 |
import ( |
| 10 |
_ "github.com/cncf/xds/go/udpa/annotations" |
| 11 |
v2alpha "github.com/envoyproxy/go-control-plane/envoy/service/tap/v2alpha" |
| 12 |
_ "github.com/envoyproxy/protoc-gen-validate/validate" |
| 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 |
// Verify that this generated code is sufficiently up-to-date. |
| 21 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 22 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 23 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 24 |
) |
| 25 |
|
| 26 |
// Common configuration for all tap extensions. |
| 27 |
type CommonExtensionConfig struct { |
| 28 |
state protoimpl.MessageState |
| 29 |
sizeCache protoimpl.SizeCache |
| 30 |
unknownFields protoimpl.UnknownFields |
| 31 |
|
| 32 |
// Types that are assignable to ConfigType: |
| 33 |
// |
| 34 |
// *CommonExtensionConfig_AdminConfig |
| 35 |
// *CommonExtensionConfig_StaticConfig |
| 36 |
ConfigType isCommonExtensionConfig_ConfigType `protobuf_oneof:"config_type"` |
| 37 |
} |
| 38 |
|
| 39 |
func (x *CommonExtensionConfig) Reset() { |
| 40 |
*x = CommonExtensionConfig{} |
| 41 |
if protoimpl.UnsafeEnabled { |
| 42 |
mi := &file_envoy_config_common_tap_v2alpha_common_proto_msgTypes[0] |
| 43 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 44 |
ms.StoreMessageInfo(mi) |
| 45 |
} |
| 46 |
} |
| 47 |
|
| 48 |
func (x *CommonExtensionConfig) String() string { |
| 49 |
return protoimpl.X.MessageStringOf(x) |
| 50 |
} |
| 51 |
|
| 52 |
func (*CommonExtensionConfig) ProtoMessage() {} |
| 53 |
|
| 54 |
func (x *CommonExtensionConfig) ProtoReflect() protoreflect.Message { |
| 55 |
mi := &file_envoy_config_common_tap_v2alpha_common_proto_msgTypes[0] |
| 56 |
if protoimpl.UnsafeEnabled && x != nil { |
| 57 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 58 |
if ms.LoadMessageInfo() == nil { |
| 59 |
ms.StoreMessageInfo(mi) |
| 60 |
} |
| 61 |
return ms |
| 62 |
} |
| 63 |
return mi.MessageOf(x) |
| 64 |
} |
| 65 |
|
| 66 |
// Deprecated: Use CommonExtensionConfig.ProtoReflect.Descriptor instead. |
| 67 |
func (*CommonExtensionConfig) Descriptor() ([]byte, []int) { |
| 68 |
return file_envoy_config_common_tap_v2alpha_common_proto_rawDescGZIP(), []int{0} |
| 69 |
} |
| 70 |
|
| 71 |
func (m *CommonExtensionConfig) GetConfigType() isCommonExtensionConfig_ConfigType { |
| 72 |
if m != nil { |
| 73 |
return m.ConfigType |
| 74 |
} |
| 75 |
return nil |
| 76 |
} |
| 77 |
|
| 78 |
func (x *CommonExtensionConfig) GetAdminConfig() *AdminConfig { |
| 79 |
if x, ok := x.GetConfigType().(*CommonExtensionConfig_AdminConfig); ok { |
| 80 |
return x.AdminConfig |
| 81 |
} |
| 82 |
return nil |
| 83 |
} |
| 84 |
|
| 85 |
func (x *CommonExtensionConfig) GetStaticConfig() *v2alpha.TapConfig { |
| 86 |
if x, ok := x.GetConfigType().(*CommonExtensionConfig_StaticConfig); ok { |
| 87 |
return x.StaticConfig |
| 88 |
} |
| 89 |
return nil |
| 90 |
} |
| 91 |
|
| 92 |
type isCommonExtensionConfig_ConfigType interface { |
| 93 |
isCommonExtensionConfig_ConfigType() |
| 94 |
} |
| 95 |
|
| 96 |
type CommonExtensionConfig_AdminConfig struct { |
| 97 |
// If specified, the tap filter will be configured via an admin handler. |
| 98 |
AdminConfig *AdminConfig `protobuf:"bytes,1,opt,name=admin_config,json=adminConfig,proto3,oneof"` |
| 99 |
} |
| 100 |
|
| 101 |
type CommonExtensionConfig_StaticConfig struct { |
| 102 |
// If specified, the tap filter will be configured via a static configuration that cannot be |
| 103 |
// changed. |
| 104 |
StaticConfig *v2alpha.TapConfig `protobuf:"bytes,2,opt,name=static_config,json=staticConfig,proto3,oneof"` |
| 105 |
} |
| 106 |
|
| 107 |
func (*CommonExtensionConfig_AdminConfig) isCommonExtensionConfig_ConfigType() {} |
| 108 |
|
| 109 |
func (*CommonExtensionConfig_StaticConfig) isCommonExtensionConfig_ConfigType() {} |
| 110 |
|
| 111 |
// Configuration for the admin handler. See :ref:`here <config_http_filters_tap_admin_handler>` for |
| 112 |
// more information. |
| 113 |
type AdminConfig struct { |
| 114 |
state protoimpl.MessageState |
| 115 |
sizeCache protoimpl.SizeCache |
| 116 |
unknownFields protoimpl.UnknownFields |
| 117 |
|
| 118 |
// Opaque configuration ID. When requests are made to the admin handler, the passed opaque ID is |
| 119 |
// matched to the configured filter opaque ID to determine which filter to configure. |
| 120 |
ConfigId string `protobuf:"bytes,1,opt,name=config_id,json=configId,proto3" json:"config_id,omitempty"` |
| 121 |
} |
| 122 |
|
| 123 |
func (x *AdminConfig) Reset() { |
| 124 |
*x = AdminConfig{} |
| 125 |
if protoimpl.UnsafeEnabled { |
| 126 |
mi := &file_envoy_config_common_tap_v2alpha_common_proto_msgTypes[1] |
| 127 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 128 |
ms.StoreMessageInfo(mi) |
| 129 |
} |
| 130 |
} |
| 131 |
|
| 132 |
func (x *AdminConfig) String() string { |
| 133 |
return protoimpl.X.MessageStringOf(x) |
| 134 |
} |
| 135 |
|
| 136 |
func (*AdminConfig) ProtoMessage() {} |
| 137 |
|
| 138 |
func (x *AdminConfig) ProtoReflect() protoreflect.Message { |
| 139 |
mi := &file_envoy_config_common_tap_v2alpha_common_proto_msgTypes[1] |
| 140 |
if protoimpl.UnsafeEnabled && x != nil { |
| 141 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 142 |
if ms.LoadMessageInfo() == nil { |
| 143 |
ms.StoreMessageInfo(mi) |
| 144 |
} |
| 145 |
return ms |
| 146 |
} |
| 147 |
return mi.MessageOf(x) |
| 148 |
} |
| 149 |
|
| 150 |
// Deprecated: Use AdminConfig.ProtoReflect.Descriptor instead. |
| 151 |
func (*AdminConfig) Descriptor() ([]byte, []int) { |
| 152 |
return file_envoy_config_common_tap_v2alpha_common_proto_rawDescGZIP(), []int{1} |
| 153 |
} |
| 154 |
|
| 155 |
func (x *AdminConfig) GetConfigId() string { |
| 156 |
if x != nil { |
| 157 |
return x.ConfigId |
| 158 |
} |
| 159 |
return "" |
| 160 |
} |
| 161 |
|
| 162 |
var File_envoy_config_common_tap_v2alpha_common_proto protoreflect.FileDescriptor |
| 163 |
|
| 164 |
var file_envoy_config_common_tap_v2alpha_common_proto_rawDesc = []byte{ |
| 165 |
0x0a, 0x2c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, |
| 166 |
0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x74, 0x61, 0x70, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, |
| 167 |
0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, |
| 168 |
0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x6d, |
| 169 |
0x6d, 0x6f, 0x6e, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a, |
| 170 |
0x26, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x74, |
| 171 |
0x61, 0x70, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, |
| 172 |
0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, |
| 173 |
0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, |
| 174 |
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, |
| 175 |
0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, |
| 176 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, |
| 177 |
0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, |
| 178 |
0xcb, 0x01, 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, |
| 179 |
0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x51, 0x0a, 0x0c, 0x61, 0x64, 0x6d, |
| 180 |
0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 181 |
0x2c, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, |
| 182 |
0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, |
| 183 |
0x61, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, |
| 184 |
0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4b, 0x0a, 0x0d, |
| 185 |
0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, |
| 186 |
0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, |
| 187 |
0x69, 0x63, 0x65, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, |
| 188 |
0x54, 0x61, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, |
| 189 |
0x74, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x12, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, |
| 190 |
0x66, 0x69, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x03, 0xf8, 0x42, 0x01, 0x22, 0x33, 0x0a, |
| 191 |
0x0b, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x24, 0x0a, 0x09, |
| 192 |
0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, |
| 193 |
0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x20, 0x01, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, |
| 194 |
0x49, 0x64, 0x42, 0xb4, 0x01, 0xf2, 0x98, 0xfe, 0x8f, 0x05, 0x20, 0x12, 0x1e, 0x65, 0x6e, 0x76, |
| 195 |
0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x63, 0x6f, |
| 196 |
0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x33, 0xba, 0x80, 0xc8, 0xd1, 0x06, |
| 197 |
0x02, 0x10, 0x01, 0x0a, 0x2d, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, |
| 198 |
0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, |
| 199 |
0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, |
| 200 |
0x68, 0x61, 0x42, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, |
| 201 |
0x01, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, |
| 202 |
0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, |
| 203 |
0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, |
| 204 |
0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x74, 0x61, |
| 205 |
0x70, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 206 |
0x33, |
| 207 |
} |
| 208 |
|
| 209 |
var ( |
| 210 |
file_envoy_config_common_tap_v2alpha_common_proto_rawDescOnce sync.Once |
| 211 |
file_envoy_config_common_tap_v2alpha_common_proto_rawDescData = file_envoy_config_common_tap_v2alpha_common_proto_rawDesc |
| 212 |
) |
| 213 |
|
| 214 |
func file_envoy_config_common_tap_v2alpha_common_proto_rawDescGZIP() []byte { |
| 215 |
file_envoy_config_common_tap_v2alpha_common_proto_rawDescOnce.Do(func() { |
| 216 |
file_envoy_config_common_tap_v2alpha_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_common_tap_v2alpha_common_proto_rawDescData) |
| 217 |
}) |
| 218 |
return file_envoy_config_common_tap_v2alpha_common_proto_rawDescData |
| 219 |
} |
| 220 |
|
| 221 |
var file_envoy_config_common_tap_v2alpha_common_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| 222 |
var file_envoy_config_common_tap_v2alpha_common_proto_goTypes = []interface{}{ |
| 223 |
(*CommonExtensionConfig)(nil), // 0: envoy.config.common.tap.v2alpha.CommonExtensionConfig |
| 224 |
(*AdminConfig)(nil), // 1: envoy.config.common.tap.v2alpha.AdminConfig |
| 225 |
(*v2alpha.TapConfig)(nil), // 2: envoy.service.tap.v2alpha.TapConfig |
| 226 |
} |
| 227 |
var file_envoy_config_common_tap_v2alpha_common_proto_depIdxs = []int32{ |
| 228 |
1, // 0: envoy.config.common.tap.v2alpha.CommonExtensionConfig.admin_config:type_name -> envoy.config.common.tap.v2alpha.AdminConfig |
| 229 |
2, // 1: envoy.config.common.tap.v2alpha.CommonExtensionConfig.static_config:type_name -> envoy.service.tap.v2alpha.TapConfig |
| 230 |
2, // [2:2] is the sub-list for method output_type |
| 231 |
2, // [2:2] is the sub-list for method input_type |
| 232 |
2, // [2:2] is the sub-list for extension type_name |
| 233 |
2, // [2:2] is the sub-list for extension extendee |
| 234 |
0, // [0:2] is the sub-list for field type_name |
| 235 |
} |
| 236 |
|
| 237 |
func init() { file_envoy_config_common_tap_v2alpha_common_proto_init() } |
| 238 |
func file_envoy_config_common_tap_v2alpha_common_proto_init() { |
| 239 |
if File_envoy_config_common_tap_v2alpha_common_proto != nil { |
| 240 |
return |
| 241 |
} |
| 242 |
if !protoimpl.UnsafeEnabled { |
| 243 |
file_envoy_config_common_tap_v2alpha_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 244 |
switch v := v.(*CommonExtensionConfig); i { |
| 245 |
case 0: |
| 246 |
return &v.state |
| 247 |
case 1: |
| 248 |
return &v.sizeCache |
| 249 |
case 2: |
| 250 |
return &v.unknownFields |
| 251 |
default: |
| 252 |
return nil |
| 253 |
} |
| 254 |
} |
| 255 |
file_envoy_config_common_tap_v2alpha_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 256 |
switch v := v.(*AdminConfig); i { |
| 257 |
case 0: |
| 258 |
return &v.state |
| 259 |
case 1: |
| 260 |
return &v.sizeCache |
| 261 |
case 2: |
| 262 |
return &v.unknownFields |
| 263 |
default: |
| 264 |
return nil |
| 265 |
} |
| 266 |
} |
| 267 |
} |
| 268 |
file_envoy_config_common_tap_v2alpha_common_proto_msgTypes[0].OneofWrappers = []interface{}{ |
| 269 |
(*CommonExtensionConfig_AdminConfig)(nil), |
| 270 |
(*CommonExtensionConfig_StaticConfig)(nil), |
| 271 |
} |
| 272 |
type x struct{} |
| 273 |
out := protoimpl.TypeBuilder{ |
| 274 |
File: protoimpl.DescBuilder{ |
| 275 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 276 |
RawDescriptor: file_envoy_config_common_tap_v2alpha_common_proto_rawDesc, |
| 277 |
NumEnums: 0, |
| 278 |
NumMessages: 2, |
| 279 |
NumExtensions: 0, |
| 280 |
NumServices: 0, |
| 281 |
}, |
| 282 |
GoTypes: file_envoy_config_common_tap_v2alpha_common_proto_goTypes, |
| 283 |
DependencyIndexes: file_envoy_config_common_tap_v2alpha_common_proto_depIdxs, |
| 284 |
MessageInfos: file_envoy_config_common_tap_v2alpha_common_proto_msgTypes, |
| 285 |
}.Build() |
| 286 |
File_envoy_config_common_tap_v2alpha_common_proto = out.File |
| 287 |
file_envoy_config_common_tap_v2alpha_common_proto_rawDesc = nil |
| 288 |
file_envoy_config_common_tap_v2alpha_common_proto_goTypes = nil |
| 289 |
file_envoy_config_common_tap_v2alpha_common_proto_depIdxs = nil |
| 290 |
} |