From 690617e861e45d3f4905ef8e2dbcb22a58792f7b Mon Sep 17 00:00:00 2001 From: Gunesh Shanbhag Date: Wed, 20 Nov 2024 14:25:11 +0530 Subject: [PATCH 1/4] feat: add cvssv4 score, vector in rpc struct return cvssv4 score, vector when returning scan response in trivy. --- rpc/common/service.pb.go | 336 +++++++++++++++++++++------------------ rpc/common/service.proto | 2 + 2 files changed, 180 insertions(+), 158 deletions(-) diff --git a/rpc/common/service.pb.go b/rpc/common/service.pb.go index c8290cc52818..88ae0e69fdf9 100644 --- a/rpc/common/service.pb.go +++ b/rpc/common/service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.0 -// protoc v3.19.4 +// protoc-gen-go v1.34.2 +// protoc v3.17.3 // source: rpc/common/service.proto package common @@ -1611,10 +1611,12 @@ type CVSS struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - V2Vector string `protobuf:"bytes,1,opt,name=v2_vector,json=v2Vector,proto3" json:"v2_vector,omitempty"` - V3Vector string `protobuf:"bytes,2,opt,name=v3_vector,json=v3Vector,proto3" json:"v3_vector,omitempty"` - V2Score float64 `protobuf:"fixed64,3,opt,name=v2_score,json=v2Score,proto3" json:"v2_score,omitempty"` - V3Score float64 `protobuf:"fixed64,4,opt,name=v3_score,json=v3Score,proto3" json:"v3_score,omitempty"` + V2Vector string `protobuf:"bytes,1,opt,name=v2_vector,json=v2Vector,proto3" json:"v2_vector,omitempty"` + V3Vector string `protobuf:"bytes,2,opt,name=v3_vector,json=v3Vector,proto3" json:"v3_vector,omitempty"` + V2Score float64 `protobuf:"fixed64,3,opt,name=v2_score,json=v2Score,proto3" json:"v2_score,omitempty"` + V3Score float64 `protobuf:"fixed64,4,opt,name=v3_score,json=v3Score,proto3" json:"v3_score,omitempty"` + V40Vector string `protobuf:"bytes,5,opt,name=v40_vector,json=v40Vector,proto3" json:"v40_vector,omitempty"` + V40Score float64 `protobuf:"fixed64,6,opt,name=v40_score,json=v40Score,proto3" json:"v40_score,omitempty"` } func (x *CVSS) Reset() { @@ -1677,6 +1679,20 @@ func (x *CVSS) GetV3Score() float64 { return 0 } +func (x *CVSS) GetV40Vector() string { + if x != nil { + return x.V40Vector + } + return "" +} + +func (x *CVSS) GetV40Score() float64 { + if x != nil { + return x.V40Score + } + return 0 +} + type CustomResource struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2655,131 +2671,135 @@ var file_rpc_common_service_proto_rawDesc = []byte{ 0x65, 0x6e, 0x64, 0x4c, 0x69, 0x6e, 0x65, 0x12, 0x26, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x72, 0x69, 0x76, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, - 0x76, 0x0a, 0x04, 0x43, 0x56, 0x53, 0x53, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x32, 0x5f, 0x76, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x32, 0x56, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x33, 0x5f, 0x76, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x33, 0x56, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x12, 0x19, 0x0a, 0x08, 0x76, 0x32, 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x01, 0x52, 0x07, 0x76, 0x32, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x19, 0x0a, 0x08, - 0x76, 0x33, 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, - 0x76, 0x33, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x22, 0x98, 0x01, 0x0a, 0x0e, 0x43, 0x75, 0x73, 0x74, - 0x6f, 0x6d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1b, - 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x29, 0x0a, 0x05, 0x6c, - 0x61, 0x79, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x72, 0x69, - 0x76, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x52, - 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x64, 0x61, - 0x74, 0x61, 0x22, 0xf3, 0x01, 0x0a, 0x04, 0x4c, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, - 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6e, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x19, 0x0a, - 0x08, 0x69, 0x73, 0x5f, 0x63, 0x61, 0x75, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x07, 0x69, 0x73, 0x43, 0x61, 0x75, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x6e, 0x6e, 0x6f, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x6e, - 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x72, 0x75, 0x6e, - 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x74, 0x72, 0x75, - 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x68, 0x69, 0x67, 0x68, 0x6c, 0x69, - 0x67, 0x68, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x68, 0x69, 0x67, - 0x68, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x65, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x69, 0x72, 0x73, - 0x74, 0x5f, 0x63, 0x61, 0x75, 0x73, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x66, - 0x69, 0x72, 0x73, 0x74, 0x43, 0x61, 0x75, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x61, 0x73, - 0x74, 0x5f, 0x63, 0x61, 0x75, 0x73, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x6c, - 0x61, 0x73, 0x74, 0x43, 0x61, 0x75, 0x73, 0x65, 0x22, 0x30, 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, - 0x12, 0x28, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x12, 0x2e, 0x74, 0x72, 0x69, 0x76, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4c, - 0x69, 0x6e, 0x65, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x22, 0x9f, 0x02, 0x0a, 0x0d, 0x53, - 0x65, 0x63, 0x72, 0x65, 0x74, 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x17, 0x0a, 0x07, - 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, - 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, - 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, - 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, - 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, - 0x74, 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6c, 0x69, 0x6e, - 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4c, 0x69, - 0x6e, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x4c, 0x69, 0x6e, 0x65, 0x12, 0x26, 0x0a, - 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x72, - 0x69, 0x76, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, - 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x18, 0x08, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x29, 0x0a, 0x05, 0x6c, - 0x61, 0x79, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x72, 0x69, - 0x76, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x52, - 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0a, 0x22, 0x5d, 0x0a, 0x06, - 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x70, 0x61, - 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x70, 0x61, - 0x74, 0x68, 0x12, 0x37, 0x0a, 0x08, 0x66, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x72, 0x69, 0x76, 0x79, 0x2e, 0x63, 0x6f, 0x6d, - 0x6d, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, - 0x67, 0x52, 0x08, 0x66, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x99, 0x02, 0x0a, 0x0f, - 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x12, - 0x32, 0x0a, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x16, 0x2e, 0x74, 0x72, 0x69, 0x76, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, - 0x2e, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, - 0x69, 0x74, 0x79, 0x12, 0x3e, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x74, 0x72, 0x69, 0x76, 0x79, 0x2e, 0x63, 0x6f, - 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x43, 0x61, 0x74, 0x65, - 0x67, 0x6f, 0x72, 0x79, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, - 0x6f, 0x72, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6b, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6b, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, - 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x02, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, - 0x69, 0x6e, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x22, 0xed, 0x01, 0x0a, 0x0b, 0x4c, 0x69, 0x63, 0x65, - 0x6e, 0x73, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x41, 0x0a, 0x0c, 0x6c, 0x69, 0x63, 0x65, 0x6e, - 0x73, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, - 0x74, 0x72, 0x69, 0x76, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x63, - 0x65, 0x6e, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x0b, 0x6c, - 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, - 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, - 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6b, 0x67, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6b, 0x67, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x08, 0x66, 0x69, 0x6e, 0x67, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x04, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x74, 0x72, 0x69, 0x76, 0x79, 0x2e, 0x63, 0x6f, 0x6d, - 0x6d, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x46, 0x69, 0x6e, 0x64, 0x69, - 0x6e, 0x67, 0x52, 0x08, 0x66, 0x69, 0x6e, 0x67, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x29, 0x0a, 0x05, - 0x6c, 0x61, 0x79, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x72, - 0x69, 0x76, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, - 0x52, 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x22, 0x98, 0x01, 0x0a, 0x0e, 0x4c, 0x69, 0x63, 0x65, - 0x6e, 0x73, 0x65, 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x3e, 0x0a, 0x08, 0x63, 0x61, - 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x74, - 0x72, 0x69, 0x76, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x63, 0x65, - 0x6e, 0x73, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x2e, 0x45, 0x6e, 0x75, 0x6d, - 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, - 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x02, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, - 0x6e, 0x6b, 0x22, 0x95, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x43, 0x61, - 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x22, 0x81, 0x01, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, - 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x0d, 0x0a, 0x09, 0x46, 0x4f, 0x52, 0x42, 0x49, 0x44, 0x44, 0x45, 0x4e, 0x10, 0x01, 0x12, - 0x0e, 0x0a, 0x0a, 0x52, 0x45, 0x53, 0x54, 0x52, 0x49, 0x43, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, - 0x0e, 0x0a, 0x0a, 0x52, 0x45, 0x43, 0x49, 0x50, 0x52, 0x4f, 0x43, 0x41, 0x4c, 0x10, 0x03, 0x12, - 0x0a, 0x0a, 0x06, 0x4e, 0x4f, 0x54, 0x49, 0x43, 0x45, 0x10, 0x04, 0x12, 0x0e, 0x0a, 0x0a, 0x50, - 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x56, 0x45, 0x10, 0x05, 0x12, 0x10, 0x0a, 0x0c, 0x55, - 0x4e, 0x45, 0x4e, 0x43, 0x55, 0x4d, 0x42, 0x45, 0x52, 0x45, 0x44, 0x10, 0x06, 0x12, 0x0b, 0x0a, - 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x07, 0x22, 0x4e, 0x0a, 0x0b, 0x4c, 0x69, - 0x63, 0x65, 0x6e, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0x3f, 0x0a, 0x04, 0x45, 0x6e, 0x75, - 0x6d, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, - 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x50, 0x4b, 0x47, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, - 0x48, 0x45, 0x41, 0x44, 0x45, 0x52, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x4c, 0x49, 0x43, 0x45, - 0x4e, 0x53, 0x45, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x10, 0x03, 0x2a, 0x44, 0x0a, 0x08, 0x53, 0x65, - 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, - 0x4e, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4c, 0x4f, 0x57, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, - 0x4d, 0x45, 0x44, 0x49, 0x55, 0x4d, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x49, 0x47, 0x48, - 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x52, 0x49, 0x54, 0x49, 0x43, 0x41, 0x4c, 0x10, 0x04, - 0x42, 0x31, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, - 0x71, 0x75, 0x61, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x74, 0x72, 0x69, 0x76, - 0x79, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x3b, 0x63, 0x6f, 0x6d, - 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0xb2, 0x01, 0x0a, 0x04, 0x43, 0x56, 0x53, 0x53, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x32, 0x5f, 0x76, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x32, 0x56, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x33, 0x5f, 0x76, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x33, 0x56, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x76, 0x32, 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x76, 0x32, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x19, 0x0a, + 0x08, 0x76, 0x33, 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x52, + 0x07, 0x76, 0x33, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x34, 0x30, 0x5f, + 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x34, + 0x30, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x34, 0x30, 0x5f, 0x73, + 0x63, 0x6f, 0x72, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x76, 0x34, 0x30, 0x53, + 0x63, 0x6f, 0x72, 0x65, 0x22, 0x98, 0x01, 0x0a, 0x0e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, + 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x66, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x29, 0x0a, 0x05, 0x6c, 0x61, 0x79, 0x65, + 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x72, 0x69, 0x76, 0x79, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x52, 0x05, 0x6c, 0x61, + 0x79, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, + 0xf3, 0x01, 0x0a, 0x04, 0x4c, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73, + 0x5f, 0x63, 0x61, 0x75, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73, + 0x43, 0x61, 0x75, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, + 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, + 0x74, 0x65, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x68, 0x69, 0x67, 0x68, 0x6c, 0x69, 0x67, 0x68, 0x74, + 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x68, 0x69, 0x67, 0x68, 0x6c, 0x69, + 0x67, 0x68, 0x74, 0x65, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x63, + 0x61, 0x75, 0x73, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x66, 0x69, 0x72, 0x73, + 0x74, 0x43, 0x61, 0x75, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, + 0x61, 0x75, 0x73, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x6c, 0x61, 0x73, 0x74, + 0x43, 0x61, 0x75, 0x73, 0x65, 0x22, 0x30, 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x28, 0x0a, + 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, + 0x72, 0x69, 0x76, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x6e, 0x65, + 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x22, 0x9f, 0x02, 0x0a, 0x0d, 0x53, 0x65, 0x63, 0x72, + 0x65, 0x74, 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x75, 0x6c, + 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, + 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x1a, + 0x0a, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, + 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, + 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4c, 0x69, 0x6e, 0x65, 0x12, + 0x19, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x4c, 0x69, 0x6e, 0x65, 0x12, 0x26, 0x0a, 0x04, 0x63, 0x6f, + 0x64, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x72, 0x69, 0x76, 0x79, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, + 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x29, 0x0a, 0x05, 0x6c, 0x61, 0x79, 0x65, + 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x72, 0x69, 0x76, 0x79, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x52, 0x05, 0x6c, 0x61, + 0x79, 0x65, 0x72, 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0a, 0x22, 0x5d, 0x0a, 0x06, 0x53, 0x65, 0x63, + 0x72, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x70, 0x61, 0x74, 0x68, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x70, 0x61, 0x74, 0x68, 0x12, + 0x37, 0x0a, 0x08, 0x66, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x72, 0x69, 0x76, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, + 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x08, + 0x66, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x99, 0x02, 0x0a, 0x0f, 0x44, 0x65, 0x74, + 0x65, 0x63, 0x74, 0x65, 0x64, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x08, + 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, + 0x2e, 0x74, 0x72, 0x69, 0x76, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x53, 0x65, + 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, + 0x12, 0x3e, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x74, 0x72, 0x69, 0x76, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, + 0x6e, 0x2e, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, + 0x79, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, + 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6b, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x70, 0x6b, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, + 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x66, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x02, + 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, + 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x74, 0x65, 0x78, 0x74, 0x22, 0xed, 0x01, 0x0a, 0x0b, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, + 0x46, 0x69, 0x6c, 0x65, 0x12, 0x41, 0x0a, 0x0c, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x74, 0x72, 0x69, + 0x76, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, + 0x65, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x0b, 0x6c, 0x69, 0x63, 0x65, + 0x6e, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, + 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, + 0x50, 0x61, 0x74, 0x68, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6b, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6b, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x38, 0x0a, 0x08, 0x66, 0x69, 0x6e, 0x67, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x74, 0x72, 0x69, 0x76, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, + 0x2e, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, + 0x08, 0x66, 0x69, 0x6e, 0x67, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x29, 0x0a, 0x05, 0x6c, 0x61, 0x79, + 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x72, 0x69, 0x76, 0x79, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x52, 0x05, 0x6c, + 0x61, 0x79, 0x65, 0x72, 0x22, 0x98, 0x01, 0x0a, 0x0e, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, + 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x3e, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, + 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x74, 0x72, 0x69, 0x76, + 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, + 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x08, 0x63, + 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, + 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, + 0x69, 0x6e, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x22, + 0x95, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, + 0x6f, 0x72, 0x79, 0x22, 0x81, 0x01, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x0f, 0x0a, 0x0b, + 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, + 0x09, 0x46, 0x4f, 0x52, 0x42, 0x49, 0x44, 0x44, 0x45, 0x4e, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, + 0x52, 0x45, 0x53, 0x54, 0x52, 0x49, 0x43, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, + 0x52, 0x45, 0x43, 0x49, 0x50, 0x52, 0x4f, 0x43, 0x41, 0x4c, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, + 0x4e, 0x4f, 0x54, 0x49, 0x43, 0x45, 0x10, 0x04, 0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x45, 0x52, 0x4d, + 0x49, 0x53, 0x53, 0x49, 0x56, 0x45, 0x10, 0x05, 0x12, 0x10, 0x0a, 0x0c, 0x55, 0x4e, 0x45, 0x4e, + 0x43, 0x55, 0x4d, 0x42, 0x45, 0x52, 0x45, 0x44, 0x10, 0x06, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, + 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x07, 0x22, 0x4e, 0x0a, 0x0b, 0x4c, 0x69, 0x63, 0x65, 0x6e, + 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0x3f, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x0f, + 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, + 0x08, 0x0a, 0x04, 0x44, 0x50, 0x4b, 0x47, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x48, 0x45, 0x41, + 0x44, 0x45, 0x52, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x4c, 0x49, 0x43, 0x45, 0x4e, 0x53, 0x45, + 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x10, 0x03, 0x2a, 0x44, 0x0a, 0x08, 0x53, 0x65, 0x76, 0x65, 0x72, + 0x69, 0x74, 0x79, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, + 0x12, 0x07, 0x0a, 0x03, 0x4c, 0x4f, 0x57, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x45, 0x44, + 0x49, 0x55, 0x4d, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x49, 0x47, 0x48, 0x10, 0x03, 0x12, + 0x0c, 0x0a, 0x08, 0x43, 0x52, 0x49, 0x54, 0x49, 0x43, 0x41, 0x4c, 0x10, 0x04, 0x42, 0x31, 0x5a, + 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x71, 0x75, 0x61, + 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x74, 0x72, 0x69, 0x76, 0x79, 0x2f, 0x72, + 0x70, 0x63, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x3b, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2796,7 +2816,7 @@ func file_rpc_common_service_proto_rawDescGZIP() []byte { var file_rpc_common_service_proto_enumTypes = make([]protoimpl.EnumInfo, 3) var file_rpc_common_service_proto_msgTypes = make([]protoimpl.MessageInfo, 28) -var file_rpc_common_service_proto_goTypes = []interface{}{ +var file_rpc_common_service_proto_goTypes = []any{ (Severity)(0), // 0: trivy.common.Severity (LicenseCategory_Enum)(0), // 1: trivy.common.LicenseCategory.Enum (LicenseType_Enum)(0), // 2: trivy.common.LicenseType.Enum @@ -2883,7 +2903,7 @@ func file_rpc_common_service_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_rpc_common_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*OS); i { case 0: return &v.state @@ -2895,7 +2915,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*Repository); i { case 0: return &v.state @@ -2907,7 +2927,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*PackageInfo); i { case 0: return &v.state @@ -2919,7 +2939,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*Application); i { case 0: return &v.state @@ -2931,7 +2951,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*Package); i { case 0: return &v.state @@ -2943,7 +2963,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*PkgIdentifier); i { case 0: return &v.state @@ -2955,7 +2975,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*Location); i { case 0: return &v.state @@ -2967,7 +2987,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*Misconfiguration); i { case 0: return &v.state @@ -2979,7 +2999,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*MisconfResult); i { case 0: return &v.state @@ -2991,7 +3011,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*PolicyMetadata); i { case 0: return &v.state @@ -3003,7 +3023,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*DetectedMisconfiguration); i { case 0: return &v.state @@ -3015,7 +3035,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*Vulnerability); i { case 0: return &v.state @@ -3027,7 +3047,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[12].Exporter = func(v any, i int) any { switch v := v.(*DataSource); i { case 0: return &v.state @@ -3039,7 +3059,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[13].Exporter = func(v any, i int) any { switch v := v.(*Layer); i { case 0: return &v.state @@ -3051,7 +3071,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[14].Exporter = func(v any, i int) any { switch v := v.(*CauseMetadata); i { case 0: return &v.state @@ -3063,7 +3083,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[15].Exporter = func(v any, i int) any { switch v := v.(*CVSS); i { case 0: return &v.state @@ -3075,7 +3095,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[16].Exporter = func(v any, i int) any { switch v := v.(*CustomResource); i { case 0: return &v.state @@ -3087,7 +3107,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[17].Exporter = func(v any, i int) any { switch v := v.(*Line); i { case 0: return &v.state @@ -3099,7 +3119,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[18].Exporter = func(v any, i int) any { switch v := v.(*Code); i { case 0: return &v.state @@ -3111,7 +3131,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[19].Exporter = func(v any, i int) any { switch v := v.(*SecretFinding); i { case 0: return &v.state @@ -3123,7 +3143,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[20].Exporter = func(v any, i int) any { switch v := v.(*Secret); i { case 0: return &v.state @@ -3135,7 +3155,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[21].Exporter = func(v any, i int) any { switch v := v.(*DetectedLicense); i { case 0: return &v.state @@ -3147,7 +3167,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[22].Exporter = func(v any, i int) any { switch v := v.(*LicenseFile); i { case 0: return &v.state @@ -3159,7 +3179,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[23].Exporter = func(v any, i int) any { switch v := v.(*LicenseFinding); i { case 0: return &v.state @@ -3171,7 +3191,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[24].Exporter = func(v any, i int) any { switch v := v.(*LicenseCategory); i { case 0: return &v.state @@ -3183,7 +3203,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_rpc_common_service_proto_msgTypes[25].Exporter = func(v any, i int) any { switch v := v.(*LicenseType); i { case 0: return &v.state diff --git a/rpc/common/service.proto b/rpc/common/service.proto index e989738c285b..75c3e70e2753 100644 --- a/rpc/common/service.proto +++ b/rpc/common/service.proto @@ -176,6 +176,8 @@ message CVSS { string v3_vector = 2; double v2_score = 3; double v3_score = 4; + string v40_vector = 5; + double v40_score = 6; } message CustomResource { From 278b55dbc941a9357b8b184ae66c1a41b0e893ba Mon Sep 17 00:00:00 2001 From: Gunesh Shanbhag Date: Wed, 20 Nov 2024 17:48:33 +0530 Subject: [PATCH 2/4] feat: add cvssv4 score, vector in cvss map add cvssv4 score, vector in cvss map protobuf --- pkg/rpc/convert.go | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/pkg/rpc/convert.go b/pkg/rpc/convert.go index 89097730111b..08e980295d4e 100644 --- a/pkg/rpc/convert.go +++ b/pkg/rpc/convert.go @@ -274,15 +274,17 @@ func ConvertToRPCVulns(vulns []types.DetectedVulnerability) []*common.Vulnerabil cvssMap := make(map[string]*common.CVSS) // This is needed because protobuf generates a map[string]*CVSS type for vendor, vendorSeverity := range vuln.CVSS { cvssMap[string(vendor)] = &common.CVSS{ - V2Vector: vendorSeverity.V2Vector, - V3Vector: vendorSeverity.V3Vector, - V2Score: vendorSeverity.V2Score, - V3Score: vendorSeverity.V3Score, + V2Vector: vendorSeverity.V2Vector, + V3Vector: vendorSeverity.V3Vector, + V40Vector: vendorSeverity.V40Vector, + V2Score: vendorSeverity.V2Score, + V3Score: vendorSeverity.V3Score, + V40Score: vendorSeverity.V40Score, } } - vensorSeverityMap := make(map[string]common.Severity) + vendorSeverityMap := make(map[string]common.Severity) for vendor, vendorSeverity := range vuln.VendorSeverity { - vensorSeverityMap[string(vendor)] = common.Severity(vendorSeverity) + vendorSeverityMap[string(vendor)] = common.Severity(vendorSeverity) } var lastModifiedDate, publishedDate *timestamppb.Timestamp @@ -315,7 +317,7 @@ func ConvertToRPCVulns(vulns []types.DetectedVulnerability) []*common.Vulnerabil Title: vuln.Title, Description: vuln.Description, Severity: common.Severity(severity), - VendorSeverity: vensorSeverityMap, + VendorSeverity: vendorSeverityMap, References: vuln.References, Layer: ConvertToRPCLayer(vuln.Layer), Cvss: cvssMap, @@ -569,15 +571,17 @@ func ConvertFromRPCVulns(rpcVulns []*common.Vulnerability) []types.DetectedVulne cvssMap := make(dbTypes.VendorCVSS) // This is needed because protobuf generates a map[string]*CVSS type for vendor, vendorSeverity := range vuln.Cvss { cvssMap[dbTypes.SourceID(vendor)] = dbTypes.CVSS{ - V2Vector: vendorSeverity.V2Vector, - V3Vector: vendorSeverity.V3Vector, - V2Score: vendorSeverity.V2Score, - V3Score: vendorSeverity.V3Score, + V2Vector: vendorSeverity.V2Vector, + V3Vector: vendorSeverity.V3Vector, + V40Vector: vendorSeverity.V40Vector, + V2Score: vendorSeverity.V2Score, + V3Score: vendorSeverity.V3Score, + V40Score: vendorSeverity.V40Score, } } - vensorSeverityMap := make(dbTypes.VendorSeverity) + vendorSeverityMap := make(dbTypes.VendorSeverity) for vendor, vendorSeverity := range vuln.VendorSeverity { - vensorSeverityMap[dbTypes.SourceID(vendor)] = dbTypes.Severity(vendorSeverity) + vendorSeverityMap[dbTypes.SourceID(vendor)] = dbTypes.Severity(vendorSeverity) } var lastModifiedDate, publishedDate *time.Time @@ -608,7 +612,7 @@ func ConvertFromRPCVulns(rpcVulns []*common.Vulnerability) []types.DetectedVulne LastModifiedDate: lastModifiedDate, PublishedDate: publishedDate, Custom: vuln.CustomVulnData.AsInterface(), - VendorSeverity: vensorSeverityMap, + VendorSeverity: vendorSeverityMap, }, Layer: ConvertFromRPCLayer(vuln.Layer), SeveritySource: dbTypes.SourceID(vuln.SeveritySource), From 7e5a49ae391a80014f0b711d5d168ad66dd580e7 Mon Sep 17 00:00:00 2001 From: Gunesh Shanbhag Date: Thu, 21 Nov 2024 00:47:25 +0530 Subject: [PATCH 3/4] feat: add test for cvssv4 score, vector in convert --- pkg/rpc/convert_test.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pkg/rpc/convert_test.go b/pkg/rpc/convert_test.go index 6f90c3b5cc8e..c1298cfc0d0e 100644 --- a/pkg/rpc/convert_test.go +++ b/pkg/rpc/convert_test.go @@ -227,6 +227,14 @@ func TestConvertToRpcVulns(t *testing.T) { V2Score: 7.2, V3Score: 7.8, }, + vulnerability.NVD: { + V2Vector: "AV:L/AC:L/Au:N/C:C/I:C/A:C", + V3Vector: "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", + V40Vector: "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/U:Green", + V2Score: 7.2, + V3Score: 7.8, + V40Score: 8.7, + }, }, References: []string{"http://example.com"}, PublishedDate: &fixedPublishedDate, @@ -263,6 +271,14 @@ func TestConvertToRpcVulns(t *testing.T) { V2Score: 7.2, V3Score: 7.8, }, + "nvd": { + V2Vector: "AV:L/AC:L/Au:N/C:C/I:C/A:C", + V3Vector: "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", + V40Vector: "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/U:Green", + V2Score: 7.2, + V3Score: 7.8, + V40Score: 8.7, + }, }, References: []string{"http://example.com"}, Layer: &common.Layer{ From 9b5af263a415a053d352a415ae670ab497220bbc Mon Sep 17 00:00:00 2001 From: Gunesh Shanbhag Date: Thu, 21 Nov 2024 15:28:01 +0530 Subject: [PATCH 4/4] fix: generate proto files using trivy oss specific proto version --- rpc/common/service.pb.go | 58 ++++++++++++++++++++-------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/rpc/common/service.pb.go b/rpc/common/service.pb.go index 88ae0e69fdf9..a97706653a83 100644 --- a/rpc/common/service.pb.go +++ b/rpc/common/service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 -// protoc v3.17.3 +// protoc-gen-go v1.34.0 +// protoc v3.19.4 // source: rpc/common/service.proto package common @@ -2816,7 +2816,7 @@ func file_rpc_common_service_proto_rawDescGZIP() []byte { var file_rpc_common_service_proto_enumTypes = make([]protoimpl.EnumInfo, 3) var file_rpc_common_service_proto_msgTypes = make([]protoimpl.MessageInfo, 28) -var file_rpc_common_service_proto_goTypes = []any{ +var file_rpc_common_service_proto_goTypes = []interface{}{ (Severity)(0), // 0: trivy.common.Severity (LicenseCategory_Enum)(0), // 1: trivy.common.LicenseCategory.Enum (LicenseType_Enum)(0), // 2: trivy.common.LicenseType.Enum @@ -2903,7 +2903,7 @@ func file_rpc_common_service_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_rpc_common_service_proto_msgTypes[0].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*OS); i { case 0: return &v.state @@ -2915,7 +2915,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[1].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Repository); i { case 0: return &v.state @@ -2927,7 +2927,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[2].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PackageInfo); i { case 0: return &v.state @@ -2939,7 +2939,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[3].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Application); i { case 0: return &v.state @@ -2951,7 +2951,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[4].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Package); i { case 0: return &v.state @@ -2963,7 +2963,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[5].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PkgIdentifier); i { case 0: return &v.state @@ -2975,7 +2975,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[6].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Location); i { case 0: return &v.state @@ -2987,7 +2987,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[7].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Misconfiguration); i { case 0: return &v.state @@ -2999,7 +2999,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[8].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MisconfResult); i { case 0: return &v.state @@ -3011,7 +3011,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[9].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PolicyMetadata); i { case 0: return &v.state @@ -3023,7 +3023,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[10].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DetectedMisconfiguration); i { case 0: return &v.state @@ -3035,7 +3035,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[11].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Vulnerability); i { case 0: return &v.state @@ -3047,7 +3047,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[12].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DataSource); i { case 0: return &v.state @@ -3059,7 +3059,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[13].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Layer); i { case 0: return &v.state @@ -3071,7 +3071,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[14].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CauseMetadata); i { case 0: return &v.state @@ -3083,7 +3083,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[15].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CVSS); i { case 0: return &v.state @@ -3095,7 +3095,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[16].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CustomResource); i { case 0: return &v.state @@ -3107,7 +3107,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[17].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Line); i { case 0: return &v.state @@ -3119,7 +3119,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[18].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Code); i { case 0: return &v.state @@ -3131,7 +3131,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[19].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SecretFinding); i { case 0: return &v.state @@ -3143,7 +3143,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[20].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Secret); i { case 0: return &v.state @@ -3155,7 +3155,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[21].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DetectedLicense); i { case 0: return &v.state @@ -3167,7 +3167,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[22].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LicenseFile); i { case 0: return &v.state @@ -3179,7 +3179,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[23].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LicenseFinding); i { case 0: return &v.state @@ -3191,7 +3191,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[24].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LicenseCategory); i { case 0: return &v.state @@ -3203,7 +3203,7 @@ func file_rpc_common_service_proto_init() { return nil } } - file_rpc_common_service_proto_msgTypes[25].Exporter = func(v any, i int) any { + file_rpc_common_service_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LicenseType); i { case 0: return &v.state