// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v3.21.12
// source: exceptions_spec.proto
package exceptionsapi
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 Exception struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Ecosystem string `protobuf:"bytes,2,opt,name=ecosystem,proto3" json:"ecosystem,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
Expires string `protobuf:"bytes,5,opt,name=expires,proto3" json:"expires,omitempty"`
Pattern string `protobuf:"bytes,6,opt,name=pattern,proto3" json:"pattern,omitempty"` // To be used for special cases
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Exception) Reset() {
*x = Exception{}
mi := &file_exceptions_spec_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Exception) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Exception) ProtoMessage() {}
func (x *Exception) ProtoReflect() protoreflect.Message {
mi := &file_exceptions_spec_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 Exception.ProtoReflect.Descriptor instead.
func (*Exception) Descriptor() ([]byte, []int) {
return file_exceptions_spec_proto_rawDescGZIP(), []int{0}
}
func (x *Exception) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Exception) GetEcosystem() string {
if x != nil {
return x.Ecosystem
}
return ""
}
func (x *Exception) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Exception) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
func (x *Exception) GetExpires() string {
if x != nil {
return x.Expires
}
return ""
}
func (x *Exception) GetPattern() string {
if x != nil {
return x.Pattern
}
return ""
}
type ExceptionSuite struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
Exceptions []*Exception `protobuf:"bytes,3,rep,name=exceptions,proto3" json:"exceptions,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ExceptionSuite) Reset() {
*x = ExceptionSuite{}
mi := &file_exceptions_spec_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ExceptionSuite) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExceptionSuite) ProtoMessage() {}
func (x *ExceptionSuite) ProtoReflect() protoreflect.Message {
mi := &file_exceptions_spec_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 ExceptionSuite.ProtoReflect.Descriptor instead.
func (*ExceptionSuite) Descriptor() ([]byte, []int) {
return file_exceptions_spec_proto_rawDescGZIP(), []int{1}
}
func (x *ExceptionSuite) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *ExceptionSuite) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *ExceptionSuite) GetExceptions() []*Exception {
if x != nil {
return x.Exceptions
}
return nil
}
var File_exceptions_spec_proto protoreflect.FileDescriptor
const file_exceptions_spec_proto_rawDesc = "" +
"\n" +
"\x15exceptions_spec.proto\"\x9b\x01\n" +
"\tException\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1c\n" +
"\tecosystem\x18\x02 \x01(\tR\tecosystem\x12\x12\n" +
"\x04name\x18\x03 \x01(\tR\x04name\x12\x18\n" +
"\aversion\x18\x04 \x01(\tR\aversion\x12\x18\n" +
"\aexpires\x18\x05 \x01(\tR\aexpires\x12\x18\n" +
"\apattern\x18\x06 \x01(\tR\apattern\"r\n" +
"\x0eExceptionSuite\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12 \n" +
"\vdescription\x18\x02 \x01(\tR\vdescription\x12*\n" +
"\n" +
"exceptions\x18\x03 \x03(\v2\n" +
".ExceptionR\n" +
"exceptionsB*Z(github.com/safedep/vet/gen/exceptionsapib\x06proto3"
var (
file_exceptions_spec_proto_rawDescOnce sync.Once
file_exceptions_spec_proto_rawDescData []byte
)
func file_exceptions_spec_proto_rawDescGZIP() []byte {
file_exceptions_spec_proto_rawDescOnce.Do(func() {
file_exceptions_spec_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_exceptions_spec_proto_rawDesc), len(file_exceptions_spec_proto_rawDesc)))
})
return file_exceptions_spec_proto_rawDescData
}
var file_exceptions_spec_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_exceptions_spec_proto_goTypes = []any{
(*Exception)(nil), // 0: Exception
(*ExceptionSuite)(nil), // 1: ExceptionSuite
}
var file_exceptions_spec_proto_depIdxs = []int32{
0, // 0: ExceptionSuite.exceptions:type_name -> Exception
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_exceptions_spec_proto_init() }
func file_exceptions_spec_proto_init() {
if File_exceptions_spec_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_exceptions_spec_proto_rawDesc), len(file_exceptions_spec_proto_rawDesc)),
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_exceptions_spec_proto_goTypes,
DependencyIndexes: file_exceptions_spec_proto_depIdxs,
MessageInfos: file_exceptions_spec_proto_msgTypes,
}.Build()
File_exceptions_spec_proto = out.File
file_exceptions_spec_proto_goTypes = nil
file_exceptions_spec_proto_depIdxs = nil
}