Debian Codegraph @

googleapis/grafeas/v1/risk.pb.go

raw
1 // Copyright 2025 The Grafeas Authors. All rights reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.26.0
18 // protoc v4.24.4
19 // source: grafeas/v1/risk.proto
20
21 package grafeas
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 )
30
31 const (
32 // Verify that this generated code is sufficiently up-to-date.
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34 // Verify that runtime/protoimpl is sufficiently up-to-date.
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38 type Risk struct {
39 state protoimpl.MessageState
40 sizeCache protoimpl.SizeCache
41 unknownFields protoimpl.UnknownFields
42
43 // CISA maintains the authoritative source of vulnerabilities that have been
44 // exploited in the wild.
45 CisaKev *CISAKnownExploitedVulnerabilities `protobuf:"bytes,1,opt,name=cisa_kev,json=cisaKev,proto3" json:"cisa_kev,omitempty"`
46 // The Exploit Prediction Scoring System (EPSS) estimates the likelihood
47 // (probability) that a software vulnerability will be exploited in the wild.
48 Epss *ExploitPredictionScoringSystem `protobuf:"bytes,2,opt,name=epss,proto3" json:"epss,omitempty"`
49 }
50
51 func (x *Risk) Reset() {
52 *x = Risk{}
53 if protoimpl.UnsafeEnabled {
54 mi := &file_grafeas_v1_risk_proto_msgTypes[0]
55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
56 ms.StoreMessageInfo(mi)
57 }
58 }
59
60 func (x *Risk) String() string {
61 return protoimpl.X.MessageStringOf(x)
62 }
63
64 func (*Risk) ProtoMessage() {}
65
66 func (x *Risk) ProtoReflect() protoreflect.Message {
67 mi := &file_grafeas_v1_risk_proto_msgTypes[0]
68 if protoimpl.UnsafeEnabled && x != nil {
69 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
70 if ms.LoadMessageInfo() == nil {
71 ms.StoreMessageInfo(mi)
72 }
73 return ms
74 }
75 return mi.MessageOf(x)
76 }
77
78 // Deprecated: Use Risk.ProtoReflect.Descriptor instead.
79 func (*Risk) Descriptor() ([]byte, []int) {
80 return file_grafeas_v1_risk_proto_rawDescGZIP(), []int{0}
81 }
82
83 func (x *Risk) GetCisaKev() *CISAKnownExploitedVulnerabilities {
84 if x != nil {
85 return x.CisaKev
86 }
87 return nil
88 }
89
90 func (x *Risk) GetEpss() *ExploitPredictionScoringSystem {
91 if x != nil {
92 return x.Epss
93 }
94 return nil
95 }
96
97 type CISAKnownExploitedVulnerabilities struct {
98 state protoimpl.MessageState
99 sizeCache protoimpl.SizeCache
100 unknownFields protoimpl.UnknownFields
101
102 // Whether the vulnerability is known to have been leveraged as part of a
103 // ransomware campaign.
104 KnownRansomwareCampaignUse string `protobuf:"bytes,1,opt,name=known_ransomware_campaign_use,json=knownRansomwareCampaignUse,proto3" json:"known_ransomware_campaign_use,omitempty"`
105 }
106
107 func (x *CISAKnownExploitedVulnerabilities) Reset() {
108 *x = CISAKnownExploitedVulnerabilities{}
109 if protoimpl.UnsafeEnabled {
110 mi := &file_grafeas_v1_risk_proto_msgTypes[1]
111 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
112 ms.StoreMessageInfo(mi)
113 }
114 }
115
116 func (x *CISAKnownExploitedVulnerabilities) String() string {
117 return protoimpl.X.MessageStringOf(x)
118 }
119
120 func (*CISAKnownExploitedVulnerabilities) ProtoMessage() {}
121
122 func (x *CISAKnownExploitedVulnerabilities) ProtoReflect() protoreflect.Message {
123 mi := &file_grafeas_v1_risk_proto_msgTypes[1]
124 if protoimpl.UnsafeEnabled && x != nil {
125 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
126 if ms.LoadMessageInfo() == nil {
127 ms.StoreMessageInfo(mi)
128 }
129 return ms
130 }
131 return mi.MessageOf(x)
132 }
133
134 // Deprecated: Use CISAKnownExploitedVulnerabilities.ProtoReflect.Descriptor instead.
135 func (*CISAKnownExploitedVulnerabilities) Descriptor() ([]byte, []int) {
136 return file_grafeas_v1_risk_proto_rawDescGZIP(), []int{1}
137 }
138
139 func (x *CISAKnownExploitedVulnerabilities) GetKnownRansomwareCampaignUse() string {
140 if x != nil {
141 return x.KnownRansomwareCampaignUse
142 }
143 return ""
144 }
145
146 type ExploitPredictionScoringSystem struct {
147 state protoimpl.MessageState
148 sizeCache protoimpl.SizeCache
149 unknownFields protoimpl.UnknownFields
150
151 // The percentile of the current score, the proportion of all scored
152 // vulnerabilities with the same or a lower EPSS score
153 Percentile float64 `protobuf:"fixed64,1,opt,name=percentile,proto3" json:"percentile,omitempty"`
154 // The EPSS score representing the probability [0-1] of exploitation in the
155 // wild in the next 30 days
156 Score float64 `protobuf:"fixed64,2,opt,name=score,proto3" json:"score,omitempty"`
157 }
158
159 func (x *ExploitPredictionScoringSystem) Reset() {
160 *x = ExploitPredictionScoringSystem{}
161 if protoimpl.UnsafeEnabled {
162 mi := &file_grafeas_v1_risk_proto_msgTypes[2]
163 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
164 ms.StoreMessageInfo(mi)
165 }
166 }
167
168 func (x *ExploitPredictionScoringSystem) String() string {
169 return protoimpl.X.MessageStringOf(x)
170 }
171
172 func (*ExploitPredictionScoringSystem) ProtoMessage() {}
173
174 func (x *ExploitPredictionScoringSystem) ProtoReflect() protoreflect.Message {
175 mi := &file_grafeas_v1_risk_proto_msgTypes[2]
176 if protoimpl.UnsafeEnabled && x != nil {
177 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
178 if ms.LoadMessageInfo() == nil {
179 ms.StoreMessageInfo(mi)
180 }
181 return ms
182 }
183 return mi.MessageOf(x)
184 }
185
186 // Deprecated: Use ExploitPredictionScoringSystem.ProtoReflect.Descriptor instead.
187 func (*ExploitPredictionScoringSystem) Descriptor() ([]byte, []int) {
188 return file_grafeas_v1_risk_proto_rawDescGZIP(), []int{2}
189 }
190
191 func (x *ExploitPredictionScoringSystem) GetPercentile() float64 {
192 if x != nil {
193 return x.Percentile
194 }
195 return 0
196 }
197
198 func (x *ExploitPredictionScoringSystem) GetScore() float64 {
199 if x != nil {
200 return x.Score
201 }
202 return 0
203 }
204
205 var File_grafeas_v1_risk_proto protoreflect.FileDescriptor
206
207 var file_grafeas_v1_risk_proto_rawDesc = []byte{
208 0x0a, 0x15, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x69, 0x73,
209 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73,
210 0x2e, 0x76, 0x31, 0x22, 0x90, 0x01, 0x0a, 0x04, 0x52, 0x69, 0x73, 0x6b, 0x12, 0x48, 0x0a, 0x08,
211 0x63, 0x69, 0x73, 0x61, 0x5f, 0x6b, 0x65, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d,
212 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x49, 0x53, 0x41,
213 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x45, 0x78, 0x70, 0x6c, 0x6f, 0x69, 0x74, 0x65, 0x64, 0x56, 0x75,
214 0x6c, 0x6e, 0x65, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x07, 0x63,
215 0x69, 0x73, 0x61, 0x4b, 0x65, 0x76, 0x12, 0x3e, 0x0a, 0x04, 0x65, 0x70, 0x73, 0x73, 0x18, 0x02,
216 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76,
217 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6c, 0x6f, 0x69, 0x74, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74,
218 0x69, 0x6f, 0x6e, 0x53, 0x63, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d,
219 0x52, 0x04, 0x65, 0x70, 0x73, 0x73, 0x22, 0x66, 0x0a, 0x21, 0x43, 0x49, 0x53, 0x41, 0x4b, 0x6e,
220 0x6f, 0x77, 0x6e, 0x45, 0x78, 0x70, 0x6c, 0x6f, 0x69, 0x74, 0x65, 0x64, 0x56, 0x75, 0x6c, 0x6e,
221 0x65, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x41, 0x0a, 0x1d, 0x6b,
222 0x6e, 0x6f, 0x77, 0x6e, 0x5f, 0x72, 0x61, 0x6e, 0x73, 0x6f, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x5f,
223 0x63, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01,
224 0x28, 0x09, 0x52, 0x1a, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x52, 0x61, 0x6e, 0x73, 0x6f, 0x6d, 0x77,
225 0x61, 0x72, 0x65, 0x43, 0x61, 0x6d, 0x70, 0x61, 0x69, 0x67, 0x6e, 0x55, 0x73, 0x65, 0x22, 0x56,
226 0x0a, 0x1e, 0x45, 0x78, 0x70, 0x6c, 0x6f, 0x69, 0x74, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74,
227 0x69, 0x6f, 0x6e, 0x53, 0x63, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d,
228 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x69, 0x6c, 0x65, 0x18, 0x01,
229 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x69, 0x6c, 0x65,
230 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52,
231 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x51, 0x0a, 0x0d, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x61,
232 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
233 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e,
234 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
235 0x2f, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x72, 0x61, 0x66,
236 0x65, 0x61, 0x73, 0xa2, 0x02, 0x03, 0x47, 0x52, 0x41, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
237 0x33,
238 }
239
240 var (
241 file_grafeas_v1_risk_proto_rawDescOnce sync.Once
242 file_grafeas_v1_risk_proto_rawDescData = file_grafeas_v1_risk_proto_rawDesc
243 )
244
245 func file_grafeas_v1_risk_proto_rawDescGZIP() []byte {
246 file_grafeas_v1_risk_proto_rawDescOnce.Do(func() {
247 file_grafeas_v1_risk_proto_rawDescData = protoimpl.X.CompressGZIP(file_grafeas_v1_risk_proto_rawDescData)
248 })
249 return file_grafeas_v1_risk_proto_rawDescData
250 }
251
252 var file_grafeas_v1_risk_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
253 var file_grafeas_v1_risk_proto_goTypes = []interface{}{
254 (*Risk)(nil), // 0: grafeas.v1.Risk
255 (*CISAKnownExploitedVulnerabilities)(nil), // 1: grafeas.v1.CISAKnownExploitedVulnerabilities
256 (*ExploitPredictionScoringSystem)(nil), // 2: grafeas.v1.ExploitPredictionScoringSystem
257 }
258 var file_grafeas_v1_risk_proto_depIdxs = []int32{
259 1, // 0: grafeas.v1.Risk.cisa_kev:type_name -> grafeas.v1.CISAKnownExploitedVulnerabilities
260 2, // 1: grafeas.v1.Risk.epss:type_name -> grafeas.v1.ExploitPredictionScoringSystem
261 2, // [2:2] is the sub-list for method output_type
262 2, // [2:2] is the sub-list for method input_type
263 2, // [2:2] is the sub-list for extension type_name
264 2, // [2:2] is the sub-list for extension extendee
265 0, // [0:2] is the sub-list for field type_name
266 }
267
268 func init() { file_grafeas_v1_risk_proto_init() }
269 func file_grafeas_v1_risk_proto_init() {
270 if File_grafeas_v1_risk_proto != nil {
271 return
272 }
273 if !protoimpl.UnsafeEnabled {
274 file_grafeas_v1_risk_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
275 switch v := v.(*Risk); i {
276 case 0:
277 return &v.state
278 case 1:
279 return &v.sizeCache
280 case 2:
281 return &v.unknownFields
282 default:
283 return nil
284 }
285 }
286 file_grafeas_v1_risk_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
287 switch v := v.(*CISAKnownExploitedVulnerabilities); i {
288 case 0:
289 return &v.state
290 case 1:
291 return &v.sizeCache
292 case 2:
293 return &v.unknownFields
294 default:
295 return nil
296 }
297 }
298 file_grafeas_v1_risk_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
299 switch v := v.(*ExploitPredictionScoringSystem); i {
300 case 0:
301 return &v.state
302 case 1:
303 return &v.sizeCache
304 case 2:
305 return &v.unknownFields
306 default:
307 return nil
308 }
309 }
310 }
311 type x struct{}
312 out := protoimpl.TypeBuilder{
313 File: protoimpl.DescBuilder{
314 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
315 RawDescriptor: file_grafeas_v1_risk_proto_rawDesc,
316 NumEnums: 0,
317 NumMessages: 3,
318 NumExtensions: 0,
319 NumServices: 0,
320 },
321 GoTypes: file_grafeas_v1_risk_proto_goTypes,
322 DependencyIndexes: file_grafeas_v1_risk_proto_depIdxs,
323 MessageInfos: file_grafeas_v1_risk_proto_msgTypes,
324 }.Build()
325 File_grafeas_v1_risk_proto = out.File
326 file_grafeas_v1_risk_proto_rawDesc = nil
327 file_grafeas_v1_risk_proto_goTypes = nil
328 file_grafeas_v1_risk_proto_depIdxs = nil
329 }