gitee.com/zhaochuninhefei/gmgo@v0.0.31-0.20240209061119-069254a02979/go-control-plane/envoy/extensions/matching/input_matchers/ip/v3/ip.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/matching/input_matchers/ip/v3/ip.proto
     6  
     7  package envoy_extensions_matching_input_matchers_ip_v3
     8  
     9  import (
    10  	_ "github.com/cncf/xds/go/udpa/annotations"
    11  	v3 "gitee.com/zhaochuninhefei/gmgo/go-control-plane/envoy/config/core/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  // This input matcher matches IPv4 or IPv6 addresses against a list of CIDR
    32  // ranges. It returns true if and only if the input IP belongs to at least one
    33  // of these CIDR ranges. Internally, it uses a Level-Compressed trie, as
    34  // described in the paper `IP-address lookup using LC-tries
    35  // <https://www.nada.kth.se/~snilsson/publications/IP-address-lookup-using-LC-tries/>`_
    36  // by S. Nilsson and G. Karlsson. For "big" lists of IPs, this matcher is more
    37  // efficient than multiple single IP matcher, that would have a linear cost.
    38  type Ip struct {
    39  	state         protoimpl.MessageState
    40  	sizeCache     protoimpl.SizeCache
    41  	unknownFields protoimpl.UnknownFields
    42  
    43  	// Match if the IP belongs to any of these CIDR ranges.
    44  	CidrRanges []*v3.CidrRange `protobuf:"bytes,1,rep,name=cidr_ranges,json=cidrRanges,proto3" json:"cidr_ranges,omitempty"`
    45  	// The human readable prefix to use when emitting statistics for the IP input
    46  	// matcher. Names in the table below are concatenated to this prefix.
    47  	//
    48  	// .. csv-table::
    49  	//    :header: Name, Type, Description
    50  	//    :widths: 1, 1, 2
    51  	//
    52  	//    ip_parsing_failed, Counter, Total number of IP addresses the matcher was unable to parse
    53  	StatPrefix string `protobuf:"bytes,2,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"`
    54  }
    55  
    56  func (x *Ip) Reset() {
    57  	*x = Ip{}
    58  	if protoimpl.UnsafeEnabled {
    59  		mi := &file_envoy_extensions_matching_input_matchers_ip_v3_ip_proto_msgTypes[0]
    60  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    61  		ms.StoreMessageInfo(mi)
    62  	}
    63  }
    64  
    65  func (x *Ip) String() string {
    66  	return protoimpl.X.MessageStringOf(x)
    67  }
    68  
    69  func (*Ip) ProtoMessage() {}
    70  
    71  func (x *Ip) ProtoReflect() protoreflect.Message {
    72  	mi := &file_envoy_extensions_matching_input_matchers_ip_v3_ip_proto_msgTypes[0]
    73  	if protoimpl.UnsafeEnabled && x != nil {
    74  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    75  		if ms.LoadMessageInfo() == nil {
    76  			ms.StoreMessageInfo(mi)
    77  		}
    78  		return ms
    79  	}
    80  	return mi.MessageOf(x)
    81  }
    82  
    83  // Deprecated: Use Ip.ProtoReflect.Descriptor instead.
    84  func (*Ip) Descriptor() ([]byte, []int) {
    85  	return file_envoy_extensions_matching_input_matchers_ip_v3_ip_proto_rawDescGZIP(), []int{0}
    86  }
    87  
    88  func (x *Ip) GetCidrRanges() []*v3.CidrRange {
    89  	if x != nil {
    90  		return x.CidrRanges
    91  	}
    92  	return nil
    93  }
    94  
    95  func (x *Ip) GetStatPrefix() string {
    96  	if x != nil {
    97  		return x.StatPrefix
    98  	}
    99  	return ""
   100  }
   101  
   102  var File_envoy_extensions_matching_input_matchers_ip_v3_ip_proto protoreflect.FileDescriptor
   103  
   104  var file_envoy_extensions_matching_input_matchers_ip_v3_ip_proto_rawDesc = []byte{
   105  	0x0a, 0x37, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
   106  	0x6e, 0x73, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2f, 0x69, 0x6e, 0x70, 0x75,
   107  	0x74, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, 0x2f, 0x69, 0x70, 0x2f, 0x76, 0x33,
   108  	0x2f, 0x69, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79,
   109  	0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x6d, 0x61, 0x74, 0x63,
   110  	0x68, 0x69, 0x6e, 0x67, 0x2e, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68,
   111  	0x65, 0x72, 0x73, 0x2e, 0x69, 0x70, 0x2e, 0x76, 0x33, 0x1a, 0x22, 0x65, 0x6e, 0x76, 0x6f, 0x79,
   112  	0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f,
   113  	0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75,
   114  	0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f,
   115  	0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61,
   116  	0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e,
   117  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7a, 0x0a, 0x02, 0x49, 0x70, 0x12, 0x4a, 0x0a, 0x0b, 0x63,
   118  	0x69, 0x64, 0x72, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
   119  	0x32, 0x1f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
   120  	0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x69, 0x64, 0x72, 0x52, 0x61, 0x6e, 0x67,
   121  	0x65, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x92, 0x01, 0x02, 0x08, 0x01, 0x52, 0x0a, 0x63, 0x69, 0x64,
   122  	0x72, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x28, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x5f,
   123  	0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42,
   124  	0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x50, 0x72, 0x65, 0x66, 0x69,
   125  	0x78, 0x42, 0x51, 0x0a, 0x3c, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f,
   126  	0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
   127  	0x6f, 0x6e, 0x73, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2e, 0x69, 0x6e, 0x70,
   128  	0x75, 0x74, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, 0x2e, 0x69, 0x70, 0x2e, 0x76,
   129  	0x33, 0x42, 0x07, 0x49, 0x70, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1,
   130  	0x06, 0x02, 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   131  }
   132  
   133  var (
   134  	file_envoy_extensions_matching_input_matchers_ip_v3_ip_proto_rawDescOnce sync.Once
   135  	file_envoy_extensions_matching_input_matchers_ip_v3_ip_proto_rawDescData = file_envoy_extensions_matching_input_matchers_ip_v3_ip_proto_rawDesc
   136  )
   137  
   138  func file_envoy_extensions_matching_input_matchers_ip_v3_ip_proto_rawDescGZIP() []byte {
   139  	file_envoy_extensions_matching_input_matchers_ip_v3_ip_proto_rawDescOnce.Do(func() {
   140  		file_envoy_extensions_matching_input_matchers_ip_v3_ip_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_matching_input_matchers_ip_v3_ip_proto_rawDescData)
   141  	})
   142  	return file_envoy_extensions_matching_input_matchers_ip_v3_ip_proto_rawDescData
   143  }
   144  
   145  var file_envoy_extensions_matching_input_matchers_ip_v3_ip_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   146  var file_envoy_extensions_matching_input_matchers_ip_v3_ip_proto_goTypes = []interface{}{
   147  	(*Ip)(nil),           // 0: envoy.extensions.matching.input_matchers.ip.v3.Ip
   148  	(*v3.CidrRange)(nil), // 1: envoy.config.core.v3.CidrRange
   149  }
   150  var file_envoy_extensions_matching_input_matchers_ip_v3_ip_proto_depIdxs = []int32{
   151  	1, // 0: envoy.extensions.matching.input_matchers.ip.v3.Ip.cidr_ranges:type_name -> envoy.config.core.v3.CidrRange
   152  	1, // [1:1] is the sub-list for method output_type
   153  	1, // [1:1] is the sub-list for method input_type
   154  	1, // [1:1] is the sub-list for extension type_name
   155  	1, // [1:1] is the sub-list for extension extendee
   156  	0, // [0:1] is the sub-list for field type_name
   157  }
   158  
   159  func init() { file_envoy_extensions_matching_input_matchers_ip_v3_ip_proto_init() }
   160  func file_envoy_extensions_matching_input_matchers_ip_v3_ip_proto_init() {
   161  	if File_envoy_extensions_matching_input_matchers_ip_v3_ip_proto != nil {
   162  		return
   163  	}
   164  	if !protoimpl.UnsafeEnabled {
   165  		file_envoy_extensions_matching_input_matchers_ip_v3_ip_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   166  			switch v := v.(*Ip); i {
   167  			case 0:
   168  				return &v.state
   169  			case 1:
   170  				return &v.sizeCache
   171  			case 2:
   172  				return &v.unknownFields
   173  			default:
   174  				return nil
   175  			}
   176  		}
   177  	}
   178  	type x struct{}
   179  	out := protoimpl.TypeBuilder{
   180  		File: protoimpl.DescBuilder{
   181  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   182  			RawDescriptor: file_envoy_extensions_matching_input_matchers_ip_v3_ip_proto_rawDesc,
   183  			NumEnums:      0,
   184  			NumMessages:   1,
   185  			NumExtensions: 0,
   186  			NumServices:   0,
   187  		},
   188  		GoTypes:           file_envoy_extensions_matching_input_matchers_ip_v3_ip_proto_goTypes,
   189  		DependencyIndexes: file_envoy_extensions_matching_input_matchers_ip_v3_ip_proto_depIdxs,
   190  		MessageInfos:      file_envoy_extensions_matching_input_matchers_ip_v3_ip_proto_msgTypes,
   191  	}.Build()
   192  	File_envoy_extensions_matching_input_matchers_ip_v3_ip_proto = out.File
   193  	file_envoy_extensions_matching_input_matchers_ip_v3_ip_proto_rawDesc = nil
   194  	file_envoy_extensions_matching_input_matchers_ip_v3_ip_proto_goTypes = nil
   195  	file_envoy_extensions_matching_input_matchers_ip_v3_ip_proto_depIdxs = nil
   196  }