Fan Zhang | 8985efe | 2018-10-09 16:12:34 -0700 | [diff] [blame] | 1 | syntax = "proto2"; |
| 2 | |
| 3 | package com.android.settings.intelligence; |
| 4 | option java_outer_classname = "ContextualCardProto"; |
| 5 | |
| 6 | message ContextualCardList { |
| 7 | repeated ContextualCard card = 1; |
| 8 | } |
| 9 | |
| 10 | message ContextualCard { |
Fan Zhang | 9a28c43 | 2018-11-06 13:46:03 -0800 | [diff] [blame] | 11 | |
| 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 Yang | 2784da7 | 2019-01-18 23:39:15 +0800 | [diff] [blame] | 21 | DEFERRED_SETUP = 5; |
Jason Chiu | ca9ece1 | 2020-02-11 17:46:34 +0800 | [diff] [blame] | 22 | STICKY = 6; |
Fan Zhang | 9a28c43 | 2018-11-06 13:46:03 -0800 | [diff] [blame] | 23 | } |
| 24 | |
| 25 | /** Slice uri of the contextual card */ |
Fan Zhang | 8985efe | 2018-10-09 16:12:34 -0700 | [diff] [blame] | 26 | optional string sliceUri = 1; |
| 27 | |
Fan Zhang | 9a28c43 | 2018-11-06 13:46:03 -0800 | [diff] [blame] | 28 | /** Name of the card. It should be identical in every app */ |
Fan Zhang | 8985efe | 2018-10-09 16:12:34 -0700 | [diff] [blame] | 29 | optional string cardName = 3; |
Fan Zhang | 9a28c43 | 2018-11-06 13:46:03 -0800 | [diff] [blame] | 30 | |
| 31 | optional Category card_category = 4; |
Raff Tsai | 56d304e | 2018-12-05 08:12:35 +0800 | [diff] [blame] | 32 | |
| 33 | optional double card_score = 5; |
Fan Zhang | 9a28c43 | 2018-11-06 13:46:03 -0800 | [diff] [blame] | 34 | } |