gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/go-control-plane/envoy/extensions/common/tap/v3/common.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.16.0 5 // source: envoy/extensions/common/tap/v3/common.proto 6 7 package envoy_extensions_common_tap_v3 8 9 import ( 10 _ "github.com/cncf/xds/go/udpa/annotations" 11 v3 "gitee.com/ks-custle/core-gm/go-control-plane/envoy/config/tap/v3" 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 // Verify that this generated code is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 23 // Verify that runtime/protoimpl is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 25 ) 26 27 // This is a compile-time assertion that a sufficiently up-to-date version 28 // of the legacy proto package is being used. 29 const _ = proto.ProtoPackageIsVersion4 30 31 // Common configuration for all tap extensions. 32 type CommonExtensionConfig struct { 33 state protoimpl.MessageState 34 sizeCache protoimpl.SizeCache 35 unknownFields protoimpl.UnknownFields 36 37 // Types that are assignable to ConfigType: 38 // *CommonExtensionConfig_AdminConfig 39 // *CommonExtensionConfig_StaticConfig 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_v3_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_v3_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 // Deprecated: Use CommonExtensionConfig.ProtoReflect.Descriptor instead. 71 func (*CommonExtensionConfig) Descriptor() ([]byte, []int) { 72 return file_envoy_extensions_common_tap_v3_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() *v3.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 // If specified, the tap filter will be configured via an admin handler. 102 AdminConfig *AdminConfig `protobuf:"bytes,1,opt,name=admin_config,json=adminConfig,proto3,oneof"` 103 } 104 105 type CommonExtensionConfig_StaticConfig struct { 106 // If specified, the tap filter will be configured via a static configuration that cannot be 107 // changed. 108 StaticConfig *v3.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 // Configuration for the admin handler. See :ref:`here <config_http_filters_tap_admin_handler>` for 116 // more information. 117 type AdminConfig struct { 118 state protoimpl.MessageState 119 sizeCache protoimpl.SizeCache 120 unknownFields protoimpl.UnknownFields 121 122 // Opaque configuration ID. When requests are made to the admin handler, the passed opaque ID is 123 // matched to the configured filter opaque ID to determine which filter to configure. 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_v3_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_v3_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 // Deprecated: Use AdminConfig.ProtoReflect.Descriptor instead. 155 func (*AdminConfig) Descriptor() ([]byte, []int) { 156 return file_envoy_extensions_common_tap_v3_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_v3_common_proto protoreflect.FileDescriptor 167 168 var file_envoy_extensions_common_tap_v3_common_proto_rawDesc = []byte{ 169 0x0a, 0x2b, 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, 0x33, 171 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x65, 172 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 173 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x33, 0x1a, 0x20, 0x65, 174 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x74, 0x61, 0x70, 0x2f, 175 0x76, 0x33, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 176 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 177 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 178 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 179 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 180 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 181 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x82, 0x02, 0x0a, 0x15, 0x43, 182 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 183 0x6e, 0x66, 0x69, 0x67, 0x12, 0x50, 0x0a, 0x0c, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x63, 0x6f, 184 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x65, 0x6e, 0x76, 185 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x63, 0x6f, 186 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x33, 0x2e, 0x41, 0x64, 0x6d, 0x69, 187 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 188 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x45, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 189 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 190 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 0x61, 0x70, 191 0x2e, 0x76, 0x33, 0x2e, 0x54, 0x61, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 192 0x0c, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3c, 0x9a, 193 0xc5, 0x88, 0x1e, 0x37, 0x0a, 0x35, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 194 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 195 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x45, 0x78, 0x74, 0x65, 196 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x12, 0x0a, 0x0b, 0x63, 197 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x03, 0xf8, 0x42, 0x01, 0x22, 198 0x67, 0x0a, 0x0b, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x24, 199 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 200 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x66, 201 0x69, 0x67, 0x49, 0x64, 0x3a, 0x32, 0x9a, 0xc5, 0x88, 0x1e, 0x2d, 0x0a, 0x2b, 0x65, 0x6e, 0x76, 202 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 203 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x41, 0x64, 0x6d, 204 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x45, 0x0a, 0x2c, 0x69, 0x6f, 0x2e, 0x65, 205 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 206 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 207 0x6e, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x33, 0x42, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 208 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0x62, 209 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 210 } 211 212 var ( 213 file_envoy_extensions_common_tap_v3_common_proto_rawDescOnce sync.Once 214 file_envoy_extensions_common_tap_v3_common_proto_rawDescData = file_envoy_extensions_common_tap_v3_common_proto_rawDesc 215 ) 216 217 func file_envoy_extensions_common_tap_v3_common_proto_rawDescGZIP() []byte { 218 file_envoy_extensions_common_tap_v3_common_proto_rawDescOnce.Do(func() { 219 file_envoy_extensions_common_tap_v3_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_common_tap_v3_common_proto_rawDescData) 220 }) 221 return file_envoy_extensions_common_tap_v3_common_proto_rawDescData 222 } 223 224 var file_envoy_extensions_common_tap_v3_common_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 225 var file_envoy_extensions_common_tap_v3_common_proto_goTypes = []interface{}{ 226 (*CommonExtensionConfig)(nil), // 0: envoy.extensions.common.tap.v3.CommonExtensionConfig 227 (*AdminConfig)(nil), // 1: envoy.extensions.common.tap.v3.AdminConfig 228 (*v3.TapConfig)(nil), // 2: envoy.config.tap.v3.TapConfig 229 } 230 var file_envoy_extensions_common_tap_v3_common_proto_depIdxs = []int32{ 231 1, // 0: envoy.extensions.common.tap.v3.CommonExtensionConfig.admin_config:type_name -> envoy.extensions.common.tap.v3.AdminConfig 232 2, // 1: envoy.extensions.common.tap.v3.CommonExtensionConfig.static_config:type_name -> envoy.config.tap.v3.TapConfig 233 2, // [2:2] is the sub-list for method output_type 234 2, // [2:2] is the sub-list for method input_type 235 2, // [2:2] is the sub-list for extension type_name 236 2, // [2:2] is the sub-list for extension extendee 237 0, // [0:2] is the sub-list for field type_name 238 } 239 240 func init() { file_envoy_extensions_common_tap_v3_common_proto_init() } 241 func file_envoy_extensions_common_tap_v3_common_proto_init() { 242 if File_envoy_extensions_common_tap_v3_common_proto != nil { 243 return 244 } 245 if !protoimpl.UnsafeEnabled { 246 file_envoy_extensions_common_tap_v3_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 247 switch v := v.(*CommonExtensionConfig); i { 248 case 0: 249 return &v.state 250 case 1: 251 return &v.sizeCache 252 case 2: 253 return &v.unknownFields 254 default: 255 return nil 256 } 257 } 258 file_envoy_extensions_common_tap_v3_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 259 switch v := v.(*AdminConfig); i { 260 case 0: 261 return &v.state 262 case 1: 263 return &v.sizeCache 264 case 2: 265 return &v.unknownFields 266 default: 267 return nil 268 } 269 } 270 } 271 file_envoy_extensions_common_tap_v3_common_proto_msgTypes[0].OneofWrappers = []interface{}{ 272 (*CommonExtensionConfig_AdminConfig)(nil), 273 (*CommonExtensionConfig_StaticConfig)(nil), 274 } 275 type x struct{} 276 out := protoimpl.TypeBuilder{ 277 File: protoimpl.DescBuilder{ 278 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 279 RawDescriptor: file_envoy_extensions_common_tap_v3_common_proto_rawDesc, 280 NumEnums: 0, 281 NumMessages: 2, 282 NumExtensions: 0, 283 NumServices: 0, 284 }, 285 GoTypes: file_envoy_extensions_common_tap_v3_common_proto_goTypes, 286 DependencyIndexes: file_envoy_extensions_common_tap_v3_common_proto_depIdxs, 287 MessageInfos: file_envoy_extensions_common_tap_v3_common_proto_msgTypes, 288 }.Build() 289 File_envoy_extensions_common_tap_v3_common_proto = out.File 290 file_envoy_extensions_common_tap_v3_common_proto_rawDesc = nil 291 file_envoy_extensions_common_tap_v3_common_proto_goTypes = nil 292 file_envoy_extensions_common_tap_v3_common_proto_depIdxs = nil 293 }