...

Source file src/github.com/emissary-ingress/emissary/v3/pkg/api/envoy/config/common/tap/v2alpha/common.pb.go

Documentation: github.com/emissary-ingress/emissary/v3/pkg/api/envoy/config/common/tap/v2alpha

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.28.1
     4  // 	protoc        v3.21.12
     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/emissary-ingress/emissary/v3/pkg/api/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  	//	*CommonExtensionConfig_AdminConfig
    34  	//	*CommonExtensionConfig_StaticConfig
    35  	ConfigType isCommonExtensionConfig_ConfigType `protobuf_oneof:"config_type"`
    36  }
    37  
    38  func (x *CommonExtensionConfig) Reset() {
    39  	*x = CommonExtensionConfig{}
    40  	if protoimpl.UnsafeEnabled {
    41  		mi := &file_envoy_config_common_tap_v2alpha_common_proto_msgTypes[0]
    42  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    43  		ms.StoreMessageInfo(mi)
    44  	}
    45  }
    46  
    47  func (x *CommonExtensionConfig) String() string {
    48  	return protoimpl.X.MessageStringOf(x)
    49  }
    50  
    51  func (*CommonExtensionConfig) ProtoMessage() {}
    52  
    53  func (x *CommonExtensionConfig) ProtoReflect() protoreflect.Message {
    54  	mi := &file_envoy_config_common_tap_v2alpha_common_proto_msgTypes[0]
    55  	if protoimpl.UnsafeEnabled && x != nil {
    56  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    57  		if ms.LoadMessageInfo() == nil {
    58  			ms.StoreMessageInfo(mi)
    59  		}
    60  		return ms
    61  	}
    62  	return mi.MessageOf(x)
    63  }
    64  
    65  // Deprecated: Use CommonExtensionConfig.ProtoReflect.Descriptor instead.
    66  func (*CommonExtensionConfig) Descriptor() ([]byte, []int) {
    67  	return file_envoy_config_common_tap_v2alpha_common_proto_rawDescGZIP(), []int{0}
    68  }
    69  
    70  func (m *CommonExtensionConfig) GetConfigType() isCommonExtensionConfig_ConfigType {
    71  	if m != nil {
    72  		return m.ConfigType
    73  	}
    74  	return nil
    75  }
    76  
    77  func (x *CommonExtensionConfig) GetAdminConfig() *AdminConfig {
    78  	if x, ok := x.GetConfigType().(*CommonExtensionConfig_AdminConfig); ok {
    79  		return x.AdminConfig
    80  	}
    81  	return nil
    82  }
    83  
    84  func (x *CommonExtensionConfig) GetStaticConfig() *v2alpha.TapConfig {
    85  	if x, ok := x.GetConfigType().(*CommonExtensionConfig_StaticConfig); ok {
    86  		return x.StaticConfig
    87  	}
    88  	return nil
    89  }
    90  
    91  type isCommonExtensionConfig_ConfigType interface {
    92  	isCommonExtensionConfig_ConfigType()
    93  }
    94  
    95  type CommonExtensionConfig_AdminConfig struct {
    96  	// If specified, the tap filter will be configured via an admin handler.
    97  	AdminConfig *AdminConfig `protobuf:"bytes,1,opt,name=admin_config,json=adminConfig,proto3,oneof"`
    98  }
    99  
   100  type CommonExtensionConfig_StaticConfig struct {
   101  	// If specified, the tap filter will be configured via a static configuration that cannot be
   102  	// changed.
   103  	StaticConfig *v2alpha.TapConfig `protobuf:"bytes,2,opt,name=static_config,json=staticConfig,proto3,oneof"`
   104  }
   105  
   106  func (*CommonExtensionConfig_AdminConfig) isCommonExtensionConfig_ConfigType() {}
   107  
   108  func (*CommonExtensionConfig_StaticConfig) isCommonExtensionConfig_ConfigType() {}
   109  
   110  // Configuration for the admin handler. See :ref:`here <config_http_filters_tap_admin_handler>` for
   111  // more information.
   112  type AdminConfig struct {
   113  	state         protoimpl.MessageState
   114  	sizeCache     protoimpl.SizeCache
   115  	unknownFields protoimpl.UnknownFields
   116  
   117  	// Opaque configuration ID. When requests are made to the admin handler, the passed opaque ID is
   118  	// matched to the configured filter opaque ID to determine which filter to configure.
   119  	ConfigId string `protobuf:"bytes,1,opt,name=config_id,json=configId,proto3" json:"config_id,omitempty"`
   120  }
   121  
   122  func (x *AdminConfig) Reset() {
   123  	*x = AdminConfig{}
   124  	if protoimpl.UnsafeEnabled {
   125  		mi := &file_envoy_config_common_tap_v2alpha_common_proto_msgTypes[1]
   126  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   127  		ms.StoreMessageInfo(mi)
   128  	}
   129  }
   130  
   131  func (x *AdminConfig) String() string {
   132  	return protoimpl.X.MessageStringOf(x)
   133  }
   134  
   135  func (*AdminConfig) ProtoMessage() {}
   136  
   137  func (x *AdminConfig) ProtoReflect() protoreflect.Message {
   138  	mi := &file_envoy_config_common_tap_v2alpha_common_proto_msgTypes[1]
   139  	if protoimpl.UnsafeEnabled && x != nil {
   140  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   141  		if ms.LoadMessageInfo() == nil {
   142  			ms.StoreMessageInfo(mi)
   143  		}
   144  		return ms
   145  	}
   146  	return mi.MessageOf(x)
   147  }
   148  
   149  // Deprecated: Use AdminConfig.ProtoReflect.Descriptor instead.
   150  func (*AdminConfig) Descriptor() ([]byte, []int) {
   151  	return file_envoy_config_common_tap_v2alpha_common_proto_rawDescGZIP(), []int{1}
   152  }
   153  
   154  func (x *AdminConfig) GetConfigId() string {
   155  	if x != nil {
   156  		return x.ConfigId
   157  	}
   158  	return ""
   159  }
   160  
   161  var File_envoy_config_common_tap_v2alpha_common_proto protoreflect.FileDescriptor
   162  
   163  var file_envoy_config_common_tap_v2alpha_common_proto_rawDesc = []byte{
   164  	0x0a, 0x2c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63,
   165  	0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x74, 0x61, 0x70, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68,
   166  	0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f,
   167  	0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x6d,
   168  	0x6d, 0x6f, 0x6e, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a,
   169  	0x26, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x74,
   170  	0x61, 0x70, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
   171  	0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e,
   172  	0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74,
   173  	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e,
   174  	0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
   175  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65,
   176  	0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
   177  	0xcb, 0x01, 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73,
   178  	0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x51, 0x0a, 0x0c, 0x61, 0x64, 0x6d,
   179  	0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
   180  	0x2c, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63,
   181  	0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68,
   182  	0x61, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52,
   183  	0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4b, 0x0a, 0x0d,
   184  	0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20,
   185  	0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76,
   186  	0x69, 0x63, 0x65, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e,
   187  	0x54, 0x61, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61,
   188  	0x74, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x12, 0x0a, 0x0b, 0x63, 0x6f, 0x6e,
   189  	0x66, 0x69, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x03, 0xf8, 0x42, 0x01, 0x22, 0x33, 0x0a,
   190  	0x0b, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x24, 0x0a, 0x09,
   191  	0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
   192  	0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x20, 0x01, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
   193  	0x49, 0x64, 0x42, 0xb4, 0x01, 0x0a, 0x2d, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70,
   194  	0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69,
   195  	0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61,
   196  	0x6c, 0x70, 0x68, 0x61, 0x42, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74,
   197  	0x6f, 0x50, 0x01, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
   198  	0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f,
   199  	0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f,
   200  	0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f,
   201  	0x74, 0x61, 0x70, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xf2, 0x98, 0xfe, 0x8f, 0x05,
   202  	0x20, 0x12, 0x1e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
   203  	0x6f, 0x6e, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76,
   204  	0x33, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   205  	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  }
   290  

View as plain text