| Aditya Choudhary | 8094b6b | 2023-10-12 19:40:17 +0000 | [diff] [blame] | 1 | // you may not use this file except in compliance with the License. | 
|  | 2 | // You may obtain a copy of the License at | 
|  | 3 | // | 
|  | 4 | //   http://www.apache.org/licenses/LICENSE-2.0 | 
|  | 5 | // | 
|  | 6 | // Unless required by applicable law or agreed to in writing, software | 
|  | 7 | // distributed under the License is distributed on an "AS IS" BASIS, | 
|  | 8 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 
|  | 9 | // See the License for the specific language governing permissions and | 
|  | 10 | // limitations under the License. | 
|  | 11 |  | 
|  | 12 | syntax = "proto2"; | 
|  | 13 | package code_metadata_proto; | 
|  | 14 | option go_package = "android/soong/testing/code_metadata_proto"; | 
|  | 15 |  | 
|  | 16 | message CodeMetadata { | 
|  | 17 |  | 
|  | 18 | message TargetOwnership { | 
|  | 19 | // REQUIRED: Name of the build target | 
|  | 20 | optional string target_name = 1; | 
|  | 21 |  | 
|  | 22 | // REQUIRED: Code location of the target. | 
|  | 23 | // To be used to support legacy/backup systems that use OWNERS file and is | 
|  | 24 | // also required for our dashboard to support per code location basis UI | 
|  | 25 | optional string path = 2; | 
|  | 26 |  | 
|  | 27 | // REQUIRED: Team ID of the team that owns this target. | 
|  | 28 | optional string trendy_team_id = 3; | 
|  | 29 |  | 
|  | 30 | // OPTIONAL: The src files of the target. | 
|  | 31 | // To be used to determine ownership of a file for ownership | 
|  | 32 | repeated string source_files = 4; | 
|  | 33 | } | 
|  | 34 |  | 
|  | 35 | // List of all code targets and their metadata. | 
|  | 36 | repeated TargetOwnership target_ownership_list = 1; | 
|  | 37 | } |