1syntax = "proto2";
2
3package com.android.dialer.logging;
4option java_package = "com.android.dialer.logging";
5option java_multiple_files = true;
6
7
8
9
10message ContactSource {
11  // Applies only to reports made from call history. If we have contact
12  // information for the phone number, this field indicates its source.
13  // Note that it represents the contact's status on the user's device at the
14  // time they made the spam report, which could be different from the
15  // number's status at the time they made or received the call.
16  // Type definitions are from the CachedContactInfo interface in
17  // CachedNumberLookupService.java
18  enum Type {
19    UNKNOWN_SOURCE_TYPE = 0;
20
21    // Personal contact
22    SOURCE_TYPE_DIRECTORY = 1;
23
24    // Contact from a custom extended directory
25    SOURCE_TYPE_EXTENDED = 2;
26
27    // Business number found via the People API
28    SOURCE_TYPE_PLACES = 3;
29
30    // Non-business number found via the People API
31    SOURCE_TYPE_PROFILE = 4;
32
33    // Number has Caller Name Presentation (CNAP) information. Calls in this
34    // category would have had ContactLookupResultType NOT_FOUND originally.
35    SOURCE_TYPE_CNAP = 5;
36
37    SOURCE_TYPE_CEQUINT_CALLER_ID = 6;
38
39    // A remote source not listed below
40    SOURCE_TYPE_REMOTE_OTHER = 7;
41
42    // Manually-entered caller ID data
43    SOURCE_TYPE_REMOTE_MANUAL = 8;
44
45    // Google Voice short code data
46    SOURCE_TYPE_REMOTE_GOOGLE_VOICE = 9;
47
48    // Customer Service Applications data
49    SOURCE_TYPE_REMOTE_CSA = 10;
50
51    // Knowledge Graph data
52    SOURCE_TYPE_REMOTE_KNOWLEDGE_GRAPH = 11;
53  }
54}
55