| // Copyright 2022 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| syntax = 'proto2'; |
| |
| option optimize_for = LITE_RUNTIME; |
| option java_package = 'org.chromium.components.omnibox'; |
| option java_outer_classname = 'EntityInfoProto'; |
| |
| package omnibox; |
| |
| // Entity Suggest rendering data. |
| message EntityInfo { |
| // The entity id. |
| optional string mid = 1; |
| |
| // The query to submit when clicking the suggestion. |
| optional string query_to_submit = 2; |
| |
| // Will replace the original suggestion as the text on the suggestion's 1st |
| // line (title). |
| optional string first_line = 3; |
| |
| // The suggestion second line (subtitle). |
| // For some clients (e.g. desktop) this is used as the part which is to the |
| // right of the emdash. |
| optional string second_line = 4; |
| |
| // Encoding of how search behavior should be modified when clicking the entity |
| // suggestion (gs_ssp). |
| // Controls for example - force triggering of KP@1 and twiddling the search |
| // results to boost results for the entity. |
| optional string search_parameters = 5; |
| |
| // Image Url. |
| // Will replace the suggestion icon |
| optional string image_url = 6; |
| |
| // Dominant color. |
| // Affects how image is rendered. |
| optional string dominant_color = 7; |
| } |