summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/historyitemactions/history_item_action_module_info.proto
blob: 2e8d2a050645bec8d2966cbba3a6e43e55a462c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
syntax = "proto2";

option java_package = "com.android.dialer.historyitemactions";
option java_multiple_files = true;


package com.android.dialer.historyitemactions;

import "java/com/android/dialer/logging/contact_source.proto";

// Contains information needed to construct items (modules) in a bottom sheet.
// Next ID: 17
message HistoryItemActionModuleInfo {
  // The dialer-normalized version of a phone number.
  // See DialerPhoneNumber.normalized_number.
  optional string normalized_number = 1;

  // The ISO 3166-1 two letters country code of the number.
  optional string country_iso = 2;

  // The name associated with the number.
  optional string name = 3;

  // The type of the call.
  // See android.provider.CallLog.Calls.TYPE.
  optional int32 call_type = 4;

  // Bit-mask describing features of the call.
  // See android.provider.CallLog.Calls.FEATURES.
  optional int32 features = 5;

  // The Contacts Provider lookup URI for the contact associated with the
  // number.
  optional string lookup_uri = 6;

  // The component name of the account used to place or receive the call.
  // See android.provider.CallLog.Calls.PHONE_ACCOUNT_COMPONENT_NAME.
  optional string phone_account_component_name = 7;

  // Whether the number can be reported as invalid through People API
  optional bool can_report_as_invalid_number = 8;

  // Whether assisted dialing is supported.
  optional bool can_support_assisted_dialing = 9;

  // Whether carrier video call is supported.
  optional bool can_support_carrier_video_call = 10;

  // Whether the number is blocked.
  optional bool is_blocked = 11;

  // Whether the number is spam.
  optional bool is_spam = 12;

  // Whether the call is to the voicemail inbox.
  optional bool is_voicemail_call = 13;

  // The source of the contact if there is one associated with the number.
  optional com.android.dialer.logging.ContactSource.Type contact_source = 14;

  // Places that can host items (modules) in a bottom sheet
  enum Host {
    UNKNOWN = 0;
    CALL_LOG = 1;
    VOICEMAIL = 2;
  }
  optional Host host = 15;

  // Whether the number is an emergency number.
  optional bool is_emergency_number = 16;
}