1syntax = "proto2";
2
3option java_package = "com.android.dialer.historyitemactions";
4option java_multiple_files = true;
5option optimize_for = LITE_RUNTIME;
6
7
8package com.android.dialer.historyitemactions;
9
10import "java/com/android/dialer/logging/contact_source.proto";
11
12// Contains information needed to construct items (modules) in a bottom sheet.
13// Next ID: 17
14message HistoryItemActionModuleInfo {
15  // The dialer-normalized version of a phone number.
16  // See DialerPhoneNumber.normalized_number.
17  optional string normalized_number = 1;
18
19  // The ISO 3166-1 two letters country code of the number.
20  optional string country_iso = 2;
21
22  // The name associated with the number.
23  optional string name = 3;
24
25  // The type of the call.
26  // See android.provider.CallLog.Calls.TYPE.
27  optional int32 call_type = 4;
28
29  // Bit-mask describing features of the call.
30  // See android.provider.CallLog.Calls.FEATURES.
31  optional int32 features = 5;
32
33  // The Contacts Provider lookup URI for the contact associated with the
34  // number.
35  optional string lookup_uri = 6;
36
37  // The component name of the account used to place or receive the call.
38  // See android.provider.CallLog.Calls.PHONE_ACCOUNT_COMPONENT_NAME.
39  optional string phone_account_component_name = 7;
40
41  // Whether the number can be reported as invalid through People API
42  optional bool can_report_as_invalid_number = 8;
43
44  // Whether assisted dialing is supported.
45  optional bool can_support_assisted_dialing = 9;
46
47  // Whether carrier video call is supported.
48  optional bool can_support_carrier_video_call = 10;
49
50  // Whether the number is blocked.
51  optional bool is_blocked = 11;
52
53  // Whether the number is spam.
54  optional bool is_spam = 12;
55
56  // Whether the call is to the voicemail inbox.
57  optional bool is_voicemail_call = 13;
58
59  // The source of the contact if there is one associated with the number.
60  optional com.android.dialer.logging.ContactSource.Type contact_source = 14;
61
62  // Places that can host items (modules) in a bottom sheet
63  enum Host {
64    UNKNOWN = 0;
65    CALL_LOG = 1;
66    VOICEMAIL = 2;
67  }
68  optional Host host = 15;
69
70  // Whether the number is an emergency number.
71  optional bool is_emergency_number = 16;
72}
73