1// Copyright (C) 2018 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License
14
15syntax = "proto2";
16
17option java_package = "com.android.dialer";
18option java_multiple_files = true;
19
20
21package com.android.dialer;
22
23import "java/com/android/dialer/logging/contact_source.proto";
24
25// Information related to the phone number of the call.
26// Next ID: 15
27message NumberAttributes {
28  // The name (which may be a person's name or business name, but not a number)
29  // formatted exactly as it should appear to the user. If the user's locale or
30  // name display preferences change, this field should be rewritten.
31  optional string name = 1;
32
33  // A photo URI for the contact to display in the call log list view.
34  optional string photo_uri = 2;
35
36  // A photo ID (from the contacts provider) for the contact to display in the
37  // call log list view.
38  optional int64 photo_id = 3;
39
40  // TODO(zachh): If we need to support photos other than local contacts', add a
41  // (blob?) column.
42
43  // The contacts provider lookup URI for the contact associated with the call.
44  optional string lookup_uri = 4;
45
46  // The number type as a string to be displayed to the user, for example "Home"
47  // or "Mobile". This column should be updated for the appropriate language
48  // when the locale changes.
49  optional string number_type_label = 5;
50
51  // The number is a call to a business from nearby places lookup.
52  optional bool is_business = 6;
53
54  // Can the number be reported as invalid through People API
55  optional bool can_report_as_invalid_number = 7;
56
57  // True if the CP2 information is incomplete and needs to be queried at
58  // display time.
59  optional bool is_cp2_info_incomplete = 8;
60
61  // Whether the number is blocked.
62  optional bool is_blocked = 9;
63
64  // Whether the number is spam.
65  optional bool is_spam = 10;
66
67  // Source of the contact associated with the number.
68  optional com.android.dialer.logging.ContactSource.Type contact_source = 11;
69
70  // Whether the number can be reached via a carrier video call.
71  optional bool can_support_carrier_video_call = 12;
72
73  // Description of the number's geolocation (e.g., "Mountain View, CA").
74  // This string is for display purpose only.
75  optional string geolocation = 13;
76
77  // Whether the number is an emergency number.
78  optional bool is_emergency_number = 14;
79}