• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2022 Google Inc. All Rights Reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//   http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Code generated by protoc-gen-go. DO NOT EDIT.
16// versions:
17// 	protoc-gen-go v1.28.0
18// 	protoc        v3.21.7
19// source: bazel_metrics.proto
20
21package bazel_metrics_proto
22
23import (
24	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26	reflect "reflect"
27	sync "sync"
28)
29
30const (
31	// Verify that this generated code is sufficiently up-to-date.
32	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33	// Verify that runtime/protoimpl is sufficiently up-to-date.
34	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35)
36
37type BazelMetrics struct {
38	state         protoimpl.MessageState
39	sizeCache     protoimpl.SizeCache
40	unknownFields protoimpl.UnknownFields
41
42	PhaseTimings []*PhaseTiming `protobuf:"bytes,1,rep,name=phase_timings,json=phaseTimings,proto3" json:"phase_timings,omitempty"`
43	Total        *int64         `protobuf:"varint,2,opt,name=total,proto3,oneof" json:"total,omitempty"`
44}
45
46func (x *BazelMetrics) Reset() {
47	*x = BazelMetrics{}
48	if protoimpl.UnsafeEnabled {
49		mi := &file_bazel_metrics_proto_msgTypes[0]
50		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
51		ms.StoreMessageInfo(mi)
52	}
53}
54
55func (x *BazelMetrics) String() string {
56	return protoimpl.X.MessageStringOf(x)
57}
58
59func (*BazelMetrics) ProtoMessage() {}
60
61func (x *BazelMetrics) ProtoReflect() protoreflect.Message {
62	mi := &file_bazel_metrics_proto_msgTypes[0]
63	if protoimpl.UnsafeEnabled && x != nil {
64		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
65		if ms.LoadMessageInfo() == nil {
66			ms.StoreMessageInfo(mi)
67		}
68		return ms
69	}
70	return mi.MessageOf(x)
71}
72
73// Deprecated: Use BazelMetrics.ProtoReflect.Descriptor instead.
74func (*BazelMetrics) Descriptor() ([]byte, []int) {
75	return file_bazel_metrics_proto_rawDescGZIP(), []int{0}
76}
77
78func (x *BazelMetrics) GetPhaseTimings() []*PhaseTiming {
79	if x != nil {
80		return x.PhaseTimings
81	}
82	return nil
83}
84
85func (x *BazelMetrics) GetTotal() int64 {
86	if x != nil && x.Total != nil {
87		return *x.Total
88	}
89	return 0
90}
91
92type PhaseTiming struct {
93	state         protoimpl.MessageState
94	sizeCache     protoimpl.SizeCache
95	unknownFields protoimpl.UnknownFields
96
97	// E.g. "execution", "analysis", "launch"
98	PhaseName     *string `protobuf:"bytes,1,opt,name=phase_name,json=phaseName,proto3,oneof" json:"phase_name,omitempty"`
99	DurationNanos *int64  `protobuf:"varint,2,opt,name=duration_nanos,json=durationNanos,proto3,oneof" json:"duration_nanos,omitempty"`
100	// What portion of the build time this phase took, with ten-thousandths precision.
101	// E.g., 1111 = 11.11%, 111 = 1.11%
102	PortionOfBuildTime *int32 `protobuf:"varint,3,opt,name=portion_of_build_time,json=portionOfBuildTime,proto3,oneof" json:"portion_of_build_time,omitempty"`
103}
104
105func (x *PhaseTiming) Reset() {
106	*x = PhaseTiming{}
107	if protoimpl.UnsafeEnabled {
108		mi := &file_bazel_metrics_proto_msgTypes[1]
109		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
110		ms.StoreMessageInfo(mi)
111	}
112}
113
114func (x *PhaseTiming) String() string {
115	return protoimpl.X.MessageStringOf(x)
116}
117
118func (*PhaseTiming) ProtoMessage() {}
119
120func (x *PhaseTiming) ProtoReflect() protoreflect.Message {
121	mi := &file_bazel_metrics_proto_msgTypes[1]
122	if protoimpl.UnsafeEnabled && x != nil {
123		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
124		if ms.LoadMessageInfo() == nil {
125			ms.StoreMessageInfo(mi)
126		}
127		return ms
128	}
129	return mi.MessageOf(x)
130}
131
132// Deprecated: Use PhaseTiming.ProtoReflect.Descriptor instead.
133func (*PhaseTiming) Descriptor() ([]byte, []int) {
134	return file_bazel_metrics_proto_rawDescGZIP(), []int{1}
135}
136
137func (x *PhaseTiming) GetPhaseName() string {
138	if x != nil && x.PhaseName != nil {
139		return *x.PhaseName
140	}
141	return ""
142}
143
144func (x *PhaseTiming) GetDurationNanos() int64 {
145	if x != nil && x.DurationNanos != nil {
146		return *x.DurationNanos
147	}
148	return 0
149}
150
151func (x *PhaseTiming) GetPortionOfBuildTime() int32 {
152	if x != nil && x.PortionOfBuildTime != nil {
153		return *x.PortionOfBuildTime
154	}
155	return 0
156}
157
158var File_bazel_metrics_proto protoreflect.FileDescriptor
159
160var file_bazel_metrics_proto_rawDesc = []byte{
161	0x0a, 0x13, 0x62, 0x61, 0x7a, 0x65, 0x6c, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e,
162	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69,
163	0x6c, 0x64, 0x5f, 0x62, 0x61, 0x7a, 0x65, 0x6c, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73,
164	0x22, 0x80, 0x01, 0x0a, 0x0c, 0x42, 0x61, 0x7a, 0x65, 0x6c, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63,
165	0x73, 0x12, 0x4b, 0x0a, 0x0d, 0x70, 0x68, 0x61, 0x73, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x69, 0x6e,
166	0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67,
167	0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x62, 0x61, 0x7a, 0x65, 0x6c, 0x5f, 0x6d, 0x65, 0x74,
168	0x72, 0x69, 0x63, 0x73, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x69, 0x6e, 0x67,
169	0x52, 0x0c, 0x70, 0x68, 0x61, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x19,
170	0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52,
171	0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x74, 0x6f,
172	0x74, 0x61, 0x6c, 0x22, 0xd1, 0x01, 0x0a, 0x0b, 0x50, 0x68, 0x61, 0x73, 0x65, 0x54, 0x69, 0x6d,
173	0x69, 0x6e, 0x67, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x68, 0x61, 0x73, 0x65, 0x5f, 0x6e, 0x61, 0x6d,
174	0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x70, 0x68, 0x61, 0x73, 0x65,
175	0x4e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x2a, 0x0a, 0x0e, 0x64, 0x75, 0x72, 0x61, 0x74,
176	0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48,
177	0x01, 0x52, 0x0d, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6e, 0x6f, 0x73,
178	0x88, 0x01, 0x01, 0x12, 0x36, 0x0a, 0x15, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f,
179	0x66, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01,
180	0x28, 0x05, 0x48, 0x02, 0x52, 0x12, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x66, 0x42,
181	0x75, 0x69, 0x6c, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f,
182	0x70, 0x68, 0x61, 0x73, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x64,
183	0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x42, 0x18, 0x0a,
184	0x16, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x75, 0x69,
185	0x6c, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x42, 0x2e, 0x5a, 0x2c, 0x61, 0x6e, 0x64, 0x72, 0x6f,
186	0x69, 0x64, 0x2f, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x2f, 0x75, 0x69, 0x2f, 0x6d, 0x65, 0x74, 0x72,
187	0x69, 0x63, 0x73, 0x2f, 0x62, 0x61, 0x7a, 0x65, 0x6c, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63,
188	0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
189}
190
191var (
192	file_bazel_metrics_proto_rawDescOnce sync.Once
193	file_bazel_metrics_proto_rawDescData = file_bazel_metrics_proto_rawDesc
194)
195
196func file_bazel_metrics_proto_rawDescGZIP() []byte {
197	file_bazel_metrics_proto_rawDescOnce.Do(func() {
198		file_bazel_metrics_proto_rawDescData = protoimpl.X.CompressGZIP(file_bazel_metrics_proto_rawDescData)
199	})
200	return file_bazel_metrics_proto_rawDescData
201}
202
203var file_bazel_metrics_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
204var file_bazel_metrics_proto_goTypes = []interface{}{
205	(*BazelMetrics)(nil), // 0: soong_build_bazel_metrics.BazelMetrics
206	(*PhaseTiming)(nil),  // 1: soong_build_bazel_metrics.PhaseTiming
207}
208var file_bazel_metrics_proto_depIdxs = []int32{
209	1, // 0: soong_build_bazel_metrics.BazelMetrics.phase_timings:type_name -> soong_build_bazel_metrics.PhaseTiming
210	1, // [1:1] is the sub-list for method output_type
211	1, // [1:1] is the sub-list for method input_type
212	1, // [1:1] is the sub-list for extension type_name
213	1, // [1:1] is the sub-list for extension extendee
214	0, // [0:1] is the sub-list for field type_name
215}
216
217func init() { file_bazel_metrics_proto_init() }
218func file_bazel_metrics_proto_init() {
219	if File_bazel_metrics_proto != nil {
220		return
221	}
222	if !protoimpl.UnsafeEnabled {
223		file_bazel_metrics_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
224			switch v := v.(*BazelMetrics); i {
225			case 0:
226				return &v.state
227			case 1:
228				return &v.sizeCache
229			case 2:
230				return &v.unknownFields
231			default:
232				return nil
233			}
234		}
235		file_bazel_metrics_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
236			switch v := v.(*PhaseTiming); i {
237			case 0:
238				return &v.state
239			case 1:
240				return &v.sizeCache
241			case 2:
242				return &v.unknownFields
243			default:
244				return nil
245			}
246		}
247	}
248	file_bazel_metrics_proto_msgTypes[0].OneofWrappers = []interface{}{}
249	file_bazel_metrics_proto_msgTypes[1].OneofWrappers = []interface{}{}
250	type x struct{}
251	out := protoimpl.TypeBuilder{
252		File: protoimpl.DescBuilder{
253			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
254			RawDescriptor: file_bazel_metrics_proto_rawDesc,
255			NumEnums:      0,
256			NumMessages:   2,
257			NumExtensions: 0,
258			NumServices:   0,
259		},
260		GoTypes:           file_bazel_metrics_proto_goTypes,
261		DependencyIndexes: file_bazel_metrics_proto_depIdxs,
262		MessageInfos:      file_bazel_metrics_proto_msgTypes,
263	}.Build()
264	File_bazel_metrics_proto = out.File
265	file_bazel_metrics_proto_rawDesc = nil
266	file_bazel_metrics_proto_goTypes = nil
267	file_bazel_metrics_proto_depIdxs = nil
268}
269