1/* 2 * Copyright (C) 2024 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 = "proto3"; 18 19package com.android.adservices.service.proto; 20 21option java_multiple_files = true; 22 23// Protobuf describing the Rb enrollment list on Android. 24message RbEnrollmentList { 25 repeated RbEnrollment entry = 1; 26} 27// LINT.IfChange(PrivacySandboxApi) 28// Privacy Sandbox APIs that are gated on enrollment. 29enum PrivacySandboxApi { 30 PRIVACY_SANDBOX_API_UNKNOWN = 0; 31 PRIVACY_SANDBOX_API_TOPICS = 1; 32 PRIVACY_SANDBOX_API_PROTECTED_AUDIENCE = 2; 33 PRIVACY_SANDBOX_API_PRIVATE_AGGREGATION = 3; 34 PRIVACY_SANDBOX_API_ATTRIBUTION_REPORTING = 4; 35 PRIVACY_SANDBOX_API_SHARED_STORAGE = 5; 36 PRIVACY_SANDBOX_API_PROTECTED_APP_SIGNALS = 6; 37} 38// LINT.ThenChange(/adservices/service-core/java/com/android/adservices/service/enrollment/EnrollmentData.java:EnrollmentApiEnumStringMap) 39 40// A single Adtech enrollment entry. 41message RbEnrollment { 42 // Identifier provided to Adtechs upon enrollment. 43 // 44 // Note: This field will not be populated when the v3 enrollment config is 45 // generated with this proto, as id will be already populated in 46 // ConfigurationRecord (within which this proto is embedded). 47 string enrollment_id = 1 [deprecated = true]; 48 49 // SDK Package names provided by Adtech during enrollment. 50 repeated string sdk_names = 2; 51 52 // Site provided by the AdTech during enrollment. 53 string enrolled_site = 3; 54 55 // List of APIs for which Adtech has enrolled into. 56 repeated PrivacySandboxApi enrolled_apis = 5; 57 58 reserved 4; 59} 60