// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v3.21.12
// source: models.proto
package models
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Ecosystem int32
const (
Ecosystem_UNKNOWN_ECOSYSTEM Ecosystem = 0
Ecosystem_Maven Ecosystem = 1
Ecosystem_RubyGems Ecosystem = 2
Ecosystem_Go Ecosystem = 3
Ecosystem_Npm Ecosystem = 4
Ecosystem_PyPI Ecosystem = 5
Ecosystem_Cargo Ecosystem = 6
Ecosystem_NuGet Ecosystem = 7
Ecosystem_Packagist Ecosystem = 8
Ecosystem_Hex Ecosystem = 9
Ecosystem_Pub Ecosystem = 10
Ecosystem_CycloneDxSBOM Ecosystem = 11
Ecosystem_SpdxSBOM Ecosystem = 12
)
// Enum value maps for Ecosystem.
var (
Ecosystem_name = map[int32]string{
0: "UNKNOWN_ECOSYSTEM",
1: "Maven",
2: "RubyGems",
3: "Go",
4: "Npm",
5: "PyPI",
6: "Cargo",
7: "NuGet",
8: "Packagist",
9: "Hex",
10: "Pub",
11: "CycloneDxSBOM",
12: "SpdxSBOM",
}
Ecosystem_value = map[string]int32{
"UNKNOWN_ECOSYSTEM": 0,
"Maven": 1,
"RubyGems": 2,
"Go": 3,
"Npm": 4,
"PyPI": 5,
"Cargo": 6,
"NuGet": 7,
"Packagist": 8,
"Hex": 9,
"Pub": 10,
"CycloneDxSBOM": 11,
"SpdxSBOM": 12,
}
)
func (x Ecosystem) Enum() *Ecosystem {
p := new(Ecosystem)
*p = x
return p
}
func (x Ecosystem) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Ecosystem) Descriptor() protoreflect.EnumDescriptor {
return file_models_proto_enumTypes[0].Descriptor()
}
func (Ecosystem) Type() protoreflect.EnumType {
return &file_models_proto_enumTypes[0]
}
func (x Ecosystem) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Ecosystem.Descriptor instead.
func (Ecosystem) EnumDescriptor() ([]byte, []int) {
return file_models_proto_rawDescGZIP(), []int{0}
}
type Package struct {
state protoimpl.MessageState `protogen:"open.v1"`
Ecosystem Ecosystem `protobuf:"varint,1,opt,name=ecosystem,proto3,enum=Ecosystem" json:"ecosystem,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Package) Reset() {
*x = Package{}
mi := &file_models_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Package) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Package) ProtoMessage() {}
func (x *Package) ProtoReflect() protoreflect.Message {
mi := &file_models_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Package.ProtoReflect.Descriptor instead.
func (*Package) Descriptor() ([]byte, []int) {
return file_models_proto_rawDescGZIP(), []int{0}
}
func (x *Package) GetEcosystem() Ecosystem {
if x != nil {
return x.Ecosystem
}
return Ecosystem_UNKNOWN_ECOSYSTEM
}
func (x *Package) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Package) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
type PackageManifest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Ecosystem Ecosystem `protobuf:"varint,1,opt,name=ecosystem,proto3,enum=Ecosystem" json:"ecosystem,omitempty"`
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
Packages []*Package `protobuf:"bytes,3,rep,name=packages,proto3" json:"packages,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PackageManifest) Reset() {
*x = PackageManifest{}
mi := &file_models_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PackageManifest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PackageManifest) ProtoMessage() {}
func (x *PackageManifest) ProtoReflect() protoreflect.Message {
mi := &file_models_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PackageManifest.ProtoReflect.Descriptor instead.
func (*PackageManifest) Descriptor() ([]byte, []int) {
return file_models_proto_rawDescGZIP(), []int{1}
}
func (x *PackageManifest) GetEcosystem() Ecosystem {
if x != nil {
return x.Ecosystem
}
return Ecosystem_UNKNOWN_ECOSYSTEM
}
func (x *PackageManifest) GetPath() string {
if x != nil {
return x.Path
}
return ""
}
func (x *PackageManifest) GetPackages() []*Package {
if x != nil {
return x.Packages
}
return nil
}
var File_models_proto protoreflect.FileDescriptor
const file_models_proto_rawDesc = "" +
"\n" +
"\fmodels.proto\"a\n" +
"\aPackage\x12(\n" +
"\tecosystem\x18\x01 \x01(\x0e2\n" +
".EcosystemR\tecosystem\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12\x18\n" +
"\aversion\x18\x03 \x01(\tR\aversion\"u\n" +
"\x0fPackageManifest\x12(\n" +
"\tecosystem\x18\x01 \x01(\x0e2\n" +
".EcosystemR\tecosystem\x12\x12\n" +
"\x04path\x18\x02 \x01(\tR\x04path\x12$\n" +
"\bpackages\x18\x03 \x03(\v2\b.PackageR\bpackages*\xae\x01\n" +
"\tEcosystem\x12\x15\n" +
"\x11UNKNOWN_ECOSYSTEM\x10\x00\x12\t\n" +
"\x05Maven\x10\x01\x12\f\n" +
"\bRubyGems\x10\x02\x12\x06\n" +
"\x02Go\x10\x03\x12\a\n" +
"\x03Npm\x10\x04\x12\b\n" +
"\x04PyPI\x10\x05\x12\t\n" +
"\x05Cargo\x10\x06\x12\t\n" +
"\x05NuGet\x10\a\x12\r\n" +
"\tPackagist\x10\b\x12\a\n" +
"\x03Hex\x10\t\x12\a\n" +
"\x03Pub\x10\n" +
"\x12\x11\n" +
"\rCycloneDxSBOM\x10\v\x12\f\n" +
"\bSpdxSBOM\x10\fB#Z!github.com/safedep/vet/gen/modelsb\x06proto3"
var (
file_models_proto_rawDescOnce sync.Once
file_models_proto_rawDescData []byte
)
func file_models_proto_rawDescGZIP() []byte {
file_models_proto_rawDescOnce.Do(func() {
file_models_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_models_proto_rawDesc), len(file_models_proto_rawDesc)))
})
return file_models_proto_rawDescData
}
var file_models_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_models_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_models_proto_goTypes = []any{
(Ecosystem)(0), // 0: Ecosystem
(*Package)(nil), // 1: Package
(*PackageManifest)(nil), // 2: PackageManifest
}
var file_models_proto_depIdxs = []int32{
0, // 0: Package.ecosystem:type_name -> Ecosystem
0, // 1: PackageManifest.ecosystem:type_name -> Ecosystem
1, // 2: PackageManifest.packages:type_name -> Package
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_models_proto_init() }
func file_models_proto_init() {
if File_models_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_models_proto_rawDesc), len(file_models_proto_rawDesc)),
NumEnums: 1,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_models_proto_goTypes,
DependencyIndexes: file_models_proto_depIdxs,
EnumInfos: file_models_proto_enumTypes,
MessageInfos: file_models_proto_msgTypes,
}.Build()
File_models_proto = out.File
file_models_proto_goTypes = nil
file_models_proto_depIdxs = nil
}