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