1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 option optimize_for = LITE_RUNTIME;
8 package image.collections;
11 // Encrypted 64-bit image doc id, if it has been crawled,
12 // e.g. "kY7_4LKgNqDrbM:"
13 optional string doc_id = 1;
16 // The (normalized) URL this image can be found at.
17 optional string url = 1;
19 // The dimensions in pixels.
20 optional int32 width = 2;
21 optional int32 height = 3;
24 // Information about the original collected image.
25 optional ImageInfo original_info = 2;
27 // Information about the server hosted thumbnail.
28 optional ImageInfo thumbnail_info = 3;
30 // The expiration timestamp of the served thumbnail, in microseconds since
31 // epoch. The thumbnail is only guaranteed until this time, afterwards the
33 // If expiration_timestamp is not present, then whoever set the thumbnail_info
34 // should guarantee that the thumbnail will not expire.
35 optional int64 expiration_timestamp = 5;
37 // Represents an explicit user action to remove an image. This will prevent
38 // any additional backfilling once this is set.
39 optional bool user_removed_image = 6;
43 // The title of the web page.
44 optional string title = 1;
46 // A snippet of text from the web page, either computed by us or chosen by
48 optional string snippet = 2;
50 // The (normalized) URL of the web page.
51 optional string url = 3;
53 // The /url redirect signed URL for the web page. This could be appended to
54 // "www.google.com" to create a URL redirect.
55 optional string signed_url = 5;
57 // The doc id of the page, if in the index. Uses the same encrypted docid
58 // format as ImageData.
59 optional string doc_id = 4;