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
15syntax = "proto2";
16
17package soong_metrics_upload;
18option go_package = "soong_metrics_upload_proto";
19
20message Upload {
21  // The timestamp in milliseconds that the build was created.
22  optional uint64 creation_timestamp_ms = 1;
23
24  // The timestamp in milliseconds when the build was completed.
25  optional uint64 completion_timestamp_ms = 2;
26
27  // The branch name.
28  optional string branch_name = 3;
29
30  // The target name.
31  optional string target_name = 4;
32
33  // A list of metrics filepaths to upload.
34  repeated string metrics_files = 5;
35
36  // A list of directories to delete after the copy of metrics files
37  // is completed for uploading.
38  repeated string directories_to_delete = 6;
39}
40