blob: 54e5654fa5e7e9a4daeef3ceb180401624b5d245 [file] [log] [blame]
Fan Zhang8985efe2018-10-09 16:12:34 -07001syntax = "proto2";
2
3package com.android.settings.intelligence;
4option java_outer_classname = "ContextualCardProto";
5
6message ContextualCardList {
7 repeated ContextualCard card = 1;
8}
9
10message ContextualCard {
Fan Zhang9a28c432018-11-06 13:46:03 -080011
12 /**
13 * The category of a card: this is a hint for how a card should be collected,
14 * ranked, and presented
15 */
16 enum Category {
17 DEFAULT = 0;
18 SUGGESTION = 1;
19 POSSIBLE = 2;
20 IMPORTANT = 3;
Yanting Yang2784da72019-01-18 23:39:15 +080021 DEFERRED_SETUP = 5;
Jason Chiuca9ece12020-02-11 17:46:34 +080022 STICKY = 6;
Fan Zhang9a28c432018-11-06 13:46:03 -080023 }
24
25 /** Slice uri of the contextual card */
Fan Zhang8985efe2018-10-09 16:12:34 -070026 optional string sliceUri = 1;
27
Fan Zhang9a28c432018-11-06 13:46:03 -080028 /** Name of the card. It should be identical in every app */
Fan Zhang8985efe2018-10-09 16:12:34 -070029 optional string cardName = 3;
Fan Zhang9a28c432018-11-06 13:46:03 -080030
31 optional Category card_category = 4;
Raff Tsai56d304e2018-12-05 08:12:35 +080032
33 optional double card_score = 5;
Fan Zhang9a28c432018-11-06 13:46:03 -080034}