OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Licensed under the Apache License, Version 2.0 (the "License"); | 4 * Licensed under the Apache License, Version 2.0 (the "License"); |
5 * you may not use this file except in compliance with the License. | 5 * you may not use this file except in compliance with the License. |
6 * You may obtain a copy of the License at | 6 * You may obtain a copy of the License at |
7 * | 7 * |
8 * http://www.apache.org/licenses/LICENSE-2.0 | 8 * http://www.apache.org/licenses/LICENSE-2.0 |
9 * | 9 * |
10 * Unless required by applicable law or agreed to in writing, software | 10 * Unless required by applicable law or agreed to in writing, software |
(...skipping 17 matching lines...) Expand all Loading... |
28 option java_outer_classname = "NanoAndroidChannel"; | 28 option java_outer_classname = "NanoAndroidChannel"; |
29 option java_package = "com.google.protos.ipc.invalidation"; | 29 option java_package = "com.google.protos.ipc.invalidation"; |
30 | 30 |
31 | 31 |
32 import "client_protocol.proto"; | 32 import "client_protocol.proto"; |
33 | 33 |
34 // Defines the valid major versions of the android channel protocol. The | 34 // Defines the valid major versions of the android channel protocol. The |
35 // channel version controls the expected envelope syntax and semantics of | 35 // channel version controls the expected envelope syntax and semantics of |
36 // http and c2dm messages sent between the client and server. | 36 // http and c2dm messages sent between the client and server. |
37 enum MajorVersion { | 37 enum MajorVersion { |
| 38 option allow_alias = true; |
38 | 39 |
39 // The initial version of the android channel protocol. Inbound and | 40 // The initial version of the android channel protocol. Inbound and |
40 // outbound channel packets contained a single binary protocol message only. | 41 // outbound channel packets contained a single binary protocol message only. |
41 INITIAL = 0; | 42 INITIAL = 0; |
42 | 43 |
43 // Adds batching (multiple protocol messages in a single channel message) | 44 // Adds batching (multiple protocol messages in a single channel message) |
44 BATCH = 1; | 45 BATCH = 1; |
45 | 46 |
46 // The default channel version used by Android clients. Lower major numbers | 47 // The default channel version used by Android clients. Lower major numbers |
47 // will represent earlier versions and higher numbers will represent | 48 // will represent earlier versions and higher numbers will represent |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 88 |
88 // Message contents (serialized ServerToClientMessage). | 89 // Message contents (serialized ServerToClientMessage). |
89 optional bytes message = 2; | 90 optional bytes message = 2; |
90 } | 91 } |
91 | 92 |
92 // A batch of messages addressed to potentially-different Ticls on the same | 93 // A batch of messages addressed to potentially-different Ticls on the same |
93 // Android device. | 94 // Android device. |
94 message AddressedAndroidMessageBatch { | 95 message AddressedAndroidMessageBatch { |
95 repeated AddressedAndroidMessage addressed_message = 1; | 96 repeated AddressedAndroidMessage addressed_message = 1; |
96 } | 97 } |
OLD | NEW |