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