OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Sync protocol for communication between sync client and server. | 5 // Sync protocol for communication between sync client and server. |
6 | 6 |
7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change | 7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change |
8 // any fields in this file. | 8 // any fields in this file. |
9 | 9 |
10 syntax = "proto2"; | 10 syntax = "proto2"; |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 // If present in Commit updates for the entity, it will be ignored. | 301 // If present in Commit updates for the entity, it will be ignored. |
302 // | 302 // |
303 // Available in version 24+. | 303 // Available in version 24+. |
304 // | 304 // |
305 // May be returned in GetUpdatesMessage and sent up in CommitMessage. | 305 // May be returned in GetUpdatesMessage and sent up in CommitMessage. |
306 // | 306 // |
307 optional string client_defined_unique_tag = 23; | 307 optional string client_defined_unique_tag = 23; |
308 | 308 |
309 // Supplies an ordinal for this item, relative to other items with the | 309 // Supplies an ordinal for this item, relative to other items with the |
310 // same parent. Ordinals are ordered lexicographically bytewise. | 310 // same parent. Ordinals are ordered lexicographically bytewise. |
311 // Ordinals must be a least 8 bytes (for backwards compatibility), and | 311 // Ordinals must be at least 8 bytes (for backwards compatibility), and |
312 // must not be all zeroes. | 312 // must not be all zeroes. |
313 // | 313 // |
314 // Clients should not make sure that each item they know of has a | 314 // Clients should not make sure that each item they know of has a |
315 // unique ordinal-in-parent. However, updates from the server might | 315 // unique ordinal-in-parent. However, updates from the server might |
316 // break this invariant. In that case, among the items with the | 316 // break this invariant. In that case, among the items with the |
317 // same ordinal-in-parent, a client should randomly pick one, and | 317 // same ordinal-in-parent, a client should randomly pick one, and |
318 // then perturb the ordinal-in-parents of all the other ones (within | 318 // then perturb the ordinal-in-parents of all the other ones (within |
319 // the bounds of the preceding and succeeding ordinal-in-parent) | 319 // the bounds of the preceding and succeeding ordinal-in-parent) |
320 // until they're unique; a byte of randomness per item should be | 320 // until they're unique; a byte of randomness per item should be |
321 // more than enough. | 321 // more than enough. |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 optional string url = 3; | 673 optional string url = 3; |
674 optional SyncEnums.Action action = 4 [default = UNKNOWN_ACTION]; | 674 optional SyncEnums.Action action = 4 [default = UNKNOWN_ACTION]; |
675 | 675 |
676 // Currently only meaningful if |error_type| is throttled. If this field | 676 // Currently only meaningful if |error_type| is throttled. If this field |
677 // is absent then the whole client (all datatypes) is throttled. | 677 // is absent then the whole client (all datatypes) is throttled. |
678 repeated int32 error_data_type_ids = 5; | 678 repeated int32 error_data_type_ids = 5; |
679 } | 679 } |
680 optional Error error = 13; | 680 optional Error error = 13; |
681 }; | 681 }; |
682 | 682 |
OLD | NEW |