blob: bf0b35245ec5a46a6c9c7065802e32834e4725f4 [file] [log] [blame]
Yi Jin6b514142017-10-30 14:54:12 -07001/*
2 * Copyright (C) 2017 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17syntax = "proto2";
Yi Jin6b514142017-10-30 14:54:12 -070018option java_multiple_files = true;
19
20package android.app;
21
Joe Onorato99598ee2019-02-11 15:55:13 +000022import "frameworks/base/core/proto/android/privacy.proto";
Kweku Adams99546332018-01-24 17:03:50 -080023
Yi Jin6b514142017-10-30 14:54:12 -070024/**
25 * An android.app.Notification object.
26 * Deprecated fields are not included in the proto.
27 */
28message NotificationProto {
Yi Jin0d7bc2d12018-01-23 17:35:19 -080029 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
30
31 optional string channel_id = 1 [ (.android.privacy).dest = DEST_EXPLICIT ];
Yi Jin6b514142017-10-30 14:54:12 -070032 optional bool has_ticker_text = 2;
33 optional int32 flags = 3;
34 optional int32 color = 4;
Yi Jin0d7bc2d12018-01-23 17:35:19 -080035 optional string category = 5 [ (.android.privacy).dest = DEST_EXPLICIT ];
36 optional string group_key = 6 [ (.android.privacy).dest = DEST_EXPLICIT ];
37 optional string sort_key = 7 [ (.android.privacy).dest = DEST_EXPLICIT ];
Yi Jin6b514142017-10-30 14:54:12 -070038 optional int32 action_length = 8;
39
40 // If this field is not set, then the value is unknown.
41 enum Visibility {
42 VISIBILITY_SECRET = -1;
43 VISIBILITY_PRIVATE = 0;
44 VISIBILITY_PUBLIC = 1;
45 }
46 optional Visibility visibility = 9;
47 optional NotificationProto public_version = 10;
48}