...

Source file src/github.com/datawire/ambassador/v2/pkg/api/envoy/extensions/common/tap/v3/common.pb.go

Documentation: github.com/datawire/ambassador/v2/pkg/api/envoy/extensions/common/tap/v3

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.25.0
     4  // 	protoc        v3.14.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/udpa/go/udpa/annotations"
    11  	v3 "github.com/datawire/ambassador/v2/pkg/api/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  	0x1e, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   177  	0x73, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
   178  	0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   179  	0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21,
   180  	0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
   181  	0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   182  	0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69,
   183  	0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x82, 0x02, 0x0a, 0x15, 0x43,
   184  	0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f,
   185  	0x6e, 0x66, 0x69, 0x67, 0x12, 0x50, 0x0a, 0x0c, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x63, 0x6f,
   186  	0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x65, 0x6e, 0x76,
   187  	0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x63, 0x6f,
   188  	0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x33, 0x2e, 0x41, 0x64, 0x6d, 0x69,
   189  	0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e,
   190  	0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x45, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63,
   191  	0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e,
   192  	0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 0x61, 0x70,
   193  	0x2e, 0x76, 0x33, 0x2e, 0x54, 0x61, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52,
   194  	0x0c, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3c, 0x9a,
   195  	0xc5, 0x88, 0x1e, 0x37, 0x0a, 0x35, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66,
   196  	0x69, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32,
   197  	0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x45, 0x78, 0x74, 0x65,
   198  	0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x12, 0x0a, 0x0b, 0x63,
   199  	0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x03, 0xf8, 0x42, 0x01, 0x22,
   200  	0x67, 0x0a, 0x0b, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x24,
   201  	0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
   202  	0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x66,
   203  	0x69, 0x67, 0x49, 0x64, 0x3a, 0x32, 0x9a, 0xc5, 0x88, 0x1e, 0x2d, 0x0a, 0x2b, 0x65, 0x6e, 0x76,
   204  	0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
   205  	0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x41, 0x64, 0x6d,
   206  	0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x45, 0x0a, 0x2c, 0x69, 0x6f, 0x2e, 0x65,
   207  	0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e,
   208  	0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
   209  	0x6e, 0x2e, 0x74, 0x61, 0x70, 0x2e, 0x76, 0x33, 0x42, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
   210  	0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0x62,
   211  	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   212  }
   213  
   214  var (
   215  	file_envoy_extensions_common_tap_v3_common_proto_rawDescOnce sync.Once
   216  	file_envoy_extensions_common_tap_v3_common_proto_rawDescData = file_envoy_extensions_common_tap_v3_common_proto_rawDesc
   217  )
   218  
   219  func file_envoy_extensions_common_tap_v3_common_proto_rawDescGZIP() []byte {
   220  	file_envoy_extensions_common_tap_v3_common_proto_rawDescOnce.Do(func() {
   221  		file_envoy_extensions_common_tap_v3_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_common_tap_v3_common_proto_rawDescData)
   222  	})
   223  	return file_envoy_extensions_common_tap_v3_common_proto_rawDescData
   224  }
   225  
   226  var file_envoy_extensions_common_tap_v3_common_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   227  var file_envoy_extensions_common_tap_v3_common_proto_goTypes = []interface{}{
   228  	(*CommonExtensionConfig)(nil), // 0: envoy.extensions.common.tap.v3.CommonExtensionConfig
   229  	(*AdminConfig)(nil),           // 1: envoy.extensions.common.tap.v3.AdminConfig
   230  	(*v3.TapConfig)(nil),          // 2: envoy.config.tap.v3.TapConfig
   231  }
   232  var file_envoy_extensions_common_tap_v3_common_proto_depIdxs = []int32{
   233  	1, // 0: envoy.extensions.common.tap.v3.CommonExtensionConfig.admin_config:type_name -> envoy.extensions.common.tap.v3.AdminConfig
   234  	2, // 1: envoy.extensions.common.tap.v3.CommonExtensionConfig.static_config:type_name -> envoy.config.tap.v3.TapConfig
   235  	2, // [2:2] is the sub-list for method output_type
   236  	2, // [2:2] is the sub-list for method input_type
   237  	2, // [2:2] is the sub-list for extension type_name
   238  	2, // [2:2] is the sub-list for extension extendee
   239  	0, // [0:2] is the sub-list for field type_name
   240  }
   241  
   242  func init() { file_envoy_extensions_common_tap_v3_common_proto_init() }
   243  func file_envoy_extensions_common_tap_v3_common_proto_init() {
   244  	if File_envoy_extensions_common_tap_v3_common_proto != nil {
   245  		return
   246  	}
   247  	if !protoimpl.UnsafeEnabled {
   248  		file_envoy_extensions_common_tap_v3_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   249  			switch v := v.(*CommonExtensionConfig); i {
   250  			case 0:
   251  				return &v.state
   252  			case 1:
   253  				return &v.sizeCache
   254  			case 2:
   255  				return &v.unknownFields
   256  			default:
   257  				return nil
   258  			}
   259  		}
   260  		file_envoy_extensions_common_tap_v3_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   261  			switch v := v.(*AdminConfig); i {
   262  			case 0:
   263  				return &v.state
   264  			case 1:
   265  				return &v.sizeCache
   266  			case 2:
   267  				return &v.unknownFields
   268  			default:
   269  				return nil
   270  			}
   271  		}
   272  	}
   273  	file_envoy_extensions_common_tap_v3_common_proto_msgTypes[0].OneofWrappers = []interface{}{
   274  		(*CommonExtensionConfig_AdminConfig)(nil),
   275  		(*CommonExtensionConfig_StaticConfig)(nil),
   276  	}
   277  	type x struct{}
   278  	out := protoimpl.TypeBuilder{
   279  		File: protoimpl.DescBuilder{
   280  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   281  			RawDescriptor: file_envoy_extensions_common_tap_v3_common_proto_rawDesc,
   282  			NumEnums:      0,
   283  			NumMessages:   2,
   284  			NumExtensions: 0,
   285  			NumServices:   0,
   286  		},
   287  		GoTypes:           file_envoy_extensions_common_tap_v3_common_proto_goTypes,
   288  		DependencyIndexes: file_envoy_extensions_common_tap_v3_common_proto_depIdxs,
   289  		MessageInfos:      file_envoy_extensions_common_tap_v3_common_proto_msgTypes,
   290  	}.Build()
   291  	File_envoy_extensions_common_tap_v3_common_proto = out.File
   292  	file_envoy_extensions_common_tap_v3_common_proto_rawDesc = nil
   293  	file_envoy_extensions_common_tap_v3_common_proto_goTypes = nil
   294  	file_envoy_extensions_common_tap_v3_common_proto_depIdxs = nil
   295  }
   296  

View as plain text