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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 // false, prior to the current backend version. This field is logically | 204 // false, prior to the current backend version. This field is logically |
205 // required and is always set by current code. The default is true because | 205 // required and is always set by current code. The default is true because |
206 // old Android invalidation clients strip this field when acking | 206 // old Android invalidation clients strip this field when acking |
207 // invalidations due to ProtoLite limitations; true is the correct default | 207 // invalidations due to ProtoLite limitations; true is the correct default |
208 // because invalidation clients logically ack all current versions and | 208 // because invalidation clients logically ack all current versions and |
209 // because old persisted invalidations are all restarted. | 209 // because old persisted invalidations are all restarted. |
210 optional bool is_trickle_restart = 6 [default = true]; | 210 optional bool is_trickle_restart = 6 [default = true]; |
211 | 211 |
212 // Optional payload associated with this invalidation. | 212 // Optional payload associated with this invalidation. |
213 optional bytes payload = 4; | 213 optional bytes payload = 4; |
214 | |
215 // DEPRECATED: bridge arrival time is now maintained by | |
216 // InvalidationMetadataP in the SourcedInvalidation, InvalidationContents and | |
217 // ClientInvalidation containers. | |
218 optional int64 bridge_arrival_time_ms_deprecated = 5 [deprecated=true]; | |
219 } | 214 } |
220 | 215 |
221 // Specifies the intention to change a registration on a specific object. To | 216 // Specifies the intention to change a registration on a specific object. To |
222 // update registrations, a client sends a message containing repeated | 217 // update registrations, a client sends a message containing repeated |
223 // RegistrationP messages. | 218 // RegistrationP messages. |
224 message RegistrationP { | 219 message RegistrationP { |
225 enum OpType { | 220 enum OpType { |
226 REGISTER = 1; | 221 REGISTER = 1; |
227 UNREGISTER = 2; | 222 UNREGISTER = 2; |
228 } | 223 } |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 enum Code { | 605 enum Code { |
611 AUTH_FAILURE = 1; // Authorization or authentication failure. | 606 AUTH_FAILURE = 1; // Authorization or authentication failure. |
612 UNKNOWN_FAILURE = 10000; // Some failure which is not described above. | 607 UNKNOWN_FAILURE = 10000; // Some failure which is not described above. |
613 }; | 608 }; |
614 | 609 |
615 optional Code code = 1; | 610 optional Code code = 1; |
616 | 611 |
617 // Textual description of the error | 612 // Textual description of the error |
618 optional string description = 2; | 613 optional string description = 2; |
619 } | 614 } |
OLD | NEW |