blob: 26229c683f887f8230a05d4e07a89a83e409ecd4 [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.
Yu Liu37c3dd32021-09-30 14:46:18 -0700663 Description *string `protobuf:"bytes,1,opt,name=description" json:"description,omitempty"`
Nan Zhang17f27672018-12-12 16:01:49 -0800664 // 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
Yu Liu37c3dd32021-09-30 14:46:18 -0700712func (x *PerfInfo) GetDescription() string {
713 if x != nil && x.Description != nil {
714 return *x.Description
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"`
Chris Parsons715b08f2022-03-22 19:23:40 -04001075 // Runtime metrics for soong_build execution.
1076 Events []*PerfInfo `protobuf:"bytes,6,rep,name=events" json:"events,omitempty"`
Colin Crossb72c9092020-02-10 11:23:49 -08001077}
1078
Dan Willemsen4591b642021-05-24 14:24:12 -07001079func (x *SoongBuildMetrics) Reset() {
1080 *x = SoongBuildMetrics{}
1081 if protoimpl.UnsafeEnabled {
1082 mi := &file_metrics_proto_msgTypes[8]
1083 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1084 ms.StoreMessageInfo(mi)
1085 }
1086}
1087
1088func (x *SoongBuildMetrics) String() string {
1089 return protoimpl.X.MessageStringOf(x)
1090}
1091
1092func (*SoongBuildMetrics) ProtoMessage() {}
1093
1094func (x *SoongBuildMetrics) ProtoReflect() protoreflect.Message {
1095 mi := &file_metrics_proto_msgTypes[8]
1096 if protoimpl.UnsafeEnabled && x != nil {
1097 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
1098 if ms.LoadMessageInfo() == nil {
1099 ms.StoreMessageInfo(mi)
1100 }
1101 return ms
1102 }
1103 return mi.MessageOf(x)
1104}
1105
1106// Deprecated: Use SoongBuildMetrics.ProtoReflect.Descriptor instead.
Colin Crossb72c9092020-02-10 11:23:49 -08001107func (*SoongBuildMetrics) Descriptor() ([]byte, []int) {
Dan Willemsen4591b642021-05-24 14:24:12 -07001108 return file_metrics_proto_rawDescGZIP(), []int{8}
Colin Crossb72c9092020-02-10 11:23:49 -08001109}
1110
Dan Willemsen4591b642021-05-24 14:24:12 -07001111func (x *SoongBuildMetrics) GetModules() uint32 {
1112 if x != nil && x.Modules != nil {
1113 return *x.Modules
Colin Crossb72c9092020-02-10 11:23:49 -08001114 }
1115 return 0
1116}
1117
Dan Willemsen4591b642021-05-24 14:24:12 -07001118func (x *SoongBuildMetrics) GetVariants() uint32 {
1119 if x != nil && x.Variants != nil {
1120 return *x.Variants
Colin Crossb72c9092020-02-10 11:23:49 -08001121 }
1122 return 0
1123}
1124
Dan Willemsen4591b642021-05-24 14:24:12 -07001125func (x *SoongBuildMetrics) GetTotalAllocCount() uint64 {
1126 if x != nil && x.TotalAllocCount != nil {
1127 return *x.TotalAllocCount
Colin Crossb72c9092020-02-10 11:23:49 -08001128 }
1129 return 0
1130}
1131
Dan Willemsen4591b642021-05-24 14:24:12 -07001132func (x *SoongBuildMetrics) GetTotalAllocSize() uint64 {
1133 if x != nil && x.TotalAllocSize != nil {
1134 return *x.TotalAllocSize
Colin Crossb72c9092020-02-10 11:23:49 -08001135 }
1136 return 0
1137}
1138
Dan Willemsen4591b642021-05-24 14:24:12 -07001139func (x *SoongBuildMetrics) GetMaxHeapSize() uint64 {
1140 if x != nil && x.MaxHeapSize != nil {
1141 return *x.MaxHeapSize
Colin Crossb72c9092020-02-10 11:23:49 -08001142 }
1143 return 0
1144}
1145
Chris Parsons715b08f2022-03-22 19:23:40 -04001146func (x *SoongBuildMetrics) GetEvents() []*PerfInfo {
1147 if x != nil {
1148 return x.Events
1149 }
1150 return nil
1151}
1152
Dan Willemsen4591b642021-05-24 14:24:12 -07001153var File_metrics_proto protoreflect.FileDescriptor
1154
1155var file_metrics_proto_rawDesc = []byte{
1156 0x0a, 0x0d, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
1157 0x13, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74,
1158 0x72, 0x69, 0x63, 0x73, 0x22, 0xd8, 0x0c, 0x0a, 0x0b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73,
1159 0x42, 0x61, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x64, 0x61,
1160 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01,
1161 0x28, 0x03, 0x52, 0x12, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d,
1162 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f,
1163 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49,
1164 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x76, 0x65,
1165 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03,
1166 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x56, 0x65,
1167 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a,
1168 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x18,
1169 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f,
1170 0x64, 0x75, 0x63, 0x74, 0x12, 0x64, 0x0a, 0x14, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x62,
1171 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01,
1172 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64,
1173 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73,
1174 0x42, 0x61, 0x73, 0x65, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x56, 0x61, 0x72, 0x69, 0x61, 0x6e,
1175 0x74, 0x3a, 0x03, 0x45, 0x4e, 0x47, 0x52, 0x12, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x42, 0x75,
1176 0x69, 0x6c, 0x64, 0x56, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x12, 0x4f, 0x0a, 0x0b, 0x74, 0x61,
1177 0x72, 0x67, 0x65, 0x74, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32,
1178 0x25, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65,
1179 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x42, 0x61, 0x73,
1180 0x65, 0x2e, 0x41, 0x72, 0x63, 0x68, 0x3a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x52,
1181 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x41, 0x72, 0x63, 0x68, 0x12, 0x2e, 0x0a, 0x13, 0x74,
1182 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61,
1183 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74,
1184 0x41, 0x72, 0x63, 0x68, 0x56, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x74,
1185 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x63, 0x70, 0x75, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e,
1186 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x43,
1187 0x70, 0x75, 0x56, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x12, 0x4b, 0x0a, 0x09, 0x68, 0x6f, 0x73,
1188 0x74, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x73,
1189 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69,
1190 0x63, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x42, 0x61, 0x73, 0x65, 0x2e, 0x41,
1191 0x72, 0x63, 0x68, 0x3a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x52, 0x08, 0x68, 0x6f,
1192 0x73, 0x74, 0x41, 0x72, 0x63, 0x68, 0x12, 0x52, 0x0a, 0x0d, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x32,
1193 0x6e, 0x64, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e,
1194 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72,
1195 0x69, 0x63, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x42, 0x61, 0x73, 0x65, 0x2e,
1196 0x41, 0x72, 0x63, 0x68, 0x3a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x52, 0x0b, 0x68,
1197 0x6f, 0x73, 0x74, 0x32, 0x6e, 0x64, 0x41, 0x72, 0x63, 0x68, 0x12, 0x17, 0x0a, 0x07, 0x68, 0x6f,
1198 0x73, 0x74, 0x5f, 0x6f, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x6f, 0x73,
1199 0x74, 0x4f, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x6f, 0x73, 0x5f, 0x65,
1200 0x78, 0x74, 0x72, 0x61, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x68, 0x6f, 0x73, 0x74,
1201 0x4f, 0x73, 0x45, 0x78, 0x74, 0x72, 0x61, 0x12, 0x22, 0x0a, 0x0d, 0x68, 0x6f, 0x73, 0x74, 0x5f,
1202 0x63, 0x72, 0x6f, 0x73, 0x73, 0x5f, 0x6f, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
1203 0x68, 0x6f, 0x73, 0x74, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x4f, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x68,
1204 0x6f, 0x73, 0x74, 0x5f, 0x63, 0x72, 0x6f, 0x73, 0x73, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x18, 0x0e,
1205 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x68, 0x6f, 0x73, 0x74, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x41,
1206 0x72, 0x63, 0x68, 0x12, 0x2d, 0x0a, 0x13, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x63, 0x72, 0x6f, 0x73,
1207 0x73, 0x5f, 0x32, 0x6e, 0x64, 0x5f, 0x61, 0x72, 0x63, 0x68, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09,
1208 0x52, 0x10, 0x68, 0x6f, 0x73, 0x74, 0x43, 0x72, 0x6f, 0x73, 0x73, 0x32, 0x6e, 0x64, 0x41, 0x72,
1209 0x63, 0x68, 0x12, 0x17, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x10, 0x20,
1210 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x44, 0x69, 0x72, 0x12, 0x3e, 0x0a, 0x0b, 0x73,
1211 0x65, 0x74, 0x75, 0x70, 0x5f, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x18, 0x11, 0x20, 0x03, 0x28, 0x0b,
1212 0x32, 0x1d, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d,
1213 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x50, 0x65, 0x72, 0x66, 0x49, 0x6e, 0x66, 0x6f, 0x52,
1214 0x0a, 0x73, 0x65, 0x74, 0x75, 0x70, 0x54, 0x6f, 0x6f, 0x6c, 0x73, 0x12, 0x3a, 0x0a, 0x09, 0x6b,
1215 0x61, 0x74, 0x69, 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18, 0x12, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d,
1216 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74,
1217 0x72, 0x69, 0x63, 0x73, 0x2e, 0x50, 0x65, 0x72, 0x66, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x6b,
1218 0x61, 0x74, 0x69, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x3c, 0x0a, 0x0a, 0x73, 0x6f, 0x6f, 0x6e, 0x67,
1219 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18, 0x13, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x6f,
1220 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63,
1221 0x73, 0x2e, 0x50, 0x65, 0x72, 0x66, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x73, 0x6f, 0x6f, 0x6e,
1222 0x67, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x3c, 0x0a, 0x0a, 0x6e, 0x69, 0x6e, 0x6a, 0x61, 0x5f, 0x72,
1223 0x75, 0x6e, 0x73, 0x18, 0x14, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x6f, 0x6f, 0x6e,
1224 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e,
1225 0x50, 0x65, 0x72, 0x66, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x6e, 0x69, 0x6e, 0x6a, 0x61, 0x52,
1226 0x75, 0x6e, 0x73, 0x12, 0x33, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x15, 0x20, 0x01,
1227 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64,
1228 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x50, 0x65, 0x72, 0x66, 0x49, 0x6e, 0x66,
1229 0x6f, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x56, 0x0a, 0x13, 0x73, 0x6f, 0x6f, 0x6e,
1230 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18,
1231 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75,
1232 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x53, 0x6f, 0x6f, 0x6e,
1233 0x67, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x11, 0x73,
1234 0x6f, 0x6f, 0x6e, 0x67, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73,
1235 0x12, 0x43, 0x0a, 0x0c, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
1236 0x18, 0x17, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62,
1237 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x42, 0x75, 0x69,
1238 0x6c, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0b, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x43,
1239 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d,
1240 0x65, 0x18, 0x18, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d,
1241 0x65, 0x12, 0x59, 0x0a, 0x14, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x72, 0x65, 0x73, 0x6f,
1242 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x19, 0x20, 0x01, 0x28, 0x0b, 0x32,
1243 0x27, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65,
1244 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73, 0x6f,
1245 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x12, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d,
1246 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x23, 0x0a, 0x0d,
1247 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x1a, 0x20,
1248 0x01, 0x28, 0x09, 0x52, 0x0c, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
1249 0x64, 0x12, 0x3c, 0x0a, 0x0a, 0x62, 0x61, 0x7a, 0x65, 0x6c, 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18,
1250 0x1b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75,
1251 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x50, 0x65, 0x72, 0x66,
1252 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x62, 0x61, 0x7a, 0x65, 0x6c, 0x52, 0x75, 0x6e, 0x73, 0x22,
1253 0x30, 0x0a, 0x0c, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x56, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x12,
1254 0x08, 0x0a, 0x04, 0x55, 0x53, 0x45, 0x52, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x53, 0x45,
1255 0x52, 0x44, 0x45, 0x42, 0x55, 0x47, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x45, 0x4e, 0x47, 0x10,
1256 0x02, 0x22, 0x3c, 0x0a, 0x04, 0x41, 0x72, 0x63, 0x68, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b,
1257 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x52, 0x4d, 0x10, 0x01, 0x12,
1258 0x09, 0x0a, 0x05, 0x41, 0x52, 0x4d, 0x36, 0x34, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x58, 0x38,
1259 0x36, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x58, 0x38, 0x36, 0x5f, 0x36, 0x34, 0x10, 0x04, 0x22,
Yu Liue737a992021-10-04 13:21:41 -07001260 0xd3, 0x01, 0x0a, 0x0b, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
Dan Willemsen4591b642021-05-24 14:24:12 -07001261 0x19, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x5f, 0x67, 0x6f, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28,
1262 0x08, 0x52, 0x07, 0x75, 0x73, 0x65, 0x47, 0x6f, 0x6d, 0x61, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73,
1263 0x65, 0x5f, 0x72, 0x62, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x75, 0x73, 0x65,
1264 0x52, 0x62, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x5f, 0x75, 0x73, 0x65,
1265 0x5f, 0x67, 0x6f, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x66, 0x6f, 0x72,
1266 0x63, 0x65, 0x55, 0x73, 0x65, 0x47, 0x6f, 0x6d, 0x61, 0x12, 0x24, 0x0a, 0x0e, 0x62, 0x61, 0x7a,
1267 0x65, 0x6c, 0x5f, 0x61, 0x73, 0x5f, 0x6e, 0x69, 0x6e, 0x6a, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28,
1268 0x08, 0x52, 0x0c, 0x62, 0x61, 0x7a, 0x65, 0x6c, 0x41, 0x73, 0x4e, 0x69, 0x6e, 0x6a, 0x61, 0x12,
1269 0x2a, 0x0a, 0x11, 0x62, 0x61, 0x7a, 0x65, 0x6c, 0x5f, 0x6d, 0x69, 0x78, 0x65, 0x64, 0x5f, 0x62,
1270 0x75, 0x69, 0x6c, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x62, 0x61, 0x7a, 0x65,
Yu Liue737a992021-10-04 13:21:41 -07001271 0x6c, 0x4d, 0x69, 0x78, 0x65, 0x64, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x74,
1272 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x74, 0x61,
1273 0x72, 0x67, 0x65, 0x74, 0x73, 0x22, 0x6f, 0x0a, 0x12, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x52,
1274 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x32, 0x0a, 0x15, 0x74,
1275 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x70, 0x68, 0x79, 0x73, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x6d, 0x65,
1276 0x6d, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x74, 0x6f, 0x74, 0x61,
1277 0x6c, 0x50, 0x68, 0x79, 0x73, 0x69, 0x63, 0x61, 0x6c, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12,
1278 0x25, 0x0a, 0x0e, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x70, 0x75,
1279 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62,
Yu Liu37c3dd32021-09-30 14:46:18 -07001280 0x6c, 0x65, 0x43, 0x70, 0x75, 0x73, 0x22, 0x81, 0x02, 0x0a, 0x08, 0x50, 0x65, 0x72, 0x66, 0x49,
1281 0x6e, 0x66, 0x6f, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
1282 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,
1283 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,
1284 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61,
1285 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x73,
1286 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x6c,
1287 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x61,
1288 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0a, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x5f,
1289 0x75, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x42, 0x02, 0x18, 0x01, 0x52, 0x09, 0x6d,
1290 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x55, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x17, 0x70, 0x72, 0x6f, 0x63,
1291 0x65, 0x73, 0x73, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69,
1292 0x6e, 0x66, 0x6f, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x73, 0x6f, 0x6f, 0x6e,
1293 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e,
1294 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49,
1295 0x6e, 0x66, 0x6f, 0x52, 0x15, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65,
1296 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xb9, 0x03, 0x0a, 0x13, 0x50,
1297 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e,
1298 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
1299 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74,
1300 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04,
1301 0x52, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73,
1302 0x12, 0x2c, 0x0a, 0x12, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f,
1303 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x73, 0x79,
1304 0x73, 0x74, 0x65, 0x6d, 0x54, 0x69, 0x6d, 0x65, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x12, 0x1c,
1305 0x0a, 0x0a, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x73, 0x73, 0x5f, 0x6b, 0x62, 0x18, 0x04, 0x20, 0x01,
1306 0x28, 0x04, 0x52, 0x08, 0x6d, 0x61, 0x78, 0x52, 0x73, 0x73, 0x4b, 0x62, 0x12, 0x2a, 0x0a, 0x11,
1307 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x61, 0x75, 0x6c, 0x74,
1308 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x50, 0x61,
1309 0x67, 0x65, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x6d, 0x61, 0x6a, 0x6f,
1310 0x72, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x06, 0x20,
1311 0x01, 0x28, 0x04, 0x52, 0x0f, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x50, 0x61, 0x67, 0x65, 0x46, 0x61,
1312 0x75, 0x6c, 0x74, 0x73, 0x12, 0x1e, 0x0a, 0x0b, 0x69, 0x6f, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74,
1313 0x5f, 0x6b, 0x62, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x69, 0x6f, 0x49, 0x6e, 0x70,
1314 0x75, 0x74, 0x4b, 0x62, 0x12, 0x20, 0x0a, 0x0c, 0x69, 0x6f, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75,
1315 0x74, 0x5f, 0x6b, 0x62, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x69, 0x6f, 0x4f, 0x75,
1316 0x74, 0x70, 0x75, 0x74, 0x4b, 0x62, 0x12, 0x3c, 0x0a, 0x1a, 0x76, 0x6f, 0x6c, 0x75, 0x6e, 0x74,
1317 0x61, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x73, 0x77, 0x69, 0x74,
1318 0x63, 0x68, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x18, 0x76, 0x6f, 0x6c, 0x75,
1319 0x6e, 0x74, 0x61, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x53, 0x77, 0x69, 0x74,
1320 0x63, 0x68, 0x65, 0x73, 0x12, 0x40, 0x0a, 0x1c, 0x69, 0x6e, 0x76, 0x6f, 0x6c, 0x75, 0x6e, 0x74,
1321 0x61, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x73, 0x77, 0x69, 0x74,
1322 0x63, 0x68, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x1a, 0x69, 0x6e, 0x76, 0x6f,
Yu Liue737a992021-10-04 13:21:41 -07001323 0x6c, 0x75, 0x6e, 0x74, 0x61, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x53, 0x77,
Yu Liu37c3dd32021-09-30 14:46:18 -07001324 0x69, 0x74, 0x63, 0x68, 0x65, 0x73, 0x22, 0xe5, 0x01, 0x0a, 0x0e, 0x4d, 0x6f, 0x64, 0x75, 0x6c,
1325 0x65, 0x54, 0x79, 0x70, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x5b, 0x0a, 0x0c, 0x62, 0x75, 0x69,
1326 0x6c, 0x64, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32,
1327 0x2f, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65,
1328 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65,
1329 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d,
1330 0x3a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x52, 0x0b, 0x62, 0x75, 0x69, 0x6c, 0x64,
1331 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65,
1332 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x6f, 0x64,
1333 0x75, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x75, 0x6d, 0x5f, 0x6f,
1334 0x66, 0x5f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52,
1335 0x0c, 0x6e, 0x75, 0x6d, 0x4f, 0x66, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x22, 0x2f, 0x0a,
1336 0x0b, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x12, 0x0b, 0x0a, 0x07,
1337 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x53, 0x4f, 0x4f,
1338 0x4e, 0x47, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4d, 0x41, 0x4b, 0x45, 0x10, 0x02, 0x22, 0x6c,
1339 0x0a, 0x1a, 0x43, 0x72, 0x69, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x4a, 0x6f,
1340 0x75, 0x72, 0x6e, 0x65, 0x79, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x12, 0x0a, 0x04,
1341 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
1342 0x12, 0x3a, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28,
1343 0x0b, 0x32, 0x20, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f,
1344 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x42,
1345 0x61, 0x73, 0x65, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x22, 0x62, 0x0a, 0x1b,
1346 0x43, 0x72, 0x69, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x4a, 0x6f, 0x75, 0x72,
1347 0x6e, 0x65, 0x79, 0x73, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x43, 0x0a, 0x04, 0x63,
1348 0x75, 0x6a, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x6f, 0x6f, 0x6e,
1349 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e,
1350 0x43, 0x72, 0x69, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x4a, 0x6f, 0x75, 0x72,
1351 0x6e, 0x65, 0x79, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x04, 0x63, 0x75, 0x6a, 0x73,
Chris Parsons715b08f2022-03-22 19:23:40 -04001352 0x22, 0xfa, 0x01, 0x0a, 0x11, 0x53, 0x6f, 0x6f, 0x6e, 0x67, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x4d,
Yu Liu37c3dd32021-09-30 14:46:18 -07001353 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65,
1354 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73,
1355 0x12, 0x1a, 0x0a, 0x08, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01,
1356 0x28, 0x0d, 0x52, 0x08, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x2a, 0x0a, 0x11,
1357 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x5f, 0x63, 0x6f, 0x75, 0x6e,
1358 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x41, 0x6c,
1359 0x6c, 0x6f, 0x63, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x6f, 0x74, 0x61,
1360 0x6c, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01,
1361 0x28, 0x04, 0x52, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x53, 0x69,
1362 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x68, 0x65, 0x61, 0x70, 0x5f, 0x73,
1363 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x48, 0x65,
Chris Parsons715b08f2022-03-22 19:23:40 -04001364 0x61, 0x70, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73,
1365 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62,
1366 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x50, 0x65, 0x72,
1367 0x66, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x28, 0x5a,
1368 0x26, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x2f, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x2f, 0x75,
1369 0x69, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63,
1370 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
Nan Zhang17f27672018-12-12 16:01:49 -08001371}
1372
Dan Willemsen4591b642021-05-24 14:24:12 -07001373var (
1374 file_metrics_proto_rawDescOnce sync.Once
1375 file_metrics_proto_rawDescData = file_metrics_proto_rawDesc
1376)
1377
1378func file_metrics_proto_rawDescGZIP() []byte {
1379 file_metrics_proto_rawDescOnce.Do(func() {
1380 file_metrics_proto_rawDescData = protoimpl.X.CompressGZIP(file_metrics_proto_rawDescData)
1381 })
1382 return file_metrics_proto_rawDescData
Patrice Arruda96850362020-08-11 20:41:11 +00001383}
Nan Zhang17f27672018-12-12 16:01:49 -08001384
Dan Willemsen4591b642021-05-24 14:24:12 -07001385var file_metrics_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
1386var file_metrics_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
1387var file_metrics_proto_goTypes = []interface{}{
1388 (MetricsBase_BuildVariant)(0), // 0: soong_build_metrics.MetricsBase.BuildVariant
1389 (MetricsBase_Arch)(0), // 1: soong_build_metrics.MetricsBase.Arch
1390 (ModuleTypeInfo_BuildSystem)(0), // 2: soong_build_metrics.ModuleTypeInfo.BuildSystem
1391 (*MetricsBase)(nil), // 3: soong_build_metrics.MetricsBase
1392 (*BuildConfig)(nil), // 4: soong_build_metrics.BuildConfig
1393 (*SystemResourceInfo)(nil), // 5: soong_build_metrics.SystemResourceInfo
1394 (*PerfInfo)(nil), // 6: soong_build_metrics.PerfInfo
1395 (*ProcessResourceInfo)(nil), // 7: soong_build_metrics.ProcessResourceInfo
1396 (*ModuleTypeInfo)(nil), // 8: soong_build_metrics.ModuleTypeInfo
1397 (*CriticalUserJourneyMetrics)(nil), // 9: soong_build_metrics.CriticalUserJourneyMetrics
1398 (*CriticalUserJourneysMetrics)(nil), // 10: soong_build_metrics.CriticalUserJourneysMetrics
1399 (*SoongBuildMetrics)(nil), // 11: soong_build_metrics.SoongBuildMetrics
1400}
1401var file_metrics_proto_depIdxs = []int32{
1402 0, // 0: soong_build_metrics.MetricsBase.target_build_variant:type_name -> soong_build_metrics.MetricsBase.BuildVariant
1403 1, // 1: soong_build_metrics.MetricsBase.target_arch:type_name -> soong_build_metrics.MetricsBase.Arch
1404 1, // 2: soong_build_metrics.MetricsBase.host_arch:type_name -> soong_build_metrics.MetricsBase.Arch
1405 1, // 3: soong_build_metrics.MetricsBase.host_2nd_arch:type_name -> soong_build_metrics.MetricsBase.Arch
1406 6, // 4: soong_build_metrics.MetricsBase.setup_tools:type_name -> soong_build_metrics.PerfInfo
1407 6, // 5: soong_build_metrics.MetricsBase.kati_runs:type_name -> soong_build_metrics.PerfInfo
1408 6, // 6: soong_build_metrics.MetricsBase.soong_runs:type_name -> soong_build_metrics.PerfInfo
1409 6, // 7: soong_build_metrics.MetricsBase.ninja_runs:type_name -> soong_build_metrics.PerfInfo
1410 6, // 8: soong_build_metrics.MetricsBase.total:type_name -> soong_build_metrics.PerfInfo
1411 11, // 9: soong_build_metrics.MetricsBase.soong_build_metrics:type_name -> soong_build_metrics.SoongBuildMetrics
1412 4, // 10: soong_build_metrics.MetricsBase.build_config:type_name -> soong_build_metrics.BuildConfig
1413 5, // 11: soong_build_metrics.MetricsBase.system_resource_info:type_name -> soong_build_metrics.SystemResourceInfo
1414 6, // 12: soong_build_metrics.MetricsBase.bazel_runs:type_name -> soong_build_metrics.PerfInfo
1415 7, // 13: soong_build_metrics.PerfInfo.processes_resource_info:type_name -> soong_build_metrics.ProcessResourceInfo
1416 2, // 14: soong_build_metrics.ModuleTypeInfo.build_system:type_name -> soong_build_metrics.ModuleTypeInfo.BuildSystem
1417 3, // 15: soong_build_metrics.CriticalUserJourneyMetrics.metrics:type_name -> soong_build_metrics.MetricsBase
1418 9, // 16: soong_build_metrics.CriticalUserJourneysMetrics.cujs:type_name -> soong_build_metrics.CriticalUserJourneyMetrics
Chris Parsons715b08f2022-03-22 19:23:40 -04001419 6, // 17: soong_build_metrics.SoongBuildMetrics.events:type_name -> soong_build_metrics.PerfInfo
1420 18, // [18:18] is the sub-list for method output_type
1421 18, // [18:18] is the sub-list for method input_type
1422 18, // [18:18] is the sub-list for extension type_name
1423 18, // [18:18] is the sub-list for extension extendee
1424 0, // [0:18] is the sub-list for field type_name
Dan Willemsen4591b642021-05-24 14:24:12 -07001425}
1426
1427func init() { file_metrics_proto_init() }
1428func file_metrics_proto_init() {
1429 if File_metrics_proto != nil {
1430 return
1431 }
1432 if !protoimpl.UnsafeEnabled {
1433 file_metrics_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
1434 switch v := v.(*MetricsBase); i {
1435 case 0:
1436 return &v.state
1437 case 1:
1438 return &v.sizeCache
1439 case 2:
1440 return &v.unknownFields
1441 default:
1442 return nil
1443 }
1444 }
1445 file_metrics_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
1446 switch v := v.(*BuildConfig); i {
1447 case 0:
1448 return &v.state
1449 case 1:
1450 return &v.sizeCache
1451 case 2:
1452 return &v.unknownFields
1453 default:
1454 return nil
1455 }
1456 }
1457 file_metrics_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
1458 switch v := v.(*SystemResourceInfo); i {
1459 case 0:
1460 return &v.state
1461 case 1:
1462 return &v.sizeCache
1463 case 2:
1464 return &v.unknownFields
1465 default:
1466 return nil
1467 }
1468 }
1469 file_metrics_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
1470 switch v := v.(*PerfInfo); i {
1471 case 0:
1472 return &v.state
1473 case 1:
1474 return &v.sizeCache
1475 case 2:
1476 return &v.unknownFields
1477 default:
1478 return nil
1479 }
1480 }
1481 file_metrics_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
1482 switch v := v.(*ProcessResourceInfo); i {
1483 case 0:
1484 return &v.state
1485 case 1:
1486 return &v.sizeCache
1487 case 2:
1488 return &v.unknownFields
1489 default:
1490 return nil
1491 }
1492 }
1493 file_metrics_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
1494 switch v := v.(*ModuleTypeInfo); i {
1495 case 0:
1496 return &v.state
1497 case 1:
1498 return &v.sizeCache
1499 case 2:
1500 return &v.unknownFields
1501 default:
1502 return nil
1503 }
1504 }
1505 file_metrics_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
1506 switch v := v.(*CriticalUserJourneyMetrics); i {
1507 case 0:
1508 return &v.state
1509 case 1:
1510 return &v.sizeCache
1511 case 2:
1512 return &v.unknownFields
1513 default:
1514 return nil
1515 }
1516 }
1517 file_metrics_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
1518 switch v := v.(*CriticalUserJourneysMetrics); i {
1519 case 0:
1520 return &v.state
1521 case 1:
1522 return &v.sizeCache
1523 case 2:
1524 return &v.unknownFields
1525 default:
1526 return nil
1527 }
1528 }
1529 file_metrics_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
1530 switch v := v.(*SoongBuildMetrics); i {
1531 case 0:
1532 return &v.state
1533 case 1:
1534 return &v.sizeCache
1535 case 2:
1536 return &v.unknownFields
1537 default:
1538 return nil
1539 }
1540 }
1541 }
1542 type x struct{}
1543 out := protoimpl.TypeBuilder{
1544 File: protoimpl.DescBuilder{
1545 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1546 RawDescriptor: file_metrics_proto_rawDesc,
1547 NumEnums: 3,
1548 NumMessages: 9,
1549 NumExtensions: 0,
1550 NumServices: 0,
1551 },
1552 GoTypes: file_metrics_proto_goTypes,
1553 DependencyIndexes: file_metrics_proto_depIdxs,
1554 EnumInfos: file_metrics_proto_enumTypes,
1555 MessageInfos: file_metrics_proto_msgTypes,
1556 }.Build()
1557 File_metrics_proto = out.File
1558 file_metrics_proto_rawDesc = nil
1559 file_metrics_proto_goTypes = nil
1560 file_metrics_proto_depIdxs = nil
Nan Zhang17f27672018-12-12 16:01:49 -08001561}