1*800a58d9SAndroid Build Coastguard Worker// Copyright 2016 The Android Open Source Project 2*800a58d9SAndroid Build Coastguard Worker// 3*800a58d9SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 4*800a58d9SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 5*800a58d9SAndroid Build Coastguard Worker// You may obtain a copy of the License at 6*800a58d9SAndroid Build Coastguard Worker// 7*800a58d9SAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 8*800a58d9SAndroid Build Coastguard Worker// 9*800a58d9SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 10*800a58d9SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 11*800a58d9SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*800a58d9SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 13*800a58d9SAndroid Build Coastguard Worker// limitations under the License. 14*800a58d9SAndroid Build Coastguard Worker 15*800a58d9SAndroid Build Coastguard Workersyntax = "proto2"; 16*800a58d9SAndroid Build Coastguard Worker 17*800a58d9SAndroid Build Coastguard Workerpackage acloud.internal.proto; 18*800a58d9SAndroid Build Coastguard Worker 19*800a58d9SAndroid Build Coastguard Worker// Default values to use when user did not provide a value. 20*800a58d9SAndroid Build Coastguard Worker// Each field should match a field in user_config.UserConfig. 21*800a58d9SAndroid Build Coastguard Workermessage DefaultUserConfig { 22*800a58d9SAndroid Build Coastguard Worker optional string machine_type = 1; 23*800a58d9SAndroid Build Coastguard Worker optional string network = 2; 24*800a58d9SAndroid Build Coastguard Worker // Default extra data disk size. 25*800a58d9SAndroid Build Coastguard Worker optional int32 extra_data_disk_size_gb = 3; 26*800a58d9SAndroid Build Coastguard Worker // Metadata for creating Compute Engine instance 27*800a58d9SAndroid Build Coastguard Worker // The map will be updated with values from user config. 28*800a58d9SAndroid Build Coastguard Worker map <string, string> metadata_variable = 4; 29*800a58d9SAndroid Build Coastguard Worker // [CVD only] The name of the stable host image 30*800a58d9SAndroid Build Coastguard Worker optional string stable_host_image_name = 5; 31*800a58d9SAndroid Build Coastguard Worker // [CVD only] The project where stable host image is 32*800a58d9SAndroid Build Coastguard Worker optional string stable_host_image_project = 6; 33*800a58d9SAndroid Build Coastguard Worker // [GOLDFISH only] The name of the stable host image 34*800a58d9SAndroid Build Coastguard Worker optional string stable_goldfish_host_image_name = 7; 35*800a58d9SAndroid Build Coastguard Worker // [GOLDFISH only] The project where stable host image is 36*800a58d9SAndroid Build Coastguard Worker optional string stable_goldfish_host_image_project = 8; 37*800a58d9SAndroid Build Coastguard Worker // [CHEEPS only] The name of the stable host image 38*800a58d9SAndroid Build Coastguard Worker optional string stable_cheeps_host_image_name = 9; 39*800a58d9SAndroid Build Coastguard Worker // [CHEEPS only] The project where stable host image is 40*800a58d9SAndroid Build Coastguard Worker optional string stable_cheeps_host_image_project = 10; 41*800a58d9SAndroid Build Coastguard Worker // The pattern of the instance name, e.g. ins-{uuid}-{build_id}-{build_target} 42*800a58d9SAndroid Build Coastguard Worker // the parts in {} will be automatically replaced with the actual value if 43*800a58d9SAndroid Build Coastguard Worker // you specify them in the pattern, uuid will be automatically generated. 44*800a58d9SAndroid Build Coastguard Worker optional string instance_name_pattern = 11; 45*800a58d9SAndroid Build Coastguard Worker // [CVD only] Version of fetch_cvd to use. 46*800a58d9SAndroid Build Coastguard Worker optional string fetch_cvd_version = 12; 47*800a58d9SAndroid Build Coastguard Worker} 48*800a58d9SAndroid Build Coastguard Worker 49*800a58d9SAndroid Build Coastguard Worker// Internal configuration 50*800a58d9SAndroid Build Coastguard Worker// TODO: Currently we specify resolutions and orientations 51*800a58d9SAndroid Build Coastguard Worker// for all device types in the same config. And all branches are 52*800a58d9SAndroid Build Coastguard Worker// using the same config at data/default.config. However, 53*800a58d9SAndroid Build Coastguard Worker// each branch only supports a subset of devices. So ideally, 54*800a58d9SAndroid Build Coastguard Worker// we should have one config per branch, and only specify supported 55*800a58d9SAndroid Build Coastguard Worker// devices for that branch in the config. 56*800a58d9SAndroid Build Coastguard Workermessage InternalConfig { 57*800a58d9SAndroid Build Coastguard Worker optional DefaultUserConfig default_usr_cfg = 1; 58*800a58d9SAndroid Build Coastguard Worker // Device resolution 59*800a58d9SAndroid Build Coastguard Worker map <string, string> device_resolution_map = 2; 60*800a58d9SAndroid Build Coastguard Worker // Device default orientation 61*800a58d9SAndroid Build Coastguard Worker map <string, string> device_default_orientation_map = 3; 62*800a58d9SAndroid Build Coastguard Worker // Minimum gce instance size, e.g. n1-standard-1 63*800a58d9SAndroid Build Coastguard Worker optional string min_machine_size = 4; 64*800a58d9SAndroid Build Coastguard Worker // The name of the default disk image, e.g. avd-system.tar.gz 65*800a58d9SAndroid Build Coastguard Worker optional string disk_image_name = 5; 66*800a58d9SAndroid Build Coastguard Worker // The mime type of the disk image, e.g. 'application/x-tar' 67*800a58d9SAndroid Build Coastguard Worker optional string disk_image_mime_type = 6; 68*800a58d9SAndroid Build Coastguard Worker // The file extension of disk image, e.g. ".tar.gz" 69*800a58d9SAndroid Build Coastguard Worker optional string disk_image_extension = 7; 70*800a58d9SAndroid Build Coastguard Worker // The name of the raw image name that should apper in the tar gz file. 71*800a58d9SAndroid Build Coastguard Worker // e.g. "disk.raw" 72*800a58d9SAndroid Build Coastguard Worker optional string disk_raw_image_name = 8; 73*800a58d9SAndroid Build Coastguard Worker // The file extension of a raw linux image file, e.g. "img" 74*800a58d9SAndroid Build Coastguard Worker // If file is of this type, it will be compressed to avd-system.tar.gz 75*800a58d9SAndroid Build Coastguard Worker optional string disk_raw_image_extension = 9; 76*800a58d9SAndroid Build Coastguard Worker // Default data disk device to use when extra_data_disk_size_gb 77*800a58d9SAndroid Build Coastguard Worker // is greater than 0 78*800a58d9SAndroid Build Coastguard Worker optional string default_extra_data_disk_device = 10; 79*800a58d9SAndroid Build Coastguard Worker // A map from size_gb to the name of a precreated_data_image 80*800a58d9SAndroid Build Coastguard Worker map <int32, string> precreated_data_image = 11; 81*800a58d9SAndroid Build Coastguard Worker // Branches and corresponding mininum build_ids for which 82*800a58d9SAndroid Build Coastguard Worker // this config is valid for. 83*800a58d9SAndroid Build Coastguard Worker map <string, int32> valid_branch_and_min_build_id = 12; 84*800a58d9SAndroid Build Coastguard Worker 85*800a58d9SAndroid Build Coastguard Worker // Path of a file where Oauth2 credential data will be cached. 86*800a58d9SAndroid Build Coastguard Worker // For example, ".acloud_oauth2.dat". This file will be created under 87*800a58d9SAndroid Build Coastguard Worker // the home directory if the user is authenticated via Oauth2 method. 88*800a58d9SAndroid Build Coastguard Worker // The file name by convention usually starts with a dot noting it is 89*800a58d9SAndroid Build Coastguard Worker // a hidden file. 90*800a58d9SAndroid Build Coastguard Worker optional string creds_cache_file = 13; 91*800a58d9SAndroid Build Coastguard Worker // user_agent is a string noting which software it is. 92*800a58d9SAndroid Build Coastguard Worker // It is used during the Oauth2 authentication flow. It is okay to 93*800a58d9SAndroid Build Coastguard Worker // make up a value, e.g. "acloud". 94*800a58d9SAndroid Build Coastguard Worker optional string user_agent = 14; 95*800a58d9SAndroid Build Coastguard Worker 96*800a58d9SAndroid Build Coastguard Worker // Error messages to be displayed to user when the user 97*800a58d9SAndroid Build Coastguard Worker // does not have access to the cloud project. 98*800a58d9SAndroid Build Coastguard Worker // Key is the name of the project. 99*800a58d9SAndroid Build Coastguard Worker // Value is the error message to show. 100*800a58d9SAndroid Build Coastguard Worker map <string, string> no_project_access_msg_map = 15; 101*800a58d9SAndroid Build Coastguard Worker 102*800a58d9SAndroid Build Coastguard Worker // [CVD only] The kernel build target: "kernel". This is unlikely to change. 103*800a58d9SAndroid Build Coastguard Worker optional string kernel_build_target = 16; 104*800a58d9SAndroid Build Coastguard Worker 105*800a58d9SAndroid Build Coastguard Worker // [GOLDFISH only] The emulator build target: "emulator-linux_x64_nolocationui". 106*800a58d9SAndroid Build Coastguard Worker // It's very unlikely that this will ever change. 107*800a58d9SAndroid Build Coastguard Worker optional string emulator_build_target = 17; 108*800a58d9SAndroid Build Coastguard Worker 109*800a58d9SAndroid Build Coastguard Worker // Common hw property 110*800a58d9SAndroid Build Coastguard Worker map <string, string> common_hw_property_map = 18; 111*800a58d9SAndroid Build Coastguard Worker} 112