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