github.com/google/capslock@v0.2.3-0.20240517042941-dac19fc347c0/proto/capability.pb.go (about) 1 // Copyright 2023 Google LLC 2 // 3 // Use of this source code is governed by a BSD-style 4 // license that can be found in the LICENSE file or at 5 // https://developers.google.com/open-source/licenses/bsd 6 7 // Code generated by protoc-gen-go. DO NOT EDIT. 8 // versions: 9 // protoc-gen-go v1.28.1 10 // protoc v3.21.12 11 // source: capability.proto 12 13 package proto 14 15 import ( 16 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 17 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 18 reflect "reflect" 19 sync "sync" 20 ) 21 22 const ( 23 // Verify that this generated code is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 25 // Verify that runtime/protoimpl is sufficiently up-to-date. 26 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 27 ) 28 29 // Next_id = 15 30 type Capability int32 31 32 const ( 33 Capability_CAPABILITY_UNSPECIFIED Capability = 0 34 Capability_CAPABILITY_SAFE Capability = 1 35 Capability_CAPABILITY_FILES Capability = 2 36 Capability_CAPABILITY_NETWORK Capability = 3 37 Capability_CAPABILITY_RUNTIME Capability = 4 38 Capability_CAPABILITY_READ_SYSTEM_STATE Capability = 5 39 Capability_CAPABILITY_MODIFY_SYSTEM_STATE Capability = 6 40 Capability_CAPABILITY_OPERATING_SYSTEM Capability = 7 41 Capability_CAPABILITY_SYSTEM_CALLS Capability = 8 42 Capability_CAPABILITY_ARBITRARY_EXECUTION Capability = 9 43 Capability_CAPABILITY_CGO Capability = 10 44 Capability_CAPABILITY_UNANALYZED Capability = 11 45 Capability_CAPABILITY_UNSAFE_POINTER Capability = 12 46 Capability_CAPABILITY_REFLECT Capability = 13 47 Capability_CAPABILITY_EXEC Capability = 14 48 ) 49 50 // Enum value maps for Capability. 51 var ( 52 Capability_name = map[int32]string{ 53 0: "CAPABILITY_UNSPECIFIED", 54 1: "CAPABILITY_SAFE", 55 2: "CAPABILITY_FILES", 56 3: "CAPABILITY_NETWORK", 57 4: "CAPABILITY_RUNTIME", 58 5: "CAPABILITY_READ_SYSTEM_STATE", 59 6: "CAPABILITY_MODIFY_SYSTEM_STATE", 60 7: "CAPABILITY_OPERATING_SYSTEM", 61 8: "CAPABILITY_SYSTEM_CALLS", 62 9: "CAPABILITY_ARBITRARY_EXECUTION", 63 10: "CAPABILITY_CGO", 64 11: "CAPABILITY_UNANALYZED", 65 12: "CAPABILITY_UNSAFE_POINTER", 66 13: "CAPABILITY_REFLECT", 67 14: "CAPABILITY_EXEC", 68 } 69 Capability_value = map[string]int32{ 70 "CAPABILITY_UNSPECIFIED": 0, 71 "CAPABILITY_SAFE": 1, 72 "CAPABILITY_FILES": 2, 73 "CAPABILITY_NETWORK": 3, 74 "CAPABILITY_RUNTIME": 4, 75 "CAPABILITY_READ_SYSTEM_STATE": 5, 76 "CAPABILITY_MODIFY_SYSTEM_STATE": 6, 77 "CAPABILITY_OPERATING_SYSTEM": 7, 78 "CAPABILITY_SYSTEM_CALLS": 8, 79 "CAPABILITY_ARBITRARY_EXECUTION": 9, 80 "CAPABILITY_CGO": 10, 81 "CAPABILITY_UNANALYZED": 11, 82 "CAPABILITY_UNSAFE_POINTER": 12, 83 "CAPABILITY_REFLECT": 13, 84 "CAPABILITY_EXEC": 14, 85 } 86 ) 87 88 func (x Capability) Enum() *Capability { 89 p := new(Capability) 90 *p = x 91 return p 92 } 93 94 func (x Capability) String() string { 95 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 96 } 97 98 func (Capability) Descriptor() protoreflect.EnumDescriptor { 99 return file_capability_proto_enumTypes[0].Descriptor() 100 } 101 102 func (Capability) Type() protoreflect.EnumType { 103 return &file_capability_proto_enumTypes[0] 104 } 105 106 func (x Capability) Number() protoreflect.EnumNumber { 107 return protoreflect.EnumNumber(x) 108 } 109 110 // Deprecated: Do not use. 111 func (x *Capability) UnmarshalJSON(b []byte) error { 112 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) 113 if err != nil { 114 return err 115 } 116 *x = Capability(num) 117 return nil 118 } 119 120 // Deprecated: Use Capability.Descriptor instead. 121 func (Capability) EnumDescriptor() ([]byte, []int) { 122 return file_capability_proto_rawDescGZIP(), []int{0} 123 } 124 125 // Next_id = 3 126 type CapabilityType int32 127 128 const ( 129 CapabilityType_CAPABILITY_TYPE_UNSPECIFIED CapabilityType = 0 130 CapabilityType_CAPABILITY_TYPE_DIRECT CapabilityType = 1 131 CapabilityType_CAPABILITY_TYPE_TRANSITIVE CapabilityType = 2 132 ) 133 134 // Enum value maps for CapabilityType. 135 var ( 136 CapabilityType_name = map[int32]string{ 137 0: "CAPABILITY_TYPE_UNSPECIFIED", 138 1: "CAPABILITY_TYPE_DIRECT", 139 2: "CAPABILITY_TYPE_TRANSITIVE", 140 } 141 CapabilityType_value = map[string]int32{ 142 "CAPABILITY_TYPE_UNSPECIFIED": 0, 143 "CAPABILITY_TYPE_DIRECT": 1, 144 "CAPABILITY_TYPE_TRANSITIVE": 2, 145 } 146 ) 147 148 func (x CapabilityType) Enum() *CapabilityType { 149 p := new(CapabilityType) 150 *p = x 151 return p 152 } 153 154 func (x CapabilityType) String() string { 155 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 156 } 157 158 func (CapabilityType) Descriptor() protoreflect.EnumDescriptor { 159 return file_capability_proto_enumTypes[1].Descriptor() 160 } 161 162 func (CapabilityType) Type() protoreflect.EnumType { 163 return &file_capability_proto_enumTypes[1] 164 } 165 166 func (x CapabilityType) Number() protoreflect.EnumNumber { 167 return protoreflect.EnumNumber(x) 168 } 169 170 // Deprecated: Do not use. 171 func (x *CapabilityType) UnmarshalJSON(b []byte) error { 172 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) 173 if err != nil { 174 return err 175 } 176 *x = CapabilityType(num) 177 return nil 178 } 179 180 // Deprecated: Use CapabilityType.Descriptor instead. 181 func (CapabilityType) EnumDescriptor() ([]byte, []int) { 182 return file_capability_proto_rawDescGZIP(), []int{1} 183 } 184 185 type CapabilityInfo struct { 186 state protoimpl.MessageState 187 sizeCache protoimpl.SizeCache 188 unknownFields protoimpl.UnknownFields 189 190 // The name of the package. 191 PackageName *string `protobuf:"bytes,1,opt,name=package_name,json=packageName" json:"package_name,omitempty"` 192 // Name associated with this capability. 193 Capability *Capability `protobuf:"varint,2,opt,name=capability,enum=capslock.proto.Capability" json:"capability,omitempty"` 194 // The dependency path to where the capability is incurred. 195 DepPath *string `protobuf:"bytes,3,opt,name=dep_path,json=depPath" json:"dep_path,omitempty"` 196 // The dependency path to where the capability is incurred. 197 // Each element is a single function or method. 198 Path []*Function `protobuf:"bytes,6,rep,name=path" json:"path,omitempty"` 199 // The location of the package. 200 PackageDir *string `protobuf:"bytes,4,opt,name=package_dir,json=packageDir" json:"package_dir,omitempty"` 201 // Classification of how the capability was incurred. 202 CapabilityType *CapabilityType `protobuf:"varint,5,opt,name=capability_type,json=capabilityType,enum=capslock.proto.CapabilityType" json:"capability_type,omitempty"` 203 } 204 205 func (x *CapabilityInfo) Reset() { 206 *x = CapabilityInfo{} 207 if protoimpl.UnsafeEnabled { 208 mi := &file_capability_proto_msgTypes[0] 209 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 210 ms.StoreMessageInfo(mi) 211 } 212 } 213 214 func (x *CapabilityInfo) String() string { 215 return protoimpl.X.MessageStringOf(x) 216 } 217 218 func (*CapabilityInfo) ProtoMessage() {} 219 220 func (x *CapabilityInfo) ProtoReflect() protoreflect.Message { 221 mi := &file_capability_proto_msgTypes[0] 222 if protoimpl.UnsafeEnabled && x != nil { 223 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 224 if ms.LoadMessageInfo() == nil { 225 ms.StoreMessageInfo(mi) 226 } 227 return ms 228 } 229 return mi.MessageOf(x) 230 } 231 232 // Deprecated: Use CapabilityInfo.ProtoReflect.Descriptor instead. 233 func (*CapabilityInfo) Descriptor() ([]byte, []int) { 234 return file_capability_proto_rawDescGZIP(), []int{0} 235 } 236 237 func (x *CapabilityInfo) GetPackageName() string { 238 if x != nil && x.PackageName != nil { 239 return *x.PackageName 240 } 241 return "" 242 } 243 244 func (x *CapabilityInfo) GetCapability() Capability { 245 if x != nil && x.Capability != nil { 246 return *x.Capability 247 } 248 return Capability_CAPABILITY_UNSPECIFIED 249 } 250 251 func (x *CapabilityInfo) GetDepPath() string { 252 if x != nil && x.DepPath != nil { 253 return *x.DepPath 254 } 255 return "" 256 } 257 258 func (x *CapabilityInfo) GetPath() []*Function { 259 if x != nil { 260 return x.Path 261 } 262 return nil 263 } 264 265 func (x *CapabilityInfo) GetPackageDir() string { 266 if x != nil && x.PackageDir != nil { 267 return *x.PackageDir 268 } 269 return "" 270 } 271 272 func (x *CapabilityInfo) GetCapabilityType() CapabilityType { 273 if x != nil && x.CapabilityType != nil { 274 return *x.CapabilityType 275 } 276 return CapabilityType_CAPABILITY_TYPE_UNSPECIFIED 277 } 278 279 type Function struct { 280 state protoimpl.MessageState 281 sizeCache protoimpl.SizeCache 282 unknownFields protoimpl.UnknownFields 283 284 Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` 285 Site *Function_Site `protobuf:"bytes,2,opt,name=site" json:"site,omitempty"` 286 } 287 288 func (x *Function) Reset() { 289 *x = Function{} 290 if protoimpl.UnsafeEnabled { 291 mi := &file_capability_proto_msgTypes[1] 292 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 293 ms.StoreMessageInfo(mi) 294 } 295 } 296 297 func (x *Function) String() string { 298 return protoimpl.X.MessageStringOf(x) 299 } 300 301 func (*Function) ProtoMessage() {} 302 303 func (x *Function) ProtoReflect() protoreflect.Message { 304 mi := &file_capability_proto_msgTypes[1] 305 if protoimpl.UnsafeEnabled && x != nil { 306 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 307 if ms.LoadMessageInfo() == nil { 308 ms.StoreMessageInfo(mi) 309 } 310 return ms 311 } 312 return mi.MessageOf(x) 313 } 314 315 // Deprecated: Use Function.ProtoReflect.Descriptor instead. 316 func (*Function) Descriptor() ([]byte, []int) { 317 return file_capability_proto_rawDescGZIP(), []int{1} 318 } 319 320 func (x *Function) GetName() string { 321 if x != nil && x.Name != nil { 322 return *x.Name 323 } 324 return "" 325 } 326 327 func (x *Function) GetSite() *Function_Site { 328 if x != nil { 329 return x.Site 330 } 331 return nil 332 } 333 334 type ModuleInfo struct { 335 state protoimpl.MessageState 336 sizeCache protoimpl.SizeCache 337 unknownFields protoimpl.UnknownFields 338 339 Path *string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"` 340 Version *string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` 341 } 342 343 func (x *ModuleInfo) Reset() { 344 *x = ModuleInfo{} 345 if protoimpl.UnsafeEnabled { 346 mi := &file_capability_proto_msgTypes[2] 347 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 348 ms.StoreMessageInfo(mi) 349 } 350 } 351 352 func (x *ModuleInfo) String() string { 353 return protoimpl.X.MessageStringOf(x) 354 } 355 356 func (*ModuleInfo) ProtoMessage() {} 357 358 func (x *ModuleInfo) ProtoReflect() protoreflect.Message { 359 mi := &file_capability_proto_msgTypes[2] 360 if protoimpl.UnsafeEnabled && x != nil { 361 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 362 if ms.LoadMessageInfo() == nil { 363 ms.StoreMessageInfo(mi) 364 } 365 return ms 366 } 367 return mi.MessageOf(x) 368 } 369 370 // Deprecated: Use ModuleInfo.ProtoReflect.Descriptor instead. 371 func (*ModuleInfo) Descriptor() ([]byte, []int) { 372 return file_capability_proto_rawDescGZIP(), []int{2} 373 } 374 375 func (x *ModuleInfo) GetPath() string { 376 if x != nil && x.Path != nil { 377 return *x.Path 378 } 379 return "" 380 } 381 382 func (x *ModuleInfo) GetVersion() string { 383 if x != nil && x.Version != nil { 384 return *x.Version 385 } 386 return "" 387 } 388 389 type PackageInfo struct { 390 state protoimpl.MessageState 391 sizeCache protoimpl.SizeCache 392 unknownFields protoimpl.UnknownFields 393 394 Path *string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"` 395 // ignored_files contains a list of source files in the package directory 396 // that were ignored due to the build configuration and build tags. See 397 // https://pkg.go.dev/golang.org/x/tools/go/packages#Package.IgnoredFiles 398 // for more information. 399 IgnoredFiles []string `protobuf:"bytes,2,rep,name=ignored_files,json=ignoredFiles" json:"ignored_files,omitempty"` 400 } 401 402 func (x *PackageInfo) Reset() { 403 *x = PackageInfo{} 404 if protoimpl.UnsafeEnabled { 405 mi := &file_capability_proto_msgTypes[3] 406 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 407 ms.StoreMessageInfo(mi) 408 } 409 } 410 411 func (x *PackageInfo) String() string { 412 return protoimpl.X.MessageStringOf(x) 413 } 414 415 func (*PackageInfo) ProtoMessage() {} 416 417 func (x *PackageInfo) ProtoReflect() protoreflect.Message { 418 mi := &file_capability_proto_msgTypes[3] 419 if protoimpl.UnsafeEnabled && x != nil { 420 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 421 if ms.LoadMessageInfo() == nil { 422 ms.StoreMessageInfo(mi) 423 } 424 return ms 425 } 426 return mi.MessageOf(x) 427 } 428 429 // Deprecated: Use PackageInfo.ProtoReflect.Descriptor instead. 430 func (*PackageInfo) Descriptor() ([]byte, []int) { 431 return file_capability_proto_rawDescGZIP(), []int{3} 432 } 433 434 func (x *PackageInfo) GetPath() string { 435 if x != nil && x.Path != nil { 436 return *x.Path 437 } 438 return "" 439 } 440 441 func (x *PackageInfo) GetIgnoredFiles() []string { 442 if x != nil { 443 return x.IgnoredFiles 444 } 445 return nil 446 } 447 448 type CapabilityInfoList struct { 449 state protoimpl.MessageState 450 sizeCache protoimpl.SizeCache 451 unknownFields protoimpl.UnknownFields 452 453 // A list of CapabilityInfo protos. 454 CapabilityInfo []*CapabilityInfo `protobuf:"bytes,1,rep,name=capability_info,json=capabilityInfo" json:"capability_info,omitempty"` 455 ModuleInfo []*ModuleInfo `protobuf:"bytes,2,rep,name=module_info,json=moduleInfo" json:"module_info,omitempty"` 456 PackageInfo []*PackageInfo `protobuf:"bytes,3,rep,name=package_info,json=packageInfo" json:"package_info,omitempty"` 457 } 458 459 func (x *CapabilityInfoList) Reset() { 460 *x = CapabilityInfoList{} 461 if protoimpl.UnsafeEnabled { 462 mi := &file_capability_proto_msgTypes[4] 463 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 464 ms.StoreMessageInfo(mi) 465 } 466 } 467 468 func (x *CapabilityInfoList) String() string { 469 return protoimpl.X.MessageStringOf(x) 470 } 471 472 func (*CapabilityInfoList) ProtoMessage() {} 473 474 func (x *CapabilityInfoList) ProtoReflect() protoreflect.Message { 475 mi := &file_capability_proto_msgTypes[4] 476 if protoimpl.UnsafeEnabled && x != nil { 477 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 478 if ms.LoadMessageInfo() == nil { 479 ms.StoreMessageInfo(mi) 480 } 481 return ms 482 } 483 return mi.MessageOf(x) 484 } 485 486 // Deprecated: Use CapabilityInfoList.ProtoReflect.Descriptor instead. 487 func (*CapabilityInfoList) Descriptor() ([]byte, []int) { 488 return file_capability_proto_rawDescGZIP(), []int{4} 489 } 490 491 func (x *CapabilityInfoList) GetCapabilityInfo() []*CapabilityInfo { 492 if x != nil { 493 return x.CapabilityInfo 494 } 495 return nil 496 } 497 498 func (x *CapabilityInfoList) GetModuleInfo() []*ModuleInfo { 499 if x != nil { 500 return x.ModuleInfo 501 } 502 return nil 503 } 504 505 func (x *CapabilityInfoList) GetPackageInfo() []*PackageInfo { 506 if x != nil { 507 return x.PackageInfo 508 } 509 return nil 510 } 511 512 type CapabilityCountList struct { 513 state protoimpl.MessageState 514 sizeCache protoimpl.SizeCache 515 unknownFields protoimpl.UnknownFields 516 517 // A list of capability counts. 518 CapabilityCounts map[string]int64 `protobuf:"bytes,1,rep,name=capability_counts,json=capabilityCounts" json:"capability_counts,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` 519 ModuleInfo []*ModuleInfo `protobuf:"bytes,2,rep,name=module_info,json=moduleInfo" json:"module_info,omitempty"` 520 } 521 522 func (x *CapabilityCountList) Reset() { 523 *x = CapabilityCountList{} 524 if protoimpl.UnsafeEnabled { 525 mi := &file_capability_proto_msgTypes[5] 526 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 527 ms.StoreMessageInfo(mi) 528 } 529 } 530 531 func (x *CapabilityCountList) String() string { 532 return protoimpl.X.MessageStringOf(x) 533 } 534 535 func (*CapabilityCountList) ProtoMessage() {} 536 537 func (x *CapabilityCountList) ProtoReflect() protoreflect.Message { 538 mi := &file_capability_proto_msgTypes[5] 539 if protoimpl.UnsafeEnabled && x != nil { 540 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 541 if ms.LoadMessageInfo() == nil { 542 ms.StoreMessageInfo(mi) 543 } 544 return ms 545 } 546 return mi.MessageOf(x) 547 } 548 549 // Deprecated: Use CapabilityCountList.ProtoReflect.Descriptor instead. 550 func (*CapabilityCountList) Descriptor() ([]byte, []int) { 551 return file_capability_proto_rawDescGZIP(), []int{5} 552 } 553 554 func (x *CapabilityCountList) GetCapabilityCounts() map[string]int64 { 555 if x != nil { 556 return x.CapabilityCounts 557 } 558 return nil 559 } 560 561 func (x *CapabilityCountList) GetModuleInfo() []*ModuleInfo { 562 if x != nil { 563 return x.ModuleInfo 564 } 565 return nil 566 } 567 568 type CapabilityStats struct { 569 state protoimpl.MessageState 570 sizeCache protoimpl.SizeCache 571 unknownFields protoimpl.UnknownFields 572 573 Capability *Capability `protobuf:"varint,1,opt,name=capability,enum=capslock.proto.Capability" json:"capability,omitempty"` 574 Description *string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"` 575 DirectCount *int64 `protobuf:"varint,3,opt,name=direct_count,json=directCount" json:"direct_count,omitempty"` 576 TransitiveCount *int64 `protobuf:"varint,4,opt,name=transitive_count,json=transitiveCount" json:"transitive_count,omitempty"` 577 ExampleCallpath []*Function `protobuf:"bytes,5,rep,name=example_callpath,json=exampleCallpath" json:"example_callpath,omitempty"` 578 Count *int64 `protobuf:"varint,6,opt,name=count" json:"count,omitempty"` 579 } 580 581 func (x *CapabilityStats) Reset() { 582 *x = CapabilityStats{} 583 if protoimpl.UnsafeEnabled { 584 mi := &file_capability_proto_msgTypes[6] 585 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 586 ms.StoreMessageInfo(mi) 587 } 588 } 589 590 func (x *CapabilityStats) String() string { 591 return protoimpl.X.MessageStringOf(x) 592 } 593 594 func (*CapabilityStats) ProtoMessage() {} 595 596 func (x *CapabilityStats) ProtoReflect() protoreflect.Message { 597 mi := &file_capability_proto_msgTypes[6] 598 if protoimpl.UnsafeEnabled && x != nil { 599 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 600 if ms.LoadMessageInfo() == nil { 601 ms.StoreMessageInfo(mi) 602 } 603 return ms 604 } 605 return mi.MessageOf(x) 606 } 607 608 // Deprecated: Use CapabilityStats.ProtoReflect.Descriptor instead. 609 func (*CapabilityStats) Descriptor() ([]byte, []int) { 610 return file_capability_proto_rawDescGZIP(), []int{6} 611 } 612 613 func (x *CapabilityStats) GetCapability() Capability { 614 if x != nil && x.Capability != nil { 615 return *x.Capability 616 } 617 return Capability_CAPABILITY_UNSPECIFIED 618 } 619 620 func (x *CapabilityStats) GetDescription() string { 621 if x != nil && x.Description != nil { 622 return *x.Description 623 } 624 return "" 625 } 626 627 func (x *CapabilityStats) GetDirectCount() int64 { 628 if x != nil && x.DirectCount != nil { 629 return *x.DirectCount 630 } 631 return 0 632 } 633 634 func (x *CapabilityStats) GetTransitiveCount() int64 { 635 if x != nil && x.TransitiveCount != nil { 636 return *x.TransitiveCount 637 } 638 return 0 639 } 640 641 func (x *CapabilityStats) GetExampleCallpath() []*Function { 642 if x != nil { 643 return x.ExampleCallpath 644 } 645 return nil 646 } 647 648 func (x *CapabilityStats) GetCount() int64 { 649 if x != nil && x.Count != nil { 650 return *x.Count 651 } 652 return 0 653 } 654 655 type CapabilityStatList struct { 656 state protoimpl.MessageState 657 sizeCache protoimpl.SizeCache 658 unknownFields protoimpl.UnknownFields 659 660 CapabilityStats []*CapabilityStats `protobuf:"bytes,1,rep,name=capability_stats,json=capabilityStats" json:"capability_stats,omitempty"` 661 ModuleInfo []*ModuleInfo `protobuf:"bytes,2,rep,name=module_info,json=moduleInfo" json:"module_info,omitempty"` 662 } 663 664 func (x *CapabilityStatList) Reset() { 665 *x = CapabilityStatList{} 666 if protoimpl.UnsafeEnabled { 667 mi := &file_capability_proto_msgTypes[7] 668 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 669 ms.StoreMessageInfo(mi) 670 } 671 } 672 673 func (x *CapabilityStatList) String() string { 674 return protoimpl.X.MessageStringOf(x) 675 } 676 677 func (*CapabilityStatList) ProtoMessage() {} 678 679 func (x *CapabilityStatList) ProtoReflect() protoreflect.Message { 680 mi := &file_capability_proto_msgTypes[7] 681 if protoimpl.UnsafeEnabled && x != nil { 682 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 683 if ms.LoadMessageInfo() == nil { 684 ms.StoreMessageInfo(mi) 685 } 686 return ms 687 } 688 return mi.MessageOf(x) 689 } 690 691 // Deprecated: Use CapabilityStatList.ProtoReflect.Descriptor instead. 692 func (*CapabilityStatList) Descriptor() ([]byte, []int) { 693 return file_capability_proto_rawDescGZIP(), []int{7} 694 } 695 696 func (x *CapabilityStatList) GetCapabilityStats() []*CapabilityStats { 697 if x != nil { 698 return x.CapabilityStats 699 } 700 return nil 701 } 702 703 func (x *CapabilityStatList) GetModuleInfo() []*ModuleInfo { 704 if x != nil { 705 return x.ModuleInfo 706 } 707 return nil 708 } 709 710 type Function_Site struct { 711 state protoimpl.MessageState 712 sizeCache protoimpl.SizeCache 713 unknownFields protoimpl.UnknownFields 714 715 Filename *string `protobuf:"bytes,1,opt,name=filename" json:"filename,omitempty"` 716 Line *int64 `protobuf:"varint,2,opt,name=line" json:"line,omitempty"` 717 Column *int64 `protobuf:"varint,3,opt,name=column" json:"column,omitempty"` 718 } 719 720 func (x *Function_Site) Reset() { 721 *x = Function_Site{} 722 if protoimpl.UnsafeEnabled { 723 mi := &file_capability_proto_msgTypes[8] 724 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 725 ms.StoreMessageInfo(mi) 726 } 727 } 728 729 func (x *Function_Site) String() string { 730 return protoimpl.X.MessageStringOf(x) 731 } 732 733 func (*Function_Site) ProtoMessage() {} 734 735 func (x *Function_Site) ProtoReflect() protoreflect.Message { 736 mi := &file_capability_proto_msgTypes[8] 737 if protoimpl.UnsafeEnabled && x != nil { 738 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 739 if ms.LoadMessageInfo() == nil { 740 ms.StoreMessageInfo(mi) 741 } 742 return ms 743 } 744 return mi.MessageOf(x) 745 } 746 747 // Deprecated: Use Function_Site.ProtoReflect.Descriptor instead. 748 func (*Function_Site) Descriptor() ([]byte, []int) { 749 return file_capability_proto_rawDescGZIP(), []int{1, 0} 750 } 751 752 func (x *Function_Site) GetFilename() string { 753 if x != nil && x.Filename != nil { 754 return *x.Filename 755 } 756 return "" 757 } 758 759 func (x *Function_Site) GetLine() int64 { 760 if x != nil && x.Line != nil { 761 return *x.Line 762 } 763 return 0 764 } 765 766 func (x *Function_Site) GetColumn() int64 { 767 if x != nil && x.Column != nil { 768 return *x.Column 769 } 770 return 0 771 } 772 773 var File_capability_proto protoreflect.FileDescriptor 774 775 var file_capability_proto_rawDesc = []byte{ 776 0x0a, 0x10, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 777 0x74, 0x6f, 0x12, 0x0e, 0x63, 0x61, 0x70, 0x73, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 778 0x74, 0x6f, 0x22, 0xa2, 0x02, 0x0a, 0x0e, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 779 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 780 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x61, 0x63, 781 0x6b, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x0a, 0x63, 0x61, 0x70, 0x61, 782 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x63, 783 0x61, 0x70, 0x73, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x61, 784 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0a, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 785 0x6c, 0x69, 0x74, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x64, 0x65, 0x70, 0x5f, 0x70, 0x61, 0x74, 0x68, 786 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x70, 0x50, 0x61, 0x74, 0x68, 0x12, 787 0x2c, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 788 0x63, 0x61, 0x70, 0x73, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x46, 789 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x1f, 0x0a, 790 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x04, 0x20, 0x01, 791 0x28, 0x09, 0x52, 0x0a, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x44, 0x69, 0x72, 0x12, 0x47, 792 0x0a, 0x0f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 793 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x63, 0x61, 0x70, 0x73, 0x6c, 0x6f, 794 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 795 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0e, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 796 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x22, 0xa1, 0x01, 0x0a, 0x08, 0x46, 0x75, 0x6e, 0x63, 797 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 798 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x31, 0x0a, 0x04, 0x73, 0x69, 0x74, 0x65, 799 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x61, 0x70, 0x73, 0x6c, 0x6f, 0x63, 800 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 801 0x2e, 0x53, 0x69, 0x74, 0x65, 0x52, 0x04, 0x73, 0x69, 0x74, 0x65, 0x1a, 0x4e, 0x0a, 0x04, 0x53, 802 0x69, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 803 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 804 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x6c, 805 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x03, 0x20, 806 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x22, 0x3a, 0x0a, 0x0a, 0x4d, 807 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 808 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x18, 0x0a, 809 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 810 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x46, 0x0a, 0x0b, 0x50, 0x61, 0x63, 0x6b, 0x61, 811 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 812 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x67, 813 0x6e, 0x6f, 0x72, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 814 0x09, 0x52, 0x0c, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x22, 815 0xda, 0x01, 0x0a, 0x12, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x49, 0x6e, 816 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x47, 0x0a, 0x0f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 817 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 818 0x1e, 0x2e, 0x63, 0x61, 0x70, 0x73, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 819 0x2e, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 820 0x0e, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 821 0x3b, 0x0a, 0x0b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 822 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x61, 0x70, 0x73, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 823 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 824 0x52, 0x0a, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3e, 0x0a, 0x0c, 825 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x03, 826 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x61, 0x70, 0x73, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 827 0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 828 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xff, 0x01, 0x0a, 829 0x13, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x75, 0x6e, 0x74, 830 0x4c, 0x69, 0x73, 0x74, 0x12, 0x66, 0x0a, 0x11, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 831 0x74, 0x79, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 832 0x39, 0x2e, 0x63, 0x61, 0x70, 0x73, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 833 0x2e, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x75, 0x6e, 0x74, 834 0x4c, 0x69, 0x73, 0x74, 0x2e, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x43, 835 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x10, 0x63, 0x61, 0x70, 0x61, 836 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 837 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x03, 0x28, 838 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x61, 0x70, 0x73, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 839 0x74, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x6d, 840 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x1a, 0x43, 0x0a, 0x15, 0x43, 0x61, 0x70, 841 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x45, 0x6e, 0x74, 842 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 843 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 844 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x98, 845 0x02, 0x0a, 0x0f, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x53, 0x74, 0x61, 846 0x74, 0x73, 0x12, 0x3a, 0x0a, 0x0a, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 847 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x63, 0x61, 0x70, 0x73, 0x6c, 0x6f, 0x63, 848 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 849 0x74, 0x79, 0x52, 0x0a, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x20, 850 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 851 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 852 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 853 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x43, 0x6f, 854 0x75, 0x6e, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 855 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x74, 856 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x43, 857 0x0a, 0x10, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x5f, 0x63, 0x61, 0x6c, 0x6c, 0x70, 0x61, 858 0x74, 0x68, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x61, 0x70, 0x73, 0x6c, 859 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 860 0x6f, 0x6e, 0x52, 0x0f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x43, 0x61, 0x6c, 0x6c, 0x70, 861 0x61, 0x74, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 862 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x9d, 0x01, 0x0a, 0x12, 0x43, 0x61, 863 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x53, 0x74, 0x61, 0x74, 0x4c, 0x69, 0x73, 0x74, 864 0x12, 0x4a, 0x0a, 0x10, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x73, 865 0x74, 0x61, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x61, 0x70, 866 0x73, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x61, 0x70, 0x61, 867 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x0f, 0x63, 0x61, 0x70, 868 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 869 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x03, 0x28, 870 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x61, 0x70, 0x73, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 871 0x74, 0x6f, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x6d, 872 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x2a, 0xa6, 0x03, 0x0a, 0x0a, 0x43, 0x61, 873 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x16, 0x43, 0x41, 0x50, 0x41, 874 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 875 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c, 0x49, 876 0x54, 0x59, 0x5f, 0x53, 0x41, 0x46, 0x45, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x43, 0x41, 0x50, 877 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x53, 0x10, 0x02, 0x12, 878 0x16, 0x0a, 0x12, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x4e, 0x45, 879 0x54, 0x57, 0x4f, 0x52, 0x4b, 0x10, 0x03, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x41, 0x50, 0x41, 0x42, 880 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x52, 0x55, 0x4e, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x04, 0x12, 881 0x20, 0x0a, 0x1c, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x52, 0x45, 882 0x41, 0x44, 0x5f, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x10, 883 0x05, 0x12, 0x22, 0x0a, 0x1e, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 884 0x4d, 0x4f, 0x44, 0x49, 0x46, 0x59, 0x5f, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x5f, 0x53, 0x54, 885 0x41, 0x54, 0x45, 0x10, 0x06, 0x12, 0x1f, 0x0a, 0x1b, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c, 886 0x49, 0x54, 0x59, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x59, 887 0x53, 0x54, 0x45, 0x4d, 0x10, 0x07, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 888 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x5f, 0x43, 0x41, 0x4c, 0x4c, 889 0x53, 0x10, 0x08, 0x12, 0x22, 0x0a, 0x1e, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, 890 0x59, 0x5f, 0x41, 0x52, 0x42, 0x49, 0x54, 0x52, 0x41, 0x52, 0x59, 0x5f, 0x45, 0x58, 0x45, 0x43, 891 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x09, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x41, 0x50, 0x41, 0x42, 892 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x43, 0x47, 0x4f, 0x10, 0x0a, 0x12, 0x19, 0x0a, 0x15, 0x43, 893 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x55, 0x4e, 0x41, 0x4e, 0x41, 0x4c, 894 0x59, 0x5a, 0x45, 0x44, 0x10, 0x0b, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 895 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x41, 0x46, 0x45, 0x5f, 0x50, 0x4f, 0x49, 0x4e, 896 0x54, 0x45, 0x52, 0x10, 0x0c, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c, 897 0x49, 0x54, 0x59, 0x5f, 0x52, 0x45, 0x46, 0x4c, 0x45, 0x43, 0x54, 0x10, 0x0d, 0x12, 0x13, 0x0a, 898 0x0f, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x45, 0x58, 0x45, 0x43, 899 0x10, 0x0e, 0x2a, 0x6d, 0x0a, 0x0e, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 900 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x1b, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c, 0x49, 901 0x54, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 902 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c, 903 0x49, 0x54, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x10, 904 0x01, 0x12, 0x1e, 0x0a, 0x1a, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 905 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x49, 0x54, 0x49, 0x56, 0x45, 0x10, 906 0x02, 0x42, 0x22, 0x5a, 0x20, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 907 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x61, 0x70, 0x73, 0x6c, 0x6f, 0x63, 0x6b, 0x2f, 908 0x70, 0x72, 0x6f, 0x74, 0x6f, 909 } 910 911 var ( 912 file_capability_proto_rawDescOnce sync.Once 913 file_capability_proto_rawDescData = file_capability_proto_rawDesc 914 ) 915 916 func file_capability_proto_rawDescGZIP() []byte { 917 file_capability_proto_rawDescOnce.Do(func() { 918 file_capability_proto_rawDescData = protoimpl.X.CompressGZIP(file_capability_proto_rawDescData) 919 }) 920 return file_capability_proto_rawDescData 921 } 922 923 var file_capability_proto_enumTypes = make([]protoimpl.EnumInfo, 2) 924 var file_capability_proto_msgTypes = make([]protoimpl.MessageInfo, 10) 925 var file_capability_proto_goTypes = []interface{}{ 926 (Capability)(0), // 0: capslock.proto.Capability 927 (CapabilityType)(0), // 1: capslock.proto.CapabilityType 928 (*CapabilityInfo)(nil), // 2: capslock.proto.CapabilityInfo 929 (*Function)(nil), // 3: capslock.proto.Function 930 (*ModuleInfo)(nil), // 4: capslock.proto.ModuleInfo 931 (*PackageInfo)(nil), // 5: capslock.proto.PackageInfo 932 (*CapabilityInfoList)(nil), // 6: capslock.proto.CapabilityInfoList 933 (*CapabilityCountList)(nil), // 7: capslock.proto.CapabilityCountList 934 (*CapabilityStats)(nil), // 8: capslock.proto.CapabilityStats 935 (*CapabilityStatList)(nil), // 9: capslock.proto.CapabilityStatList 936 (*Function_Site)(nil), // 10: capslock.proto.Function.Site 937 nil, // 11: capslock.proto.CapabilityCountList.CapabilityCountsEntry 938 } 939 var file_capability_proto_depIdxs = []int32{ 940 0, // 0: capslock.proto.CapabilityInfo.capability:type_name -> capslock.proto.Capability 941 3, // 1: capslock.proto.CapabilityInfo.path:type_name -> capslock.proto.Function 942 1, // 2: capslock.proto.CapabilityInfo.capability_type:type_name -> capslock.proto.CapabilityType 943 10, // 3: capslock.proto.Function.site:type_name -> capslock.proto.Function.Site 944 2, // 4: capslock.proto.CapabilityInfoList.capability_info:type_name -> capslock.proto.CapabilityInfo 945 4, // 5: capslock.proto.CapabilityInfoList.module_info:type_name -> capslock.proto.ModuleInfo 946 5, // 6: capslock.proto.CapabilityInfoList.package_info:type_name -> capslock.proto.PackageInfo 947 11, // 7: capslock.proto.CapabilityCountList.capability_counts:type_name -> capslock.proto.CapabilityCountList.CapabilityCountsEntry 948 4, // 8: capslock.proto.CapabilityCountList.module_info:type_name -> capslock.proto.ModuleInfo 949 0, // 9: capslock.proto.CapabilityStats.capability:type_name -> capslock.proto.Capability 950 3, // 10: capslock.proto.CapabilityStats.example_callpath:type_name -> capslock.proto.Function 951 8, // 11: capslock.proto.CapabilityStatList.capability_stats:type_name -> capslock.proto.CapabilityStats 952 4, // 12: capslock.proto.CapabilityStatList.module_info:type_name -> capslock.proto.ModuleInfo 953 13, // [13:13] is the sub-list for method output_type 954 13, // [13:13] is the sub-list for method input_type 955 13, // [13:13] is the sub-list for extension type_name 956 13, // [13:13] is the sub-list for extension extendee 957 0, // [0:13] is the sub-list for field type_name 958 } 959 960 func init() { file_capability_proto_init() } 961 func file_capability_proto_init() { 962 if File_capability_proto != nil { 963 return 964 } 965 if !protoimpl.UnsafeEnabled { 966 file_capability_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 967 switch v := v.(*CapabilityInfo); i { 968 case 0: 969 return &v.state 970 case 1: 971 return &v.sizeCache 972 case 2: 973 return &v.unknownFields 974 default: 975 return nil 976 } 977 } 978 file_capability_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 979 switch v := v.(*Function); i { 980 case 0: 981 return &v.state 982 case 1: 983 return &v.sizeCache 984 case 2: 985 return &v.unknownFields 986 default: 987 return nil 988 } 989 } 990 file_capability_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 991 switch v := v.(*ModuleInfo); i { 992 case 0: 993 return &v.state 994 case 1: 995 return &v.sizeCache 996 case 2: 997 return &v.unknownFields 998 default: 999 return nil 1000 } 1001 } 1002 file_capability_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1003 switch v := v.(*PackageInfo); i { 1004 case 0: 1005 return &v.state 1006 case 1: 1007 return &v.sizeCache 1008 case 2: 1009 return &v.unknownFields 1010 default: 1011 return nil 1012 } 1013 } 1014 file_capability_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1015 switch v := v.(*CapabilityInfoList); i { 1016 case 0: 1017 return &v.state 1018 case 1: 1019 return &v.sizeCache 1020 case 2: 1021 return &v.unknownFields 1022 default: 1023 return nil 1024 } 1025 } 1026 file_capability_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1027 switch v := v.(*CapabilityCountList); i { 1028 case 0: 1029 return &v.state 1030 case 1: 1031 return &v.sizeCache 1032 case 2: 1033 return &v.unknownFields 1034 default: 1035 return nil 1036 } 1037 } 1038 file_capability_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1039 switch v := v.(*CapabilityStats); i { 1040 case 0: 1041 return &v.state 1042 case 1: 1043 return &v.sizeCache 1044 case 2: 1045 return &v.unknownFields 1046 default: 1047 return nil 1048 } 1049 } 1050 file_capability_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1051 switch v := v.(*CapabilityStatList); i { 1052 case 0: 1053 return &v.state 1054 case 1: 1055 return &v.sizeCache 1056 case 2: 1057 return &v.unknownFields 1058 default: 1059 return nil 1060 } 1061 } 1062 file_capability_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1063 switch v := v.(*Function_Site); i { 1064 case 0: 1065 return &v.state 1066 case 1: 1067 return &v.sizeCache 1068 case 2: 1069 return &v.unknownFields 1070 default: 1071 return nil 1072 } 1073 } 1074 } 1075 type x struct{} 1076 out := protoimpl.TypeBuilder{ 1077 File: protoimpl.DescBuilder{ 1078 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1079 RawDescriptor: file_capability_proto_rawDesc, 1080 NumEnums: 2, 1081 NumMessages: 10, 1082 NumExtensions: 0, 1083 NumServices: 0, 1084 }, 1085 GoTypes: file_capability_proto_goTypes, 1086 DependencyIndexes: file_capability_proto_depIdxs, 1087 EnumInfos: file_capability_proto_enumTypes, 1088 MessageInfos: file_capability_proto_msgTypes, 1089 }.Build() 1090 File_capability_proto = out.File 1091 file_capability_proto_rawDesc = nil 1092 file_capability_proto_goTypes = nil 1093 file_capability_proto_depIdxs = nil 1094 }