-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathrange.proto
More file actions
69 lines (55 loc) · 2.33 KB
/
range.proto
File metadata and controls
69 lines (55 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
syntax = "proto3";
package xds.type.matcher.v3;
import "xds/type/v3/range.proto";
import "xds/type/matcher/v3/matcher.proto";
import "validate/validate.proto";
option java_package = "com.github.xds.type.matcher.v3";
option java_outer_classname = "RangeProto";
option java_multiple_files = true;
option go_package = "github.com/cncf/xds/go/xds/type/matcher/v3";
// [#protodoc-title: Range matcher]
// Specifies a set of ranges for matching an int64 number and the associated
// match actions.
message Int64RangeMatcher {
// Specifies a list of number ranges and a match action.
message RangeMatcher {
// A non-empty set of int64 ranges.
repeated xds.type.v3.Int64Range ranges = 1
[(validate.rules).repeated = { min_items: 1 }];
// Match action to apply when the input number is within one of the ranges.
Matcher.OnMatch on_match = 2;
}
// Match a number by a list of number ranges. If multiple ranges contain the
// input number, then the first action in this list is taken.
repeated RangeMatcher range_matchers = 1;
}
// Specifies a set of ranges for matching an int32 number and the associated
// match actions.
message Int32RangeMatcher {
// Specifies a list of number ranges and a match action.
message RangeMatcher {
// A non-empty set of int32 ranges.
repeated xds.type.v3.Int32Range ranges = 1
[(validate.rules).repeated = { min_items: 1 }];
// Match action to apply when the input number is within one of the ranges.
Matcher.OnMatch on_match = 2;
}
// Match a number by a list of number ranges. If multiple ranges contain the
// input number, then the first action in this list is taken.
repeated RangeMatcher range_matchers = 1;
}
// Specifies a set of ranges for matching a double number and the associated
// match actions.
message DoubleRangeMatcher {
// Specifies a list of number ranges and a match action.
message RangeMatcher {
// A non-empty set of double ranges.
repeated xds.type.v3.DoubleRange ranges = 1
[(validate.rules).repeated = { min_items: 1 }];
// Match action to apply when the input number is within one of the ranges.
Matcher.OnMatch on_match = 2;
}
// Match a number by a list of number ranges. If multiple ranges contain the
// input number, then the first action in this list is taken.
repeated RangeMatcher range_matchers = 1;
}