OSDN Git Service

Merge "Use settingslib ActionBarShadowController"
[android-x86/packages-apps-Settings.git] / protos / contextual_card_list.proto
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 {
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;
21     EXCLUSIVE = 4;
22     DEFERRED_SETUP = 5;
23   }
24
25   /** Slice uri of the contextual card */
26   optional string sliceUri = 1;
27
28   /** Name of the card. It should be identical in every app */
29   optional string cardName = 3;
30
31   optional Category card_category = 4;
32
33   optional double card_score = 5;
34 }