1// Copyright (C) 2023 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 15// This is the schema definition for protos intended for internal aconfig 16// use ONLY. There are no guarantees regarding backwards compatibility. 17// Do not put protos here intended for storage or communication. 18 19syntax = "proto2"; 20 21package android.aconfig_internal; 22 23 24// This protobuf defines messages used to store data about flags used to guard 25// APIs which are finalized for a given SDK. 26message finalized_flag { 27 // Name of the flag (required). Does not include package name. 28 // Must match flag name in the aconfig declaration header. 29 optional string name = 1; 30 31 // Package the flag belongs to (required). Must match package in the aconfig declaration header. 32 optional string package = 2; 33 34 // SDK level in which the flag was finalized. 35 optional int32 min_sdk = 3; 36 37 // TODO - b/378936061: Add support for minor SDK version & SDK extension. 38}; 39 40message finalized_flags { 41 repeated finalized_flag finalized_flag = 1; 42} 43