| 1 |
syntax = "proto3"; |
| 2 |
|
| 3 |
package xds.type.v3; |
| 4 |
|
| 5 |
option java_package = "com.github.xds.type.v3"; |
| 6 |
option java_outer_classname = "RangeProto"; |
| 7 |
option java_multiple_files = true; |
| 8 |
option go_package = "github.com/cncf/xds/go/xds/type/v3"; |
| 9 |
|
| 10 |
// [#protodoc-title: Number range] |
| 11 |
|
| 12 |
// Specifies the int64 start and end of the range using half-open interval |
| 13 |
// semantics [start, end). |
| 14 |
message Int64Range { |
| 15 |
// start of the range (inclusive) |
| 16 |
int64 start = 1; |
| 17 |
|
| 18 |
// end of the range (exclusive) |
| 19 |
int64 end = 2; |
| 20 |
} |
| 21 |
|
| 22 |
// Specifies the int32 start and end of the range using half-open interval |
| 23 |
// semantics [start, end). |
| 24 |
message Int32Range { |
| 25 |
// start of the range (inclusive) |
| 26 |
int32 start = 1; |
| 27 |
|
| 28 |
// end of the range (exclusive) |
| 29 |
int32 end = 2; |
| 30 |
} |
| 31 |
|
| 32 |
// Specifies the double start and end of the range using half-open interval |
| 33 |
// semantics [start, end). |
| 34 |
message DoubleRange { |
| 35 |
// start of the range (inclusive) |
| 36 |
double start = 1; |
| 37 |
|
| 38 |
// end of the range (exclusive) |
| 39 |
double end = 2; |
| 40 |
} |