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; 20option java_multiple_files = true; 21 22// Protobuf describing the Rb enrollment list on Android. 23message RbEnrollmentList { 24 repeated RbEnrollment entry = 1; 25} 26// LINT.IfChange(PrivacySandboxApi) 27// Privacy Sandbox APIs that are gated on enrollment. 28enum PrivacySandboxApi { 29 PRIVACY_SANDBOX_API_UNKNOWN = 0; 30 PRIVACY_SANDBOX_API_TOPICS = 1; 31 PRIVACY_SANDBOX_API_PROTECTED_AUDIENCE = 2; 32 PRIVACY_SANDBOX_API_PRIVATE_AGGREGATION = 3; 33 PRIVACY_SANDBOX_API_ATTRIBUTION_REPORTING = 4; 34 PRIVACY_SANDBOX_API_SHARED_STORAGE = 5; 35 PRIVACY_SANDBOX_API_PROTECTED_APP_SIGNALS = 6; 36} 37// LINT.ThenChange(/adservices/service-core/java/com/android/adservices/service/enrollment/EnrollmentData.java:EnrollmentApiEnumStringMap) 38 39// A single Adtech enrollment entry. 40message RbEnrollment { 41 42 // An identifier provided to Adtechs upon enrollment 43 string enrollment_id = 1; 44 45 // SDK Package names provided by Adtech during enrollment 46 repeated string sdk_names = 2; 47 48 // The site provided by the AdTech during enrollment. 49 string enrolled_site = 3; 50 51 // A list of APIs for which the Adtech has enrolled into. 52 repeated PrivacySandboxApi enrolled_apis = 4; 53}