| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 syntax = "proto2"; | 5 syntax = "proto2"; |
| 6 | 6 |
| 7 option optimize_for = LITE_RUNTIME; | 7 option optimize_for = LITE_RUNTIME; |
| 8 | 8 |
| 9 package ntp_snippets; | 9 package ntp_snippets; |
| 10 | 10 |
| 11 message SnippetSourceProto { | 11 message SnippetSourceProto { |
| 12 optional string url = 1; | 12 optional string url = 1; |
| 13 optional string publisher_name = 2; | 13 optional string publisher_name = 2; |
| 14 optional string amp_url = 3; | 14 optional string amp_url = 3; |
| 15 } | 15 } |
| 16 | 16 |
| 17 message SnippetProto { | 17 message SnippetProto { |
| 18 optional string id = 1; | 18 optional string id = 1; |
| 19 optional string title = 2; | 19 optional string title = 2; |
| 20 optional string snippet = 3; | 20 optional string snippet = 3; |
| 21 optional string salient_image_url = 4; | 21 optional string salient_image_url = 4; |
| 22 optional int64 publish_date = 5; | 22 optional int64 publish_date = 5; |
| 23 optional int64 expiry_date = 6; | 23 optional int64 expiry_date = 6; |
| 24 optional float score = 7; | 24 optional float score = 7; |
| 25 repeated SnippetSourceProto sources = 8; | 25 repeated SnippetSourceProto sources = 8; |
| 26 optional bool discarded = 9; | 26 optional bool discarded = 9; |
| 27 } | 27 } |
| 28 |
| 29 message SnippetImageProto { |
| 30 optional bytes data = 1; |
| 31 } |
| OLD | NEW |