From 7e6ff343acdcd390a3881a9206fd0250817ac788 Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Mon, 28 Oct 2024 06:03:41 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20update=20protobuf=20generated=20?= =?UTF-8?q?files=20(#1459)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cli/reporter/cnspec_report.pb.go | 72 +- policy/cnspec_policy.pb.go | 1502 ++++++------------------------ policy/scan/scan.pb.go | 204 +--- 3 files changed, 326 insertions(+), 1452 deletions(-) diff --git a/cli/reporter/cnspec_report.pb.go b/cli/reporter/cnspec_report.pb.go index f2dd9c49..b2662b23 100644 --- a/cli/reporter/cnspec_report.pb.go +++ b/cli/reporter/cnspec_report.pb.go @@ -3,8 +3,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 -// protoc v5.28.2 +// protoc-gen-go v1.35.1 +// protoc v5.28.3 // source: cnspec_report.proto package reporter @@ -37,11 +37,9 @@ type Report struct { func (x *Report) Reset() { *x = Report{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_report_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_report_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Report) String() string { @@ -52,7 +50,7 @@ func (*Report) ProtoMessage() {} func (x *Report) ProtoReflect() protoreflect.Message { mi := &file_cnspec_report_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -105,11 +103,9 @@ type ScoreValues struct { func (x *ScoreValues) Reset() { *x = ScoreValues{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_report_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_report_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ScoreValues) String() string { @@ -120,7 +116,7 @@ func (*ScoreValues) ProtoMessage() {} func (x *ScoreValues) ProtoReflect() protoreflect.Message { mi := &file_cnspec_report_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -153,11 +149,9 @@ type ScoreValue struct { func (x *ScoreValue) Reset() { *x = ScoreValue{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_report_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_report_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ScoreValue) String() string { @@ -168,7 +162,7 @@ func (*ScoreValue) ProtoMessage() {} func (x *ScoreValue) ProtoReflect() protoreflect.Message { mi := &file_cnspec_report_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -312,44 +306,6 @@ func file_cnspec_report_proto_init() { if File_cnspec_report_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_cnspec_report_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Report); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_report_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*ScoreValues); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_report_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*ScoreValue); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/policy/cnspec_policy.pb.go b/policy/cnspec_policy.pb.go index 9bfddbe6..ac0d5a04 100644 --- a/policy/cnspec_policy.pb.go +++ b/policy/cnspec_policy.pb.go @@ -3,8 +3,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 -// protoc v5.28.2 +// protoc-gen-go v1.35.1 +// protoc v5.28.3 // source: cnspec_policy.proto package policy @@ -580,11 +580,9 @@ type PolicyGroup struct { func (x *PolicyGroup) Reset() { *x = PolicyGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PolicyGroup) String() string { @@ -595,7 +593,7 @@ func (*PolicyGroup) ProtoMessage() {} func (x *PolicyGroup) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -741,11 +739,9 @@ type PolicyRef struct { func (x *PolicyRef) Reset() { *x = PolicyRef{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PolicyRef) String() string { @@ -756,7 +752,7 @@ func (*PolicyRef) ProtoMessage() {} func (x *PolicyRef) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -853,11 +849,9 @@ type Policy struct { func (x *Policy) Reset() { *x = Policy{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Policy) String() string { @@ -868,7 +862,7 @@ func (*Policy) ProtoMessage() {} func (x *Policy) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1047,11 +1041,9 @@ type Policies struct { func (x *Policies) Reset() { *x = Policies{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Policies) String() string { @@ -1062,7 +1054,7 @@ func (*Policies) ProtoMessage() {} func (x *Policies) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1096,11 +1088,9 @@ type QueryCounts struct { func (x *QueryCounts) Reset() { *x = QueryCounts{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *QueryCounts) String() string { @@ -1111,7 +1101,7 @@ func (*QueryCounts) ProtoMessage() {} func (x *QueryCounts) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1164,11 +1154,9 @@ type Bundle struct { func (x *Bundle) Reset() { *x = Bundle{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Bundle) String() string { @@ -1179,7 +1167,7 @@ func (*Bundle) ProtoMessage() {} func (x *Bundle) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1267,11 +1255,9 @@ type SoftwareSelector struct { func (x *SoftwareSelector) Reset() { *x = SoftwareSelector{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SoftwareSelector) String() string { @@ -1282,7 +1268,7 @@ func (*SoftwareSelector) ProtoMessage() {} func (x *SoftwareSelector) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1342,11 +1328,9 @@ type ResourceSelector struct { func (x *ResourceSelector) Reset() { *x = ResourceSelector{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResourceSelector) String() string { @@ -1357,7 +1341,7 @@ func (*ResourceSelector) ProtoMessage() {} func (x *ResourceSelector) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1390,11 +1374,9 @@ type RiskMagnitude struct { func (x *RiskMagnitude) Reset() { *x = RiskMagnitude{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RiskMagnitude) String() string { @@ -1405,7 +1387,7 @@ func (*RiskMagnitude) ProtoMessage() {} func (x *RiskMagnitude) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1518,11 +1500,9 @@ type RiskFactor struct { func (x *RiskFactor) Reset() { *x = RiskFactor{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RiskFactor) String() string { @@ -1533,7 +1513,7 @@ func (*RiskFactor) ProtoMessage() {} func (x *RiskFactor) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1664,11 +1644,9 @@ type RiskFactorDocs struct { func (x *RiskFactorDocs) Reset() { *x = RiskFactorDocs{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RiskFactorDocs) String() string { @@ -1679,7 +1657,7 @@ func (*RiskFactorDocs) ProtoMessage() {} func (x *RiskFactorDocs) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1719,11 +1697,9 @@ type PolicyGroupDocs struct { func (x *PolicyGroupDocs) Reset() { *x = PolicyGroupDocs{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PolicyGroupDocs) String() string { @@ -1734,7 +1710,7 @@ func (*PolicyGroupDocs) ProtoMessage() {} func (x *PolicyGroupDocs) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1773,11 +1749,9 @@ type PolicyDocs struct { func (x *PolicyDocs) Reset() { *x = PolicyDocs{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PolicyDocs) String() string { @@ -1788,7 +1762,7 @@ func (*PolicyDocs) ProtoMessage() {} func (x *PolicyDocs) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1848,11 +1822,9 @@ type Framework struct { func (x *Framework) Reset() { *x = Framework{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Framework) String() string { @@ -1863,7 +1835,7 @@ func (*Framework) ProtoMessage() {} func (x *Framework) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2021,11 +1993,9 @@ type Frameworks struct { func (x *Frameworks) Reset() { *x = Frameworks{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Frameworks) String() string { @@ -2036,7 +2006,7 @@ func (*Frameworks) ProtoMessage() {} func (x *Frameworks) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2087,11 +2057,9 @@ type FrameworkGroup struct { func (x *FrameworkGroup) Reset() { *x = FrameworkGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FrameworkGroup) String() string { @@ -2102,7 +2070,7 @@ func (*FrameworkGroup) ProtoMessage() {} func (x *FrameworkGroup) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2220,11 +2188,9 @@ type FrameworkRef struct { func (x *FrameworkRef) Reset() { *x = FrameworkRef{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FrameworkRef) String() string { @@ -2235,7 +2201,7 @@ func (*FrameworkRef) ProtoMessage() {} func (x *FrameworkRef) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2288,11 +2254,9 @@ type Evidence struct { func (x *Evidence) Reset() { *x = Evidence{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Evidence) String() string { @@ -2303,7 +2267,7 @@ func (*Evidence) ProtoMessage() {} func (x *Evidence) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2388,11 +2352,9 @@ type Control struct { func (x *Control) Reset() { *x = Control{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Control) String() string { @@ -2403,7 +2365,7 @@ func (*Control) ProtoMessage() {} func (x *Control) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2499,11 +2461,9 @@ type FrameworkMap struct { func (x *FrameworkMap) Reset() { *x = FrameworkMap{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FrameworkMap) String() string { @@ -2514,7 +2474,7 @@ func (*FrameworkMap) ProtoMessage() {} func (x *FrameworkMap) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2607,11 +2567,9 @@ type ControlMap struct { func (x *ControlMap) Reset() { *x = ControlMap{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ControlMap) String() string { @@ -2622,7 +2580,7 @@ func (*ControlMap) ProtoMessage() {} func (x *ControlMap) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2690,11 +2648,9 @@ type ControlDocs struct { func (x *ControlDocs) Reset() { *x = ControlDocs{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ControlDocs) String() string { @@ -2705,7 +2661,7 @@ func (*ControlDocs) ProtoMessage() {} func (x *ControlDocs) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2746,11 +2702,9 @@ type ControlRef struct { func (x *ControlRef) Reset() { *x = ControlRef{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ControlRef) String() string { @@ -2761,7 +2715,7 @@ func (*ControlRef) ProtoMessage() {} func (x *ControlRef) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2811,11 +2765,9 @@ type Asset struct { func (x *Asset) Reset() { *x = Asset{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Asset) String() string { @@ -2826,7 +2778,7 @@ func (*Asset) ProtoMessage() {} func (x *Asset) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2887,11 +2839,9 @@ type ResolvedPolicy struct { func (x *ResolvedPolicy) Reset() { *x = ResolvedPolicy{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResolvedPolicy) String() string { @@ -2902,7 +2852,7 @@ func (*ResolvedPolicy) ProtoMessage() {} func (x *ResolvedPolicy) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2975,11 +2925,9 @@ type ExecutionJob struct { func (x *ExecutionJob) Reset() { *x = ExecutionJob{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExecutionJob) String() string { @@ -2990,7 +2938,7 @@ func (*ExecutionJob) ProtoMessage() {} func (x *ExecutionJob) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3037,11 +2985,9 @@ type ExecutionQuery struct { func (x *ExecutionQuery) Reset() { *x = ExecutionQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExecutionQuery) String() string { @@ -3052,7 +2998,7 @@ func (*ExecutionQuery) ProtoMessage() {} func (x *ExecutionQuery) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3127,11 +3073,9 @@ type CollectorJob struct { func (x *CollectorJob) Reset() { *x = CollectorJob{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CollectorJob) String() string { @@ -3142,7 +3086,7 @@ func (*CollectorJob) ProtoMessage() {} func (x *CollectorJob) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3209,11 +3153,9 @@ type StringArray struct { func (x *StringArray) Reset() { *x = StringArray{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StringArray) String() string { @@ -3224,7 +3166,7 @@ func (*StringArray) ProtoMessage() {} func (x *StringArray) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3257,11 +3199,9 @@ type DataQueryInfo struct { func (x *DataQueryInfo) Reset() { *x = DataQueryInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DataQueryInfo) String() string { @@ -3272,7 +3212,7 @@ func (*DataQueryInfo) ProtoMessage() {} func (x *DataQueryInfo) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3331,11 +3271,9 @@ type ReportingJob struct { func (x *ReportingJob) Reset() { *x = ReportingJob{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReportingJob) String() string { @@ -3346,7 +3284,7 @@ func (*ReportingJob) ProtoMessage() {} func (x *ReportingJob) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3455,11 +3393,9 @@ type Report struct { func (x *Report) Reset() { *x = Report{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Report) String() string { @@ -3470,7 +3406,7 @@ func (*Report) ProtoMessage() {} func (x *Report) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3600,11 +3536,9 @@ type Reports struct { func (x *Reports) Reset() { *x = Reports{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Reports) String() string { @@ -3615,7 +3549,7 @@ func (*Reports) ProtoMessage() {} func (x *Reports) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3652,11 +3586,9 @@ type ReportCollection struct { func (x *ReportCollection) Reset() { *x = ReportCollection{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReportCollection) String() string { @@ -3667,7 +3599,7 @@ func (*ReportCollection) ProtoMessage() {} func (x *ReportCollection) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3737,11 +3669,9 @@ type FrameworkReport struct { func (x *FrameworkReport) Reset() { *x = FrameworkReport{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FrameworkReport) String() string { @@ -3752,7 +3682,7 @@ func (*FrameworkReport) ProtoMessage() {} func (x *FrameworkReport) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3816,11 +3746,9 @@ type ControlScore struct { func (x *ControlScore) Reset() { *x = ControlScore{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ControlScore) String() string { @@ -3831,7 +3759,7 @@ func (*ControlScore) ProtoMessage() {} func (x *ControlScore) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3938,11 +3866,9 @@ type Cvss struct { func (x *Cvss) Reset() { *x = Cvss{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Cvss) String() string { @@ -3953,7 +3879,7 @@ func (*Cvss) ProtoMessage() {} func (x *Cvss) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4020,11 +3946,9 @@ type CvssStats struct { func (x *CvssStats) Reset() { *x = CvssStats{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CvssStats) String() string { @@ -4035,7 +3959,7 @@ func (*CvssStats) ProtoMessage() {} func (x *CvssStats) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4134,11 +4058,9 @@ type Score struct { func (x *Score) Reset() { *x = Score{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Score) String() string { @@ -4149,7 +4071,7 @@ func (*Score) ProtoMessage() {} func (x *Score) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[38] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4269,11 +4191,9 @@ type ScoreDelta struct { func (x *ScoreDelta) Reset() { *x = ScoreDelta{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ScoreDelta) String() string { @@ -4284,7 +4204,7 @@ func (*ScoreDelta) ProtoMessage() {} func (x *ScoreDelta) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4347,11 +4267,9 @@ type ScoredRiskFactor struct { func (x *ScoredRiskFactor) Reset() { *x = ScoredRiskFactor{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ScoredRiskFactor) String() string { @@ -4362,7 +4280,7 @@ func (*ScoredRiskFactor) ProtoMessage() {} func (x *ScoredRiskFactor) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4415,11 +4333,9 @@ type ScoredRiskFactors struct { func (x *ScoredRiskFactors) Reset() { *x = ScoredRiskFactors{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ScoredRiskFactors) String() string { @@ -4430,7 +4346,7 @@ func (*ScoredRiskFactors) ProtoMessage() {} func (x *ScoredRiskFactors) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[41] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4466,11 +4382,9 @@ type RiskFactorStats struct { func (x *RiskFactorStats) Reset() { *x = RiskFactorStats{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RiskFactorStats) String() string { @@ -4481,7 +4395,7 @@ func (*RiskFactorStats) ProtoMessage() {} func (x *RiskFactorStats) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[42] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4541,11 +4455,9 @@ type RiskFactorsStats struct { func (x *RiskFactorsStats) Reset() { *x = RiskFactorsStats{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RiskFactorsStats) String() string { @@ -4556,7 +4468,7 @@ func (*RiskFactorsStats) ProtoMessage() {} func (x *RiskFactorsStats) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[43] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4595,11 +4507,9 @@ type Stats struct { func (x *Stats) Reset() { *x = Stats{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Stats) String() string { @@ -4610,7 +4520,7 @@ func (*Stats) ProtoMessage() {} func (x *Stats) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[44] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4698,11 +4608,9 @@ type ScoreDistribution struct { func (x *ScoreDistribution) Reset() { *x = ScoreDistribution{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[45] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ScoreDistribution) String() string { @@ -4713,7 +4621,7 @@ func (*ScoreDistribution) ProtoMessage() {} func (x *ScoreDistribution) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[45] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4820,11 +4728,9 @@ type ScoreStats struct { func (x *ScoreStats) Reset() { *x = ScoreStats{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ScoreStats) String() string { @@ -4835,7 +4741,7 @@ func (*ScoreStats) ProtoMessage() {} func (x *ScoreStats) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[46] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4957,11 +4863,9 @@ type AssetFindingsStats struct { func (x *AssetFindingsStats) Reset() { *x = AssetFindingsStats{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AssetFindingsStats) String() string { @@ -4972,7 +4876,7 @@ func (*AssetFindingsStats) ProtoMessage() {} func (x *AssetFindingsStats) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[47] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5044,11 +4948,9 @@ type Empty struct { func (x *Empty) Reset() { *x = Empty{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[48] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Empty) String() string { @@ -5059,7 +4961,7 @@ func (*Empty) ProtoMessage() {} func (x *Empty) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[48] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5085,11 +4987,9 @@ type Mrn struct { func (x *Mrn) Reset() { *x = Mrn{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Mrn) String() string { @@ -5100,7 +5000,7 @@ func (*Mrn) ProtoMessage() {} func (x *Mrn) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[49] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5132,11 +5032,9 @@ type Mqueries struct { func (x *Mqueries) Reset() { *x = Mqueries{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Mqueries) String() string { @@ -5147,7 +5045,7 @@ func (*Mqueries) ProtoMessage() {} func (x *Mqueries) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[50] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5180,11 +5078,9 @@ type ListReq struct { func (x *ListReq) Reset() { *x = ListReq{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[51] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListReq) String() string { @@ -5195,7 +5091,7 @@ func (*ListReq) ProtoMessage() {} func (x *ListReq) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[51] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5238,11 +5134,9 @@ type DefaultPoliciesReq struct { func (x *DefaultPoliciesReq) Reset() { *x = DefaultPoliciesReq{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[52] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DefaultPoliciesReq) String() string { @@ -5253,7 +5147,7 @@ func (*DefaultPoliciesReq) ProtoMessage() {} func (x *DefaultPoliciesReq) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[52] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5313,11 +5207,9 @@ type URLs struct { func (x *URLs) Reset() { *x = URLs{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[53] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *URLs) String() string { @@ -5328,7 +5220,7 @@ func (*URLs) ProtoMessage() {} func (x *URLs) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[53] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5364,11 +5256,9 @@ type PolicyAssignment struct { func (x *PolicyAssignment) Reset() { *x = PolicyAssignment{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[54] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PolicyAssignment) String() string { @@ -5379,7 +5269,7 @@ func (*PolicyAssignment) ProtoMessage() {} func (x *PolicyAssignment) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[54] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5441,11 +5331,9 @@ type PolicyMutationDelta struct { func (x *PolicyMutationDelta) Reset() { *x = PolicyMutationDelta{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[55] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PolicyMutationDelta) String() string { @@ -5456,7 +5344,7 @@ func (*PolicyMutationDelta) ProtoMessage() {} func (x *PolicyMutationDelta) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[55] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5504,11 +5392,9 @@ type PolicyDelta struct { func (x *PolicyDelta) Reset() { *x = PolicyDelta{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[56] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PolicyDelta) String() string { @@ -5519,7 +5405,7 @@ func (*PolicyDelta) ProtoMessage() {} func (x *PolicyDelta) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[56] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5566,11 +5452,9 @@ type ResolveReq struct { func (x *ResolveReq) Reset() { *x = ResolveReq{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[57] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResolveReq) String() string { @@ -5581,7 +5465,7 @@ func (*ResolveReq) ProtoMessage() {} func (x *ResolveReq) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[57] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5621,11 +5505,9 @@ type UpdateAssetJobsReq struct { func (x *UpdateAssetJobsReq) Reset() { *x = UpdateAssetJobsReq{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[58] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[58] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateAssetJobsReq) String() string { @@ -5636,7 +5518,7 @@ func (*UpdateAssetJobsReq) ProtoMessage() {} func (x *UpdateAssetJobsReq) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[58] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5686,11 +5568,9 @@ type StoreResultsReq struct { func (x *StoreResultsReq) Reset() { *x = StoreResultsReq{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[59] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StoreResultsReq) String() string { @@ -5701,7 +5581,7 @@ func (*StoreResultsReq) ProtoMessage() {} func (x *StoreResultsReq) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[59] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5790,11 +5670,9 @@ type EntityScoreReq struct { func (x *EntityScoreReq) Reset() { *x = EntityScoreReq{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[60] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EntityScoreReq) String() string { @@ -5805,7 +5683,7 @@ func (*EntityScoreReq) ProtoMessage() {} func (x *EntityScoreReq) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[60] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5845,11 +5723,9 @@ type SynchronizeAssetsReq struct { func (x *SynchronizeAssetsReq) Reset() { *x = SynchronizeAssetsReq{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[61] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[61] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SynchronizeAssetsReq) String() string { @@ -5860,7 +5736,7 @@ func (*SynchronizeAssetsReq) ProtoMessage() {} func (x *SynchronizeAssetsReq) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[61] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5902,11 +5778,9 @@ type SynchronizeAssetsRespAssetDetail struct { func (x *SynchronizeAssetsRespAssetDetail) Reset() { *x = SynchronizeAssetsRespAssetDetail{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[62] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[62] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SynchronizeAssetsRespAssetDetail) String() string { @@ -5917,7 +5791,7 @@ func (*SynchronizeAssetsRespAssetDetail) ProtoMessage() {} func (x *SynchronizeAssetsRespAssetDetail) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[62] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5970,11 +5844,9 @@ type SynchronizeAssetsResp struct { func (x *SynchronizeAssetsResp) Reset() { *x = SynchronizeAssetsResp{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[63] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[63] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SynchronizeAssetsResp) String() string { @@ -5985,7 +5857,7 @@ func (*SynchronizeAssetsResp) ProtoMessage() {} func (x *SynchronizeAssetsResp) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[63] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6024,11 +5896,9 @@ type PurgeAssetsRequest struct { func (x *PurgeAssetsRequest) Reset() { *x = PurgeAssetsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[64] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[64] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PurgeAssetsRequest) String() string { @@ -6039,7 +5909,7 @@ func (*PurgeAssetsRequest) ProtoMessage() {} func (x *PurgeAssetsRequest) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[64] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6115,11 +5985,9 @@ type DateFilter struct { func (x *DateFilter) Reset() { *x = DateFilter{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[65] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[65] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DateFilter) String() string { @@ -6130,7 +5998,7 @@ func (*DateFilter) ProtoMessage() {} func (x *DateFilter) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[65] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6177,11 +6045,9 @@ type PurgeAssetsConfirmation struct { func (x *PurgeAssetsConfirmation) Reset() { *x = PurgeAssetsConfirmation{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[66] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[66] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PurgeAssetsConfirmation) String() string { @@ -6192,7 +6058,7 @@ func (*PurgeAssetsConfirmation) ProtoMessage() {} func (x *PurgeAssetsConfirmation) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[66] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6235,11 +6101,9 @@ type Source struct { func (x *Source) Reset() { *x = Source{} - if protoimpl.UnsafeEnabled { - mi := &file_cnspec_policy_proto_msgTypes[67] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cnspec_policy_proto_msgTypes[67] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Source) String() string { @@ -6250,7 +6114,7 @@ func (*Source) ProtoMessage() {} func (x *Source) ProtoReflect() protoreflect.Message { mi := &file_cnspec_policy_proto_msgTypes[67] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7954,824 +7818,6 @@ func file_cnspec_policy_proto_init() { if File_cnspec_policy_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_cnspec_policy_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*PolicyGroup); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*PolicyRef); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*Policy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*Policies); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*QueryCounts); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*Bundle); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*SoftwareSelector); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*ResourceSelector); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*RiskMagnitude); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*RiskFactor); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*RiskFactorDocs); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*PolicyGroupDocs); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*PolicyDocs); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*Framework); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[14].Exporter = func(v any, i int) any { - switch v := v.(*Frameworks); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[15].Exporter = func(v any, i int) any { - switch v := v.(*FrameworkGroup); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[16].Exporter = func(v any, i int) any { - switch v := v.(*FrameworkRef); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[17].Exporter = func(v any, i int) any { - switch v := v.(*Evidence); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[18].Exporter = func(v any, i int) any { - switch v := v.(*Control); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[19].Exporter = func(v any, i int) any { - switch v := v.(*FrameworkMap); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[20].Exporter = func(v any, i int) any { - switch v := v.(*ControlMap); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[21].Exporter = func(v any, i int) any { - switch v := v.(*ControlDocs); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[22].Exporter = func(v any, i int) any { - switch v := v.(*ControlRef); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[23].Exporter = func(v any, i int) any { - switch v := v.(*Asset); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[24].Exporter = func(v any, i int) any { - switch v := v.(*ResolvedPolicy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[25].Exporter = func(v any, i int) any { - switch v := v.(*ExecutionJob); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[26].Exporter = func(v any, i int) any { - switch v := v.(*ExecutionQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[27].Exporter = func(v any, i int) any { - switch v := v.(*CollectorJob); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[28].Exporter = func(v any, i int) any { - switch v := v.(*StringArray); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[29].Exporter = func(v any, i int) any { - switch v := v.(*DataQueryInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[30].Exporter = func(v any, i int) any { - switch v := v.(*ReportingJob); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[31].Exporter = func(v any, i int) any { - switch v := v.(*Report); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[32].Exporter = func(v any, i int) any { - switch v := v.(*Reports); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[33].Exporter = func(v any, i int) any { - switch v := v.(*ReportCollection); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[34].Exporter = func(v any, i int) any { - switch v := v.(*FrameworkReport); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[35].Exporter = func(v any, i int) any { - switch v := v.(*ControlScore); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[36].Exporter = func(v any, i int) any { - switch v := v.(*Cvss); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[37].Exporter = func(v any, i int) any { - switch v := v.(*CvssStats); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[38].Exporter = func(v any, i int) any { - switch v := v.(*Score); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[39].Exporter = func(v any, i int) any { - switch v := v.(*ScoreDelta); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[40].Exporter = func(v any, i int) any { - switch v := v.(*ScoredRiskFactor); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[41].Exporter = func(v any, i int) any { - switch v := v.(*ScoredRiskFactors); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[42].Exporter = func(v any, i int) any { - switch v := v.(*RiskFactorStats); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[43].Exporter = func(v any, i int) any { - switch v := v.(*RiskFactorsStats); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[44].Exporter = func(v any, i int) any { - switch v := v.(*Stats); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[45].Exporter = func(v any, i int) any { - switch v := v.(*ScoreDistribution); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[46].Exporter = func(v any, i int) any { - switch v := v.(*ScoreStats); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[47].Exporter = func(v any, i int) any { - switch v := v.(*AssetFindingsStats); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[48].Exporter = func(v any, i int) any { - switch v := v.(*Empty); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[49].Exporter = func(v any, i int) any { - switch v := v.(*Mrn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[50].Exporter = func(v any, i int) any { - switch v := v.(*Mqueries); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[51].Exporter = func(v any, i int) any { - switch v := v.(*ListReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[52].Exporter = func(v any, i int) any { - switch v := v.(*DefaultPoliciesReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[53].Exporter = func(v any, i int) any { - switch v := v.(*URLs); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[54].Exporter = func(v any, i int) any { - switch v := v.(*PolicyAssignment); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[55].Exporter = func(v any, i int) any { - switch v := v.(*PolicyMutationDelta); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[56].Exporter = func(v any, i int) any { - switch v := v.(*PolicyDelta); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[57].Exporter = func(v any, i int) any { - switch v := v.(*ResolveReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[58].Exporter = func(v any, i int) any { - switch v := v.(*UpdateAssetJobsReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[59].Exporter = func(v any, i int) any { - switch v := v.(*StoreResultsReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[60].Exporter = func(v any, i int) any { - switch v := v.(*EntityScoreReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[61].Exporter = func(v any, i int) any { - switch v := v.(*SynchronizeAssetsReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[62].Exporter = func(v any, i int) any { - switch v := v.(*SynchronizeAssetsRespAssetDetail); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[63].Exporter = func(v any, i int) any { - switch v := v.(*SynchronizeAssetsResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[64].Exporter = func(v any, i int) any { - switch v := v.(*PurgeAssetsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[65].Exporter = func(v any, i int) any { - switch v := v.(*DateFilter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[66].Exporter = func(v any, i int) any { - switch v := v.(*PurgeAssetsConfirmation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cnspec_policy_proto_msgTypes[67].Exporter = func(v any, i int) any { - switch v := v.(*Source); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/policy/scan/scan.pb.go b/policy/scan/scan.pb.go index f7cea501..a0e590df 100644 --- a/policy/scan/scan.pb.go +++ b/policy/scan/scan.pb.go @@ -3,8 +3,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 -// protoc v5.28.2 +// protoc-gen-go v1.35.1 +// protoc v5.28.3 // source: scan.proto package scan @@ -137,11 +137,9 @@ type Empty struct { func (x *Empty) Reset() { *x = Empty{} - if protoimpl.UnsafeEnabled { - mi := &file_scan_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_scan_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Empty) String() string { @@ -152,7 +150,7 @@ func (*Empty) ProtoMessage() {} func (x *Empty) ProtoReflect() protoreflect.Message { mi := &file_scan_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -184,11 +182,9 @@ type Job struct { func (x *Job) Reset() { *x = Job{} - if protoimpl.UnsafeEnabled { - mi := &file_scan_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_scan_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Job) String() string { @@ -199,7 +195,7 @@ func (*Job) ProtoMessage() {} func (x *Job) ProtoReflect() protoreflect.Message { mi := &file_scan_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -273,11 +269,9 @@ type AdmissionReviewJob struct { func (x *AdmissionReviewJob) Reset() { *x = AdmissionReviewJob{} - if protoimpl.UnsafeEnabled { - mi := &file_scan_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_scan_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AdmissionReviewJob) String() string { @@ -288,7 +282,7 @@ func (*AdmissionReviewJob) ProtoMessage() {} func (x *AdmissionReviewJob) ProtoReflect() protoreflect.Message { mi := &file_scan_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -351,11 +345,9 @@ type GarbageCollectOptions struct { func (x *GarbageCollectOptions) Reset() { *x = GarbageCollectOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_scan_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_scan_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GarbageCollectOptions) String() string { @@ -366,7 +358,7 @@ func (*GarbageCollectOptions) ProtoMessage() {} func (x *GarbageCollectOptions) ProtoReflect() protoreflect.Message { mi := &file_scan_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -419,11 +411,9 @@ type File struct { func (x *File) Reset() { *x = File{} - if protoimpl.UnsafeEnabled { - mi := &file_scan_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_scan_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *File) String() string { @@ -434,7 +424,7 @@ func (*File) ProtoMessage() {} func (x *File) ProtoReflect() protoreflect.Message { mi := &file_scan_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -473,11 +463,9 @@ type ScanResult struct { func (x *ScanResult) Reset() { *x = ScanResult{} - if protoimpl.UnsafeEnabled { - mi := &file_scan_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_scan_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ScanResult) String() string { @@ -488,7 +476,7 @@ func (*ScanResult) ProtoMessage() {} func (x *ScanResult) ProtoReflect() protoreflect.Message { mi := &file_scan_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -580,11 +568,9 @@ type ErrorCollection struct { func (x *ErrorCollection) Reset() { *x = ErrorCollection{} - if protoimpl.UnsafeEnabled { - mi := &file_scan_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_scan_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ErrorCollection) String() string { @@ -595,7 +581,7 @@ func (*ErrorCollection) ProtoMessage() {} func (x *ErrorCollection) ProtoReflect() protoreflect.Message { mi := &file_scan_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -627,11 +613,9 @@ type HealthCheckRequest struct { func (x *HealthCheckRequest) Reset() { *x = HealthCheckRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_scan_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_scan_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HealthCheckRequest) String() string { @@ -642,7 +626,7 @@ func (*HealthCheckRequest) ProtoMessage() {} func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message { mi := &file_scan_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -682,11 +666,9 @@ type HealthCheckResponse struct { func (x *HealthCheckResponse) Reset() { *x = HealthCheckResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_scan_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_scan_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HealthCheckResponse) String() string { @@ -697,7 +679,7 @@ func (*HealthCheckResponse) ProtoMessage() {} func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message { mi := &file_scan_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -996,116 +978,6 @@ func file_scan_proto_init() { if File_scan_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_scan_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Empty); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_scan_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*Job); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_scan_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*AdmissionReviewJob); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_scan_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*GarbageCollectOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_scan_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*File); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_scan_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*ScanResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_scan_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*ErrorCollection); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_scan_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*HealthCheckRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_scan_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*HealthCheckResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_scan_proto_msgTypes[5].OneofWrappers = []any{ (*ScanResult_Full)(nil), (*ScanResult_Errors)(nil),