1// Code generated by protoc-gen-go. DO NOT EDIT. 2// versions: 3// protoc-gen-go v1.25.0 4// protoc v3.18.0 5// source: xds/type/matcher/v3/ip.proto 6 7package v3 8 9import ( 10 _ "github.com/cncf/xds/go/xds/annotations/v3" 11 v3 "github.com/cncf/xds/go/xds/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 20const ( 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. 29const _ = proto.ProtoPackageIsVersion4 30 31type IPMatcher struct { 32 state protoimpl.MessageState 33 sizeCache protoimpl.SizeCache 34 unknownFields protoimpl.UnknownFields 35 36 RangeMatchers []*IPMatcher_IPRangeMatcher `protobuf:"bytes,1,rep,name=range_matchers,json=rangeMatchers,proto3" json:"range_matchers,omitempty"` 37} 38 39func (x *IPMatcher) Reset() { 40 *x = IPMatcher{} 41 if protoimpl.UnsafeEnabled { 42 mi := &file_xds_type_matcher_v3_ip_proto_msgTypes[0] 43 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 44 ms.StoreMessageInfo(mi) 45 } 46} 47 48func (x *IPMatcher) String() string { 49 return protoimpl.X.MessageStringOf(x) 50} 51 52func (*IPMatcher) ProtoMessage() {} 53 54func (x *IPMatcher) ProtoReflect() protoreflect.Message { 55 mi := &file_xds_type_matcher_v3_ip_proto_msgTypes[0] 56 if protoimpl.UnsafeEnabled && x != nil { 57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 58 if ms.LoadMessageInfo() == nil { 59 ms.StoreMessageInfo(mi) 60 } 61 return ms 62 } 63 return mi.MessageOf(x) 64} 65 66// Deprecated: Use IPMatcher.ProtoReflect.Descriptor instead. 67func (*IPMatcher) Descriptor() ([]byte, []int) { 68 return file_xds_type_matcher_v3_ip_proto_rawDescGZIP(), []int{0} 69} 70 71func (x *IPMatcher) GetRangeMatchers() []*IPMatcher_IPRangeMatcher { 72 if x != nil { 73 return x.RangeMatchers 74 } 75 return nil 76} 77 78type IPMatcher_IPRangeMatcher struct { 79 state protoimpl.MessageState 80 sizeCache protoimpl.SizeCache 81 unknownFields protoimpl.UnknownFields 82 83 Ranges []*v3.CidrRange `protobuf:"bytes,1,rep,name=ranges,proto3" json:"ranges,omitempty"` 84 OnMatch *Matcher_OnMatch `protobuf:"bytes,2,opt,name=on_match,json=onMatch,proto3" json:"on_match,omitempty"` 85 Exclusive bool `protobuf:"varint,3,opt,name=exclusive,proto3" json:"exclusive,omitempty"` 86} 87 88func (x *IPMatcher_IPRangeMatcher) Reset() { 89 *x = IPMatcher_IPRangeMatcher{} 90 if protoimpl.UnsafeEnabled { 91 mi := &file_xds_type_matcher_v3_ip_proto_msgTypes[1] 92 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 93 ms.StoreMessageInfo(mi) 94 } 95} 96 97func (x *IPMatcher_IPRangeMatcher) String() string { 98 return protoimpl.X.MessageStringOf(x) 99} 100 101func (*IPMatcher_IPRangeMatcher) ProtoMessage() {} 102 103func (x *IPMatcher_IPRangeMatcher) ProtoReflect() protoreflect.Message { 104 mi := &file_xds_type_matcher_v3_ip_proto_msgTypes[1] 105 if protoimpl.UnsafeEnabled && x != nil { 106 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 107 if ms.LoadMessageInfo() == nil { 108 ms.StoreMessageInfo(mi) 109 } 110 return ms 111 } 112 return mi.MessageOf(x) 113} 114 115// Deprecated: Use IPMatcher_IPRangeMatcher.ProtoReflect.Descriptor instead. 116func (*IPMatcher_IPRangeMatcher) Descriptor() ([]byte, []int) { 117 return file_xds_type_matcher_v3_ip_proto_rawDescGZIP(), []int{0, 0} 118} 119 120func (x *IPMatcher_IPRangeMatcher) GetRanges() []*v3.CidrRange { 121 if x != nil { 122 return x.Ranges 123 } 124 return nil 125} 126 127func (x *IPMatcher_IPRangeMatcher) GetOnMatch() *Matcher_OnMatch { 128 if x != nil { 129 return x.OnMatch 130 } 131 return nil 132} 133 134func (x *IPMatcher_IPRangeMatcher) GetExclusive() bool { 135 if x != nil { 136 return x.Exclusive 137 } 138 return false 139} 140 141var File_xds_type_matcher_v3_ip_proto protoreflect.FileDescriptor 142 143var file_xds_type_matcher_v3_ip_proto_rawDesc = []byte{ 144 0x0a, 0x1c, 0x78, 0x64, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 145 0x65, 0x72, 0x2f, 0x76, 0x33, 0x2f, 0x69, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 146 0x78, 0x64, 0x73, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 147 0x2e, 0x76, 0x33, 0x1a, 0x1f, 0x78, 0x64, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 148 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x33, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 149 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x78, 0x64, 0x73, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 150 0x33, 0x2f, 0x63, 0x69, 0x64, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x78, 0x64, 151 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2f, 0x76, 152 0x33, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 153 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 154 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8d, 0x02, 0x0a, 0x09, 0x49, 0x50, 0x4d, 155 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x12, 0x54, 0x0a, 0x0e, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 156 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 157 0x2e, 0x78, 0x64, 0x73, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 158 0x72, 0x2e, 0x76, 0x33, 0x2e, 0x49, 0x50, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x49, 159 0x50, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x52, 0x0d, 0x72, 160 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x73, 0x1a, 0xa9, 0x01, 0x0a, 161 0x0e, 0x49, 0x50, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x12, 162 0x38, 0x0a, 0x06, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 163 0x16, 0x2e, 0x78, 0x64, 0x73, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x69, 164 0x64, 0x72, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x92, 0x01, 0x02, 0x08, 165 0x01, 0x52, 0x06, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x3f, 0x0a, 0x08, 0x6f, 0x6e, 0x5f, 166 0x6d, 0x61, 0x74, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x78, 0x64, 167 0x73, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x76, 168 0x33, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x4f, 0x6e, 0x4d, 0x61, 0x74, 0x63, 169 0x68, 0x52, 0x07, 0x6f, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x78, 170 0x63, 0x6c, 0x75, 0x73, 0x69, 0x76, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x65, 171 0x78, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x76, 0x65, 0x42, 0x66, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 172 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x78, 0x64, 0x73, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 173 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x2e, 0x76, 0x33, 0x42, 0x0e, 0x49, 0x50, 0x4d, 0x61, 174 0x74, 0x63, 0x68, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2a, 0x67, 0x69, 175 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6e, 0x63, 0x66, 0x2f, 0x78, 0x64, 176 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x78, 0x64, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x6d, 0x61, 177 0x74, 0x63, 0x68, 0x65, 0x72, 0x2f, 0x76, 0x33, 0xd2, 0xc6, 0xa4, 0xe1, 0x06, 0x02, 0x08, 0x01, 178 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 179} 180 181var ( 182 file_xds_type_matcher_v3_ip_proto_rawDescOnce sync.Once 183 file_xds_type_matcher_v3_ip_proto_rawDescData = file_xds_type_matcher_v3_ip_proto_rawDesc 184) 185 186func file_xds_type_matcher_v3_ip_proto_rawDescGZIP() []byte { 187 file_xds_type_matcher_v3_ip_proto_rawDescOnce.Do(func() { 188 file_xds_type_matcher_v3_ip_proto_rawDescData = protoimpl.X.CompressGZIP(file_xds_type_matcher_v3_ip_proto_rawDescData) 189 }) 190 return file_xds_type_matcher_v3_ip_proto_rawDescData 191} 192 193var file_xds_type_matcher_v3_ip_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 194var file_xds_type_matcher_v3_ip_proto_goTypes = []interface{}{ 195 (*IPMatcher)(nil), // 0: xds.type.matcher.v3.IPMatcher 196 (*IPMatcher_IPRangeMatcher)(nil), // 1: xds.type.matcher.v3.IPMatcher.IPRangeMatcher 197 (*v3.CidrRange)(nil), // 2: xds.core.v3.CidrRange 198 (*Matcher_OnMatch)(nil), // 3: xds.type.matcher.v3.Matcher.OnMatch 199} 200var file_xds_type_matcher_v3_ip_proto_depIdxs = []int32{ 201 1, // 0: xds.type.matcher.v3.IPMatcher.range_matchers:type_name -> xds.type.matcher.v3.IPMatcher.IPRangeMatcher 202 2, // 1: xds.type.matcher.v3.IPMatcher.IPRangeMatcher.ranges:type_name -> xds.core.v3.CidrRange 203 3, // 2: xds.type.matcher.v3.IPMatcher.IPRangeMatcher.on_match:type_name -> xds.type.matcher.v3.Matcher.OnMatch 204 3, // [3:3] is the sub-list for method output_type 205 3, // [3:3] is the sub-list for method input_type 206 3, // [3:3] is the sub-list for extension type_name 207 3, // [3:3] is the sub-list for extension extendee 208 0, // [0:3] is the sub-list for field type_name 209} 210 211func init() { file_xds_type_matcher_v3_ip_proto_init() } 212func file_xds_type_matcher_v3_ip_proto_init() { 213 if File_xds_type_matcher_v3_ip_proto != nil { 214 return 215 } 216 file_xds_type_matcher_v3_matcher_proto_init() 217 if !protoimpl.UnsafeEnabled { 218 file_xds_type_matcher_v3_ip_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 219 switch v := v.(*IPMatcher); i { 220 case 0: 221 return &v.state 222 case 1: 223 return &v.sizeCache 224 case 2: 225 return &v.unknownFields 226 default: 227 return nil 228 } 229 } 230 file_xds_type_matcher_v3_ip_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 231 switch v := v.(*IPMatcher_IPRangeMatcher); i { 232 case 0: 233 return &v.state 234 case 1: 235 return &v.sizeCache 236 case 2: 237 return &v.unknownFields 238 default: 239 return nil 240 } 241 } 242 } 243 type x struct{} 244 out := protoimpl.TypeBuilder{ 245 File: protoimpl.DescBuilder{ 246 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 247 RawDescriptor: file_xds_type_matcher_v3_ip_proto_rawDesc, 248 NumEnums: 0, 249 NumMessages: 2, 250 NumExtensions: 0, 251 NumServices: 0, 252 }, 253 GoTypes: file_xds_type_matcher_v3_ip_proto_goTypes, 254 DependencyIndexes: file_xds_type_matcher_v3_ip_proto_depIdxs, 255 MessageInfos: file_xds_type_matcher_v3_ip_proto_msgTypes, 256 }.Build() 257 File_xds_type_matcher_v3_ip_proto = out.File 258 file_xds_type_matcher_v3_ip_proto_rawDesc = nil 259 file_xds_type_matcher_v3_ip_proto_goTypes = nil 260 file_xds_type_matcher_v3_ip_proto_depIdxs = nil 261} 262