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;
19option optimize_for = LITE_RUNTIME;
20
21
22package com.android.dialer;
23
24import "java/com/android/dialer/logging/contact_source.proto";
25
26// Information related to the phone number of the call.
27// Next ID: 15
28message NumberAttributes {
29  // The name (which may be a person's name or business name, but not a number)
30  // formatted exactly as it should appear to the user. If the user's locale or
31  // name display preferences change, this field should be rewritten.
32  optional string name = 1;
33
34  // A photo URI for the contact to display in the call log list view.
35  optional string photo_uri = 2;
36
37  // A photo ID (from the contacts provider) for the contact to display in the
38  // call log list view.
39  optional int64 photo_id = 3;
40
41  // TODO(zachh): If we need to support photos other than local contacts', add a
42  // (blob?) column.
43
44  // The contacts provider lookup URI for the contact associated with the call.
45  optional string lookup_uri = 4;
46
47  // The number type as a string to be displayed to the user, for example "Home"
48  // or "Mobile". This column should be updated for the appropriate language
49  // when the locale changes.
50  optional string number_type_label = 5;
51
52  // The number is a call to a business from nearby places lookup.
53  optional bool is_business = 6;
54
55  // Can the number be reported as invalid through People API
56  optional bool can_report_as_invalid_number = 7;
57
58  // True if the CP2 information is incomplete and needs to be queried at
59  // display time.
60  optional bool is_cp2_info_incomplete = 8;
61
62  // Whether the number is blocked.
63  optional bool is_blocked = 9;
64
65  // Whether the number is spam.
66  optional bool is_spam = 10;
67
68  // Source of the contact associated with the number.
69  optional com.android.dialer.logging.ContactSource.Type contact_source = 11;
70
71  // Whether the number can be reached via a carrier video call.
72  optional bool can_support_carrier_video_call = 12;
73
74  // Description of the number's geolocation (e.g., "Mountain View, CA").
75  // This string is for display purpose only.
76  optional string geolocation = 13;
77
78  // Whether the number is an emergency number.
79  optional bool is_emergency_number = 14;
80}