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 // Protocol buffer definitions for the user's contacts. | 5 // Protocol buffer definitions for the user's contacts. |
6 | 6 |
7 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
10 | 10 |
11 package contacts; | 11 package contacts; |
12 | 12 |
13 // A contact, roughly based on the GData Contact kind: | 13 // A contact, roughly based on the GData Contact kind: |
14 // https://developers.google.com/gdata/docs/2.0/elements#gdContactKind | 14 // https://developers.google.com/gdata/docs/2.0/elements#gdContactKind |
15 // All strings are UTF-8. | 15 // All strings are UTF-8 with Unicode byte order marks stripped out. |
16 message Contact { | 16 message Contact { |
17 // Next ID to use: 15 | 17 // Next ID to use: 15 |
18 | 18 |
19 // Provider-assigned unique identifier. | 19 // Provider-assigned unique identifier. |
20 optional string contact_id = 1; | 20 optional string contact_id = 1; |
21 | 21 |
22 // Last time at which this contact was updated within the upstream provider, | 22 // Last time at which this contact was updated within the upstream provider, |
23 // as given by base::Time::ToInternalValue(). | 23 // as given by base::Time::ToInternalValue(). |
24 optional int64 update_time = 2; | 24 optional int64 update_time = 2; |
25 | 25 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 } | 99 } |
100 | 100 |
101 // Singleton message used by ContactDatabase to store update-related metadata. | 101 // Singleton message used by ContactDatabase to store update-related metadata. |
102 message UpdateMetadata { | 102 message UpdateMetadata { |
103 // Next ID to use: 2 | 103 // Next ID to use: 2 |
104 | 104 |
105 // Time at which the last successful update was started, as given by | 105 // Time at which the last successful update was started, as given by |
106 // base::Time::ToInternalValue(). | 106 // base::Time::ToInternalValue(). |
107 optional int64 last_update_start_time = 1; | 107 optional int64 last_update_start_time = 1; |
108 } | 108 } |
OLD | NEW |