• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4//
5syntax = "proto2";
6option optimize_for = LITE_RUNTIME;
7
8package image.collections;
9
10message ImageData {
11  // Encrypted 64-bit image doc id, if it has been crawled,
12  // e.g. "kY7_4LKgNqDrbM:"
13  optional string doc_id = 1;
14
15  message ImageInfo {
16    // The (normalized) URL this image can be found at.
17    optional string url = 1;
18
19    // The dimensions in pixels.
20    optional int32 width = 2;
21    optional int32 height = 3;
22  }
23
24  // Information about the original collected image.
25  optional ImageInfo original_info = 2;
26
27  // Information about the server hosted thumbnail.
28  optional ImageInfo thumbnail_info = 3;
29}
30
31message PageData {
32  // The title of the web page.
33  optional string title = 1;
34
35  // A snippet of text from the web page, either computed by us or chosen by
36  // the user.
37  optional string snippet = 2;
38
39  // The (normalized) URL of the web page.
40  optional string url = 3;
41
42  // The /url redirect signed URL for the web page.  This could be appended to
43  // "www.google.com" to create a URL redirect.
44  optional string signed_url = 5;
45
46  // The doc id of the page, if in the index. Uses the same encrypted docid
47  // format as ImageData.
48  optional string doc_id = 4;
49}
50