1// Copyright 2019 Google Inc. All Rights Reserved. 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 = "proto2"; 16 17package soong_build_error; 18option go_package = "soong_build_error_proto"; 19 20message BuildError { 21 // List of error messages of the overall build. The error messages 22 // are not associated with a build action. 23 repeated string error_messages = 1; 24 25 // List of build action errors. 26 repeated BuildActionError action_errors = 2; 27} 28 29// Build is composed of a list of build action. There can be a set of build 30// actions that can failed. 31message BuildActionError { 32 // Description of the command. 33 optional string description = 1; 34 35 // The command name that raised the error. 36 optional string command = 2; 37 38 // The command output stream. 39 optional string output = 3; 40 41 // List of artifacts (i.e. files) that was produced by the command. 42 repeated string artifacts = 4; 43 44 // The error string produced by the build action. 45 optional string error = 5; 46} 47