bp2build_metrics.pb.go 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590
  1. // Copyright 2021 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. // Code generated by protoc-gen-go. DO NOT EDIT.
  15. // versions:
  16. // protoc-gen-go v1.30.0
  17. // protoc v3.21.12
  18. // source: bp2build_metrics.proto
  19. package bp2build_metrics_proto
  20. import (
  21. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  22. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  23. reflect "reflect"
  24. sync "sync"
  25. )
  26. const (
  27. // Verify that this generated code is sufficiently up-to-date.
  28. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  29. // Verify that runtime/protoimpl is sufficiently up-to-date.
  30. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  31. )
  32. type UnconvertedReasonType int32
  33. const (
  34. // Bp2build does not know how to convert this specific module for some reason
  35. // not covered by other reason types. The reason detail should explain the
  36. // specific issue.
  37. UnconvertedReasonType_UNSUPPORTED UnconvertedReasonType = 0
  38. // The module was already defined in a BUILD file available in the source tree.
  39. UnconvertedReasonType_DEFINED_IN_BUILD_FILE UnconvertedReasonType = 1
  40. // The module was explicitly denylisted by name.
  41. UnconvertedReasonType_DENYLISTED UnconvertedReasonType = 2
  42. // The module's type has no bp2build implementation.
  43. UnconvertedReasonType_TYPE_UNSUPPORTED UnconvertedReasonType = 3
  44. // The module has a property not yet supported. The detail field should
  45. // name the unsupported property name.
  46. UnconvertedReasonType_PROPERTY_UNSUPPORTED UnconvertedReasonType = 4
  47. // The module has an unconverted dependency. The detail should consist of
  48. // the name of the unconverted module.
  49. UnconvertedReasonType_UNCONVERTED_DEP UnconvertedReasonType = 5
  50. // The module has a source file with the same name as the module itself.
  51. UnconvertedReasonType_SRC_NAME_COLLISION UnconvertedReasonType = 6
  52. )
  53. // Enum value maps for UnconvertedReasonType.
  54. var (
  55. UnconvertedReasonType_name = map[int32]string{
  56. 0: "UNSUPPORTED",
  57. 1: "DEFINED_IN_BUILD_FILE",
  58. 2: "DENYLISTED",
  59. 3: "TYPE_UNSUPPORTED",
  60. 4: "PROPERTY_UNSUPPORTED",
  61. 5: "UNCONVERTED_DEP",
  62. 6: "SRC_NAME_COLLISION",
  63. }
  64. UnconvertedReasonType_value = map[string]int32{
  65. "UNSUPPORTED": 0,
  66. "DEFINED_IN_BUILD_FILE": 1,
  67. "DENYLISTED": 2,
  68. "TYPE_UNSUPPORTED": 3,
  69. "PROPERTY_UNSUPPORTED": 4,
  70. "UNCONVERTED_DEP": 5,
  71. "SRC_NAME_COLLISION": 6,
  72. }
  73. )
  74. func (x UnconvertedReasonType) Enum() *UnconvertedReasonType {
  75. p := new(UnconvertedReasonType)
  76. *p = x
  77. return p
  78. }
  79. func (x UnconvertedReasonType) String() string {
  80. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  81. }
  82. func (UnconvertedReasonType) Descriptor() protoreflect.EnumDescriptor {
  83. return file_bp2build_metrics_proto_enumTypes[0].Descriptor()
  84. }
  85. func (UnconvertedReasonType) Type() protoreflect.EnumType {
  86. return &file_bp2build_metrics_proto_enumTypes[0]
  87. }
  88. func (x UnconvertedReasonType) Number() protoreflect.EnumNumber {
  89. return protoreflect.EnumNumber(x)
  90. }
  91. // Deprecated: Use UnconvertedReasonType.Descriptor instead.
  92. func (UnconvertedReasonType) EnumDescriptor() ([]byte, []int) {
  93. return file_bp2build_metrics_proto_rawDescGZIP(), []int{0}
  94. }
  95. type Bp2BuildMetrics struct {
  96. state protoimpl.MessageState
  97. sizeCache protoimpl.SizeCache
  98. unknownFields protoimpl.UnknownFields
  99. // Total number of Soong modules converted to generated targets
  100. GeneratedModuleCount uint64 `protobuf:"varint,1,opt,name=generatedModuleCount,proto3" json:"generatedModuleCount,omitempty"`
  101. // Total number of Soong modules converted to handcrafted targets
  102. HandCraftedModuleCount uint64 `protobuf:"varint,2,opt,name=handCraftedModuleCount,proto3" json:"handCraftedModuleCount,omitempty"`
  103. // Total number of unconverted Soong modules
  104. UnconvertedModuleCount uint64 `protobuf:"varint,3,opt,name=unconvertedModuleCount,proto3" json:"unconvertedModuleCount,omitempty"`
  105. // Counts of symlinks in synthetic bazel workspace
  106. WorkspaceSymlinkCount uint64 `protobuf:"varint,9,opt,name=workspaceSymlinkCount,proto3" json:"workspaceSymlinkCount,omitempty"`
  107. // Counts of mkdir calls during creation of synthetic bazel workspace
  108. WorkspaceMkDirCount uint64 `protobuf:"varint,10,opt,name=workspaceMkDirCount,proto3" json:"workspaceMkDirCount,omitempty"`
  109. // Counts of generated Bazel targets per Bazel rule class
  110. RuleClassCount map[string]uint64 `protobuf:"bytes,4,rep,name=ruleClassCount,proto3" json:"ruleClassCount,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
  111. // List of converted modules
  112. ConvertedModules []string `protobuf:"bytes,5,rep,name=convertedModules,proto3" json:"convertedModules,omitempty"`
  113. // Unconverted modules, mapped to the reason the module was not converted.
  114. UnconvertedModules map[string]*UnconvertedReason `protobuf:"bytes,11,rep,name=unconvertedModules,proto3" json:"unconvertedModules,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  115. // Counts of converted modules by module type.
  116. ConvertedModuleTypeCount map[string]uint64 `protobuf:"bytes,6,rep,name=convertedModuleTypeCount,proto3" json:"convertedModuleTypeCount,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
  117. // Counts of total modules by module type.
  118. TotalModuleTypeCount map[string]uint64 `protobuf:"bytes,7,rep,name=totalModuleTypeCount,proto3" json:"totalModuleTypeCount,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
  119. // List of traced runtime events of bp2build, useful for tracking bp2build
  120. // runtime.
  121. Events []*Event `protobuf:"bytes,8,rep,name=events,proto3" json:"events,omitempty"`
  122. }
  123. func (x *Bp2BuildMetrics) Reset() {
  124. *x = Bp2BuildMetrics{}
  125. if protoimpl.UnsafeEnabled {
  126. mi := &file_bp2build_metrics_proto_msgTypes[0]
  127. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  128. ms.StoreMessageInfo(mi)
  129. }
  130. }
  131. func (x *Bp2BuildMetrics) String() string {
  132. return protoimpl.X.MessageStringOf(x)
  133. }
  134. func (*Bp2BuildMetrics) ProtoMessage() {}
  135. func (x *Bp2BuildMetrics) ProtoReflect() protoreflect.Message {
  136. mi := &file_bp2build_metrics_proto_msgTypes[0]
  137. if protoimpl.UnsafeEnabled && x != nil {
  138. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  139. if ms.LoadMessageInfo() == nil {
  140. ms.StoreMessageInfo(mi)
  141. }
  142. return ms
  143. }
  144. return mi.MessageOf(x)
  145. }
  146. // Deprecated: Use Bp2BuildMetrics.ProtoReflect.Descriptor instead.
  147. func (*Bp2BuildMetrics) Descriptor() ([]byte, []int) {
  148. return file_bp2build_metrics_proto_rawDescGZIP(), []int{0}
  149. }
  150. func (x *Bp2BuildMetrics) GetGeneratedModuleCount() uint64 {
  151. if x != nil {
  152. return x.GeneratedModuleCount
  153. }
  154. return 0
  155. }
  156. func (x *Bp2BuildMetrics) GetHandCraftedModuleCount() uint64 {
  157. if x != nil {
  158. return x.HandCraftedModuleCount
  159. }
  160. return 0
  161. }
  162. func (x *Bp2BuildMetrics) GetUnconvertedModuleCount() uint64 {
  163. if x != nil {
  164. return x.UnconvertedModuleCount
  165. }
  166. return 0
  167. }
  168. func (x *Bp2BuildMetrics) GetWorkspaceSymlinkCount() uint64 {
  169. if x != nil {
  170. return x.WorkspaceSymlinkCount
  171. }
  172. return 0
  173. }
  174. func (x *Bp2BuildMetrics) GetWorkspaceMkDirCount() uint64 {
  175. if x != nil {
  176. return x.WorkspaceMkDirCount
  177. }
  178. return 0
  179. }
  180. func (x *Bp2BuildMetrics) GetRuleClassCount() map[string]uint64 {
  181. if x != nil {
  182. return x.RuleClassCount
  183. }
  184. return nil
  185. }
  186. func (x *Bp2BuildMetrics) GetConvertedModules() []string {
  187. if x != nil {
  188. return x.ConvertedModules
  189. }
  190. return nil
  191. }
  192. func (x *Bp2BuildMetrics) GetUnconvertedModules() map[string]*UnconvertedReason {
  193. if x != nil {
  194. return x.UnconvertedModules
  195. }
  196. return nil
  197. }
  198. func (x *Bp2BuildMetrics) GetConvertedModuleTypeCount() map[string]uint64 {
  199. if x != nil {
  200. return x.ConvertedModuleTypeCount
  201. }
  202. return nil
  203. }
  204. func (x *Bp2BuildMetrics) GetTotalModuleTypeCount() map[string]uint64 {
  205. if x != nil {
  206. return x.TotalModuleTypeCount
  207. }
  208. return nil
  209. }
  210. func (x *Bp2BuildMetrics) GetEvents() []*Event {
  211. if x != nil {
  212. return x.Events
  213. }
  214. return nil
  215. }
  216. // Traced runtime event of bp2build.
  217. type Event struct {
  218. state protoimpl.MessageState
  219. sizeCache protoimpl.SizeCache
  220. unknownFields protoimpl.UnknownFields
  221. // The event name.
  222. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  223. // The absolute start time of the event
  224. // The number of nanoseconds elapsed since January 1, 1970 UTC.
  225. StartTime uint64 `protobuf:"varint,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
  226. // The real running time.
  227. // The number of nanoseconds elapsed since start_time.
  228. RealTime uint64 `protobuf:"varint,3,opt,name=real_time,json=realTime,proto3" json:"real_time,omitempty"`
  229. }
  230. func (x *Event) Reset() {
  231. *x = Event{}
  232. if protoimpl.UnsafeEnabled {
  233. mi := &file_bp2build_metrics_proto_msgTypes[1]
  234. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  235. ms.StoreMessageInfo(mi)
  236. }
  237. }
  238. func (x *Event) String() string {
  239. return protoimpl.X.MessageStringOf(x)
  240. }
  241. func (*Event) ProtoMessage() {}
  242. func (x *Event) ProtoReflect() protoreflect.Message {
  243. mi := &file_bp2build_metrics_proto_msgTypes[1]
  244. if protoimpl.UnsafeEnabled && x != nil {
  245. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  246. if ms.LoadMessageInfo() == nil {
  247. ms.StoreMessageInfo(mi)
  248. }
  249. return ms
  250. }
  251. return mi.MessageOf(x)
  252. }
  253. // Deprecated: Use Event.ProtoReflect.Descriptor instead.
  254. func (*Event) Descriptor() ([]byte, []int) {
  255. return file_bp2build_metrics_proto_rawDescGZIP(), []int{1}
  256. }
  257. func (x *Event) GetName() string {
  258. if x != nil {
  259. return x.Name
  260. }
  261. return ""
  262. }
  263. func (x *Event) GetStartTime() uint64 {
  264. if x != nil {
  265. return x.StartTime
  266. }
  267. return 0
  268. }
  269. func (x *Event) GetRealTime() uint64 {
  270. if x != nil {
  271. return x.RealTime
  272. }
  273. return 0
  274. }
  275. type UnconvertedReason struct {
  276. state protoimpl.MessageState
  277. sizeCache protoimpl.SizeCache
  278. unknownFields protoimpl.UnknownFields
  279. // The type of reason that the module could not be converted.
  280. Type UnconvertedReasonType `protobuf:"varint,1,opt,name=type,proto3,enum=soong_build_bp2build_metrics.UnconvertedReasonType" json:"type,omitempty"`
  281. // Descriptive details describing why the module could not be converted.
  282. // This detail should be kept very short and should be in the context of
  283. // the type. (Otherwise, this would significantly bloat metrics.)
  284. Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"`
  285. }
  286. func (x *UnconvertedReason) Reset() {
  287. *x = UnconvertedReason{}
  288. if protoimpl.UnsafeEnabled {
  289. mi := &file_bp2build_metrics_proto_msgTypes[2]
  290. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  291. ms.StoreMessageInfo(mi)
  292. }
  293. }
  294. func (x *UnconvertedReason) String() string {
  295. return protoimpl.X.MessageStringOf(x)
  296. }
  297. func (*UnconvertedReason) ProtoMessage() {}
  298. func (x *UnconvertedReason) ProtoReflect() protoreflect.Message {
  299. mi := &file_bp2build_metrics_proto_msgTypes[2]
  300. if protoimpl.UnsafeEnabled && x != nil {
  301. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  302. if ms.LoadMessageInfo() == nil {
  303. ms.StoreMessageInfo(mi)
  304. }
  305. return ms
  306. }
  307. return mi.MessageOf(x)
  308. }
  309. // Deprecated: Use UnconvertedReason.ProtoReflect.Descriptor instead.
  310. func (*UnconvertedReason) Descriptor() ([]byte, []int) {
  311. return file_bp2build_metrics_proto_rawDescGZIP(), []int{2}
  312. }
  313. func (x *UnconvertedReason) GetType() UnconvertedReasonType {
  314. if x != nil {
  315. return x.Type
  316. }
  317. return UnconvertedReasonType_UNSUPPORTED
  318. }
  319. func (x *UnconvertedReason) GetDetail() string {
  320. if x != nil {
  321. return x.Detail
  322. }
  323. return ""
  324. }
  325. var File_bp2build_metrics_proto protoreflect.FileDescriptor
  326. var file_bp2build_metrics_proto_rawDesc = []byte{
  327. 0x0a, 0x16, 0x62, 0x70, 0x32, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69,
  328. 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f,
  329. 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x62, 0x70, 0x32, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d,
  330. 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x22, 0xc0, 0x09, 0x0a, 0x0f, 0x42, 0x70, 0x32, 0x42, 0x75,
  331. 0x69, 0x6c, 0x64, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x32, 0x0a, 0x14, 0x67, 0x65,
  332. 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x75,
  333. 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x14, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61,
  334. 0x74, 0x65, 0x64, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x36,
  335. 0x0a, 0x16, 0x68, 0x61, 0x6e, 0x64, 0x43, 0x72, 0x61, 0x66, 0x74, 0x65, 0x64, 0x4d, 0x6f, 0x64,
  336. 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x16,
  337. 0x68, 0x61, 0x6e, 0x64, 0x43, 0x72, 0x61, 0x66, 0x74, 0x65, 0x64, 0x4d, 0x6f, 0x64, 0x75, 0x6c,
  338. 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x36, 0x0a, 0x16, 0x75, 0x6e, 0x63, 0x6f, 0x6e, 0x76,
  339. 0x65, 0x72, 0x74, 0x65, 0x64, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74,
  340. 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x16, 0x75, 0x6e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72,
  341. 0x74, 0x65, 0x64, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x34,
  342. 0x0a, 0x15, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x79, 0x6d, 0x6c, 0x69,
  343. 0x6e, 0x6b, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x15, 0x77,
  344. 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x79, 0x6d, 0x6c, 0x69, 0x6e, 0x6b, 0x43,
  345. 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x13, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63,
  346. 0x65, 0x4d, 0x6b, 0x44, 0x69, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28,
  347. 0x04, 0x52, 0x13, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4d, 0x6b, 0x44, 0x69,
  348. 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x69, 0x0a, 0x0e, 0x72, 0x75, 0x6c, 0x65, 0x43, 0x6c,
  349. 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x41,
  350. 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x62, 0x70, 0x32,
  351. 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x42, 0x70,
  352. 0x32, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x52, 0x75,
  353. 0x6c, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72,
  354. 0x79, 0x52, 0x0e, 0x72, 0x75, 0x6c, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e,
  355. 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64, 0x4d, 0x6f,
  356. 0x64, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x63, 0x6f, 0x6e,
  357. 0x76, 0x65, 0x72, 0x74, 0x65, 0x64, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x75, 0x0a,
  358. 0x12, 0x75, 0x6e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64, 0x4d, 0x6f, 0x64, 0x75,
  359. 0x6c, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x73, 0x6f, 0x6f, 0x6e,
  360. 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x62, 0x70, 0x32, 0x62, 0x75, 0x69, 0x6c, 0x64,
  361. 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x42, 0x70, 0x32, 0x42, 0x75, 0x69, 0x6c,
  362. 0x64, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x55, 0x6e, 0x63, 0x6f, 0x6e, 0x76, 0x65,
  363. 0x72, 0x74, 0x65, 0x64, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,
  364. 0x52, 0x12, 0x75, 0x6e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64, 0x4d, 0x6f, 0x64,
  365. 0x75, 0x6c, 0x65, 0x73, 0x12, 0x87, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74,
  366. 0x65, 0x64, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x75, 0x6e,
  367. 0x74, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x4b, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f,
  368. 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x62, 0x70, 0x32, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d,
  369. 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x42, 0x70, 0x32, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x4d,
  370. 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64,
  371. 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x45,
  372. 0x6e, 0x74, 0x72, 0x79, 0x52, 0x18, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64, 0x4d,
  373. 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x7b,
  374. 0x0a, 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x54, 0x79, 0x70,
  375. 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x47, 0x2e, 0x73,
  376. 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x62, 0x70, 0x32, 0x62, 0x75,
  377. 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x42, 0x70, 0x32, 0x42,
  378. 0x75, 0x69, 0x6c, 0x64, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x54, 0x6f, 0x74, 0x61,
  379. 0x6c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74,
  380. 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x6f, 0x64, 0x75,
  381. 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3b, 0x0a, 0x06, 0x65,
  382. 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x73, 0x6f,
  383. 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x62, 0x70, 0x32, 0x62, 0x75, 0x69,
  384. 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74,
  385. 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x41, 0x0a, 0x13, 0x52, 0x75, 0x6c, 0x65,
  386. 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
  387. 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
  388. 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04,
  389. 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x76, 0x0a, 0x17, 0x55,
  390. 0x6e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65,
  391. 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
  392. 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x45, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
  393. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f,
  394. 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x62, 0x70, 0x32, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d,
  395. 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x55, 0x6e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74,
  396. 0x65, 0x64, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
  397. 0x02, 0x38, 0x01, 0x1a, 0x4b, 0x0a, 0x1d, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64,
  398. 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x45,
  399. 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
  400. 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
  401. 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01,
  402. 0x1a, 0x47, 0x0a, 0x19, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x54,
  403. 0x79, 0x70, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a,
  404. 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
  405. 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05,
  406. 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x57, 0x0a, 0x05, 0x45, 0x76, 0x65,
  407. 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  408. 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f,
  409. 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72,
  410. 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x6c, 0x5f, 0x74, 0x69,
  411. 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x61, 0x6c, 0x54, 0x69,
  412. 0x6d, 0x65, 0x22, 0x74, 0x0a, 0x11, 0x55, 0x6e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65,
  413. 0x64, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x47, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
  414. 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x5f, 0x62, 0x75,
  415. 0x69, 0x6c, 0x64, 0x5f, 0x62, 0x70, 0x32, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74,
  416. 0x72, 0x69, 0x63, 0x73, 0x2e, 0x55, 0x6e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64,
  417. 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65,
  418. 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  419. 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2a, 0xb0, 0x01, 0x0a, 0x15, 0x55, 0x6e, 0x63,
  420. 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x54, 0x79,
  421. 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45,
  422. 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x5f, 0x49,
  423. 0x4e, 0x5f, 0x42, 0x55, 0x49, 0x4c, 0x44, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x0e,
  424. 0x0a, 0x0a, 0x44, 0x45, 0x4e, 0x59, 0x4c, 0x49, 0x53, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x14,
  425. 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54,
  426. 0x45, 0x44, 0x10, 0x03, 0x12, 0x18, 0x0a, 0x14, 0x50, 0x52, 0x4f, 0x50, 0x45, 0x52, 0x54, 0x59,
  427. 0x5f, 0x55, 0x4e, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x04, 0x12, 0x13,
  428. 0x0a, 0x0f, 0x55, 0x4e, 0x43, 0x4f, 0x4e, 0x56, 0x45, 0x52, 0x54, 0x45, 0x44, 0x5f, 0x44, 0x45,
  429. 0x50, 0x10, 0x05, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x52, 0x43, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x5f,
  430. 0x43, 0x4f, 0x4c, 0x4c, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x06, 0x42, 0x31, 0x5a, 0x2f, 0x61,
  431. 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x2f, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x2f, 0x75, 0x69, 0x2f,
  432. 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2f, 0x62, 0x70, 0x32, 0x62, 0x75, 0x69, 0x6c, 0x64,
  433. 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06,
  434. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  435. }
  436. var (
  437. file_bp2build_metrics_proto_rawDescOnce sync.Once
  438. file_bp2build_metrics_proto_rawDescData = file_bp2build_metrics_proto_rawDesc
  439. )
  440. func file_bp2build_metrics_proto_rawDescGZIP() []byte {
  441. file_bp2build_metrics_proto_rawDescOnce.Do(func() {
  442. file_bp2build_metrics_proto_rawDescData = protoimpl.X.CompressGZIP(file_bp2build_metrics_proto_rawDescData)
  443. })
  444. return file_bp2build_metrics_proto_rawDescData
  445. }
  446. var file_bp2build_metrics_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  447. var file_bp2build_metrics_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
  448. var file_bp2build_metrics_proto_goTypes = []interface{}{
  449. (UnconvertedReasonType)(0), // 0: soong_build_bp2build_metrics.UnconvertedReasonType
  450. (*Bp2BuildMetrics)(nil), // 1: soong_build_bp2build_metrics.Bp2BuildMetrics
  451. (*Event)(nil), // 2: soong_build_bp2build_metrics.Event
  452. (*UnconvertedReason)(nil), // 3: soong_build_bp2build_metrics.UnconvertedReason
  453. nil, // 4: soong_build_bp2build_metrics.Bp2BuildMetrics.RuleClassCountEntry
  454. nil, // 5: soong_build_bp2build_metrics.Bp2BuildMetrics.UnconvertedModulesEntry
  455. nil, // 6: soong_build_bp2build_metrics.Bp2BuildMetrics.ConvertedModuleTypeCountEntry
  456. nil, // 7: soong_build_bp2build_metrics.Bp2BuildMetrics.TotalModuleTypeCountEntry
  457. }
  458. var file_bp2build_metrics_proto_depIdxs = []int32{
  459. 4, // 0: soong_build_bp2build_metrics.Bp2BuildMetrics.ruleClassCount:type_name -> soong_build_bp2build_metrics.Bp2BuildMetrics.RuleClassCountEntry
  460. 5, // 1: soong_build_bp2build_metrics.Bp2BuildMetrics.unconvertedModules:type_name -> soong_build_bp2build_metrics.Bp2BuildMetrics.UnconvertedModulesEntry
  461. 6, // 2: soong_build_bp2build_metrics.Bp2BuildMetrics.convertedModuleTypeCount:type_name -> soong_build_bp2build_metrics.Bp2BuildMetrics.ConvertedModuleTypeCountEntry
  462. 7, // 3: soong_build_bp2build_metrics.Bp2BuildMetrics.totalModuleTypeCount:type_name -> soong_build_bp2build_metrics.Bp2BuildMetrics.TotalModuleTypeCountEntry
  463. 2, // 4: soong_build_bp2build_metrics.Bp2BuildMetrics.events:type_name -> soong_build_bp2build_metrics.Event
  464. 0, // 5: soong_build_bp2build_metrics.UnconvertedReason.type:type_name -> soong_build_bp2build_metrics.UnconvertedReasonType
  465. 3, // 6: soong_build_bp2build_metrics.Bp2BuildMetrics.UnconvertedModulesEntry.value:type_name -> soong_build_bp2build_metrics.UnconvertedReason
  466. 7, // [7:7] is the sub-list for method output_type
  467. 7, // [7:7] is the sub-list for method input_type
  468. 7, // [7:7] is the sub-list for extension type_name
  469. 7, // [7:7] is the sub-list for extension extendee
  470. 0, // [0:7] is the sub-list for field type_name
  471. }
  472. func init() { file_bp2build_metrics_proto_init() }
  473. func file_bp2build_metrics_proto_init() {
  474. if File_bp2build_metrics_proto != nil {
  475. return
  476. }
  477. if !protoimpl.UnsafeEnabled {
  478. file_bp2build_metrics_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  479. switch v := v.(*Bp2BuildMetrics); i {
  480. case 0:
  481. return &v.state
  482. case 1:
  483. return &v.sizeCache
  484. case 2:
  485. return &v.unknownFields
  486. default:
  487. return nil
  488. }
  489. }
  490. file_bp2build_metrics_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  491. switch v := v.(*Event); i {
  492. case 0:
  493. return &v.state
  494. case 1:
  495. return &v.sizeCache
  496. case 2:
  497. return &v.unknownFields
  498. default:
  499. return nil
  500. }
  501. }
  502. file_bp2build_metrics_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  503. switch v := v.(*UnconvertedReason); i {
  504. case 0:
  505. return &v.state
  506. case 1:
  507. return &v.sizeCache
  508. case 2:
  509. return &v.unknownFields
  510. default:
  511. return nil
  512. }
  513. }
  514. }
  515. type x struct{}
  516. out := protoimpl.TypeBuilder{
  517. File: protoimpl.DescBuilder{
  518. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  519. RawDescriptor: file_bp2build_metrics_proto_rawDesc,
  520. NumEnums: 1,
  521. NumMessages: 7,
  522. NumExtensions: 0,
  523. NumServices: 0,
  524. },
  525. GoTypes: file_bp2build_metrics_proto_goTypes,
  526. DependencyIndexes: file_bp2build_metrics_proto_depIdxs,
  527. EnumInfos: file_bp2build_metrics_proto_enumTypes,
  528. MessageInfos: file_bp2build_metrics_proto_msgTypes,
  529. }.Build()
  530. File_bp2build_metrics_proto = out.File
  531. file_bp2build_metrics_proto_rawDesc = nil
  532. file_bp2build_metrics_proto_goTypes = nil
  533. file_bp2build_metrics_proto_depIdxs = nil
  534. }