OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 datatype extension for the article. | 5 // Sync protocol datatype extension for the article. |
6 | 6 |
7 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
10 option retain_unknown_fields = true; | 10 option retain_unknown_fields = true; |
11 | 11 |
12 package sync_pb; | 12 package sync_pb; |
13 | 13 |
14 import "attachments.proto"; | |
15 | |
14 // Properties of Article objects. | 16 // Properties of Article objects. |
15 message ArticleSpecifics { | 17 message ArticleSpecifics { |
16 // Next ID to use: 4 | 18 // Next ID to use: 4 |
pavely
2014/11/17 19:09:00
Could you update "Next ID"? Do we even need it?
cjhopman
2014/11/18 20:57:45
Done.
| |
17 | 19 |
18 optional string entry_id = 1; | 20 optional string entry_id = 1; |
19 | 21 |
20 optional string title = 2; | 22 optional string title = 2; |
21 | 23 |
22 repeated ArticlePage pages = 3; | 24 repeated ArticlePage pages = 3; |
25 | |
26 optional ArticleAttachments attachments = 4; | |
23 } | 27 } |
24 | 28 |
25 message ArticlePage { | 29 message ArticlePage { |
26 // Next ID to use: 2 | 30 // Next ID to use: 2 |
27 | 31 |
28 optional string url = 1; | 32 optional string url = 1; |
29 } | 33 } |
34 | |
35 message ArticleAttachments { | |
36 optional AttachmentIdProto distilled_article = 1; | |
37 } | |
OLD | NEW |