1// Copyright 2024 Google LLC 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 15syntax = "proto3"; 16 17package com.android.adservices.service.proto; 18 19option java_multiple_files = true; 20option java_package = "com.android.adservices.service.proto"; 21 22// DevSessionStorage stores the current state of developer mode on the device. 23message DevSessionStorage { 24 // The state of the developer session. 25 enum State { 26 // No state is known. This could be the value when first reading dev session state. 27 UNKNOWN = 0; 28 // We are in production. 29 IN_PROD = 1; 30 // We are moving from production to a dev session. 31 TRANSITIONING_PROD_TO_DEV = 2; 32 // We are in a dev session. 33 IN_DEV = 3; 34 // We are moving from a dev session back to production. 35 TRANSITIONING_DEV_TO_PROD = 4; 36 } 37 optional State state = 2; 38 // If storage was correctly initialized. 39 bool is_storage_initialized = 3; 40 // If server auction test keys are enabled. 41 bool server_auction_test_keys_enabled = 4; 42}