// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v3.21.12
// source: violations.proto
package violations
import (
checks "github.com/safedep/vet/gen/checks"
filtersuite "github.com/safedep/vet/gen/filtersuite"
models "github.com/safedep/vet/gen/models"
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 Violation struct {
state protoimpl.MessageState `protogen:"open.v1"`
CheckType checks.CheckType `protobuf:"varint,1,opt,name=check_type,json=checkType,proto3,enum=CheckType" json:"check_type,omitempty"`
Package *models.Package `protobuf:"bytes,2,opt,name=package,proto3" json:"package,omitempty"`
Filter *filtersuite.Filter `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
Extra map[string]string `protobuf:"bytes,4,rep,name=extra,proto3" json:"extra,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Violation) Reset() {
*x = Violation{}
mi := &file_violations_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Violation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Violation) ProtoMessage() {}
func (x *Violation) ProtoReflect() protoreflect.Message {
mi := &file_violations_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 Violation.ProtoReflect.Descriptor instead.
func (*Violation) Descriptor() ([]byte, []int) {
return file_violations_proto_rawDescGZIP(), []int{0}
}
func (x *Violation) GetCheckType() checks.CheckType {
if x != nil {
return x.CheckType
}
return checks.CheckType(0)
}
func (x *Violation) GetPackage() *models.Package {
if x != nil {
return x.Package
}
return nil
}
func (x *Violation) GetFilter() *filtersuite.Filter {
if x != nil {
return x.Filter
}
return nil
}
func (x *Violation) GetExtra() map[string]string {
if x != nil {
return x.Extra
}
return nil
}
var File_violations_proto protoreflect.FileDescriptor
const file_violations_proto_rawDesc = "" +
"\n" +
"\x10violations.proto\x1a\fmodels.proto\x1a\fchecks.proto\x1a\x17filter_suite_spec.proto\"\xe2\x01\n" +
"\tViolation\x12)\n" +
"\n" +
"check_type\x18\x01 \x01(\x0e2\n" +
".CheckTypeR\tcheckType\x12\"\n" +
"\apackage\x18\x02 \x01(\v2\b.PackageR\apackage\x12\x1f\n" +
"\x06filter\x18\x03 \x01(\v2\a.FilterR\x06filter\x12+\n" +
"\x05extra\x18\x04 \x03(\v2\x15.Violation.ExtraEntryR\x05extra\x1a8\n" +
"\n" +
"ExtraEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B'Z%github.com/safedep/vet/gen/violationsb\x06proto3"
var (
file_violations_proto_rawDescOnce sync.Once
file_violations_proto_rawDescData []byte
)
func file_violations_proto_rawDescGZIP() []byte {
file_violations_proto_rawDescOnce.Do(func() {
file_violations_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_violations_proto_rawDesc), len(file_violations_proto_rawDesc)))
})
return file_violations_proto_rawDescData
}
var file_violations_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_violations_proto_goTypes = []any{
(*Violation)(nil), // 0: Violation
nil, // 1: Violation.ExtraEntry
(checks.CheckType)(0), // 2: CheckType
(*models.Package)(nil), // 3: Package
(*filtersuite.Filter)(nil), // 4: Filter
}
var file_violations_proto_depIdxs = []int32{
2, // 0: Violation.check_type:type_name -> CheckType
3, // 1: Violation.package:type_name -> Package
4, // 2: Violation.filter:type_name -> Filter
1, // 3: Violation.extra:type_name -> Violation.ExtraEntry
4, // [4:4] is the sub-list for method output_type
4, // [4:4] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_violations_proto_init() }
func file_violations_proto_init() {
if File_violations_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_violations_proto_rawDesc), len(file_violations_proto_rawDesc)),
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_violations_proto_goTypes,
DependencyIndexes: file_violations_proto_depIdxs,
MessageInfos: file_violations_proto_msgTypes,
}.Build()
File_violations_proto = out.File
file_violations_proto_goTypes = nil
file_violations_proto_depIdxs = nil
}