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; | |
10 | |
11 package contacts; | 9 package contacts; |
12 | 10 |
13 // A contact, roughly based on the GData Contact kind: | 11 // A contact, roughly based on the GData Contact kind: |
14 // https://developers.google.com/gdata/docs/2.0/elements#gdContactKind | 12 // https://developers.google.com/gdata/docs/2.0/elements#gdContactKind |
15 // All strings are UTF-8 with Unicode byte order marks stripped out. | 13 // All strings are UTF-8 with Unicode byte order marks stripped out. |
16 message Contact { | 14 message Contact { |
17 // Next ID to use: 16 | 15 // Next ID to use: 16 |
18 | 16 |
19 // Provider-assigned unique identifier. | 17 // Provider-assigned unique identifier. |
20 optional string contact_id = 1; | 18 optional string contact_id = 1; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 // Next ID to use: 3 | 105 // Next ID to use: 3 |
108 | 106 |
109 // Time at which the last successful update was started, as given by | 107 // Time at which the last successful update was started, as given by |
110 // base::Time::ToInternalValue(). | 108 // base::Time::ToInternalValue(). |
111 optional int64 last_update_start_time = 1; | 109 optional int64 last_update_start_time = 1; |
112 | 110 |
113 // Latest time that we've seen in a contact's |update_time| field. Note that | 111 // Latest time that we've seen in a contact's |update_time| field. Note that |
114 // the time may have come from a deleted contact that has been discarded. | 112 // the time may have come from a deleted contact that has been discarded. |
115 optional int64 last_contact_update_time = 2; | 113 optional int64 last_contact_update_time = 2; |
116 } | 114 } |
OLD | NEW |