1/*
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";
18option java_package = "android.app";
19option java_multiple_files = true;
20
21package android.app;
22
23import "frameworks/base/libs/incident/proto/android/privacy.proto";
24
25/**
26 * An android.app.Notification object.
27 * Deprecated fields are not included in the proto.
28 */
29message NotificationProto {
30    option (.android.msg_privacy).dest = DEST_AUTOMATIC;
31
32    optional string channel_id = 1 [ (.android.privacy).dest = DEST_EXPLICIT ];
33    optional bool has_ticker_text = 2;
34    optional int32 flags = 3;
35    optional int32 color = 4;
36    optional string category = 5 [ (.android.privacy).dest = DEST_EXPLICIT ];
37    optional string group_key = 6 [ (.android.privacy).dest = DEST_EXPLICIT ];
38    optional string sort_key = 7 [ (.android.privacy).dest = DEST_EXPLICIT ];
39    optional int32 action_length = 8;
40
41    // If this field is not set, then the value is unknown.
42    enum Visibility {
43        VISIBILITY_SECRET = -1;
44        VISIBILITY_PRIVATE = 0;
45        VISIBILITY_PUBLIC = 1;
46    }
47    optional Visibility visibility = 9;
48    optional NotificationProto public_version = 10;
49}
50