1// Copyright 2020 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// Definitions for dependency reports. 16 17syntax = "proto2"; 18 19option java_package = "com.google.turbine.proto"; 20option java_outer_classname = "ManifestProto"; 21 22// Information about a single compilation unit (.java file) 23message CompilationUnit { 24 // The path to the compilation unit 25 optional string path = 1; 26 27 // The package of the source file 28 optional string pkg = 2; 29 30 // Whether the source was generated by an annotation processor 31 optional bool generated_by_annotation_processor = 3; 32 33 // The list of top-level types in the compilation unit 34 repeated string top_level = 4; 35} 36 37// Top-level message found in .manifest artifacts 38message Manifest { 39 repeated CompilationUnit compilation_unit = 1; 40}