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 13 matching lines...) Expand all Loading... |
24 option optimize_for = LITE_RUNTIME; | 24 option optimize_for = LITE_RUNTIME; |
25 | 25 |
26 | 26 |
27 | 27 |
28 option java_outer_classname = "NanoChannelCommon"; | 28 option java_outer_classname = "NanoChannelCommon"; |
29 option java_package = "com.google.protos.ipc.invalidation"; | 29 option java_package = "com.google.protos.ipc.invalidation"; |
30 | 30 |
31 | 31 |
32 | 32 |
33 message ChannelMessageEncoding { | 33 message ChannelMessageEncoding { |
34 // What kind of encoding is used for network_message | 34 // What kind of encoding is used for network_message |
35 enum MessageEncoding { | 35 enum MessageEncoding { |
36 // Raw proto encoding | 36 // Raw proto encoding |
37 PROTOBUF_BINARY_FORMAT = 1; | 37 PROTOBUF_BINARY_FORMAT = 1; |
38 | 38 |
39 } | 39 } |
40 } | 40 } |
41 | 41 |
42 message NetworkEndpointId { | 42 message NetworkEndpointId { |
| 43 // Identifies which sender/receiver the gateway uses. |
43 enum NetworkAddress { | 44 enum NetworkAddress { |
44 TEST = 1; // A delivery service for testing | 45 TEST = 1; // A delivery service for testing |
45 | 46 |
46 // Low numbers reserved. | 47 // Low numbers reserved. |
47 ANDROID = 113; // Android delivery service using c2dm / http. | 48 ANDROID = 113; // Android delivery service using c2dm / http. |
48 LCS = 114; // Lightweight connection service () channel. | 49 LCS = 114; // Lightweight connection service () channel. |
49 } | 50 } |
50 optional NetworkAddress network_address = 1; | 51 optional NetworkAddress network_address = 1; |
51 optional bytes client_address = 2; | 52 optional bytes client_address = 2; |
52 | 53 |
53 // Optional. When true, the client is considered offline but the | 54 // Optional. When true, the client is considered offline but the |
54 // client_address is maintained so that the client can potentially be reached. | 55 // client_address is maintained so that the client can potentially be reached. |
55 // When false or undefined, the client is considered online. | 56 // When false or undefined, the client is considered online. |
56 optional bool is_offline = 3; | 57 optional bool is_offline = 3; |
57 } | 58 } |
OLD | NEW |