...
1/*
2Copyright 2016 Google Inc. All Rights Reserved.
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6 http://www.apache.org/licenses/LICENSE-2.0
7Unless required by applicable law or agreed to in writing, software
8distributed under the License is distributed on an "AS IS" BASIS,
9 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 See the License for the specific language governing permissions and
11 limitations under the License.
12*/
13syntax = "proto3";
14
15package devtools.buildozer;
16
17option go_package = "api_proto";
18
19message Output {
20 repeated Record records = 1;
21 message Record {
22 repeated Field fields = 1;
23 message Field {
24 oneof value {
25 string text = 1;
26 int32 number = 2;
27 ERROR error = 3;
28 RepeatedString list = 5;
29 }
30 // Used internally by Buildozer to decide whether a field should be quoted
31 // when printing. This does not affect the contents of 'value'.
32 bool quote_when_printing = 7;
33
34 enum ERROR {
35 UNKNOWN = 0;
36 MISSING = 1;
37 MISSING_LIST_ITEM = 2;
38 }
39 }
40 }
41}
42
43message RepeatedString {
44 repeated string strings = 1;
45}
View as plain text