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
15// Code generated by protoc-gen-go. DO NOT EDIT.
16// versions:
17// 	protoc-gen-go v1.26.0
18// 	protoc        v3.9.1
19// source: build_error.proto
20
21package build_error_proto
22
23import (
24	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26	reflect "reflect"
27	sync "sync"
28)
29
30const (
31	// Verify that this generated code is sufficiently up-to-date.
32	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33	// Verify that runtime/protoimpl is sufficiently up-to-date.
34	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35)
36
37type BuildError struct {
38	state         protoimpl.MessageState
39	sizeCache     protoimpl.SizeCache
40	unknownFields protoimpl.UnknownFields
41
42	// List of error messages of the overall build. The error messages
43	// are not associated with a build action.
44	ErrorMessages []string `protobuf:"bytes,1,rep,name=error_messages,json=errorMessages" json:"error_messages,omitempty"`
45	// List of build action errors.
46	ActionErrors []*BuildActionError `protobuf:"bytes,2,rep,name=action_errors,json=actionErrors" json:"action_errors,omitempty"`
47}
48
49func (x *BuildError) Reset() {
50	*x = BuildError{}
51	if protoimpl.UnsafeEnabled {
52		mi := &file_build_error_proto_msgTypes[0]
53		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
54		ms.StoreMessageInfo(mi)
55	}
56}
57
58func (x *BuildError) String() string {
59	return protoimpl.X.MessageStringOf(x)
60}
61
62func (*BuildError) ProtoMessage() {}
63
64func (x *BuildError) ProtoReflect() protoreflect.Message {
65	mi := &file_build_error_proto_msgTypes[0]
66	if protoimpl.UnsafeEnabled && x != nil {
67		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
68		if ms.LoadMessageInfo() == nil {
69			ms.StoreMessageInfo(mi)
70		}
71		return ms
72	}
73	return mi.MessageOf(x)
74}
75
76// Deprecated: Use BuildError.ProtoReflect.Descriptor instead.
77func (*BuildError) Descriptor() ([]byte, []int) {
78	return file_build_error_proto_rawDescGZIP(), []int{0}
79}
80
81func (x *BuildError) GetErrorMessages() []string {
82	if x != nil {
83		return x.ErrorMessages
84	}
85	return nil
86}
87
88func (x *BuildError) GetActionErrors() []*BuildActionError {
89	if x != nil {
90		return x.ActionErrors
91	}
92	return nil
93}
94
95// Build is composed of a list of build action. There can be a set of build
96// actions that can failed.
97type BuildActionError struct {
98	state         protoimpl.MessageState
99	sizeCache     protoimpl.SizeCache
100	unknownFields protoimpl.UnknownFields
101
102	// Description of the command.
103	Description *string `protobuf:"bytes,1,opt,name=description" json:"description,omitempty"`
104	// The command name that raised the error.
105	Command *string `protobuf:"bytes,2,opt,name=command" json:"command,omitempty"`
106	// The command output stream.
107	Output *string `protobuf:"bytes,3,opt,name=output" json:"output,omitempty"`
108	// List of artifacts (i.e. files) that was produced by the command.
109	Artifacts []string `protobuf:"bytes,4,rep,name=artifacts" json:"artifacts,omitempty"`
110	// The error string produced by the build action.
111	Error *string `protobuf:"bytes,5,opt,name=error" json:"error,omitempty"`
112}
113
114func (x *BuildActionError) Reset() {
115	*x = BuildActionError{}
116	if protoimpl.UnsafeEnabled {
117		mi := &file_build_error_proto_msgTypes[1]
118		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
119		ms.StoreMessageInfo(mi)
120	}
121}
122
123func (x *BuildActionError) String() string {
124	return protoimpl.X.MessageStringOf(x)
125}
126
127func (*BuildActionError) ProtoMessage() {}
128
129func (x *BuildActionError) ProtoReflect() protoreflect.Message {
130	mi := &file_build_error_proto_msgTypes[1]
131	if protoimpl.UnsafeEnabled && x != nil {
132		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
133		if ms.LoadMessageInfo() == nil {
134			ms.StoreMessageInfo(mi)
135		}
136		return ms
137	}
138	return mi.MessageOf(x)
139}
140
141// Deprecated: Use BuildActionError.ProtoReflect.Descriptor instead.
142func (*BuildActionError) Descriptor() ([]byte, []int) {
143	return file_build_error_proto_rawDescGZIP(), []int{1}
144}
145
146func (x *BuildActionError) GetDescription() string {
147	if x != nil && x.Description != nil {
148		return *x.Description
149	}
150	return ""
151}
152
153func (x *BuildActionError) GetCommand() string {
154	if x != nil && x.Command != nil {
155		return *x.Command
156	}
157	return ""
158}
159
160func (x *BuildActionError) GetOutput() string {
161	if x != nil && x.Output != nil {
162		return *x.Output
163	}
164	return ""
165}
166
167func (x *BuildActionError) GetArtifacts() []string {
168	if x != nil {
169		return x.Artifacts
170	}
171	return nil
172}
173
174func (x *BuildActionError) GetError() string {
175	if x != nil && x.Error != nil {
176		return *x.Error
177	}
178	return ""
179}
180
181var File_build_error_proto protoreflect.FileDescriptor
182
183var file_build_error_proto_rawDesc = []byte{
184	0x0a, 0x11, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x70, 0x72,
185	0x6f, 0x74, 0x6f, 0x12, 0x11, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64,
186	0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x7d, 0x0a, 0x0a, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x45,
187	0x72, 0x72, 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65,
188	0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x65, 0x72,
189	0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x48, 0x0a, 0x0d, 0x61,
190	0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03,
191	0x28, 0x0b, 0x32, 0x23, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64,
192	0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x41, 0x63, 0x74, 0x69,
193	0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45,
194	0x72, 0x72, 0x6f, 0x72, 0x73, 0x22, 0x9a, 0x01, 0x0a, 0x10, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x41,
195	0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65,
196	0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
197	0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07,
198	0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63,
199	0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74,
200	0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x1c,
201	0x0a, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28,
202	0x09, 0x52, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x12, 0x14, 0x0a, 0x05,
203	0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72,
204	0x6f, 0x72, 0x42, 0x2b, 0x5a, 0x29, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x2f, 0x73, 0x6f,
205	0x6f, 0x6e, 0x67, 0x2f, 0x75, 0x69, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2f, 0x62, 0x75,
206	0x69, 0x6c, 0x64, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
207}
208
209var (
210	file_build_error_proto_rawDescOnce sync.Once
211	file_build_error_proto_rawDescData = file_build_error_proto_rawDesc
212)
213
214func file_build_error_proto_rawDescGZIP() []byte {
215	file_build_error_proto_rawDescOnce.Do(func() {
216		file_build_error_proto_rawDescData = protoimpl.X.CompressGZIP(file_build_error_proto_rawDescData)
217	})
218	return file_build_error_proto_rawDescData
219}
220
221var file_build_error_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
222var file_build_error_proto_goTypes = []interface{}{
223	(*BuildError)(nil),       // 0: soong_build_error.BuildError
224	(*BuildActionError)(nil), // 1: soong_build_error.BuildActionError
225}
226var file_build_error_proto_depIdxs = []int32{
227	1, // 0: soong_build_error.BuildError.action_errors:type_name -> soong_build_error.BuildActionError
228	1, // [1:1] is the sub-list for method output_type
229	1, // [1:1] is the sub-list for method input_type
230	1, // [1:1] is the sub-list for extension type_name
231	1, // [1:1] is the sub-list for extension extendee
232	0, // [0:1] is the sub-list for field type_name
233}
234
235func init() { file_build_error_proto_init() }
236func file_build_error_proto_init() {
237	if File_build_error_proto != nil {
238		return
239	}
240	if !protoimpl.UnsafeEnabled {
241		file_build_error_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
242			switch v := v.(*BuildError); i {
243			case 0:
244				return &v.state
245			case 1:
246				return &v.sizeCache
247			case 2:
248				return &v.unknownFields
249			default:
250				return nil
251			}
252		}
253		file_build_error_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
254			switch v := v.(*BuildActionError); i {
255			case 0:
256				return &v.state
257			case 1:
258				return &v.sizeCache
259			case 2:
260				return &v.unknownFields
261			default:
262				return nil
263			}
264		}
265	}
266	type x struct{}
267	out := protoimpl.TypeBuilder{
268		File: protoimpl.DescBuilder{
269			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
270			RawDescriptor: file_build_error_proto_rawDesc,
271			NumEnums:      0,
272			NumMessages:   2,
273			NumExtensions: 0,
274			NumServices:   0,
275		},
276		GoTypes:           file_build_error_proto_goTypes,
277		DependencyIndexes: file_build_error_proto_depIdxs,
278		MessageInfos:      file_build_error_proto_msgTypes,
279	}.Build()
280	File_build_error_proto = out.File
281	file_build_error_proto_rawDesc = nil
282	file_build_error_proto_goTypes = nil
283	file_build_error_proto_depIdxs = nil
284}
285