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// 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: upload.proto
20
21package upload_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 Upload struct {
38	state         protoimpl.MessageState
39	sizeCache     protoimpl.SizeCache
40	unknownFields protoimpl.UnknownFields
41
42	// The timestamp in milliseconds that the build was created.
43	CreationTimestampMs *uint64 `protobuf:"varint,1,opt,name=creation_timestamp_ms,json=creationTimestampMs" json:"creation_timestamp_ms,omitempty"`
44	// The timestamp in milliseconds when the build was completed.
45	CompletionTimestampMs *uint64 `protobuf:"varint,2,opt,name=completion_timestamp_ms,json=completionTimestampMs" json:"completion_timestamp_ms,omitempty"`
46	// The branch name.
47	BranchName *string `protobuf:"bytes,3,opt,name=branch_name,json=branchName" json:"branch_name,omitempty"`
48	// The target name.
49	TargetName *string `protobuf:"bytes,4,opt,name=target_name,json=targetName" json:"target_name,omitempty"`
50	// A list of metrics filepaths to upload.
51	MetricsFiles []string `protobuf:"bytes,5,rep,name=metrics_files,json=metricsFiles" json:"metrics_files,omitempty"`
52	// A list of directories to delete after the copy of metrics files
53	// is completed for uploading.
54	DirectoriesToDelete []string `protobuf:"bytes,6,rep,name=directories_to_delete,json=directoriesToDelete" json:"directories_to_delete,omitempty"`
55}
56
57func (x *Upload) Reset() {
58	*x = Upload{}
59	if protoimpl.UnsafeEnabled {
60		mi := &file_upload_proto_msgTypes[0]
61		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
62		ms.StoreMessageInfo(mi)
63	}
64}
65
66func (x *Upload) String() string {
67	return protoimpl.X.MessageStringOf(x)
68}
69
70func (*Upload) ProtoMessage() {}
71
72func (x *Upload) ProtoReflect() protoreflect.Message {
73	mi := &file_upload_proto_msgTypes[0]
74	if protoimpl.UnsafeEnabled && x != nil {
75		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
76		if ms.LoadMessageInfo() == nil {
77			ms.StoreMessageInfo(mi)
78		}
79		return ms
80	}
81	return mi.MessageOf(x)
82}
83
84// Deprecated: Use Upload.ProtoReflect.Descriptor instead.
85func (*Upload) Descriptor() ([]byte, []int) {
86	return file_upload_proto_rawDescGZIP(), []int{0}
87}
88
89func (x *Upload) GetCreationTimestampMs() uint64 {
90	if x != nil && x.CreationTimestampMs != nil {
91		return *x.CreationTimestampMs
92	}
93	return 0
94}
95
96func (x *Upload) GetCompletionTimestampMs() uint64 {
97	if x != nil && x.CompletionTimestampMs != nil {
98		return *x.CompletionTimestampMs
99	}
100	return 0
101}
102
103func (x *Upload) GetBranchName() string {
104	if x != nil && x.BranchName != nil {
105		return *x.BranchName
106	}
107	return ""
108}
109
110func (x *Upload) GetTargetName() string {
111	if x != nil && x.TargetName != nil {
112		return *x.TargetName
113	}
114	return ""
115}
116
117func (x *Upload) GetMetricsFiles() []string {
118	if x != nil {
119		return x.MetricsFiles
120	}
121	return nil
122}
123
124func (x *Upload) GetDirectoriesToDelete() []string {
125	if x != nil {
126		return x.DirectoriesToDelete
127	}
128	return nil
129}
130
131var File_upload_proto protoreflect.FileDescriptor
132
133var file_upload_proto_rawDesc = []byte{
134	0x0a, 0x0c, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14,
135	0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x75, 0x70,
136	0x6c, 0x6f, 0x61, 0x64, 0x22, 0x8f, 0x02, 0x0a, 0x06, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x12,
137	0x32, 0x0a, 0x15, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65,
138	0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13,
139	0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
140	0x70, 0x4d, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f,
141	0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x73, 0x18, 0x02,
142	0x20, 0x01, 0x28, 0x04, 0x52, 0x15, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e,
143	0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x62,
144	0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
145	0x52, 0x0a, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b,
146	0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
147	0x09, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a,
148	0x0d, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x05,
149	0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x46, 0x69, 0x6c,
150	0x65, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x69, 0x65,
151	0x73, 0x5f, 0x74, 0x6f, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x06, 0x20, 0x03, 0x28,
152	0x09, 0x52, 0x13, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x54, 0x6f,
153	0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x27, 0x5a, 0x25, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x69,
154	0x64, 0x2f, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x2f, 0x75, 0x69, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69,
155	0x63, 0x73, 0x2f, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
156}
157
158var (
159	file_upload_proto_rawDescOnce sync.Once
160	file_upload_proto_rawDescData = file_upload_proto_rawDesc
161)
162
163func file_upload_proto_rawDescGZIP() []byte {
164	file_upload_proto_rawDescOnce.Do(func() {
165		file_upload_proto_rawDescData = protoimpl.X.CompressGZIP(file_upload_proto_rawDescData)
166	})
167	return file_upload_proto_rawDescData
168}
169
170var file_upload_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
171var file_upload_proto_goTypes = []interface{}{
172	(*Upload)(nil), // 0: soong_metrics_upload.Upload
173}
174var file_upload_proto_depIdxs = []int32{
175	0, // [0:0] is the sub-list for method output_type
176	0, // [0:0] is the sub-list for method input_type
177	0, // [0:0] is the sub-list for extension type_name
178	0, // [0:0] is the sub-list for extension extendee
179	0, // [0:0] is the sub-list for field type_name
180}
181
182func init() { file_upload_proto_init() }
183func file_upload_proto_init() {
184	if File_upload_proto != nil {
185		return
186	}
187	if !protoimpl.UnsafeEnabled {
188		file_upload_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
189			switch v := v.(*Upload); i {
190			case 0:
191				return &v.state
192			case 1:
193				return &v.sizeCache
194			case 2:
195				return &v.unknownFields
196			default:
197				return nil
198			}
199		}
200	}
201	type x struct{}
202	out := protoimpl.TypeBuilder{
203		File: protoimpl.DescBuilder{
204			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
205			RawDescriptor: file_upload_proto_rawDesc,
206			NumEnums:      0,
207			NumMessages:   1,
208			NumExtensions: 0,
209			NumServices:   0,
210		},
211		GoTypes:           file_upload_proto_goTypes,
212		DependencyIndexes: file_upload_proto_depIdxs,
213		MessageInfos:      file_upload_proto_msgTypes,
214	}.Build()
215	File_upload_proto = out.File
216	file_upload_proto_rawDesc = nil
217	file_upload_proto_goTypes = nil
218	file_upload_proto_depIdxs = nil
219}
220