• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2018 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 */
16syntax = "proto3";
17
18package tradefed.build;
19
20option java_package = "com.android.tradefed.build.proto";
21option java_outer_classname = "BuildInformation";
22
23// The representation of a versioned build file
24message BuildFile {
25  // The version of the file
26  string version = 1;
27  // The local path of the file.
28  string local_path = 2;
29}
30
31// The representation of a map of key to a list of versioned files. Similar to
32// Tradefed MultiMap structure.
33message KeyBuildFilePair {
34  // The Key indexing a list of BuildFile that are tracked by the BuildInfo.
35  string build_file_key = 1;
36  // List of BuildFile that are tracked by the BuildInfo.
37  repeated BuildFile file = 2;
38}
39
40// Proto representation of IBuildInfo
41message BuildInfo {
42  // The build identifier of the represented build.
43  string build_id = 1;
44  // The build flavor. For example: sailfish-userdebug
45  string build_flavor = 2;
46  // The branch where the build come from: For example: git_main
47  string branch = 3;
48  // The build attributes, as a key value
49  map<string, string> attributes = 4;
50  // The versioned files part of the build that are tracked.
51  repeated KeyBuildFilePair versioned_file = 5;
52  // The type of the IBuildInfo instance.
53  // For example: com.android.tradefed.build.BuildInfo
54  string build_info_class = 6;
55  // Deprecated: Whether or not the build info represents a test resource.
56  bool is_test_resource = 7;
57}
58