Don Newton | 276cd1f | 2019-02-06 17:14:03 -0500 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | |
| 3 | package xos; |
| 4 | |
| 5 | message ID { |
| 6 | int32 id = 1; |
| 7 | } |
| 8 | |
| 9 | message QueryElement { |
| 10 | enum QueryOperator { |
| 11 | EQUAL = 0; |
| 12 | GREATER_THAN = 1; |
| 13 | LESS_THAN = 2; |
| 14 | GREATER_THAN_OR_EQUAL = 3; |
| 15 | LESS_THAN_OR_EQUAL = 4; |
| 16 | IEXACT = 5; |
| 17 | } |
| 18 | QueryOperator operator = 1; |
| 19 | bool invert = 2; |
| 20 | string name = 3; |
| 21 | oneof value { |
| 22 | string sValue = 4; |
| 23 | int32 iValue = 5; |
| 24 | } |
| 25 | }; |
| 26 | |
| 27 | message Query { |
| 28 | enum QueryKind { |
| 29 | DEFAULT=0; |
| 30 | ALL=1; |
| 31 | SYNCHRONIZER_DIRTY_OBJECTS = 2; |
| 32 | SYNCHRONIZER_DELETED_OBJECTS = 3; |
| 33 | SYNCHRONIZER_DIRTY_POLICIES = 4; |
| 34 | SYNCHRONIZER_DELETED_POLICIES = 5; |
| 35 | } |
| 36 | QueryKind kind = 1; |
| 37 | repeated QueryElement elements = 2; |
| 38 | }; |
| 39 | |