gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/go-control-plane/envoy/config/common/tap/v2alpha/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/config/common/tap/v2alpha/common.proto
     6  
     7  package envoy_config_common_tap_v2alpha
     8  
     9  import (
    10  	_ "github.com/cncf/xds/go/udpa/annotations"
    11  	v2alpha "gitee.com/ks-custle/core-gm/go-control-plane/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  	// 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_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  // Deprecated: Use CommonExtensionConfig.ProtoReflect.Descriptor instead.
    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  	// 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 *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  // 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_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  // Deprecated: Use AdminConfig.ProtoReflect.Descriptor instead.
   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), // 0: envoy.config.common.tap.v2alpha.CommonExtensionConfig
   223  	(*AdminConfig)(nil),           // 1: envoy.config.common.tap.v2alpha.AdminConfig
   224  	(*v2alpha.TapConfig)(nil),     // 2: envoy.service.tap.v2alpha.TapConfig
   225  }
   226  var file_envoy_config_common_tap_v2alpha_common_proto_depIdxs = []int32{
   227  	1, // 0: envoy.config.common.tap.v2alpha.CommonExtensionConfig.admin_config:type_name -> envoy.config.common.tap.v2alpha.AdminConfig
   228  	2, // 1: envoy.config.common.tap.v2alpha.CommonExtensionConfig.static_config:type_name -> envoy.service.tap.v2alpha.TapConfig
   229  	2, // [2:2] is the sub-list for method output_type
   230  	2, // [2:2] is the sub-list for method input_type
   231  	2, // [2:2] is the sub-list for extension type_name
   232  	2, // [2:2] is the sub-list for extension extendee
   233  	0, // [0:2] is the sub-list for field type_name
   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  }