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_multiple_files = true; 19 20package android.app; 21 22import "frameworks/base/core/proto/android/privacy.proto"; 23 24/** 25 * An android.app.Notification object. 26 * Deprecated fields are not included in the proto. 27 */ 28message NotificationProto { 29 option (.android.msg_privacy).dest = DEST_AUTOMATIC; 30 31 optional string channel_id = 1 [ (.android.privacy).dest = DEST_EXPLICIT ]; 32 optional bool has_ticker_text = 2; 33 optional int32 flags = 3; 34 optional int32 color = 4; 35 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 ]; 38 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} 49