Debian Codegraph @

envoy/extensions/matching/input_matchers/ip/v3/ip.pb.go

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