blob: 5eba77b509e172610967b6f66ef5c79820c41a50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
syntax = "proto3";
option optimize_for = LITE_RUNTIME;
package query_tiles.proto;
// The Tile is the schema to represent data in entries.
// Next tag: 7
message Tile {
// Metadata about the image.
// Next tag: 2
message ImageMetadata {
// URL of the image.
string url = 1;
}
// Unique id of a query tile entry.
string id = 1;
// Text of query that send to the search engine.
string query_text = 2;
// Text for accessibility purposes.
string display_text = 3;
// Counterpart of |display_text| for accessibility purposes.
string accessibility_text = 4;
// A list of image metadatas.
repeated ImageMetadata image_metadatas = 5;
// Sub level children.
repeated Tile sub_tiles = 6;
// Additional params for the search query.
repeated string search_params = 7;
}
// Data schema of a group of entries and its metadata.
// Next tag: 5
message TileGroup {
// Unique id of each group.
string id = 1;
// Locale setting of this group.
string locale = 2;
// Last updated timestamp in ms;
int64 last_updated_time_ms = 3;
// Top level tiles;
repeated Tile tiles = 4;
}
|