| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
package v3 |
| 8 |
|
| 9 |
import ( |
| 10 |
v3 "github.com/cncf/xds/go/xds/type/v3" |
| 11 |
_ "github.com/envoyproxy/protoc-gen-validate/validate" |
| 12 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 13 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 14 |
reflect "reflect" |
| 15 |
sync "sync" |
| 16 |
unsafe "unsafe" |
| 17 |
) |
| 18 |
|
| 19 |
const ( |
| 20 |
|
| 21 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 22 |
|
| 23 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 24 |
) |
| 25 |
|
| 26 |
type Int64RangeMatcher struct { |
| 27 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 28 |
RangeMatchers []*Int64RangeMatcher_RangeMatcher `protobuf:"bytes,1,rep,name=range_matchers,json=rangeMatchers,proto3" json:"range_matchers,omitempty"` |
| 29 |
unknownFields protoimpl.UnknownFields |
| 30 |
sizeCache protoimpl.SizeCache |
| 31 |
} |
| 32 |
|
| 33 |
func (x *Int64RangeMatcher) Reset() { |
| 34 |
*x = Int64RangeMatcher{} |
| 35 |
mi := &file_xds_type_matcher_v3_range_proto_msgTypes[0] |
| 36 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 37 |
ms.StoreMessageInfo(mi) |
| 38 |
} |
| 39 |
|
| 40 |
func (x *Int64RangeMatcher) String() string { |
| 41 |
return protoimpl.X.MessageStringOf(x) |
| 42 |
} |
| 43 |
|
| 44 |
func (*Int64RangeMatcher) ProtoMessage() {} |
| 45 |
|
| 46 |
func (x *Int64RangeMatcher) ProtoReflect() protoreflect.Message { |
| 47 |
mi := &file_xds_type_matcher_v3_range_proto_msgTypes[0] |
| 48 |
if x != nil { |
| 49 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 50 |
if ms.LoadMessageInfo() == nil { |
| 51 |
ms.StoreMessageInfo(mi) |
| 52 |
} |
| 53 |
return ms |
| 54 |
} |
| 55 |
return mi.MessageOf(x) |
| 56 |
} |
| 57 |
|
| 58 |
|
| 59 |
func (*Int64RangeMatcher) Descriptor() ([]byte, []int) { |
| 60 |
return file_xds_type_matcher_v3_range_proto_rawDescGZIP(), []int{0} |
| 61 |
} |
| 62 |
|
| 63 |
func (x *Int64RangeMatcher) GetRangeMatchers() []*Int64RangeMatcher_RangeMatcher { |
| 64 |
if x != nil { |
| 65 |
return x.RangeMatchers |
| 66 |
} |
| 67 |
return nil |
| 68 |
} |
| 69 |
|
| 70 |
type Int32RangeMatcher struct { |
| 71 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 72 |
RangeMatchers []*Int32RangeMatcher_RangeMatcher `protobuf:"bytes,1,rep,name=range_matchers,json=rangeMatchers,proto3" json:"range_matchers,omitempty"` |
| 73 |
unknownFields protoimpl.UnknownFields |
| 74 |
sizeCache protoimpl.SizeCache |
| 75 |
} |
| 76 |
|
| 77 |
func (x *Int32RangeMatcher) Reset() { |
| 78 |
*x = Int32RangeMatcher{} |
| 79 |
mi := &file_xds_type_matcher_v3_range_proto_msgTypes[1] |
| 80 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 81 |
ms.StoreMessageInfo(mi) |
| 82 |
} |
| 83 |
|
| 84 |
func (x *Int32RangeMatcher) String() string { |
| 85 |
return protoimpl.X.MessageStringOf(x) |
| 86 |
} |
| 87 |
|
| 88 |
func (*Int32RangeMatcher) ProtoMessage() {} |
| 89 |
|
| 90 |
func (x *Int32RangeMatcher) ProtoReflect() protoreflect.Message { |
| 91 |
mi := &file_xds_type_matcher_v3_range_proto_msgTypes[1] |
| 92 |
if x != nil { |
| 93 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 94 |
if ms.LoadMessageInfo() == nil { |
| 95 |
ms.StoreMessageInfo(mi) |
| 96 |
} |
| 97 |
return ms |
| 98 |
} |
| 99 |
return mi.MessageOf(x) |
| 100 |
} |
| 101 |
|
| 102 |
|
| 103 |
func (*Int32RangeMatcher) Descriptor() ([]byte, []int) { |
| 104 |
return file_xds_type_matcher_v3_range_proto_rawDescGZIP(), []int{1} |
| 105 |
} |
| 106 |
|
| 107 |
func (x *Int32RangeMatcher) GetRangeMatchers() []*Int32RangeMatcher_RangeMatcher { |
| 108 |
if x != nil { |
| 109 |
return x.RangeMatchers |
| 110 |
} |
| 111 |
return nil |
| 112 |
} |
| 113 |
|
| 114 |
type DoubleRangeMatcher struct { |
| 115 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 116 |
RangeMatchers []*DoubleRangeMatcher_RangeMatcher `protobuf:"bytes,1,rep,name=range_matchers,json=rangeMatchers,proto3" json:"range_matchers,omitempty"` |
| 117 |
unknownFields protoimpl.UnknownFields |
| 118 |
sizeCache protoimpl.SizeCache |
| 119 |
} |
| 120 |
|
| 121 |
func (x *DoubleRangeMatcher) Reset() { |
| 122 |
*x = DoubleRangeMatcher{} |
| 123 |
mi := &file_xds_type_matcher_v3_range_proto_msgTypes[2] |
| 124 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 125 |
ms.StoreMessageInfo(mi) |
| 126 |
} |
| 127 |
|
| 128 |
func (x *DoubleRangeMatcher) String() string { |
| 129 |
return protoimpl.X.MessageStringOf(x) |
| 130 |
} |
| 131 |
|
| 132 |
func (*DoubleRangeMatcher) ProtoMessage() {} |
| 133 |
|
| 134 |
func (x *DoubleRangeMatcher) ProtoReflect() protoreflect.Message { |
| 135 |
mi := &file_xds_type_matcher_v3_range_proto_msgTypes[2] |
| 136 |
if x != nil { |
| 137 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 138 |
if ms.LoadMessageInfo() == nil { |
| 139 |
ms.StoreMessageInfo(mi) |
| 140 |
} |
| 141 |
return ms |
| 142 |
} |
| 143 |
return mi.MessageOf(x) |
| 144 |
} |
| 145 |
|
| 146 |
|
| 147 |
func (*DoubleRangeMatcher) Descriptor() ([]byte, []int) { |
| 148 |
return file_xds_type_matcher_v3_range_proto_rawDescGZIP(), []int{2} |
| 149 |
} |
| 150 |
|
| 151 |
func (x *DoubleRangeMatcher) GetRangeMatchers() []*DoubleRangeMatcher_RangeMatcher { |
| 152 |
if x != nil { |
| 153 |
return x.RangeMatchers |
| 154 |
} |
| 155 |
return nil |
| 156 |
} |
| 157 |
|
| 158 |
type Int64RangeMatcher_RangeMatcher struct { |
| 159 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 160 |
Ranges []*v3.Int64Range `protobuf:"bytes,1,rep,name=ranges,proto3" json:"ranges,omitempty"` |
| 161 |
OnMatch *Matcher_OnMatch `protobuf:"bytes,2,opt,name=on_match,json=onMatch,proto3" json:"on_match,omitempty"` |
| 162 |
unknownFields protoimpl.UnknownFields |
| 163 |
sizeCache protoimpl.SizeCache |
| 164 |
} |
| 165 |
|
| 166 |
func (x *Int64RangeMatcher_RangeMatcher) Reset() { |
| 167 |
*x = Int64RangeMatcher_RangeMatcher{} |
| 168 |
mi := &file_xds_type_matcher_v3_range_proto_msgTypes[3] |
| 169 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 170 |
ms.StoreMessageInfo(mi) |
| 171 |
} |
| 172 |
|
| 173 |
func (x *Int64RangeMatcher_RangeMatcher) String() string { |
| 174 |
return protoimpl.X.MessageStringOf(x) |
| 175 |
} |
| 176 |
|
| 177 |
func (*Int64RangeMatcher_RangeMatcher) ProtoMessage() {} |
| 178 |
|
| 179 |
func (x *Int64RangeMatcher_RangeMatcher) ProtoReflect() protoreflect.Message { |
| 180 |
mi := &file_xds_type_matcher_v3_range_proto_msgTypes[3] |
| 181 |
if x != nil { |
| 182 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 183 |
if ms.LoadMessageInfo() == nil { |
| 184 |
ms.StoreMessageInfo(mi) |
| 185 |
} |
| 186 |
return ms |
| 187 |
} |
| 188 |
return mi.MessageOf(x) |
| 189 |
} |
| 190 |
|
| 191 |
|
| 192 |
func (*Int64RangeMatcher_RangeMatcher) Descriptor() ([]byte, []int) { |
| 193 |
return file_xds_type_matcher_v3_range_proto_rawDescGZIP(), []int{0, 0} |
| 194 |
} |
| 195 |
|
| 196 |
func (x *Int64RangeMatcher_RangeMatcher) GetRanges() []*v3.Int64Range { |
| 197 |
if x != nil { |
| 198 |
return x.Ranges |
| 199 |
} |
| 200 |
return nil |
| 201 |
} |
| 202 |
|
| 203 |
func (x *Int64RangeMatcher_RangeMatcher) GetOnMatch() *Matcher_OnMatch { |
| 204 |
if x != nil { |
| 205 |
return x.OnMatch |
| 206 |
} |
| 207 |
return nil |
| 208 |
} |
| 209 |
|
| 210 |
type Int32RangeMatcher_RangeMatcher struct { |
| 211 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 212 |
Ranges []*v3.Int32Range `protobuf:"bytes,1,rep,name=ranges,proto3" json:"ranges,omitempty"` |
| 213 |
OnMatch *Matcher_OnMatch `protobuf:"bytes,2,opt,name=on_match,json=onMatch,proto3" json:"on_match,omitempty"` |
| 214 |
unknownFields protoimpl.UnknownFields |
| 215 |
sizeCache protoimpl.SizeCache |
| 216 |
} |
| 217 |
|
| 218 |
func (x *Int32RangeMatcher_RangeMatcher) Reset() { |
| 219 |
*x = Int32RangeMatcher_RangeMatcher{} |
| 220 |
mi := &file_xds_type_matcher_v3_range_proto_msgTypes[4] |
| 221 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 222 |
ms.StoreMessageInfo(mi) |
| 223 |
} |
| 224 |
|
| 225 |
func (x *Int32RangeMatcher_RangeMatcher) String() string { |
| 226 |
return protoimpl.X.MessageStringOf(x) |
| 227 |
} |
| 228 |
|
| 229 |
func (*Int32RangeMatcher_RangeMatcher) ProtoMessage() {} |
| 230 |
|
| 231 |
func (x *Int32RangeMatcher_RangeMatcher) ProtoReflect() protoreflect.Message { |
| 232 |
mi := &file_xds_type_matcher_v3_range_proto_msgTypes[4] |
| 233 |
if x != nil { |
| 234 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 235 |
if ms.LoadMessageInfo() == nil { |
| 236 |
ms.StoreMessageInfo(mi) |
| 237 |
} |
| 238 |
return ms |
| 239 |
} |
| 240 |
return mi.MessageOf(x) |
| 241 |
} |
| 242 |
|
| 243 |
|
| 244 |
func (*Int32RangeMatcher_RangeMatcher) Descriptor() ([]byte, []int) { |
| 245 |
return file_xds_type_matcher_v3_range_proto_rawDescGZIP(), []int{1, 0} |
| 246 |
} |
| 247 |
|
| 248 |
func (x *Int32RangeMatcher_RangeMatcher) GetRanges() []*v3.Int32Range { |
| 249 |
if x != nil { |
| 250 |
return x.Ranges |
| 251 |
} |
| 252 |
return nil |
| 253 |
} |
| 254 |
|
| 255 |
func (x *Int32RangeMatcher_RangeMatcher) GetOnMatch() *Matcher_OnMatch { |
| 256 |
if x != nil { |
| 257 |
return x.OnMatch |
| 258 |
} |
| 259 |
return nil |
| 260 |
} |
| 261 |
|
| 262 |
type DoubleRangeMatcher_RangeMatcher struct { |
| 263 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 264 |
Ranges []*v3.DoubleRange `protobuf:"bytes,1,rep,name=ranges,proto3" json:"ranges,omitempty"` |
| 265 |
OnMatch *Matcher_OnMatch `protobuf:"bytes,2,opt,name=on_match,json=onMatch,proto3" json:"on_match,omitempty"` |
| 266 |
unknownFields protoimpl.UnknownFields |
| 267 |
sizeCache protoimpl.SizeCache |
| 268 |
} |
| 269 |
|
| 270 |
func (x *DoubleRangeMatcher_RangeMatcher) Reset() { |
| 271 |
*x = DoubleRangeMatcher_RangeMatcher{} |
| 272 |
mi := &file_xds_type_matcher_v3_range_proto_msgTypes[5] |
| 273 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 274 |
ms.StoreMessageInfo(mi) |
| 275 |
} |
| 276 |
|
| 277 |
func (x *DoubleRangeMatcher_RangeMatcher) String() string { |
| 278 |
return protoimpl.X.MessageStringOf(x) |
| 279 |
} |
| 280 |
|
| 281 |
func (*DoubleRangeMatcher_RangeMatcher) ProtoMessage() {} |
| 282 |
|
| 283 |
func (x *DoubleRangeMatcher_RangeMatcher) ProtoReflect() protoreflect.Message { |
| 284 |
mi := &file_xds_type_matcher_v3_range_proto_msgTypes[5] |
| 285 |
if x != nil { |
| 286 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 287 |
if ms.LoadMessageInfo() == nil { |
| 288 |
ms.StoreMessageInfo(mi) |
| 289 |
} |
| 290 |
return ms |
| 291 |
} |
| 292 |
return mi.MessageOf(x) |
| 293 |
} |
| 294 |
|
| 295 |
|
| 296 |
func (*DoubleRangeMatcher_RangeMatcher) Descriptor() ([]byte, []int) { |
| 297 |
return file_xds_type_matcher_v3_range_proto_rawDescGZIP(), []int{2, 0} |
| 298 |
} |
| 299 |
|
| 300 |
func (x *DoubleRangeMatcher_RangeMatcher) GetRanges() []*v3.DoubleRange { |
| 301 |
if x != nil { |
| 302 |
return x.Ranges |
| 303 |
} |
| 304 |
return nil |
| 305 |
} |
| 306 |
|
| 307 |
func (x *DoubleRangeMatcher_RangeMatcher) GetOnMatch() *Matcher_OnMatch { |
| 308 |
if x != nil { |
| 309 |
return x.OnMatch |
| 310 |
} |
| 311 |
return nil |
| 312 |
} |
| 313 |
|
| 314 |
var File_xds_type_matcher_v3_range_proto protoreflect.FileDescriptor |
| 315 |
|
| 316 |
const file_xds_type_matcher_v3_range_proto_rawDesc = "" + |
| 317 |
"\n" + |
| 318 |
"\x1fxds/type/matcher/v3/range.proto\x12\x13xds.type.matcher.v3\x1a\x17xds/type/v3/range.proto\x1a!xds/type/matcher/v3/matcher.proto\x1a\x17validate/validate.proto\"\xfc\x01\n" + |
| 319 |
"\x11Int64RangeMatcher\x12Z\n" + |
| 320 |
"\x0erange_matchers\x18\x01 \x03(\v23.xds.type.matcher.v3.Int64RangeMatcher.RangeMatcherR\rrangeMatchers\x1a\x8a\x01\n" + |
| 321 |
"\fRangeMatcher\x129\n" + |
| 322 |
"\x06ranges\x18\x01 \x03(\v2\x17.xds.type.v3.Int64RangeB\b\xfaB\x05\x92\x01\x02\b\x01R\x06ranges\x12?\n" + |
| 323 |
"\bon_match\x18\x02 \x01(\v2$.xds.type.matcher.v3.Matcher.OnMatchR\aonMatch\"\xfc\x01\n" + |
| 324 |
"\x11Int32RangeMatcher\x12Z\n" + |
| 325 |
"\x0erange_matchers\x18\x01 \x03(\v23.xds.type.matcher.v3.Int32RangeMatcher.RangeMatcherR\rrangeMatchers\x1a\x8a\x01\n" + |
| 326 |
"\fRangeMatcher\x129\n" + |
| 327 |
"\x06ranges\x18\x01 \x03(\v2\x17.xds.type.v3.Int32RangeB\b\xfaB\x05\x92\x01\x02\b\x01R\x06ranges\x12?\n" + |
| 328 |
"\bon_match\x18\x02 \x01(\v2$.xds.type.matcher.v3.Matcher.OnMatchR\aonMatch\"\xff\x01\n" + |
| 329 |
"\x12DoubleRangeMatcher\x12[\n" + |
| 330 |
"\x0erange_matchers\x18\x01 \x03(\v24.xds.type.matcher.v3.DoubleRangeMatcher.RangeMatcherR\rrangeMatchers\x1a\x8b\x01\n" + |
| 331 |
"\fRangeMatcher\x12:\n" + |
| 332 |
"\x06ranges\x18\x01 \x03(\v2\x18.xds.type.v3.DoubleRangeB\b\xfaB\x05\x92\x01\x02\b\x01R\x06ranges\x12?\n" + |
| 333 |
"\bon_match\x18\x02 \x01(\v2$.xds.type.matcher.v3.Matcher.OnMatchR\aonMatchBZ\n" + |
| 334 |
"\x1ecom.github.xds.type.matcher.v3B\n" + |
| 335 |
"RangeProtoP\x01Z*github.com/cncf/xds/go/xds/type/matcher/v3b\x06proto3" |
| 336 |
|
| 337 |
var ( |
| 338 |
file_xds_type_matcher_v3_range_proto_rawDescOnce sync.Once |
| 339 |
file_xds_type_matcher_v3_range_proto_rawDescData []byte |
| 340 |
) |
| 341 |
|
| 342 |
func file_xds_type_matcher_v3_range_proto_rawDescGZIP() []byte { |
| 343 |
file_xds_type_matcher_v3_range_proto_rawDescOnce.Do(func() { |
| 344 |
file_xds_type_matcher_v3_range_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_xds_type_matcher_v3_range_proto_rawDesc), len(file_xds_type_matcher_v3_range_proto_rawDesc))) |
| 345 |
}) |
| 346 |
return file_xds_type_matcher_v3_range_proto_rawDescData |
| 347 |
} |
| 348 |
|
| 349 |
var file_xds_type_matcher_v3_range_proto_msgTypes = make([]protoimpl.MessageInfo, 6) |
| 350 |
var file_xds_type_matcher_v3_range_proto_goTypes = []any{ |
| 351 |
(*Int64RangeMatcher)(nil), |
| 352 |
(*Int32RangeMatcher)(nil), |
| 353 |
(*DoubleRangeMatcher)(nil), |
| 354 |
(*Int64RangeMatcher_RangeMatcher)(nil), |
| 355 |
(*Int32RangeMatcher_RangeMatcher)(nil), |
| 356 |
(*DoubleRangeMatcher_RangeMatcher)(nil), |
| 357 |
(*v3.Int64Range)(nil), |
| 358 |
(*Matcher_OnMatch)(nil), |
| 359 |
(*v3.Int32Range)(nil), |
| 360 |
(*v3.DoubleRange)(nil), |
| 361 |
} |
| 362 |
var file_xds_type_matcher_v3_range_proto_depIdxs = []int32{ |
| 363 |
3, |
| 364 |
4, |
| 365 |
5, |
| 366 |
6, |
| 367 |
7, |
| 368 |
8, |
| 369 |
7, |
| 370 |
9, |
| 371 |
7, |
| 372 |
9, |
| 373 |
9, |
| 374 |
9, |
| 375 |
9, |
| 376 |
0, |
| 377 |
} |
| 378 |
|
| 379 |
func init() { file_xds_type_matcher_v3_range_proto_init() } |
| 380 |
func file_xds_type_matcher_v3_range_proto_init() { |
| 381 |
if File_xds_type_matcher_v3_range_proto != nil { |
| 382 |
return |
| 383 |
} |
| 384 |
file_xds_type_matcher_v3_matcher_proto_init() |
| 385 |
type x struct{} |
| 386 |
out := protoimpl.TypeBuilder{ |
| 387 |
File: protoimpl.DescBuilder{ |
| 388 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 389 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_xds_type_matcher_v3_range_proto_rawDesc), len(file_xds_type_matcher_v3_range_proto_rawDesc)), |
| 390 |
NumEnums: 0, |
| 391 |
NumMessages: 6, |
| 392 |
NumExtensions: 0, |
| 393 |
NumServices: 0, |
| 394 |
}, |
| 395 |
GoTypes: file_xds_type_matcher_v3_range_proto_goTypes, |
| 396 |
DependencyIndexes: file_xds_type_matcher_v3_range_proto_depIdxs, |
| 397 |
MessageInfos: file_xds_type_matcher_v3_range_proto_msgTypes, |
| 398 |
}.Build() |
| 399 |
File_xds_type_matcher_v3_range_proto = out.File |
| 400 |
file_xds_type_matcher_v3_range_proto_goTypes = nil |
| 401 |
file_xds_type_matcher_v3_range_proto_depIdxs = nil |
| 402 |
} |