1*c2e18aaaSAndroid Build Coastguard Worker/* 2*c2e18aaaSAndroid Build Coastguard Worker * Copyright (C) 2018 The Android Open Source Project 3*c2e18aaaSAndroid Build Coastguard Worker * 4*c2e18aaaSAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License"); 5*c2e18aaaSAndroid Build Coastguard Worker * you may not use this file except in compliance with the License. 6*c2e18aaaSAndroid Build Coastguard Worker * You may obtain a copy of the License at 7*c2e18aaaSAndroid Build Coastguard Worker * 8*c2e18aaaSAndroid Build Coastguard Worker * http://www.apache.org/licenses/LICENSE-2.0 9*c2e18aaaSAndroid Build Coastguard Worker * 10*c2e18aaaSAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software 11*c2e18aaaSAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS, 12*c2e18aaaSAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*c2e18aaaSAndroid Build Coastguard Worker * See the License for the specific language governing permissions and 14*c2e18aaaSAndroid Build Coastguard Worker * limitations under the License. 15*c2e18aaaSAndroid Build Coastguard Worker */ 16*c2e18aaaSAndroid Build Coastguard Workersyntax = "proto3"; 17*c2e18aaaSAndroid Build Coastguard Worker 18*c2e18aaaSAndroid Build Coastguard Workerpackage tradefed.build; 19*c2e18aaaSAndroid Build Coastguard Worker 20*c2e18aaaSAndroid Build Coastguard Workeroption java_package = "com.android.tradefed.build.proto"; 21*c2e18aaaSAndroid Build Coastguard Workeroption java_outer_classname = "BuildInformation"; 22*c2e18aaaSAndroid Build Coastguard Worker 23*c2e18aaaSAndroid Build Coastguard Worker// The representation of a versioned build file 24*c2e18aaaSAndroid Build Coastguard Workermessage BuildFile { 25*c2e18aaaSAndroid Build Coastguard Worker // The version of the file 26*c2e18aaaSAndroid Build Coastguard Worker string version = 1; 27*c2e18aaaSAndroid Build Coastguard Worker // The local path of the file. 28*c2e18aaaSAndroid Build Coastguard Worker string local_path = 2; 29*c2e18aaaSAndroid Build Coastguard Worker} 30*c2e18aaaSAndroid Build Coastguard Worker 31*c2e18aaaSAndroid Build Coastguard Worker// The representation of a map of key to a list of versioned files. Similar to 32*c2e18aaaSAndroid Build Coastguard Worker// Tradefed MultiMap structure. 33*c2e18aaaSAndroid Build Coastguard Workermessage KeyBuildFilePair { 34*c2e18aaaSAndroid Build Coastguard Worker // The Key indexing a list of BuildFile that are tracked by the BuildInfo. 35*c2e18aaaSAndroid Build Coastguard Worker string build_file_key = 1; 36*c2e18aaaSAndroid Build Coastguard Worker // List of BuildFile that are tracked by the BuildInfo. 37*c2e18aaaSAndroid Build Coastguard Worker repeated BuildFile file = 2; 38*c2e18aaaSAndroid Build Coastguard Worker} 39*c2e18aaaSAndroid Build Coastguard Worker 40*c2e18aaaSAndroid Build Coastguard Worker// Proto representation of IBuildInfo 41*c2e18aaaSAndroid Build Coastguard Workermessage BuildInfo { 42*c2e18aaaSAndroid Build Coastguard Worker // The build identifier of the represented build. 43*c2e18aaaSAndroid Build Coastguard Worker string build_id = 1; 44*c2e18aaaSAndroid Build Coastguard Worker // The build flavor. For example: sailfish-userdebug 45*c2e18aaaSAndroid Build Coastguard Worker string build_flavor = 2; 46*c2e18aaaSAndroid Build Coastguard Worker // The branch where the build come from: For example: git_main 47*c2e18aaaSAndroid Build Coastguard Worker string branch = 3; 48*c2e18aaaSAndroid Build Coastguard Worker // The build attributes, as a key value 49*c2e18aaaSAndroid Build Coastguard Worker map<string, string> attributes = 4; 50*c2e18aaaSAndroid Build Coastguard Worker // The versioned files part of the build that are tracked. 51*c2e18aaaSAndroid Build Coastguard Worker repeated KeyBuildFilePair versioned_file = 5; 52*c2e18aaaSAndroid Build Coastguard Worker // The type of the IBuildInfo instance. 53*c2e18aaaSAndroid Build Coastguard Worker // For example: com.android.tradefed.build.BuildInfo 54*c2e18aaaSAndroid Build Coastguard Worker string build_info_class = 6; 55*c2e18aaaSAndroid Build Coastguard Worker // Deprecated: Whether or not the build info represents a test resource. 56*c2e18aaaSAndroid Build Coastguard Worker bool is_test_resource = 7; 57*c2e18aaaSAndroid Build Coastguard Worker} 58