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.27.1 18// protoc v3.9.1 19// source: mk_metrics.proto 20 21package mk_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 37// Contains metrics pertaining to makefiles. 38type MkMetrics struct { 39 state protoimpl.MessageState 40 sizeCache protoimpl.SizeCache 41 unknownFields protoimpl.UnknownFields 42 43 // Total number of mk files present in the workspace. 44 TotalMakefiles uint32 `protobuf:"varint,1,opt,name=totalMakefiles,proto3" json:"totalMakefiles,omitempty"` 45 // Number of top-level mk files present in the workspace. 46 // A mk file is "top level" if there are no mk files in its parent 47 // direrctories. 48 // This value is equivalent to the number of entries in Android.mk.list. 49 ToplevelMakefiles uint32 `protobuf:"varint,2,opt,name=toplevelMakefiles,proto3" json:"toplevelMakefiles,omitempty"` 50} 51 52func (x *MkMetrics) Reset() { 53 *x = MkMetrics{} 54 if protoimpl.UnsafeEnabled { 55 mi := &file_mk_metrics_proto_msgTypes[0] 56 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 57 ms.StoreMessageInfo(mi) 58 } 59} 60 61func (x *MkMetrics) String() string { 62 return protoimpl.X.MessageStringOf(x) 63} 64 65func (*MkMetrics) ProtoMessage() {} 66 67func (x *MkMetrics) ProtoReflect() protoreflect.Message { 68 mi := &file_mk_metrics_proto_msgTypes[0] 69 if protoimpl.UnsafeEnabled && x != nil { 70 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 71 if ms.LoadMessageInfo() == nil { 72 ms.StoreMessageInfo(mi) 73 } 74 return ms 75 } 76 return mi.MessageOf(x) 77} 78 79// Deprecated: Use MkMetrics.ProtoReflect.Descriptor instead. 80func (*MkMetrics) Descriptor() ([]byte, []int) { 81 return file_mk_metrics_proto_rawDescGZIP(), []int{0} 82} 83 84func (x *MkMetrics) GetTotalMakefiles() uint32 { 85 if x != nil { 86 return x.TotalMakefiles 87 } 88 return 0 89} 90 91func (x *MkMetrics) GetToplevelMakefiles() uint32 { 92 if x != nil { 93 return x.ToplevelMakefiles 94 } 95 return 0 96} 97 98var File_mk_metrics_proto protoreflect.FileDescriptor 99 100var file_mk_metrics_proto_rawDesc = []byte{ 101 0x0a, 0x10, 0x6d, 0x6b, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 102 0x74, 0x6f, 0x12, 0x16, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 103 0x6d, 0x6b, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x22, 0x61, 0x0a, 0x09, 0x4d, 0x6b, 104 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x26, 0x0a, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 105 0x4d, 0x61, 0x6b, 0x65, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 106 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x61, 0x6b, 0x65, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x12, 107 0x2c, 0x0a, 0x11, 0x74, 0x6f, 0x70, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x4d, 0x61, 0x6b, 0x65, 0x66, 108 0x69, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x74, 0x6f, 0x70, 0x6c, 109 0x65, 0x76, 0x65, 0x6c, 0x4d, 0x61, 0x6b, 0x65, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x42, 0x2b, 0x5a, 110 0x29, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x2f, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x2f, 0x75, 111 0x69, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2f, 0x6d, 0x6b, 0x5f, 0x6d, 0x65, 0x74, 112 0x72, 0x69, 0x63, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 113 0x6f, 0x33, 114} 115 116var ( 117 file_mk_metrics_proto_rawDescOnce sync.Once 118 file_mk_metrics_proto_rawDescData = file_mk_metrics_proto_rawDesc 119) 120 121func file_mk_metrics_proto_rawDescGZIP() []byte { 122 file_mk_metrics_proto_rawDescOnce.Do(func() { 123 file_mk_metrics_proto_rawDescData = protoimpl.X.CompressGZIP(file_mk_metrics_proto_rawDescData) 124 }) 125 return file_mk_metrics_proto_rawDescData 126} 127 128var file_mk_metrics_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 129var file_mk_metrics_proto_goTypes = []interface{}{ 130 (*MkMetrics)(nil), // 0: soong_build_mk_metrics.MkMetrics 131} 132var file_mk_metrics_proto_depIdxs = []int32{ 133 0, // [0:0] is the sub-list for method output_type 134 0, // [0:0] is the sub-list for method input_type 135 0, // [0:0] is the sub-list for extension type_name 136 0, // [0:0] is the sub-list for extension extendee 137 0, // [0:0] is the sub-list for field type_name 138} 139 140func init() { file_mk_metrics_proto_init() } 141func file_mk_metrics_proto_init() { 142 if File_mk_metrics_proto != nil { 143 return 144 } 145 if !protoimpl.UnsafeEnabled { 146 file_mk_metrics_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 147 switch v := v.(*MkMetrics); i { 148 case 0: 149 return &v.state 150 case 1: 151 return &v.sizeCache 152 case 2: 153 return &v.unknownFields 154 default: 155 return nil 156 } 157 } 158 } 159 type x struct{} 160 out := protoimpl.TypeBuilder{ 161 File: protoimpl.DescBuilder{ 162 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 163 RawDescriptor: file_mk_metrics_proto_rawDesc, 164 NumEnums: 0, 165 NumMessages: 1, 166 NumExtensions: 0, 167 NumServices: 0, 168 }, 169 GoTypes: file_mk_metrics_proto_goTypes, 170 DependencyIndexes: file_mk_metrics_proto_depIdxs, 171 MessageInfos: file_mk_metrics_proto_msgTypes, 172 }.Build() 173 File_mk_metrics_proto = out.File 174 file_mk_metrics_proto_rawDesc = nil 175 file_mk_metrics_proto_goTypes = nil 176 file_mk_metrics_proto_depIdxs = nil 177} 178