blob: 80f80bc9ece02818e0f1bf620c271a25e98bf2a2 [file] [log] [blame]
Dan Willemsen4591b642021-05-24 14:24:12 -07001// Copyright 2018 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
Nan Zhang17f27672018-12-12 16:01:49 -080015// Code generated by protoc-gen-go. DO NOT EDIT.
Dan Willemsen4591b642021-05-24 14:24:12 -070016// versions:
Yu Liue737a992021-10-04 13:21:41 -070017// protoc-gen-go v1.27.1
Dan Willemsen4591b642021-05-24 14:24:12 -070018// protoc v3.9.1
Nan Zhang17f27672018-12-12 16:01:49 -080019// source: metrics.proto
20
Dan Willemsen4591b642021-05-24 14:24:12 -070021package metrics_proto
Nan Zhang17f27672018-12-12 16:01:49 -080022
Patrice Arruda0cc5b212019-06-14 15:27:46 -070023import (
Dan Willemsen4591b642021-05-24 14:24:12 -070024 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 reflect "reflect"
27 sync "sync"
Patrice Arruda0cc5b212019-06-14 15:27:46 -070028)
Nan Zhang17f27672018-12-12 16:01:49 -080029
Dan Willemsen4591b642021-05-24 14:24:12 -070030const (
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)
Nan Zhang17f27672018-12-12 16:01:49 -080036
Patrice Arruda0cc5b212019-06-14 15:27:46 -070037type MetricsBase_BuildVariant int32
Nan Zhang17f27672018-12-12 16:01:49 -080038
39const (
Patrice Arruda0cc5b212019-06-14 15:27:46 -070040 MetricsBase_USER MetricsBase_BuildVariant = 0
41 MetricsBase_USERDEBUG MetricsBase_BuildVariant = 1
42 MetricsBase_ENG MetricsBase_BuildVariant = 2
Nan Zhang17f27672018-12-12 16:01:49 -080043)
44
Dan Willemsen4591b642021-05-24 14:24:12 -070045// Enum value maps for MetricsBase_BuildVariant.
46var (
47 MetricsBase_BuildVariant_name = map[int32]string{
48 0: "USER",
49 1: "USERDEBUG",
50 2: "ENG",
51 }
52 MetricsBase_BuildVariant_value = map[string]int32{
53 "USER": 0,
54 "USERDEBUG": 1,
55 "ENG": 2,
56 }
57)
Nan Zhang17f27672018-12-12 16:01:49 -080058
Patrice Arruda0cc5b212019-06-14 15:27:46 -070059func (x MetricsBase_BuildVariant) Enum() *MetricsBase_BuildVariant {
60 p := new(MetricsBase_BuildVariant)
Nan Zhang17f27672018-12-12 16:01:49 -080061 *p = x
62 return p
63}
Patrice Arruda0cc5b212019-06-14 15:27:46 -070064
65func (x MetricsBase_BuildVariant) String() string {
Dan Willemsen4591b642021-05-24 14:24:12 -070066 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Nan Zhang17f27672018-12-12 16:01:49 -080067}
Patrice Arruda0cc5b212019-06-14 15:27:46 -070068
Dan Willemsen4591b642021-05-24 14:24:12 -070069func (MetricsBase_BuildVariant) Descriptor() protoreflect.EnumDescriptor {
70 return file_metrics_proto_enumTypes[0].Descriptor()
71}
72
73func (MetricsBase_BuildVariant) Type() protoreflect.EnumType {
74 return &file_metrics_proto_enumTypes[0]
75}
76
77func (x MetricsBase_BuildVariant) Number() protoreflect.EnumNumber {
78 return protoreflect.EnumNumber(x)
79}
80
81// Deprecated: Do not use.
82func (x *MetricsBase_BuildVariant) UnmarshalJSON(b []byte) error {
83 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Nan Zhang17f27672018-12-12 16:01:49 -080084 if err != nil {
85 return err
86 }
Dan Willemsen4591b642021-05-24 14:24:12 -070087 *x = MetricsBase_BuildVariant(num)
Nan Zhang17f27672018-12-12 16:01:49 -080088 return nil
89}
Patrice Arruda0cc5b212019-06-14 15:27:46 -070090
Dan Willemsen4591b642021-05-24 14:24:12 -070091// Deprecated: Use MetricsBase_BuildVariant.Descriptor instead.
Patrice Arruda0cc5b212019-06-14 15:27:46 -070092func (MetricsBase_BuildVariant) EnumDescriptor() ([]byte, []int) {
Dan Willemsen4591b642021-05-24 14:24:12 -070093 return file_metrics_proto_rawDescGZIP(), []int{0, 0}
Nan Zhang17f27672018-12-12 16:01:49 -080094}
95
Patrice Arruda0cc5b212019-06-14 15:27:46 -070096type MetricsBase_Arch int32
Nan Zhang17f27672018-12-12 16:01:49 -080097
98const (
Patrice Arruda0cc5b212019-06-14 15:27:46 -070099 MetricsBase_UNKNOWN MetricsBase_Arch = 0
100 MetricsBase_ARM MetricsBase_Arch = 1
101 MetricsBase_ARM64 MetricsBase_Arch = 2
102 MetricsBase_X86 MetricsBase_Arch = 3
103 MetricsBase_X86_64 MetricsBase_Arch = 4
Nan Zhang17f27672018-12-12 16:01:49 -0800104)
105
Dan Willemsen4591b642021-05-24 14:24:12 -0700106// Enum value maps for MetricsBase_Arch.
107var (
108 MetricsBase_Arch_name = map[int32]string{
109 0: "UNKNOWN",
110 1: "ARM",
111 2: "ARM64",
112 3: "X86",
113 4: "X86_64",
114 }
115 MetricsBase_Arch_value = map[string]int32{
116 "UNKNOWN": 0,
117 "ARM": 1,
118 "ARM64": 2,
119 "X86": 3,
120 "X86_64": 4,
121 }
122)
Nan Zhang17f27672018-12-12 16:01:49 -0800123
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700124func (x MetricsBase_Arch) Enum() *MetricsBase_Arch {
125 p := new(MetricsBase_Arch)
Nan Zhang17f27672018-12-12 16:01:49 -0800126 *p = x
127 return p
128}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700129
130func (x MetricsBase_Arch) String() string {
Dan Willemsen4591b642021-05-24 14:24:12 -0700131 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Nan Zhang17f27672018-12-12 16:01:49 -0800132}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700133
Dan Willemsen4591b642021-05-24 14:24:12 -0700134func (MetricsBase_Arch) Descriptor() protoreflect.EnumDescriptor {
135 return file_metrics_proto_enumTypes[1].Descriptor()
136}
137
138func (MetricsBase_Arch) Type() protoreflect.EnumType {
139 return &file_metrics_proto_enumTypes[1]
140}
141
142func (x MetricsBase_Arch) Number() protoreflect.EnumNumber {
143 return protoreflect.EnumNumber(x)
144}
145
146// Deprecated: Do not use.
147func (x *MetricsBase_Arch) UnmarshalJSON(b []byte) error {
148 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Nan Zhang17f27672018-12-12 16:01:49 -0800149 if err != nil {
150 return err
151 }
Dan Willemsen4591b642021-05-24 14:24:12 -0700152 *x = MetricsBase_Arch(num)
Nan Zhang17f27672018-12-12 16:01:49 -0800153 return nil
154}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700155
Dan Willemsen4591b642021-05-24 14:24:12 -0700156// Deprecated: Use MetricsBase_Arch.Descriptor instead.
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700157func (MetricsBase_Arch) EnumDescriptor() ([]byte, []int) {
Dan Willemsen4591b642021-05-24 14:24:12 -0700158 return file_metrics_proto_rawDescGZIP(), []int{0, 1}
Nan Zhang17f27672018-12-12 16:01:49 -0800159}
160
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700161type ModuleTypeInfo_BuildSystem int32
Nan Zhang17f27672018-12-12 16:01:49 -0800162
163const (
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700164 ModuleTypeInfo_UNKNOWN ModuleTypeInfo_BuildSystem = 0
165 ModuleTypeInfo_SOONG ModuleTypeInfo_BuildSystem = 1
166 ModuleTypeInfo_MAKE ModuleTypeInfo_BuildSystem = 2
Nan Zhang17f27672018-12-12 16:01:49 -0800167)
168
Dan Willemsen4591b642021-05-24 14:24:12 -0700169// Enum value maps for ModuleTypeInfo_BuildSystem.
170var (
171 ModuleTypeInfo_BuildSystem_name = map[int32]string{
172 0: "UNKNOWN",
173 1: "SOONG",
174 2: "MAKE",
175 }
176 ModuleTypeInfo_BuildSystem_value = map[string]int32{
177 "UNKNOWN": 0,
178 "SOONG": 1,
179 "MAKE": 2,
180 }
181)
Nan Zhang17f27672018-12-12 16:01:49 -0800182
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700183func (x ModuleTypeInfo_BuildSystem) Enum() *ModuleTypeInfo_BuildSystem {
184 p := new(ModuleTypeInfo_BuildSystem)
Nan Zhang17f27672018-12-12 16:01:49 -0800185 *p = x
186 return p
187}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700188
189func (x ModuleTypeInfo_BuildSystem) String() string {
Dan Willemsen4591b642021-05-24 14:24:12 -0700190 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Nan Zhang17f27672018-12-12 16:01:49 -0800191}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700192
Dan Willemsen4591b642021-05-24 14:24:12 -0700193func (ModuleTypeInfo_BuildSystem) Descriptor() protoreflect.EnumDescriptor {
194 return file_metrics_proto_enumTypes[2].Descriptor()
195}
196
197func (ModuleTypeInfo_BuildSystem) Type() protoreflect.EnumType {
198 return &file_metrics_proto_enumTypes[2]
199}
200
201func (x ModuleTypeInfo_BuildSystem) Number() protoreflect.EnumNumber {
202 return protoreflect.EnumNumber(x)
203}
204
205// Deprecated: Do not use.
206func (x *ModuleTypeInfo_BuildSystem) UnmarshalJSON(b []byte) error {
207 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
Nan Zhang17f27672018-12-12 16:01:49 -0800208 if err != nil {
209 return err
210 }
Dan Willemsen4591b642021-05-24 14:24:12 -0700211 *x = ModuleTypeInfo_BuildSystem(num)
Nan Zhang17f27672018-12-12 16:01:49 -0800212 return nil
213}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700214
Dan Willemsen4591b642021-05-24 14:24:12 -0700215// Deprecated: Use ModuleTypeInfo_BuildSystem.Descriptor instead.
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700216func (ModuleTypeInfo_BuildSystem) EnumDescriptor() ([]byte, []int) {
Dan Willemsen4591b642021-05-24 14:24:12 -0700217 return file_metrics_proto_rawDescGZIP(), []int{5, 0}
Nan Zhang17f27672018-12-12 16:01:49 -0800218}
219
220type MetricsBase struct {
Dan Willemsen4591b642021-05-24 14:24:12 -0700221 state protoimpl.MessageState
222 sizeCache protoimpl.SizeCache
223 unknownFields protoimpl.UnknownFields
224
Nan Zhang17f27672018-12-12 16:01:49 -0800225 // Timestamp generated when the build starts.
226 BuildDateTimestamp *int64 `protobuf:"varint,1,opt,name=build_date_timestamp,json=buildDateTimestamp" json:"build_date_timestamp,omitempty"`
227 // It is usually used to specify the branch name [and release candidate].
228 BuildId *string `protobuf:"bytes,2,opt,name=build_id,json=buildId" json:"build_id,omitempty"`
229 // The platform version codename, eg. P, Q, REL.
230 PlatformVersionCodename *string `protobuf:"bytes,3,opt,name=platform_version_codename,json=platformVersionCodename" json:"platform_version_codename,omitempty"`
231 // The target product information, eg. aosp_arm.
232 TargetProduct *string `protobuf:"bytes,4,opt,name=target_product,json=targetProduct" json:"target_product,omitempty"`
233 // The target build variant information, eg. eng.
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700234 TargetBuildVariant *MetricsBase_BuildVariant `protobuf:"varint,5,opt,name=target_build_variant,json=targetBuildVariant,enum=soong_build_metrics.MetricsBase_BuildVariant,def=2" json:"target_build_variant,omitempty"`
Nan Zhang17f27672018-12-12 16:01:49 -0800235 // The target arch information, eg. arm.
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700236 TargetArch *MetricsBase_Arch `protobuf:"varint,6,opt,name=target_arch,json=targetArch,enum=soong_build_metrics.MetricsBase_Arch,def=0" json:"target_arch,omitempty"`
Nan Zhang17f27672018-12-12 16:01:49 -0800237 // The target arch variant information, eg. armv7-a-neon.
238 TargetArchVariant *string `protobuf:"bytes,7,opt,name=target_arch_variant,json=targetArchVariant" json:"target_arch_variant,omitempty"`
239 // The target cpu variant information, eg. generic.
240 TargetCpuVariant *string `protobuf:"bytes,8,opt,name=target_cpu_variant,json=targetCpuVariant" json:"target_cpu_variant,omitempty"`
241 // The host arch information, eg. x86_64.
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700242 HostArch *MetricsBase_Arch `protobuf:"varint,9,opt,name=host_arch,json=hostArch,enum=soong_build_metrics.MetricsBase_Arch,def=0" json:"host_arch,omitempty"`
Nan Zhang17f27672018-12-12 16:01:49 -0800243 // The host 2nd arch information, eg. x86.
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700244 Host_2NdArch *MetricsBase_Arch `protobuf:"varint,10,opt,name=host_2nd_arch,json=host2ndArch,enum=soong_build_metrics.MetricsBase_Arch,def=0" json:"host_2nd_arch,omitempty"`
Nan Zhang17f27672018-12-12 16:01:49 -0800245 // The host os information, eg. linux.
246 HostOs *string `protobuf:"bytes,11,opt,name=host_os,json=hostOs" json:"host_os,omitempty"`
247 // The host os extra information, eg. Linux-4.17.0-3rodete2-amd64-x86_64-Debian-GNU.
248 HostOsExtra *string `protobuf:"bytes,12,opt,name=host_os_extra,json=hostOsExtra" json:"host_os_extra,omitempty"`
249 // The host cross os information, eg. windows.
250 HostCrossOs *string `protobuf:"bytes,13,opt,name=host_cross_os,json=hostCrossOs" json:"host_cross_os,omitempty"`
251 // The host cross arch information, eg. x86.
252 HostCrossArch *string `protobuf:"bytes,14,opt,name=host_cross_arch,json=hostCrossArch" json:"host_cross_arch,omitempty"`
253 // The host cross 2nd arch information, eg. x86_64.
254 HostCross_2NdArch *string `protobuf:"bytes,15,opt,name=host_cross_2nd_arch,json=hostCross2ndArch" json:"host_cross_2nd_arch,omitempty"`
255 // The directory for generated built artifacts installation, eg. out.
256 OutDir *string `protobuf:"bytes,16,opt,name=out_dir,json=outDir" json:"out_dir,omitempty"`
257 // The metrics for calling various tools (microfactory) before Soong_UI starts.
258 SetupTools []*PerfInfo `protobuf:"bytes,17,rep,name=setup_tools,json=setupTools" json:"setup_tools,omitempty"`
259 // The metrics for calling Kati by multiple times.
260 KatiRuns []*PerfInfo `protobuf:"bytes,18,rep,name=kati_runs,json=katiRuns" json:"kati_runs,omitempty"`
261 // The metrics for calling Soong.
262 SoongRuns []*PerfInfo `protobuf:"bytes,19,rep,name=soong_runs,json=soongRuns" json:"soong_runs,omitempty"`
263 // The metrics for calling Ninja.
Colin Cross74cda722020-01-16 15:25:50 -0800264 NinjaRuns []*PerfInfo `protobuf:"bytes,20,rep,name=ninja_runs,json=ninjaRuns" json:"ninja_runs,omitempty"`
265 // The metrics for the whole build
Patrice Arruda4fb8adc2020-10-12 22:38:06 +0000266 Total *PerfInfo `protobuf:"bytes,21,opt,name=total" json:"total,omitempty"`
267 SoongBuildMetrics *SoongBuildMetrics `protobuf:"bytes,22,opt,name=soong_build_metrics,json=soongBuildMetrics" json:"soong_build_metrics,omitempty"`
268 BuildConfig *BuildConfig `protobuf:"bytes,23,opt,name=build_config,json=buildConfig" json:"build_config,omitempty"`
Patrice Arruda3edfd482020-10-13 23:58:41 +0000269 // The hostname of the machine.
270 Hostname *string `protobuf:"bytes,24,opt,name=hostname" json:"hostname,omitempty"`
271 // The system resource information such as total physical memory.
Patrice Arrudae92c30d2020-10-29 11:01:32 -0700272 SystemResourceInfo *SystemResourceInfo `protobuf:"bytes,25,opt,name=system_resource_info,json=systemResourceInfo" json:"system_resource_info,omitempty"`
273 // The build command that the user entered to the build system.
Patrice Arrudab7cf9ba2020-11-13 13:04:17 -0800274 BuildCommand *string `protobuf:"bytes,26,opt,name=build_command,json=buildCommand" json:"build_command,omitempty"`
275 // The metrics for calling Bazel.
Dan Willemsen4591b642021-05-24 14:24:12 -0700276 BazelRuns []*PerfInfo `protobuf:"bytes,27,rep,name=bazel_runs,json=bazelRuns" json:"bazel_runs,omitempty"`
Nan Zhang17f27672018-12-12 16:01:49 -0800277}
278
Dan Willemsen4591b642021-05-24 14:24:12 -0700279// Default values for MetricsBase fields.
280const (
281 Default_MetricsBase_TargetBuildVariant = MetricsBase_ENG
282 Default_MetricsBase_TargetArch = MetricsBase_UNKNOWN
283 Default_MetricsBase_HostArch = MetricsBase_UNKNOWN
284 Default_MetricsBase_Host_2NdArch = MetricsBase_UNKNOWN
285)
286
287func (x *MetricsBase) Reset() {
288 *x = MetricsBase{}
289 if protoimpl.UnsafeEnabled {
290 mi := &file_metrics_proto_msgTypes[0]
291 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
292 ms.StoreMessageInfo(mi)
293 }
294}
295
296func (x *MetricsBase) String() string {
297 return protoimpl.X.MessageStringOf(x)
298}
299
300func (*MetricsBase) ProtoMessage() {}
301
302func (x *MetricsBase) ProtoReflect() protoreflect.Message {
303 mi := &file_metrics_proto_msgTypes[0]
304 if protoimpl.UnsafeEnabled && x != nil {
305 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
306 if ms.LoadMessageInfo() == nil {
307 ms.StoreMessageInfo(mi)
308 }
309 return ms
310 }
311 return mi.MessageOf(x)
312}
313
314// Deprecated: Use MetricsBase.ProtoReflect.Descriptor instead.
Nan Zhang17f27672018-12-12 16:01:49 -0800315func (*MetricsBase) Descriptor() ([]byte, []int) {
Dan Willemsen4591b642021-05-24 14:24:12 -0700316 return file_metrics_proto_rawDescGZIP(), []int{0}
Nan Zhang17f27672018-12-12 16:01:49 -0800317}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700318
Dan Willemsen4591b642021-05-24 14:24:12 -0700319func (x *MetricsBase) GetBuildDateTimestamp() int64 {
320 if x != nil && x.BuildDateTimestamp != nil {
321 return *x.BuildDateTimestamp
Nan Zhang17f27672018-12-12 16:01:49 -0800322 }
323 return 0
324}
325
Dan Willemsen4591b642021-05-24 14:24:12 -0700326func (x *MetricsBase) GetBuildId() string {
327 if x != nil && x.BuildId != nil {
328 return *x.BuildId
Nan Zhang17f27672018-12-12 16:01:49 -0800329 }
330 return ""
331}
332
Dan Willemsen4591b642021-05-24 14:24:12 -0700333func (x *MetricsBase) GetPlatformVersionCodename() string {
334 if x != nil && x.PlatformVersionCodename != nil {
335 return *x.PlatformVersionCodename
Nan Zhang17f27672018-12-12 16:01:49 -0800336 }
337 return ""
338}
339
Dan Willemsen4591b642021-05-24 14:24:12 -0700340func (x *MetricsBase) GetTargetProduct() string {
341 if x != nil && x.TargetProduct != nil {
342 return *x.TargetProduct
Nan Zhang17f27672018-12-12 16:01:49 -0800343 }
344 return ""
345}
346
Dan Willemsen4591b642021-05-24 14:24:12 -0700347func (x *MetricsBase) GetTargetBuildVariant() MetricsBase_BuildVariant {
348 if x != nil && x.TargetBuildVariant != nil {
349 return *x.TargetBuildVariant
Nan Zhang17f27672018-12-12 16:01:49 -0800350 }
351 return Default_MetricsBase_TargetBuildVariant
352}
353
Dan Willemsen4591b642021-05-24 14:24:12 -0700354func (x *MetricsBase) GetTargetArch() MetricsBase_Arch {
355 if x != nil && x.TargetArch != nil {
356 return *x.TargetArch
Nan Zhang17f27672018-12-12 16:01:49 -0800357 }
358 return Default_MetricsBase_TargetArch
359}
360
Dan Willemsen4591b642021-05-24 14:24:12 -0700361func (x *MetricsBase) GetTargetArchVariant() string {
362 if x != nil && x.TargetArchVariant != nil {
363 return *x.TargetArchVariant
Nan Zhang17f27672018-12-12 16:01:49 -0800364 }
365 return ""
366}
367
Dan Willemsen4591b642021-05-24 14:24:12 -0700368func (x *MetricsBase) GetTargetCpuVariant() string {
369 if x != nil && x.TargetCpuVariant != nil {
370 return *x.TargetCpuVariant
Nan Zhang17f27672018-12-12 16:01:49 -0800371 }
372 return ""
373}
374
Dan Willemsen4591b642021-05-24 14:24:12 -0700375func (x *MetricsBase) GetHostArch() MetricsBase_Arch {
376 if x != nil && x.HostArch != nil {
377 return *x.HostArch
Nan Zhang17f27672018-12-12 16:01:49 -0800378 }
379 return Default_MetricsBase_HostArch
380}
381
Dan Willemsen4591b642021-05-24 14:24:12 -0700382func (x *MetricsBase) GetHost_2NdArch() MetricsBase_Arch {
383 if x != nil && x.Host_2NdArch != nil {
384 return *x.Host_2NdArch
Nan Zhang17f27672018-12-12 16:01:49 -0800385 }
386 return Default_MetricsBase_Host_2NdArch
387}
388
Dan Willemsen4591b642021-05-24 14:24:12 -0700389func (x *MetricsBase) GetHostOs() string {
390 if x != nil && x.HostOs != nil {
391 return *x.HostOs
Nan Zhang17f27672018-12-12 16:01:49 -0800392 }
393 return ""
394}
395
Dan Willemsen4591b642021-05-24 14:24:12 -0700396func (x *MetricsBase) GetHostOsExtra() string {
397 if x != nil && x.HostOsExtra != nil {
398 return *x.HostOsExtra
Nan Zhang17f27672018-12-12 16:01:49 -0800399 }
400 return ""
401}
402
Dan Willemsen4591b642021-05-24 14:24:12 -0700403func (x *MetricsBase) GetHostCrossOs() string {
404 if x != nil && x.HostCrossOs != nil {
405 return *x.HostCrossOs
Nan Zhang17f27672018-12-12 16:01:49 -0800406 }
407 return ""
408}
409
Dan Willemsen4591b642021-05-24 14:24:12 -0700410func (x *MetricsBase) GetHostCrossArch() string {
411 if x != nil && x.HostCrossArch != nil {
412 return *x.HostCrossArch
Nan Zhang17f27672018-12-12 16:01:49 -0800413 }
414 return ""
415}
416
Dan Willemsen4591b642021-05-24 14:24:12 -0700417func (x *MetricsBase) GetHostCross_2NdArch() string {
418 if x != nil && x.HostCross_2NdArch != nil {
419 return *x.HostCross_2NdArch
Nan Zhang17f27672018-12-12 16:01:49 -0800420 }
421 return ""
422}
423
Dan Willemsen4591b642021-05-24 14:24:12 -0700424func (x *MetricsBase) GetOutDir() string {
425 if x != nil && x.OutDir != nil {
426 return *x.OutDir
Nan Zhang17f27672018-12-12 16:01:49 -0800427 }
428 return ""
429}
430
Dan Willemsen4591b642021-05-24 14:24:12 -0700431func (x *MetricsBase) GetSetupTools() []*PerfInfo {
432 if x != nil {
433 return x.SetupTools
Nan Zhang17f27672018-12-12 16:01:49 -0800434 }
435 return nil
436}
437
Dan Willemsen4591b642021-05-24 14:24:12 -0700438func (x *MetricsBase) GetKatiRuns() []*PerfInfo {
439 if x != nil {
440 return x.KatiRuns
Nan Zhang17f27672018-12-12 16:01:49 -0800441 }
442 return nil
443}
444
Dan Willemsen4591b642021-05-24 14:24:12 -0700445func (x *MetricsBase) GetSoongRuns() []*PerfInfo {
446 if x != nil {
447 return x.SoongRuns
Nan Zhang17f27672018-12-12 16:01:49 -0800448 }
449 return nil
450}
451
Dan Willemsen4591b642021-05-24 14:24:12 -0700452func (x *MetricsBase) GetNinjaRuns() []*PerfInfo {
453 if x != nil {
454 return x.NinjaRuns
Nan Zhang17f27672018-12-12 16:01:49 -0800455 }
456 return nil
457}
458
Dan Willemsen4591b642021-05-24 14:24:12 -0700459func (x *MetricsBase) GetTotal() *PerfInfo {
460 if x != nil {
461 return x.Total
Colin Cross74cda722020-01-16 15:25:50 -0800462 }
463 return nil
464}
465
Dan Willemsen4591b642021-05-24 14:24:12 -0700466func (x *MetricsBase) GetSoongBuildMetrics() *SoongBuildMetrics {
467 if x != nil {
468 return x.SoongBuildMetrics
Colin Crossb72c9092020-02-10 11:23:49 -0800469 }
470 return nil
471}
472
Dan Willemsen4591b642021-05-24 14:24:12 -0700473func (x *MetricsBase) GetBuildConfig() *BuildConfig {
474 if x != nil {
475 return x.BuildConfig
Patrice Arruda96850362020-08-11 20:41:11 +0000476 }
477 return nil
478}
479
Dan Willemsen4591b642021-05-24 14:24:12 -0700480func (x *MetricsBase) GetHostname() string {
481 if x != nil && x.Hostname != nil {
482 return *x.Hostname
Patrice Arruda4fb8adc2020-10-12 22:38:06 +0000483 }
484 return ""
485}
486
Dan Willemsen4591b642021-05-24 14:24:12 -0700487func (x *MetricsBase) GetSystemResourceInfo() *SystemResourceInfo {
488 if x != nil {
489 return x.SystemResourceInfo
Patrice Arruda3edfd482020-10-13 23:58:41 +0000490 }
491 return nil
492}
493
Dan Willemsen4591b642021-05-24 14:24:12 -0700494func (x *MetricsBase) GetBuildCommand() string {
495 if x != nil && x.BuildCommand != nil {
496 return *x.BuildCommand
Patrice Arrudae92c30d2020-10-29 11:01:32 -0700497 }
498 return ""
499}
500
Dan Willemsen4591b642021-05-24 14:24:12 -0700501func (x *MetricsBase) GetBazelRuns() []*PerfInfo {
502 if x != nil {
503 return x.BazelRuns
Patrice Arrudab7cf9ba2020-11-13 13:04:17 -0800504 }
505 return nil
506}
507
Patrice Arruda96850362020-08-11 20:41:11 +0000508type BuildConfig struct {
Dan Willemsen4591b642021-05-24 14:24:12 -0700509 state protoimpl.MessageState
510 sizeCache protoimpl.SizeCache
511 unknownFields protoimpl.UnknownFields
512
Liz Kammerca9cb2e2021-07-14 15:29:57 -0400513 UseGoma *bool `protobuf:"varint,1,opt,name=use_goma,json=useGoma" json:"use_goma,omitempty"`
514 UseRbe *bool `protobuf:"varint,2,opt,name=use_rbe,json=useRbe" json:"use_rbe,omitempty"`
515 ForceUseGoma *bool `protobuf:"varint,3,opt,name=force_use_goma,json=forceUseGoma" json:"force_use_goma,omitempty"`
516 // Whether the Bazel is acting as the Ninja executor for this build.
517 BazelAsNinja *bool `protobuf:"varint,4,opt,name=bazel_as_ninja,json=bazelAsNinja" json:"bazel_as_ninja,omitempty"`
518 // Whether build is occurring in a mixed build mode, where Bazel maintains the
519 // definition and build of some modules in cooperation with Soong.
Dan Willemsen4591b642021-05-24 14:24:12 -0700520 BazelMixedBuild *bool `protobuf:"varint,5,opt,name=bazel_mixed_build,json=bazelMixedBuild" json:"bazel_mixed_build,omitempty"`
Yu Liue737a992021-10-04 13:21:41 -0700521 // These are the targets soong passes to ninja, these targets include special
522 // targets such as droid as well as the regular build targets.
523 Targets []string `protobuf:"bytes,6,rep,name=targets" json:"targets,omitempty"`
Patrice Arruda96850362020-08-11 20:41:11 +0000524}
525
Dan Willemsen4591b642021-05-24 14:24:12 -0700526func (x *BuildConfig) Reset() {
527 *x = BuildConfig{}
528 if protoimpl.UnsafeEnabled {
529 mi := &file_metrics_proto_msgTypes[1]
530 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
531 ms.StoreMessageInfo(mi)
532 }
533}
534
535func (x *BuildConfig) String() string {
536 return protoimpl.X.MessageStringOf(x)
537}
538
539func (*BuildConfig) ProtoMessage() {}
540
541func (x *BuildConfig) ProtoReflect() protoreflect.Message {
542 mi := &file_metrics_proto_msgTypes[1]
543 if protoimpl.UnsafeEnabled && x != nil {
544 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
545 if ms.LoadMessageInfo() == nil {
546 ms.StoreMessageInfo(mi)
547 }
548 return ms
549 }
550 return mi.MessageOf(x)
551}
552
553// Deprecated: Use BuildConfig.ProtoReflect.Descriptor instead.
Patrice Arruda96850362020-08-11 20:41:11 +0000554func (*BuildConfig) Descriptor() ([]byte, []int) {
Dan Willemsen4591b642021-05-24 14:24:12 -0700555 return file_metrics_proto_rawDescGZIP(), []int{1}
Patrice Arruda96850362020-08-11 20:41:11 +0000556}
557
Dan Willemsen4591b642021-05-24 14:24:12 -0700558func (x *BuildConfig) GetUseGoma() bool {
559 if x != nil && x.UseGoma != nil {
560 return *x.UseGoma
Patrice Arruda96850362020-08-11 20:41:11 +0000561 }
562 return false
563}
564
Dan Willemsen4591b642021-05-24 14:24:12 -0700565func (x *BuildConfig) GetUseRbe() bool {
566 if x != nil && x.UseRbe != nil {
567 return *x.UseRbe
Patrice Arruda96850362020-08-11 20:41:11 +0000568 }
569 return false
570}
571
Dan Willemsen4591b642021-05-24 14:24:12 -0700572func (x *BuildConfig) GetForceUseGoma() bool {
573 if x != nil && x.ForceUseGoma != nil {
574 return *x.ForceUseGoma
Patrice Arrudac97d6dc2020-09-28 18:22:07 +0000575 }
576 return false
577}
578
Dan Willemsen4591b642021-05-24 14:24:12 -0700579func (x *BuildConfig) GetBazelAsNinja() bool {
580 if x != nil && x.BazelAsNinja != nil {
581 return *x.BazelAsNinja
Liz Kammerca9cb2e2021-07-14 15:29:57 -0400582 }
583 return false
584}
585
Dan Willemsen4591b642021-05-24 14:24:12 -0700586func (x *BuildConfig) GetBazelMixedBuild() bool {
587 if x != nil && x.BazelMixedBuild != nil {
588 return *x.BazelMixedBuild
Liz Kammerca9cb2e2021-07-14 15:29:57 -0400589 }
590 return false
591}
592
Yu Liue737a992021-10-04 13:21:41 -0700593func (x *BuildConfig) GetTargets() []string {
594 if x != nil {
595 return x.Targets
596 }
597 return nil
598}
599
Patrice Arruda3edfd482020-10-13 23:58:41 +0000600type SystemResourceInfo struct {
Dan Willemsen4591b642021-05-24 14:24:12 -0700601 state protoimpl.MessageState
602 sizeCache protoimpl.SizeCache
603 unknownFields protoimpl.UnknownFields
604
Patrice Arruda3edfd482020-10-13 23:58:41 +0000605 // The total physical memory in bytes.
606 TotalPhysicalMemory *uint64 `protobuf:"varint,1,opt,name=total_physical_memory,json=totalPhysicalMemory" json:"total_physical_memory,omitempty"`
607 // The total of available cores for building
Dan Willemsen4591b642021-05-24 14:24:12 -0700608 AvailableCpus *int32 `protobuf:"varint,2,opt,name=available_cpus,json=availableCpus" json:"available_cpus,omitempty"`
Patrice Arruda3edfd482020-10-13 23:58:41 +0000609}
610
Dan Willemsen4591b642021-05-24 14:24:12 -0700611func (x *SystemResourceInfo) Reset() {
612 *x = SystemResourceInfo{}
613 if protoimpl.UnsafeEnabled {
614 mi := &file_metrics_proto_msgTypes[2]
615 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
616 ms.StoreMessageInfo(mi)
617 }
618}
619
620func (x *SystemResourceInfo) String() string {
621 return protoimpl.X.MessageStringOf(x)
622}
623
624func (*SystemResourceInfo) ProtoMessage() {}
625
626func (x *SystemResourceInfo) ProtoReflect() protoreflect.Message {
627 mi := &file_metrics_proto_msgTypes[2]
628 if protoimpl.UnsafeEnabled && x != nil {
629 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
630 if ms.LoadMessageInfo() == nil {
631 ms.StoreMessageInfo(mi)
632 }
633 return ms
634 }
635 return mi.MessageOf(x)
636}
637
638// Deprecated: Use SystemResourceInfo.ProtoReflect.Descriptor instead.
Patrice Arruda3edfd482020-10-13 23:58:41 +0000639func (*SystemResourceInfo) Descriptor() ([]byte, []int) {
Dan Willemsen4591b642021-05-24 14:24:12 -0700640 return file_metrics_proto_rawDescGZIP(), []int{2}
Patrice Arruda3edfd482020-10-13 23:58:41 +0000641}
642
Dan Willemsen4591b642021-05-24 14:24:12 -0700643func (x *SystemResourceInfo) GetTotalPhysicalMemory() uint64 {
644 if x != nil && x.TotalPhysicalMemory != nil {
645 return *x.TotalPhysicalMemory
Patrice Arruda3edfd482020-10-13 23:58:41 +0000646 }
647 return 0
648}
649
Dan Willemsen4591b642021-05-24 14:24:12 -0700650func (x *SystemResourceInfo) GetAvailableCpus() int32 {
651 if x != nil && x.AvailableCpus != nil {
652 return *x.AvailableCpus
Patrice Arruda3edfd482020-10-13 23:58:41 +0000653 }
654 return 0
655}
656
Nan Zhang17f27672018-12-12 16:01:49 -0800657type PerfInfo struct {
Dan Willemsen4591b642021-05-24 14:24:12 -0700658 state protoimpl.MessageState
659 sizeCache protoimpl.SizeCache
660 unknownFields protoimpl.UnknownFields
661
Nan Zhang17f27672018-12-12 16:01:49 -0800662 // The description for the phase/action/part while the tool running.
663 Desc *string `protobuf:"bytes,1,opt,name=desc" json:"desc,omitempty"`
664 // The name for the running phase/action/part.
665 Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
666 // The absolute start time.
667 // The number of nanoseconds elapsed since January 1, 1970 UTC.
668 StartTime *uint64 `protobuf:"varint,3,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
669 // The real running time.
670 // The number of nanoseconds elapsed since start_time.
671 RealTime *uint64 `protobuf:"varint,4,opt,name=real_time,json=realTime" json:"real_time,omitempty"`
Patrice Arrudafec3bf22020-10-19 10:55:34 -0700672 // The number of MB for memory use (deprecated as it is too generic).
Dan Willemsen4591b642021-05-24 14:24:12 -0700673 //
674 // Deprecated: Do not use.
675 MemoryUse *uint64 `protobuf:"varint,5,opt,name=memory_use,json=memoryUse" json:"memory_use,omitempty"`
Patrice Arrudafec3bf22020-10-19 10:55:34 -0700676 // The resource information of each executed process.
677 ProcessesResourceInfo []*ProcessResourceInfo `protobuf:"bytes,6,rep,name=processes_resource_info,json=processesResourceInfo" json:"processes_resource_info,omitempty"`
Nan Zhang17f27672018-12-12 16:01:49 -0800678}
679
Dan Willemsen4591b642021-05-24 14:24:12 -0700680func (x *PerfInfo) Reset() {
681 *x = PerfInfo{}
682 if protoimpl.UnsafeEnabled {
683 mi := &file_metrics_proto_msgTypes[3]
684 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
685 ms.StoreMessageInfo(mi)
686 }
687}
688
689func (x *PerfInfo) String() string {
690 return protoimpl.X.MessageStringOf(x)
691}
692
693func (*PerfInfo) ProtoMessage() {}
694
695func (x *PerfInfo) ProtoReflect() protoreflect.Message {
696 mi := &file_metrics_proto_msgTypes[3]
697 if protoimpl.UnsafeEnabled && x != nil {
698 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
699 if ms.LoadMessageInfo() == nil {
700 ms.StoreMessageInfo(mi)
701 }
702 return ms
703 }
704 return mi.MessageOf(x)
705}
706
707// Deprecated: Use PerfInfo.ProtoReflect.Descriptor instead.
Nan Zhang17f27672018-12-12 16:01:49 -0800708func (*PerfInfo) Descriptor() ([]byte, []int) {
Dan Willemsen4591b642021-05-24 14:24:12 -0700709 return file_metrics_proto_rawDescGZIP(), []int{3}
Nan Zhang17f27672018-12-12 16:01:49 -0800710}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700711
Dan Willemsen4591b642021-05-24 14:24:12 -0700712func (x *PerfInfo) GetDesc() string {
713 if x != nil && x.Desc != nil {
714 return *x.Desc
Nan Zhang17f27672018-12-12 16:01:49 -0800715 }
716 return ""
717}
718
Dan Willemsen4591b642021-05-24 14:24:12 -0700719func (x *PerfInfo) GetName() string {
720 if x != nil && x.Name != nil {
721 return *x.Name
Nan Zhang17f27672018-12-12 16:01:49 -0800722 }
723 return ""
724}
725
Dan Willemsen4591b642021-05-24 14:24:12 -0700726func (x *PerfInfo) GetStartTime() uint64 {
727 if x != nil && x.StartTime != nil {
728 return *x.StartTime
Nan Zhang17f27672018-12-12 16:01:49 -0800729 }
730 return 0
731}
732
Dan Willemsen4591b642021-05-24 14:24:12 -0700733func (x *PerfInfo) GetRealTime() uint64 {
734 if x != nil && x.RealTime != nil {
735 return *x.RealTime
Nan Zhang17f27672018-12-12 16:01:49 -0800736 }
737 return 0
738}
739
Patrice Arrudafec3bf22020-10-19 10:55:34 -0700740// Deprecated: Do not use.
Dan Willemsen4591b642021-05-24 14:24:12 -0700741func (x *PerfInfo) GetMemoryUse() uint64 {
742 if x != nil && x.MemoryUse != nil {
743 return *x.MemoryUse
Nan Zhang17f27672018-12-12 16:01:49 -0800744 }
745 return 0
746}
747
Dan Willemsen4591b642021-05-24 14:24:12 -0700748func (x *PerfInfo) GetProcessesResourceInfo() []*ProcessResourceInfo {
749 if x != nil {
750 return x.ProcessesResourceInfo
Patrice Arrudafec3bf22020-10-19 10:55:34 -0700751 }
752 return nil
753}
754
755type ProcessResourceInfo struct {
Dan Willemsen4591b642021-05-24 14:24:12 -0700756 state protoimpl.MessageState
757 sizeCache protoimpl.SizeCache
758 unknownFields protoimpl.UnknownFields
759
Patrice Arrudafec3bf22020-10-19 10:55:34 -0700760 // The name of the process for identification.
761 Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
762 // The amount of time spent executing in user space in microseconds.
763 UserTimeMicros *uint64 `protobuf:"varint,2,opt,name=user_time_micros,json=userTimeMicros" json:"user_time_micros,omitempty"`
764 // The amount of time spent executing in kernel mode in microseconds.
765 SystemTimeMicros *uint64 `protobuf:"varint,3,opt,name=system_time_micros,json=systemTimeMicros" json:"system_time_micros,omitempty"`
766 // The maximum resident set size memory used in kilobytes.
767 MaxRssKb *uint64 `protobuf:"varint,4,opt,name=max_rss_kb,json=maxRssKb" json:"max_rss_kb,omitempty"`
768 // The number of minor page faults serviced without any I/O activity.
769 MinorPageFaults *uint64 `protobuf:"varint,5,opt,name=minor_page_faults,json=minorPageFaults" json:"minor_page_faults,omitempty"`
770 // The number of major page faults serviced that required I/O activity.
771 MajorPageFaults *uint64 `protobuf:"varint,6,opt,name=major_page_faults,json=majorPageFaults" json:"major_page_faults,omitempty"`
772 // Total IO input in kilobytes.
773 IoInputKb *uint64 `protobuf:"varint,7,opt,name=io_input_kb,json=ioInputKb" json:"io_input_kb,omitempty"`
774 // Total IO output in kilobytes.
775 IoOutputKb *uint64 `protobuf:"varint,8,opt,name=io_output_kb,json=ioOutputKb" json:"io_output_kb,omitempty"`
776 // The number of voluntary context switches
777 VoluntaryContextSwitches *uint64 `protobuf:"varint,9,opt,name=voluntary_context_switches,json=voluntaryContextSwitches" json:"voluntary_context_switches,omitempty"`
778 // The number of involuntary context switches
Dan Willemsen4591b642021-05-24 14:24:12 -0700779 InvoluntaryContextSwitches *uint64 `protobuf:"varint,10,opt,name=involuntary_context_switches,json=involuntaryContextSwitches" json:"involuntary_context_switches,omitempty"`
Patrice Arrudafec3bf22020-10-19 10:55:34 -0700780}
781
Dan Willemsen4591b642021-05-24 14:24:12 -0700782func (x *ProcessResourceInfo) Reset() {
783 *x = ProcessResourceInfo{}
784 if protoimpl.UnsafeEnabled {
785 mi := &file_metrics_proto_msgTypes[4]
786 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
787 ms.StoreMessageInfo(mi)
788 }
789}
790
791func (x *ProcessResourceInfo) String() string {
792 return protoimpl.X.MessageStringOf(x)
793}
794
795func (*ProcessResourceInfo) ProtoMessage() {}
796
797func (x *ProcessResourceInfo) ProtoReflect() protoreflect.Message {
798 mi := &file_metrics_proto_msgTypes[4]
799 if protoimpl.UnsafeEnabled && x != nil {
800 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
801 if ms.LoadMessageInfo() == nil {
802 ms.StoreMessageInfo(mi)
803 }
804 return ms
805 }
806 return mi.MessageOf(x)
807}
808
809// Deprecated: Use ProcessResourceInfo.ProtoReflect.Descriptor instead.
Patrice Arrudafec3bf22020-10-19 10:55:34 -0700810func (*ProcessResourceInfo) Descriptor() ([]byte, []int) {
Dan Willemsen4591b642021-05-24 14:24:12 -0700811 return file_metrics_proto_rawDescGZIP(), []int{4}
Patrice Arrudafec3bf22020-10-19 10:55:34 -0700812}
813
Dan Willemsen4591b642021-05-24 14:24:12 -0700814func (x *ProcessResourceInfo) GetName() string {
815 if x != nil && x.Name != nil {
816 return *x.Name
Patrice Arrudafec3bf22020-10-19 10:55:34 -0700817 }
818 return ""
819}
820
Dan Willemsen4591b642021-05-24 14:24:12 -0700821func (x *ProcessResourceInfo) GetUserTimeMicros() uint64 {
822 if x != nil && x.UserTimeMicros != nil {
823 return *x.UserTimeMicros
Patrice Arrudafec3bf22020-10-19 10:55:34 -0700824 }
825 return 0
826}
827
Dan Willemsen4591b642021-05-24 14:24:12 -0700828func (x *ProcessResourceInfo) GetSystemTimeMicros() uint64 {
829 if x != nil && x.SystemTimeMicros != nil {
830 return *x.SystemTimeMicros
Patrice Arrudafec3bf22020-10-19 10:55:34 -0700831 }
832 return 0
833}
834
Dan Willemsen4591b642021-05-24 14:24:12 -0700835func (x *ProcessResourceInfo) GetMaxRssKb() uint64 {
836 if x != nil && x.MaxRssKb != nil {
837 return *x.MaxRssKb
Patrice Arrudafec3bf22020-10-19 10:55:34 -0700838 }
839 return 0
840}
841
Dan Willemsen4591b642021-05-24 14:24:12 -0700842func (x *ProcessResourceInfo) GetMinorPageFaults() uint64 {
843 if x != nil && x.MinorPageFaults != nil {
844 return *x.MinorPageFaults
Patrice Arrudafec3bf22020-10-19 10:55:34 -0700845 }
846 return 0
847}
848
Dan Willemsen4591b642021-05-24 14:24:12 -0700849func (x *ProcessResourceInfo) GetMajorPageFaults() uint64 {
850 if x != nil && x.MajorPageFaults != nil {
851 return *x.MajorPageFaults
Patrice Arrudafec3bf22020-10-19 10:55:34 -0700852 }
853 return 0
854}
855
Dan Willemsen4591b642021-05-24 14:24:12 -0700856func (x *ProcessResourceInfo) GetIoInputKb() uint64 {
857 if x != nil && x.IoInputKb != nil {
858 return *x.IoInputKb
Patrice Arrudafec3bf22020-10-19 10:55:34 -0700859 }
860 return 0
861}
862
Dan Willemsen4591b642021-05-24 14:24:12 -0700863func (x *ProcessResourceInfo) GetIoOutputKb() uint64 {
864 if x != nil && x.IoOutputKb != nil {
865 return *x.IoOutputKb
Patrice Arrudafec3bf22020-10-19 10:55:34 -0700866 }
867 return 0
868}
869
Dan Willemsen4591b642021-05-24 14:24:12 -0700870func (x *ProcessResourceInfo) GetVoluntaryContextSwitches() uint64 {
871 if x != nil && x.VoluntaryContextSwitches != nil {
872 return *x.VoluntaryContextSwitches
Patrice Arrudafec3bf22020-10-19 10:55:34 -0700873 }
874 return 0
875}
876
Dan Willemsen4591b642021-05-24 14:24:12 -0700877func (x *ProcessResourceInfo) GetInvoluntaryContextSwitches() uint64 {
878 if x != nil && x.InvoluntaryContextSwitches != nil {
879 return *x.InvoluntaryContextSwitches
Patrice Arrudafec3bf22020-10-19 10:55:34 -0700880 }
881 return 0
882}
883
Nan Zhang17f27672018-12-12 16:01:49 -0800884type ModuleTypeInfo struct {
Dan Willemsen4591b642021-05-24 14:24:12 -0700885 state protoimpl.MessageState
886 sizeCache protoimpl.SizeCache
887 unknownFields protoimpl.UnknownFields
888
Nan Zhang17f27672018-12-12 16:01:49 -0800889 // The build system, eg. Soong or Make.
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700890 BuildSystem *ModuleTypeInfo_BuildSystem `protobuf:"varint,1,opt,name=build_system,json=buildSystem,enum=soong_build_metrics.ModuleTypeInfo_BuildSystem,def=0" json:"build_system,omitempty"`
Nan Zhang17f27672018-12-12 16:01:49 -0800891 // The module type, eg. java_library, cc_binary, and etc.
892 ModuleType *string `protobuf:"bytes,2,opt,name=module_type,json=moduleType" json:"module_type,omitempty"`
893 // The number of logical modules.
Dan Willemsen4591b642021-05-24 14:24:12 -0700894 NumOfModules *uint32 `protobuf:"varint,3,opt,name=num_of_modules,json=numOfModules" json:"num_of_modules,omitempty"`
Nan Zhang17f27672018-12-12 16:01:49 -0800895}
896
Dan Willemsen4591b642021-05-24 14:24:12 -0700897// Default values for ModuleTypeInfo fields.
898const (
899 Default_ModuleTypeInfo_BuildSystem = ModuleTypeInfo_UNKNOWN
900)
901
902func (x *ModuleTypeInfo) Reset() {
903 *x = ModuleTypeInfo{}
904 if protoimpl.UnsafeEnabled {
905 mi := &file_metrics_proto_msgTypes[5]
906 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
907 ms.StoreMessageInfo(mi)
908 }
909}
910
911func (x *ModuleTypeInfo) String() string {
912 return protoimpl.X.MessageStringOf(x)
913}
914
915func (*ModuleTypeInfo) ProtoMessage() {}
916
917func (x *ModuleTypeInfo) ProtoReflect() protoreflect.Message {
918 mi := &file_metrics_proto_msgTypes[5]
919 if protoimpl.UnsafeEnabled && x != nil {
920 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
921 if ms.LoadMessageInfo() == nil {
922 ms.StoreMessageInfo(mi)
923 }
924 return ms
925 }
926 return mi.MessageOf(x)
927}
928
929// Deprecated: Use ModuleTypeInfo.ProtoReflect.Descriptor instead.
Nan Zhang17f27672018-12-12 16:01:49 -0800930func (*ModuleTypeInfo) Descriptor() ([]byte, []int) {
Dan Willemsen4591b642021-05-24 14:24:12 -0700931 return file_metrics_proto_rawDescGZIP(), []int{5}
Nan Zhang17f27672018-12-12 16:01:49 -0800932}
Patrice Arruda0cc5b212019-06-14 15:27:46 -0700933
Dan Willemsen4591b642021-05-24 14:24:12 -0700934func (x *ModuleTypeInfo) GetBuildSystem() ModuleTypeInfo_BuildSystem {
935 if x != nil && x.BuildSystem != nil {
936 return *x.BuildSystem
Nan Zhang17f27672018-12-12 16:01:49 -0800937 }
938 return Default_ModuleTypeInfo_BuildSystem
939}
940
Dan Willemsen4591b642021-05-24 14:24:12 -0700941func (x *ModuleTypeInfo) GetModuleType() string {
942 if x != nil && x.ModuleType != nil {
943 return *x.ModuleType
Nan Zhang17f27672018-12-12 16:01:49 -0800944 }
945 return ""
946}
947
Dan Willemsen4591b642021-05-24 14:24:12 -0700948func (x *ModuleTypeInfo) GetNumOfModules() uint32 {
949 if x != nil && x.NumOfModules != nil {
950 return *x.NumOfModules
Nan Zhang17f27672018-12-12 16:01:49 -0800951 }
952 return 0
953}
954
Colin Crossd0be2102019-11-26 16:16:57 -0800955type CriticalUserJourneyMetrics struct {
Dan Willemsen4591b642021-05-24 14:24:12 -0700956 state protoimpl.MessageState
957 sizeCache protoimpl.SizeCache
958 unknownFields protoimpl.UnknownFields
959
Colin Crossd0be2102019-11-26 16:16:57 -0800960 // The name of a critical user journey test.
961 Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
962 // The metrics produced when running the critical user journey test.
Dan Willemsen4591b642021-05-24 14:24:12 -0700963 Metrics *MetricsBase `protobuf:"bytes,2,opt,name=metrics" json:"metrics,omitempty"`
Colin Crossd0be2102019-11-26 16:16:57 -0800964}
965
Dan Willemsen4591b642021-05-24 14:24:12 -0700966func (x *CriticalUserJourneyMetrics) Reset() {
967 *x = CriticalUserJourneyMetrics{}
968 if protoimpl.UnsafeEnabled {
969 mi := &file_metrics_proto_msgTypes[6]
970 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
971 ms.StoreMessageInfo(mi)
972 }
973}
974
975func (x *CriticalUserJourneyMetrics) String() string {
976 return protoimpl.X.MessageStringOf(x)
977}
978
979func (*CriticalUserJourneyMetrics) ProtoMessage() {}
980
981func (x *CriticalUserJourneyMetrics) ProtoReflect() protoreflect.Message {
982 mi := &file_metrics_proto_msgTypes[6]
983 if protoimpl.UnsafeEnabled && x != nil {
984 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
985 if ms.LoadMessageInfo() == nil {
986 ms.StoreMessageInfo(mi)
987 }
988 return ms
989 }
990 return mi.MessageOf(x)
991}
992
993// Deprecated: Use CriticalUserJourneyMetrics.ProtoReflect.Descriptor instead.
Colin Crossd0be2102019-11-26 16:16:57 -0800994func (*CriticalUserJourneyMetrics) Descriptor() ([]byte, []int) {
Dan Willemsen4591b642021-05-24 14:24:12 -0700995 return file_metrics_proto_rawDescGZIP(), []int{6}
Colin Crossd0be2102019-11-26 16:16:57 -0800996}
997
Dan Willemsen4591b642021-05-24 14:24:12 -0700998func (x *CriticalUserJourneyMetrics) GetName() string {
999 if x != nil && x.Name != nil {
1000 return *x.Name
Colin Crossd0be2102019-11-26 16:16:57 -08001001 }
1002 return ""
1003}
1004
Dan Willemsen4591b642021-05-24 14:24:12 -07001005func (x *CriticalUserJourneyMetrics) GetMetrics() *MetricsBase {
1006 if x != nil {
1007 return x.Metrics
Colin Crossd0be2102019-11-26 16:16:57 -08001008 }
1009 return nil
1010}
1011
1012type CriticalUserJourneysMetrics struct {
Dan Willemsen4591b642021-05-24 14:24:12 -07001013 state protoimpl.MessageState
1014 sizeCache protoimpl.SizeCache
1015 unknownFields protoimpl.UnknownFields
1016
Colin Crossd0be2102019-11-26 16:16:57 -08001017 // A set of metrics from a run of the critical user journey tests.
Dan Willemsen4591b642021-05-24 14:24:12 -07001018 Cujs []*CriticalUserJourneyMetrics `protobuf:"bytes,1,rep,name=cujs" json:"cujs,omitempty"`
Colin Crossd0be2102019-11-26 16:16:57 -08001019}
1020
Dan Willemsen4591b642021-05-24 14:24:12 -07001021func (x *CriticalUserJourneysMetrics) Reset() {
1022 *x = CriticalUserJourneysMetrics{}
1023 if protoimpl.UnsafeEnabled {
1024 mi := &file_metrics_proto_msgTypes[7]
1025 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1026 ms.StoreMessageInfo(mi)
1027 }
1028}
1029
1030func (x *CriticalUserJourneysMetrics) String() string {
1031 return protoimpl.X.MessageStringOf(x)
1032}
1033
1034func (*CriticalUserJourneysMetrics) ProtoMessage() {}
1035
1036func (x *CriticalUserJourneysMetrics) ProtoReflect() protoreflect.Message {
1037 mi := &file_metrics_proto_msgTypes[7]
1038 if protoimpl.UnsafeEnabled && x != nil {
1039 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1040 if ms.LoadMessageInfo() == nil {
1041 ms.StoreMessageInfo(mi)
1042 }
1043 return ms
1044 }
1045 return mi.MessageOf(x)
1046}
1047
1048// Deprecated: Use CriticalUserJourneysMetrics.ProtoReflect.Descriptor instead.
Colin Crossd0be2102019-11-26 16:16:57 -08001049func (*CriticalUserJourneysMetrics) Descriptor() ([]byte, []int) {
Dan Willemsen4591b642021-05-24 14:24:12 -07001050 return file_metrics_proto_rawDescGZIP(), []int{7}
Colin Crossd0be2102019-11-26 16:16:57 -08001051}
1052
Dan Willemsen4591b642021-05-24 14:24:12 -07001053func (x *CriticalUserJourneysMetrics) GetCujs() []*CriticalUserJourneyMetrics {
1054 if x != nil {
1055 return x.Cujs
Colin Crossd0be2102019-11-26 16:16:57 -08001056 }
1057 return nil
1058}
1059
Colin Crossb72c9092020-02-10 11:23:49 -08001060type SoongBuildMetrics struct {
Dan Willemsen4591b642021-05-24 14:24:12 -07001061 state protoimpl.MessageState
1062 sizeCache protoimpl.SizeCache
1063 unknownFields protoimpl.UnknownFields
1064
Colin Crossb72c9092020-02-10 11:23:49 -08001065 // The number of modules handled by soong_build.
1066 Modules *uint32 `protobuf:"varint,1,opt,name=modules" json:"modules,omitempty"`
1067 // The total number of variants handled by soong_build.
1068 Variants *uint32 `protobuf:"varint,2,opt,name=variants" json:"variants,omitempty"`
1069 // The total number of allocations in soong_build.
1070 TotalAllocCount *uint64 `protobuf:"varint,3,opt,name=total_alloc_count,json=totalAllocCount" json:"total_alloc_count,omitempty"`
1071 // The total size of allocations in soong_build in bytes.
1072 TotalAllocSize *uint64 `protobuf:"varint,4,opt,name=total_alloc_size,json=totalAllocSize" json:"total_alloc_size,omitempty"`
1073 // The approximate maximum size of the heap in soong_build in bytes.
Dan Willemsen4591b642021-05-24 14:24:12 -07001074 MaxHeapSize *uint64 `protobuf:"varint,5,opt,name=max_heap_size,json=maxHeapSize" json:"max_heap_size,omitempty"`
Colin Crossb72c9092020-02-10 11:23:49 -08001075}
1076
Dan Willemsen4591b642021-05-24 14:24:12 -07001077func (x *SoongBuildMetrics) Reset() {
1078 *x = SoongBuildMetrics{}
1079 if protoimpl.UnsafeEnabled {
1080 mi := &file_metrics_proto_msgTypes[8]
1081 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1082 ms.StoreMessageInfo(mi)
1083 }
1084}
1085
1086func (x *SoongBuildMetrics) String() string {
1087 return protoimpl.X.MessageStringOf(x)
1088}
1089
1090func (*SoongBuildMetrics) ProtoMessage() {}
1091
1092func (x *SoongBuildMetrics) ProtoReflect() protoreflect.Message {
1093 mi := &file_metrics_proto_msgTypes[8]
1094 if protoimpl.UnsafeEnabled && x != nil {
1095 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1096 if ms.LoadMessageInfo() == nil {
1097 ms.StoreMessageInfo(mi)
1098 }
1099 return ms
1100 }
1101 return mi.MessageOf(x)
1102}
1103
1104// Deprecated: Use SoongBuildMetrics.ProtoReflect.Descriptor instead.
Colin Crossb72c9092020-02-10 11:23:49 -08001105func (*SoongBuildMetrics) Descriptor() ([]byte, []int) {
Dan Willemsen4591b642021-05-24 14:24:12 -07001106 return file_metrics_proto_rawDescGZIP(), []int{8}
Colin Crossb72c9092020-02-10 11:23:49 -08001107}
1108
Dan Willemsen4591b642021-05-24 14:24:12 -07001109func (x *SoongBuildMetrics) GetModules() uint32 {
1110 if x != nil && x.Modules != nil {
1111 return *x.Modules
Colin Crossb72c9092020-02-10 11:23:49 -08001112 }
1113 return 0
1114}
1115
Dan Willemsen4591b642021-05-24 14:24:12 -07001116func (x *SoongBuildMetrics) GetVariants() uint32 {
1117 if x != nil && x.Variants != nil {
1118 return *x.Variants
Colin Crossb72c9092020-02-10 11:23:49 -08001119 }
1120 return 0
1121}
1122
Dan Willemsen4591b642021-05-24 14:24:12 -07001123func (x *SoongBuildMetrics) GetTotalAllocCount() uint64 {
1124 if x != nil && x.TotalAllocCount != nil {
1125 return *x.TotalAllocCount
Colin Crossb72c9092020-02-10 11:23:49 -08001126 }
1127 return 0
1128}
1129
Dan Willemsen4591b642021-05-24 14:24:12 -07001130func (x *SoongBuildMetrics) GetTotalAllocSize() uint64 {
1131 if x != nil && x.TotalAllocSize != nil {
1132 return *x.TotalAllocSize
Colin Crossb72c9092020-02-10 11:23:49 -08001133 }
1134 return 0
1135}
1136
Dan Willemsen4591b642021-05-24 14:24:12 -07001137func (x *SoongBuildMetrics) GetMaxHeapSize() uint64 {
1138 if x != nil && x.MaxHeapSize != nil {
1139 return *x.MaxHeapSize
Colin Crossb72c9092020-02-10 11:23:49 -08001140 }
1141 return 0
1142}
1143
Dan Willemsen4591b642021-05-24 14:24:12 -07001144var File_metrics_proto protoreflect.FileDescriptor
1145
1146var file_metrics_proto_rawDesc = []byte{
1147 0x0a, 0x0d, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
1148 0x13, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74,
1149 0x72, 0x69, 0x63, 0x73, 0x22, 0xd8, 0x0c, 0x0a, 0x0b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73,
1150 0x42, 0x61, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x64, 0x61,
1151 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01,
1152 0x28, 0x03, 0x52, 0x12, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d,
1153 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f,
1154 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49,
1155 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x76, 0x65,
1156 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03,
1157 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x56, 0x65,
1158 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a,
1159 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x18,
1160 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f,
1161 0x64, 0x75, 0x63, 0x74, 0x12, 0x64, 0x0a, 0x14, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x62,
1162 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01,
1163 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64,
1164 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73,
1165 0x42, 0x61, 0x73, 0x65, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x56, 0x61, 0x72, 0x69, 0x61, 0x6e,
1166 0x74, 0x3a, 0x03, 0x45, 0x4e, 0x47, 0x52, 0x12, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x42, 0x75,
1167 0x69, 0x6c, 0x64, 0x56, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x12, 0x4f, 0x0a, 0x0b, 0x74, 0x61,
1168 0x72, 0x67, 0x65, 0x74, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32,
1169 0x25, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65,
1170 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x42, 0x61, 0x73,
1171 0x65, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x3a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x52,
1172 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x41, 0x72, 0x63, 0x68, 0x12, 0x2e, 0x0a, 0x13, 0x74,
1173 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61,
1174 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74,
1175 0x41, 0x72, 0x63, 0x68, 0x56, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x74,
1176 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x63, 0x70, 0x75, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e,
1177 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x43,
1178 0x70, 0x75, 0x56, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x12, 0x4b, 0x0a, 0x09, 0x68, 0x6f, 0x73,
1179 0x74, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x73,
1180 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69,
1181 0x63, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x42, 0x61, 0x73, 0x65, 0x2e, 0x41,
1182 0x72, 0x63, 0x68, 0x3a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x52, 0x08, 0x68, 0x6f,
1183 0x73, 0x74, 0x41, 0x72, 0x63, 0x68, 0x12, 0x52, 0x0a, 0x0d, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x32,
1184 0x6e, 0x64, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e,
1185 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72,
1186 0x69, 0x63, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x42, 0x61, 0x73, 0x65, 0x2e,
1187 0x41, 0x72, 0x63, 0x68, 0x3a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x52, 0x0b, 0x68,
1188 0x6f, 0x73, 0x74, 0x32, 0x6e, 0x64, 0x41, 0x72, 0x63, 0x68, 0x12, 0x17, 0x0a, 0x07, 0x68, 0x6f,
1189 0x73, 0x74, 0x5f, 0x6f, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x6f, 0x73,
1190 0x74, 0x4f, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x6f, 0x73, 0x5f, 0x65,
1191 0x78, 0x74, 0x72, 0x61, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x68, 0x6f, 0x73, 0x74,
1192 0x4f, 0x73, 0x45, 0x78, 0x74, 0x72, 0x61, 0x12, 0x22, 0x0a, 0x0d, 0x68, 0x6f, 0x73, 0x74, 0x5f,
1193 0x63, 0x72, 0x6f, 0x73, 0x73, 0x5f, 0x6f, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
1194 0x68, 0x6f, 0x73, 0x74, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x4f, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x68,
1195 0x6f, 0x73, 0x74, 0x5f, 0x63, 0x72, 0x6f, 0x73, 0x73, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x18, 0x0e,
1196 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x68, 0x6f, 0x73, 0x74, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x41,
1197 0x72, 0x63, 0x68, 0x12, 0x2d, 0x0a, 0x13, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x63, 0x72, 0x6f, 0x73,
1198 0x73, 0x5f, 0x32, 0x6e, 0x64, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09,
1199 0x52, 0x10, 0x68, 0x6f, 0x73, 0x74, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x32, 0x6e, 0x64, 0x41, 0x72,
1200 0x63, 0x68, 0x12, 0x17, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x10, 0x20,
1201 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x44, 0x69, 0x72, 0x12, 0x3e, 0x0a, 0x0b, 0x73,
1202 0x65, 0x74, 0x75, 0x70, 0x5f, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x18, 0x11, 0x20, 0x03, 0x28, 0x0b,
1203 0x32, 0x1d, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d,
1204 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x50, 0x65, 0x72, 0x66, 0x49, 0x6e, 0x66, 0x6f, 0x52,
1205 0x0a, 0x73, 0x65, 0x74, 0x75, 0x70, 0x54, 0x6f, 0x6f, 0x6c, 0x73, 0x12, 0x3a, 0x0a, 0x09, 0x6b,
1206 0x61, 0x74, 0x69, 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18, 0x12, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d,
1207 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74,
1208 0x72, 0x69, 0x63, 0x73, 0x2e, 0x50, 0x65, 0x72, 0x66, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x6b,
1209 0x61, 0x74, 0x69, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x3c, 0x0a, 0x0a, 0x73, 0x6f, 0x6f, 0x6e, 0x67,
1210 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18, 0x13, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x6f,
1211 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63,
1212 0x73, 0x2e, 0x50, 0x65, 0x72, 0x66, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x73, 0x6f, 0x6f, 0x6e,
1213 0x67, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x3c, 0x0a, 0x0a, 0x6e, 0x69, 0x6e, 0x6a, 0x61, 0x5f, 0x72,
1214 0x75, 0x6e, 0x73, 0x18, 0x14, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x6f, 0x6f, 0x6e,
1215 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e,
1216 0x50, 0x65, 0x72, 0x66, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x6e, 0x69, 0x6e, 0x6a, 0x61, 0x52,
1217 0x75, 0x6e, 0x73, 0x12, 0x33, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x15, 0x20, 0x01,
1218 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64,
1219 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x50, 0x65, 0x72, 0x66, 0x49, 0x6e, 0x66,
1220 0x6f, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x56, 0x0a, 0x13, 0x73, 0x6f, 0x6f, 0x6e,
1221 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18,
1222 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75,
1223 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x53, 0x6f, 0x6f, 0x6e,
1224 0x67, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x11, 0x73,
1225 0x6f, 0x6f, 0x6e, 0x67, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73,
1226 0x12, 0x43, 0x0a, 0x0c, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
1227 0x18, 0x17, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62,
1228 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x42, 0x75, 0x69,
1229 0x6c, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0b, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x43,
1230 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d,
1231 0x65, 0x18, 0x18, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d,
1232 0x65, 0x12, 0x59, 0x0a, 0x14, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x72, 0x65, 0x73, 0x6f,
1233 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x19, 0x20, 0x01, 0x28, 0x0b, 0x32,
1234 0x27, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65,
1235 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73, 0x6f,
1236 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x12, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d,
1237 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x23, 0x0a, 0x0d,
1238 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x1a, 0x20,
1239 0x01, 0x28, 0x09, 0x52, 0x0c, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
1240 0x64, 0x12, 0x3c, 0x0a, 0x0a, 0x62, 0x61, 0x7a, 0x65, 0x6c, 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18,
1241 0x1b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75,
1242 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x50, 0x65, 0x72, 0x66,
1243 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x62, 0x61, 0x7a, 0x65, 0x6c, 0x52, 0x75, 0x6e, 0x73, 0x22,
1244 0x30, 0x0a, 0x0c, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x56, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x12,
1245 0x08, 0x0a, 0x04, 0x55, 0x53, 0x45, 0x52, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x53, 0x45,
1246 0x52, 0x44, 0x45, 0x42, 0x55, 0x47, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x45, 0x4e, 0x47, 0x10,
1247 0x02, 0x22, 0x3c, 0x0a, 0x04, 0x41, 0x72, 0x63, 0x68, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b,
1248 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x52, 0x4d, 0x10, 0x01, 0x12,
1249 0x09, 0x0a, 0x05, 0x41, 0x52, 0x4d, 0x36, 0x34, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x58, 0x38,
1250 0x36, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x58, 0x38, 0x36, 0x5f, 0x36, 0x34, 0x10, 0x04, 0x22,
Yu Liue737a992021-10-04 13:21:41 -07001251 0xd3, 0x01, 0x0a, 0x0b, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
Dan Willemsen4591b642021-05-24 14:24:12 -07001252 0x19, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x5f, 0x67, 0x6f, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28,
1253 0x08, 0x52, 0x07, 0x75, 0x73, 0x65, 0x47, 0x6f, 0x6d, 0x61, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73,
1254 0x65, 0x5f, 0x72, 0x62, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x75, 0x73, 0x65,
1255 0x52, 0x62, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x5f, 0x75, 0x73, 0x65,
1256 0x5f, 0x67, 0x6f, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x66, 0x6f, 0x72,
1257 0x63, 0x65, 0x55, 0x73, 0x65, 0x47, 0x6f, 0x6d, 0x61, 0x12, 0x24, 0x0a, 0x0e, 0x62, 0x61, 0x7a,
1258 0x65, 0x6c, 0x5f, 0x61, 0x73, 0x5f, 0x6e, 0x69, 0x6e, 0x6a, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28,
1259 0x08, 0x52, 0x0c, 0x62, 0x61, 0x7a, 0x65, 0x6c, 0x41, 0x73, 0x4e, 0x69, 0x6e, 0x6a, 0x61, 0x12,
1260 0x2a, 0x0a, 0x11, 0x62, 0x61, 0x7a, 0x65, 0x6c, 0x5f, 0x6d, 0x69, 0x78, 0x65, 0x64, 0x5f, 0x62,
1261 0x75, 0x69, 0x6c, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x62, 0x61, 0x7a, 0x65,
Yu Liue737a992021-10-04 13:21:41 -07001262 0x6c, 0x4d, 0x69, 0x78, 0x65, 0x64, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x74,
1263 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x74, 0x61,
1264 0x72, 0x67, 0x65, 0x74, 0x73, 0x22, 0x6f, 0x0a, 0x12, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x52,
1265 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x32, 0x0a, 0x15, 0x74,
1266 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x70, 0x68, 0x79, 0x73, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x6d, 0x65,
1267 0x6d, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x74, 0x6f, 0x74, 0x61,
1268 0x6c, 0x50, 0x68, 0x79, 0x73, 0x69, 0x63, 0x61, 0x6c, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12,
1269 0x25, 0x0a, 0x0e, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x70, 0x75,
1270 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62,
1271 0x6c, 0x65, 0x43, 0x70, 0x75, 0x73, 0x22, 0xf3, 0x01, 0x0a, 0x08, 0x50, 0x65, 0x72, 0x66, 0x49,
1272 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x73, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28,
1273 0x09, 0x52, 0x04, 0x64, 0x65, 0x73, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
1274 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73,
1275 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52,
1276 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65,
1277 0x61, 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72,
1278 0x65, 0x61, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0a, 0x6d, 0x65, 0x6d, 0x6f, 0x72,
1279 0x79, 0x5f, 0x75, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x42, 0x02, 0x18, 0x01, 0x52,
1280 0x09, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x55, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x17, 0x70, 0x72,
1281 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
1282 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x73, 0x6f,
1283 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63,
1284 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
1285 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x15, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73,
1286 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xb9, 0x03, 0x0a,
1287 0x13, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
1288 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
1289 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x75, 0x73, 0x65, 0x72,
1290 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x18, 0x02, 0x20, 0x01,
1291 0x28, 0x04, 0x52, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x69, 0x63, 0x72,
1292 0x6f, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x74, 0x69, 0x6d,
1293 0x65, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10,
1294 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73,
1295 0x12, 0x1c, 0x0a, 0x0a, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x73, 0x73, 0x5f, 0x6b, 0x62, 0x18, 0x04,
1296 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x6d, 0x61, 0x78, 0x52, 0x73, 0x73, 0x4b, 0x62, 0x12, 0x2a,
1297 0x0a, 0x11, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x61, 0x75,
1298 0x6c, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x6d, 0x69, 0x6e, 0x6f, 0x72,
1299 0x50, 0x61, 0x67, 0x65, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x6d, 0x61,
1300 0x6a, 0x6f, 0x72, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x18,
1301 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x50, 0x61, 0x67, 0x65,
1302 0x46, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x1e, 0x0a, 0x0b, 0x69, 0x6f, 0x5f, 0x69, 0x6e, 0x70,
1303 0x75, 0x74, 0x5f, 0x6b, 0x62, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x69, 0x6f, 0x49,
1304 0x6e, 0x70, 0x75, 0x74, 0x4b, 0x62, 0x12, 0x20, 0x0a, 0x0c, 0x69, 0x6f, 0x5f, 0x6f, 0x75, 0x74,
1305 0x70, 0x75, 0x74, 0x5f, 0x6b, 0x62, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x69, 0x6f,
1306 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x4b, 0x62, 0x12, 0x3c, 0x0a, 0x1a, 0x76, 0x6f, 0x6c, 0x75,
1307 0x6e, 0x74, 0x61, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x73, 0x77,
1308 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x18, 0x76, 0x6f,
1309 0x6c, 0x75, 0x6e, 0x74, 0x61, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x53, 0x77,
1310 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x12, 0x40, 0x0a, 0x1c, 0x69, 0x6e, 0x76, 0x6f, 0x6c, 0x75,
1311 0x6e, 0x74, 0x61, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x73, 0x77,
1312 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x1a, 0x69, 0x6e,
1313 0x76, 0x6f, 0x6c, 0x75, 0x6e, 0x74, 0x61, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74,
1314 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x22, 0xe5, 0x01, 0x0a, 0x0e, 0x4d, 0x6f, 0x64,
1315 0x75, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x5b, 0x0a, 0x0c, 0x62,
1316 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28,
1317 0x0e, 0x32, 0x2f, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f,
1318 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x54, 0x79,
1319 0x70, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x79, 0x73, 0x74,
1320 0x65, 0x6d, 0x3a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x52, 0x0b, 0x62, 0x75, 0x69,
1321 0x6c, 0x64, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x6f, 0x64, 0x75,
1322 0x6c, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d,
1323 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x75, 0x6d,
1324 0x5f, 0x6f, 0x66, 0x5f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28,
1325 0x0d, 0x52, 0x0c, 0x6e, 0x75, 0x6d, 0x4f, 0x66, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x22,
1326 0x2f, 0x0a, 0x0b, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x12, 0x0b,
1327 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x53,
1328 0x4f, 0x4f, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4d, 0x41, 0x4b, 0x45, 0x10, 0x02,
1329 0x22, 0x6c, 0x0a, 0x1a, 0x43, 0x72, 0x69, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x55, 0x73, 0x65, 0x72,
1330 0x4a, 0x6f, 0x75, 0x72, 0x6e, 0x65, 0x79, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x12,
1331 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
1332 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20,
1333 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c,
1334 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63,
1335 0x73, 0x42, 0x61, 0x73, 0x65, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x22, 0x62,
1336 0x0a, 0x1b, 0x43, 0x72, 0x69, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x4a, 0x6f,
1337 0x75, 0x72, 0x6e, 0x65, 0x79, 0x73, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x43, 0x0a,
1338 0x04, 0x63, 0x75, 0x6a, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x6f,
1339 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63,
1340 0x73, 0x2e, 0x43, 0x72, 0x69, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x4a, 0x6f,
1341 0x75, 0x72, 0x6e, 0x65, 0x79, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x04, 0x63, 0x75,
1342 0x6a, 0x73, 0x22, 0xc3, 0x01, 0x0a, 0x11, 0x53, 0x6f, 0x6f, 0x6e, 0x67, 0x42, 0x75, 0x69, 0x6c,
1343 0x64, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x6f, 0x64, 0x75,
1344 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x6d, 0x6f, 0x64, 0x75, 0x6c,
1345 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x02,
1346 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x2a,
1347 0x0a, 0x11, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x5f, 0x63, 0x6f,
1348 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x74, 0x6f, 0x74, 0x61, 0x6c,
1349 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x6f,
1350 0x74, 0x61, 0x6c, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04,
1351 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x41, 0x6c, 0x6c, 0x6f, 0x63,
1352 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x68, 0x65, 0x61, 0x70,
1353 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6d, 0x61, 0x78,
1354 0x48, 0x65, 0x61, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x42, 0x28, 0x5a, 0x26, 0x61, 0x6e, 0x64, 0x72,
1355 0x6f, 0x69, 0x64, 0x2f, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x2f, 0x75, 0x69, 0x2f, 0x6d, 0x65, 0x74,
1356 0x72, 0x69, 0x63, 0x73, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x70, 0x72, 0x6f,
1357 0x74, 0x6f,
Nan Zhang17f27672018-12-12 16:01:49 -08001358}
1359
Dan Willemsen4591b642021-05-24 14:24:12 -07001360var (
1361 file_metrics_proto_rawDescOnce sync.Once
1362 file_metrics_proto_rawDescData = file_metrics_proto_rawDesc
1363)
1364
1365func file_metrics_proto_rawDescGZIP() []byte {
1366 file_metrics_proto_rawDescOnce.Do(func() {
1367 file_metrics_proto_rawDescData = protoimpl.X.CompressGZIP(file_metrics_proto_rawDescData)
1368 })
1369 return file_metrics_proto_rawDescData
Patrice Arruda96850362020-08-11 20:41:11 +00001370}
Nan Zhang17f27672018-12-12 16:01:49 -08001371
Dan Willemsen4591b642021-05-24 14:24:12 -07001372var file_metrics_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
1373var file_metrics_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
1374var file_metrics_proto_goTypes = []interface{}{
1375 (MetricsBase_BuildVariant)(0), // 0: soong_build_metrics.MetricsBase.BuildVariant
1376 (MetricsBase_Arch)(0), // 1: soong_build_metrics.MetricsBase.Arch
1377 (ModuleTypeInfo_BuildSystem)(0), // 2: soong_build_metrics.ModuleTypeInfo.BuildSystem
1378 (*MetricsBase)(nil), // 3: soong_build_metrics.MetricsBase
1379 (*BuildConfig)(nil), // 4: soong_build_metrics.BuildConfig
1380 (*SystemResourceInfo)(nil), // 5: soong_build_metrics.SystemResourceInfo
1381 (*PerfInfo)(nil), // 6: soong_build_metrics.PerfInfo
1382 (*ProcessResourceInfo)(nil), // 7: soong_build_metrics.ProcessResourceInfo
1383 (*ModuleTypeInfo)(nil), // 8: soong_build_metrics.ModuleTypeInfo
1384 (*CriticalUserJourneyMetrics)(nil), // 9: soong_build_metrics.CriticalUserJourneyMetrics
1385 (*CriticalUserJourneysMetrics)(nil), // 10: soong_build_metrics.CriticalUserJourneysMetrics
1386 (*SoongBuildMetrics)(nil), // 11: soong_build_metrics.SoongBuildMetrics
1387}
1388var file_metrics_proto_depIdxs = []int32{
1389 0, // 0: soong_build_metrics.MetricsBase.target_build_variant:type_name -> soong_build_metrics.MetricsBase.BuildVariant
1390 1, // 1: soong_build_metrics.MetricsBase.target_arch:type_name -> soong_build_metrics.MetricsBase.Arch
1391 1, // 2: soong_build_metrics.MetricsBase.host_arch:type_name -> soong_build_metrics.MetricsBase.Arch
1392 1, // 3: soong_build_metrics.MetricsBase.host_2nd_arch:type_name -> soong_build_metrics.MetricsBase.Arch
1393 6, // 4: soong_build_metrics.MetricsBase.setup_tools:type_name -> soong_build_metrics.PerfInfo
1394 6, // 5: soong_build_metrics.MetricsBase.kati_runs:type_name -> soong_build_metrics.PerfInfo
1395 6, // 6: soong_build_metrics.MetricsBase.soong_runs:type_name -> soong_build_metrics.PerfInfo
1396 6, // 7: soong_build_metrics.MetricsBase.ninja_runs:type_name -> soong_build_metrics.PerfInfo
1397 6, // 8: soong_build_metrics.MetricsBase.total:type_name -> soong_build_metrics.PerfInfo
1398 11, // 9: soong_build_metrics.MetricsBase.soong_build_metrics:type_name -> soong_build_metrics.SoongBuildMetrics
1399 4, // 10: soong_build_metrics.MetricsBase.build_config:type_name -> soong_build_metrics.BuildConfig
1400 5, // 11: soong_build_metrics.MetricsBase.system_resource_info:type_name -> soong_build_metrics.SystemResourceInfo
1401 6, // 12: soong_build_metrics.MetricsBase.bazel_runs:type_name -> soong_build_metrics.PerfInfo
1402 7, // 13: soong_build_metrics.PerfInfo.processes_resource_info:type_name -> soong_build_metrics.ProcessResourceInfo
1403 2, // 14: soong_build_metrics.ModuleTypeInfo.build_system:type_name -> soong_build_metrics.ModuleTypeInfo.BuildSystem
1404 3, // 15: soong_build_metrics.CriticalUserJourneyMetrics.metrics:type_name -> soong_build_metrics.MetricsBase
1405 9, // 16: soong_build_metrics.CriticalUserJourneysMetrics.cujs:type_name -> soong_build_metrics.CriticalUserJourneyMetrics
1406 17, // [17:17] is the sub-list for method output_type
1407 17, // [17:17] is the sub-list for method input_type
1408 17, // [17:17] is the sub-list for extension type_name
1409 17, // [17:17] is the sub-list for extension extendee
1410 0, // [0:17] is the sub-list for field type_name
1411}
1412
1413func init() { file_metrics_proto_init() }
1414func file_metrics_proto_init() {
1415 if File_metrics_proto != nil {
1416 return
1417 }
1418 if !protoimpl.UnsafeEnabled {
1419 file_metrics_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
1420 switch v := v.(*MetricsBase); i {
1421 case 0:
1422 return &v.state
1423 case 1:
1424 return &v.sizeCache
1425 case 2:
1426 return &v.unknownFields
1427 default:
1428 return nil
1429 }
1430 }
1431 file_metrics_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
1432 switch v := v.(*BuildConfig); i {
1433 case 0:
1434 return &v.state
1435 case 1:
1436 return &v.sizeCache
1437 case 2:
1438 return &v.unknownFields
1439 default:
1440 return nil
1441 }
1442 }
1443 file_metrics_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
1444 switch v := v.(*SystemResourceInfo); i {
1445 case 0:
1446 return &v.state
1447 case 1:
1448 return &v.sizeCache
1449 case 2:
1450 return &v.unknownFields
1451 default:
1452 return nil
1453 }
1454 }
1455 file_metrics_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
1456 switch v := v.(*PerfInfo); i {
1457 case 0:
1458 return &v.state
1459 case 1:
1460 return &v.sizeCache
1461 case 2:
1462 return &v.unknownFields
1463 default:
1464 return nil
1465 }
1466 }
1467 file_metrics_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
1468 switch v := v.(*ProcessResourceInfo); i {
1469 case 0:
1470 return &v.state
1471 case 1:
1472 return &v.sizeCache
1473 case 2:
1474 return &v.unknownFields
1475 default:
1476 return nil
1477 }
1478 }
1479 file_metrics_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
1480 switch v := v.(*ModuleTypeInfo); i {
1481 case 0:
1482 return &v.state
1483 case 1:
1484 return &v.sizeCache
1485 case 2:
1486 return &v.unknownFields
1487 default:
1488 return nil
1489 }
1490 }
1491 file_metrics_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
1492 switch v := v.(*CriticalUserJourneyMetrics); i {
1493 case 0:
1494 return &v.state
1495 case 1:
1496 return &v.sizeCache
1497 case 2:
1498 return &v.unknownFields
1499 default:
1500 return nil
1501 }
1502 }
1503 file_metrics_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
1504 switch v := v.(*CriticalUserJourneysMetrics); i {
1505 case 0:
1506 return &v.state
1507 case 1:
1508 return &v.sizeCache
1509 case 2:
1510 return &v.unknownFields
1511 default:
1512 return nil
1513 }
1514 }
1515 file_metrics_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
1516 switch v := v.(*SoongBuildMetrics); i {
1517 case 0:
1518 return &v.state
1519 case 1:
1520 return &v.sizeCache
1521 case 2:
1522 return &v.unknownFields
1523 default:
1524 return nil
1525 }
1526 }
1527 }
1528 type x struct{}
1529 out := protoimpl.TypeBuilder{
1530 File: protoimpl.DescBuilder{
1531 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1532 RawDescriptor: file_metrics_proto_rawDesc,
1533 NumEnums: 3,
1534 NumMessages: 9,
1535 NumExtensions: 0,
1536 NumServices: 0,
1537 },
1538 GoTypes: file_metrics_proto_goTypes,
1539 DependencyIndexes: file_metrics_proto_depIdxs,
1540 EnumInfos: file_metrics_proto_enumTypes,
1541 MessageInfos: file_metrics_proto_msgTypes,
1542 }.Build()
1543 File_metrics_proto = out.File
1544 file_metrics_proto_rawDesc = nil
1545 file_metrics_proto_goTypes = nil
1546 file_metrics_proto_depIdxs = nil
Nan Zhang17f27672018-12-12 16:01:49 -08001547}