Debian Codegraph @

googleapis/grafeas/v1/discovery.pb.go

raw
1 // Copyright 2019 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/discovery.proto
20
21 package grafeas
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 _ "google.golang.org/genproto/googleapis/api/annotations"
28 status "google.golang.org/genproto/googleapis/rpc/status"
29 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
30 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
31 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
32 )
33
34 const (
35 // Verify that this generated code is sufficiently up-to-date.
36 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
37 // Verify that runtime/protoimpl is sufficiently up-to-date.
38 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
39 )
40
41 // Whether the resource is continuously analyzed.
42 type DiscoveryOccurrence_ContinuousAnalysis int32
43
44 const (
45 // Unknown.
46 DiscoveryOccurrence_CONTINUOUS_ANALYSIS_UNSPECIFIED DiscoveryOccurrence_ContinuousAnalysis = 0
47 // The resource is continuously analyzed.
48 DiscoveryOccurrence_ACTIVE DiscoveryOccurrence_ContinuousAnalysis = 1
49 // The resource is ignored for continuous analysis.
50 DiscoveryOccurrence_INACTIVE DiscoveryOccurrence_ContinuousAnalysis = 2
51 )
52
53 // Enum value maps for DiscoveryOccurrence_ContinuousAnalysis.
54 var (
55 DiscoveryOccurrence_ContinuousAnalysis_name = map[int32]string{
56 0: "CONTINUOUS_ANALYSIS_UNSPECIFIED",
57 1: "ACTIVE",
58 2: "INACTIVE",
59 }
60 DiscoveryOccurrence_ContinuousAnalysis_value = map[string]int32{
61 "CONTINUOUS_ANALYSIS_UNSPECIFIED": 0,
62 "ACTIVE": 1,
63 "INACTIVE": 2,
64 }
65 )
66
67 func (x DiscoveryOccurrence_ContinuousAnalysis) Enum() *DiscoveryOccurrence_ContinuousAnalysis {
68 p := new(DiscoveryOccurrence_ContinuousAnalysis)
69 *p = x
70 return p
71 }
72
73 func (x DiscoveryOccurrence_ContinuousAnalysis) String() string {
74 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
75 }
76
77 func (DiscoveryOccurrence_ContinuousAnalysis) Descriptor() protoreflect.EnumDescriptor {
78 return file_grafeas_v1_discovery_proto_enumTypes[0].Descriptor()
79 }
80
81 func (DiscoveryOccurrence_ContinuousAnalysis) Type() protoreflect.EnumType {
82 return &file_grafeas_v1_discovery_proto_enumTypes[0]
83 }
84
85 func (x DiscoveryOccurrence_ContinuousAnalysis) Number() protoreflect.EnumNumber {
86 return protoreflect.EnumNumber(x)
87 }
88
89 // Deprecated: Use DiscoveryOccurrence_ContinuousAnalysis.Descriptor instead.
90 func (DiscoveryOccurrence_ContinuousAnalysis) EnumDescriptor() ([]byte, []int) {
91 return file_grafeas_v1_discovery_proto_rawDescGZIP(), []int{1, 0}
92 }
93
94 // Analysis status for a resource. Currently for initial analysis only (not
95 // updated in continuous analysis).
96 type DiscoveryOccurrence_AnalysisStatus int32
97
98 const (
99 // Unknown.
100 DiscoveryOccurrence_ANALYSIS_STATUS_UNSPECIFIED DiscoveryOccurrence_AnalysisStatus = 0
101 // Resource is known but no action has been taken yet.
102 DiscoveryOccurrence_PENDING DiscoveryOccurrence_AnalysisStatus = 1
103 // Resource is being analyzed.
104 DiscoveryOccurrence_SCANNING DiscoveryOccurrence_AnalysisStatus = 2
105 // Analysis has finished successfully.
106 DiscoveryOccurrence_FINISHED_SUCCESS DiscoveryOccurrence_AnalysisStatus = 3
107 // Analysis has completed.
108 DiscoveryOccurrence_COMPLETE DiscoveryOccurrence_AnalysisStatus = 3
109 // Analysis has finished unsuccessfully, the analysis itself is in a bad
110 // state.
111 DiscoveryOccurrence_FINISHED_FAILED DiscoveryOccurrence_AnalysisStatus = 4
112 // The resource is known not to be supported.
113 DiscoveryOccurrence_FINISHED_UNSUPPORTED DiscoveryOccurrence_AnalysisStatus = 5
114 )
115
116 // Enum value maps for DiscoveryOccurrence_AnalysisStatus.
117 var (
118 DiscoveryOccurrence_AnalysisStatus_name = map[int32]string{
119 0: "ANALYSIS_STATUS_UNSPECIFIED",
120 1: "PENDING",
121 2: "SCANNING",
122 3: "FINISHED_SUCCESS",
123 // Duplicate value: 3: "COMPLETE",
124 4: "FINISHED_FAILED",
125 5: "FINISHED_UNSUPPORTED",
126 }
127 DiscoveryOccurrence_AnalysisStatus_value = map[string]int32{
128 "ANALYSIS_STATUS_UNSPECIFIED": 0,
129 "PENDING": 1,
130 "SCANNING": 2,
131 "FINISHED_SUCCESS": 3,
132 "COMPLETE": 3,
133 "FINISHED_FAILED": 4,
134 "FINISHED_UNSUPPORTED": 5,
135 }
136 )
137
138 func (x DiscoveryOccurrence_AnalysisStatus) Enum() *DiscoveryOccurrence_AnalysisStatus {
139 p := new(DiscoveryOccurrence_AnalysisStatus)
140 *p = x
141 return p
142 }
143
144 func (x DiscoveryOccurrence_AnalysisStatus) String() string {
145 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
146 }
147
148 func (DiscoveryOccurrence_AnalysisStatus) Descriptor() protoreflect.EnumDescriptor {
149 return file_grafeas_v1_discovery_proto_enumTypes[1].Descriptor()
150 }
151
152 func (DiscoveryOccurrence_AnalysisStatus) Type() protoreflect.EnumType {
153 return &file_grafeas_v1_discovery_proto_enumTypes[1]
154 }
155
156 func (x DiscoveryOccurrence_AnalysisStatus) Number() protoreflect.EnumNumber {
157 return protoreflect.EnumNumber(x)
158 }
159
160 // Deprecated: Use DiscoveryOccurrence_AnalysisStatus.Descriptor instead.
161 func (DiscoveryOccurrence_AnalysisStatus) EnumDescriptor() ([]byte, []int) {
162 return file_grafeas_v1_discovery_proto_rawDescGZIP(), []int{1, 1}
163 }
164
165 // An enum indicating the progress of the SBOM generation.
166 type DiscoveryOccurrence_SBOMStatus_SBOMState int32
167
168 const (
169 // Default unknown state.
170 DiscoveryOccurrence_SBOMStatus_SBOM_STATE_UNSPECIFIED DiscoveryOccurrence_SBOMStatus_SBOMState = 0
171 // SBOM scanning is pending.
172 DiscoveryOccurrence_SBOMStatus_PENDING DiscoveryOccurrence_SBOMStatus_SBOMState = 1
173 // SBOM scanning has completed.
174 DiscoveryOccurrence_SBOMStatus_COMPLETE DiscoveryOccurrence_SBOMStatus_SBOMState = 2
175 )
176
177 // Enum value maps for DiscoveryOccurrence_SBOMStatus_SBOMState.
178 var (
179 DiscoveryOccurrence_SBOMStatus_SBOMState_name = map[int32]string{
180 0: "SBOM_STATE_UNSPECIFIED",
181 1: "PENDING",
182 2: "COMPLETE",
183 }
184 DiscoveryOccurrence_SBOMStatus_SBOMState_value = map[string]int32{
185 "SBOM_STATE_UNSPECIFIED": 0,
186 "PENDING": 1,
187 "COMPLETE": 2,
188 }
189 )
190
191 func (x DiscoveryOccurrence_SBOMStatus_SBOMState) Enum() *DiscoveryOccurrence_SBOMStatus_SBOMState {
192 p := new(DiscoveryOccurrence_SBOMStatus_SBOMState)
193 *p = x
194 return p
195 }
196
197 func (x DiscoveryOccurrence_SBOMStatus_SBOMState) String() string {
198 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
199 }
200
201 func (DiscoveryOccurrence_SBOMStatus_SBOMState) Descriptor() protoreflect.EnumDescriptor {
202 return file_grafeas_v1_discovery_proto_enumTypes[2].Descriptor()
203 }
204
205 func (DiscoveryOccurrence_SBOMStatus_SBOMState) Type() protoreflect.EnumType {
206 return &file_grafeas_v1_discovery_proto_enumTypes[2]
207 }
208
209 func (x DiscoveryOccurrence_SBOMStatus_SBOMState) Number() protoreflect.EnumNumber {
210 return protoreflect.EnumNumber(x)
211 }
212
213 // Deprecated: Use DiscoveryOccurrence_SBOMStatus_SBOMState.Descriptor instead.
214 func (DiscoveryOccurrence_SBOMStatus_SBOMState) EnumDescriptor() ([]byte, []int) {
215 return file_grafeas_v1_discovery_proto_rawDescGZIP(), []int{1, 1, 0}
216 }
217
218 // An enum indicating the state of the attestation generation.
219 type DiscoveryOccurrence_VulnerabilityAttestation_VulnerabilityAttestationState int32
220
221 const (
222 // Default unknown state.
223 DiscoveryOccurrence_VulnerabilityAttestation_VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED DiscoveryOccurrence_VulnerabilityAttestation_VulnerabilityAttestationState = 0
224 // Attestation was successfully generated and stored.
225 DiscoveryOccurrence_VulnerabilityAttestation_SUCCESS DiscoveryOccurrence_VulnerabilityAttestation_VulnerabilityAttestationState = 1
226 // Attestation was unsuccessfully generated and stored.
227 DiscoveryOccurrence_VulnerabilityAttestation_FAILURE DiscoveryOccurrence_VulnerabilityAttestation_VulnerabilityAttestationState = 2
228 )
229
230 // Enum value maps for DiscoveryOccurrence_VulnerabilityAttestation_VulnerabilityAttestationState.
231 var (
232 DiscoveryOccurrence_VulnerabilityAttestation_VulnerabilityAttestationState_name = map[int32]string{
233 0: "VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED",
234 1: "SUCCESS",
235 2: "FAILURE",
236 }
237 DiscoveryOccurrence_VulnerabilityAttestation_VulnerabilityAttestationState_value = map[string]int32{
238 "VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED": 0,
239 "SUCCESS": 1,
240 "FAILURE": 2,
241 }
242 )
243
244 func (x DiscoveryOccurrence_VulnerabilityAttestation_VulnerabilityAttestationState) Enum() *DiscoveryOccurrence_VulnerabilityAttestation_VulnerabilityAttestationState {
245 p := new(DiscoveryOccurrence_VulnerabilityAttestation_VulnerabilityAttestationState)
246 *p = x
247 return p
248 }
249
250 func (x DiscoveryOccurrence_VulnerabilityAttestation_VulnerabilityAttestationState) String() string {
251 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
252 }
253
254 func (DiscoveryOccurrence_VulnerabilityAttestation_VulnerabilityAttestationState) Descriptor() protoreflect.EnumDescriptor {
255 return file_grafeas_v1_discovery_proto_enumTypes[3].Descriptor()
256 }
257
258 func (DiscoveryOccurrence_VulnerabilityAttestation_VulnerabilityAttestationState) Type() protoreflect.EnumType {
259 return &file_grafeas_v1_discovery_proto_enumTypes[3]
260 }
261
262 func (x DiscoveryOccurrence_VulnerabilityAttestation_VulnerabilityAttestationState) Number() protoreflect.EnumNumber {
263 return protoreflect.EnumNumber(x)
264 }
265
266 // Deprecated: Use DiscoveryOccurrence_VulnerabilityAttestation_VulnerabilityAttestationState.Descriptor instead.
267 func (DiscoveryOccurrence_VulnerabilityAttestation_VulnerabilityAttestationState) EnumDescriptor() ([]byte, []int) {
268 return file_grafeas_v1_discovery_proto_rawDescGZIP(), []int{1, 2, 0}
269 }
270
271 // A note that indicates a type of analysis a provider would perform. This note
272 // exists in a provider's project. A `Discovery` occurrence is created in a
273 // consumer's project at the start of analysis.
274 type DiscoveryNote struct {
275 state protoimpl.MessageState
276 sizeCache protoimpl.SizeCache
277 unknownFields protoimpl.UnknownFields
278
279 // Required. Immutable. The kind of analysis that is handled by this
280 // discovery.
281 AnalysisKind NoteKind `protobuf:"varint,1,opt,name=analysis_kind,json=analysisKind,proto3,enum=grafeas.v1.NoteKind" json:"analysis_kind,omitempty"`
282 }
283
284 func (x *DiscoveryNote) Reset() {
285 *x = DiscoveryNote{}
286 if protoimpl.UnsafeEnabled {
287 mi := &file_grafeas_v1_discovery_proto_msgTypes[0]
288 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
289 ms.StoreMessageInfo(mi)
290 }
291 }
292
293 func (x *DiscoveryNote) String() string {
294 return protoimpl.X.MessageStringOf(x)
295 }
296
297 func (*DiscoveryNote) ProtoMessage() {}
298
299 func (x *DiscoveryNote) ProtoReflect() protoreflect.Message {
300 mi := &file_grafeas_v1_discovery_proto_msgTypes[0]
301 if protoimpl.UnsafeEnabled && x != nil {
302 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
303 if ms.LoadMessageInfo() == nil {
304 ms.StoreMessageInfo(mi)
305 }
306 return ms
307 }
308 return mi.MessageOf(x)
309 }
310
311 // Deprecated: Use DiscoveryNote.ProtoReflect.Descriptor instead.
312 func (*DiscoveryNote) Descriptor() ([]byte, []int) {
313 return file_grafeas_v1_discovery_proto_rawDescGZIP(), []int{0}
314 }
315
316 func (x *DiscoveryNote) GetAnalysisKind() NoteKind {
317 if x != nil {
318 return x.AnalysisKind
319 }
320 return NoteKind_NOTE_KIND_UNSPECIFIED
321 }
322
323 // Provides information about the analysis status of a discovered resource.
324 type DiscoveryOccurrence struct {
325 state protoimpl.MessageState
326 sizeCache protoimpl.SizeCache
327 unknownFields protoimpl.UnknownFields
328
329 // Whether the resource is continuously analyzed.
330 ContinuousAnalysis DiscoveryOccurrence_ContinuousAnalysis `protobuf:"varint,1,opt,name=continuous_analysis,json=continuousAnalysis,proto3,enum=grafeas.v1.DiscoveryOccurrence_ContinuousAnalysis" json:"continuous_analysis,omitempty"`
331 // The status of discovery for the resource.
332 AnalysisStatus DiscoveryOccurrence_AnalysisStatus `protobuf:"varint,2,opt,name=analysis_status,json=analysisStatus,proto3,enum=grafeas.v1.DiscoveryOccurrence_AnalysisStatus" json:"analysis_status,omitempty"`
333 AnalysisCompleted *DiscoveryOccurrence_AnalysisCompleted `protobuf:"bytes,7,opt,name=analysis_completed,json=analysisCompleted,proto3" json:"analysis_completed,omitempty"`
334 // Indicates any errors encountered during analysis of a resource. There
335 // could be 0 or more of these errors.
336 AnalysisError []*status.Status `protobuf:"bytes,8,rep,name=analysis_error,json=analysisError,proto3" json:"analysis_error,omitempty"`
337 // When an error is encountered this will contain a LocalizedMessage under
338 // details to show to the user. The LocalizedMessage is output only and
339 // populated by the API.
340 AnalysisStatusError *status.Status `protobuf:"bytes,3,opt,name=analysis_status_error,json=analysisStatusError,proto3" json:"analysis_status_error,omitempty"`
341 // The CPE of the resource being scanned.
342 Cpe string `protobuf:"bytes,4,opt,name=cpe,proto3" json:"cpe,omitempty"`
343 // The last time this resource was scanned.
344 LastScanTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_scan_time,json=lastScanTime,proto3" json:"last_scan_time,omitempty"`
345 // The time occurrences related to this discovery occurrence were archived.
346 ArchiveTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=archive_time,json=archiveTime,proto3" json:"archive_time,omitempty"`
347 // The status of an SBOM generation.
348 SbomStatus *DiscoveryOccurrence_SBOMStatus `protobuf:"bytes,9,opt,name=sbom_status,json=sbomStatus,proto3" json:"sbom_status,omitempty"`
349 // The status of an vulnerability attestation generation.
350 VulnerabilityAttestation *DiscoveryOccurrence_VulnerabilityAttestation `protobuf:"bytes,10,opt,name=vulnerability_attestation,json=vulnerabilityAttestation,proto3" json:"vulnerability_attestation,omitempty"`
351 // Files that make up the resource described by the occurrence.
352 Files []*DiscoveryOccurrence_File `protobuf:"bytes,11,rep,name=files,proto3" json:"files,omitempty"`
353 // The last time vulnerability scan results changed.
354 LastVulnerabilityUpdateTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=last_vulnerability_update_time,json=lastVulnerabilityUpdateTime,proto3" json:"last_vulnerability_update_time,omitempty"`
355 }
356
357 func (x *DiscoveryOccurrence) Reset() {
358 *x = DiscoveryOccurrence{}
359 if protoimpl.UnsafeEnabled {
360 mi := &file_grafeas_v1_discovery_proto_msgTypes[1]
361 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
362 ms.StoreMessageInfo(mi)
363 }
364 }
365
366 func (x *DiscoveryOccurrence) String() string {
367 return protoimpl.X.MessageStringOf(x)
368 }
369
370 func (*DiscoveryOccurrence) ProtoMessage() {}
371
372 func (x *DiscoveryOccurrence) ProtoReflect() protoreflect.Message {
373 mi := &file_grafeas_v1_discovery_proto_msgTypes[1]
374 if protoimpl.UnsafeEnabled && x != nil {
375 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
376 if ms.LoadMessageInfo() == nil {
377 ms.StoreMessageInfo(mi)
378 }
379 return ms
380 }
381 return mi.MessageOf(x)
382 }
383
384 // Deprecated: Use DiscoveryOccurrence.ProtoReflect.Descriptor instead.
385 func (*DiscoveryOccurrence) Descriptor() ([]byte, []int) {
386 return file_grafeas_v1_discovery_proto_rawDescGZIP(), []int{1}
387 }
388
389 func (x *DiscoveryOccurrence) GetContinuousAnalysis() DiscoveryOccurrence_ContinuousAnalysis {
390 if x != nil {
391 return x.ContinuousAnalysis
392 }
393 return DiscoveryOccurrence_CONTINUOUS_ANALYSIS_UNSPECIFIED
394 }
395
396 func (x *DiscoveryOccurrence) GetAnalysisStatus() DiscoveryOccurrence_AnalysisStatus {
397 if x != nil {
398 return x.AnalysisStatus
399 }
400 return DiscoveryOccurrence_ANALYSIS_STATUS_UNSPECIFIED
401 }
402
403 func (x *DiscoveryOccurrence) GetAnalysisCompleted() *DiscoveryOccurrence_AnalysisCompleted {
404 if x != nil {
405 return x.AnalysisCompleted
406 }
407 return nil
408 }
409
410 func (x *DiscoveryOccurrence) GetAnalysisError() []*status.Status {
411 if x != nil {
412 return x.AnalysisError
413 }
414 return nil
415 }
416
417 func (x *DiscoveryOccurrence) GetAnalysisStatusError() *status.Status {
418 if x != nil {
419 return x.AnalysisStatusError
420 }
421 return nil
422 }
423
424 func (x *DiscoveryOccurrence) GetCpe() string {
425 if x != nil {
426 return x.Cpe
427 }
428 return ""
429 }
430
431 func (x *DiscoveryOccurrence) GetLastScanTime() *timestamppb.Timestamp {
432 if x != nil {
433 return x.LastScanTime
434 }
435 return nil
436 }
437
438 func (x *DiscoveryOccurrence) GetArchiveTime() *timestamppb.Timestamp {
439 if x != nil {
440 return x.ArchiveTime
441 }
442 return nil
443 }
444
445 func (x *DiscoveryOccurrence) GetSbomStatus() *DiscoveryOccurrence_SBOMStatus {
446 if x != nil {
447 return x.SbomStatus
448 }
449 return nil
450 }
451
452 func (x *DiscoveryOccurrence) GetVulnerabilityAttestation() *DiscoveryOccurrence_VulnerabilityAttestation {
453 if x != nil {
454 return x.VulnerabilityAttestation
455 }
456 return nil
457 }
458
459 func (x *DiscoveryOccurrence) GetFiles() []*DiscoveryOccurrence_File {
460 if x != nil {
461 return x.Files
462 }
463 return nil
464 }
465
466 func (x *DiscoveryOccurrence) GetLastVulnerabilityUpdateTime() *timestamppb.Timestamp {
467 if x != nil {
468 return x.LastVulnerabilityUpdateTime
469 }
470 return nil
471 }
472
473 // Indicates which analysis completed successfully. Multiple types of
474 // analysis can be performed on a single resource.
475 type DiscoveryOccurrence_AnalysisCompleted struct {
476 state protoimpl.MessageState
477 sizeCache protoimpl.SizeCache
478 unknownFields protoimpl.UnknownFields
479
480 AnalysisType []string `protobuf:"bytes,1,rep,name=analysis_type,json=analysisType,proto3" json:"analysis_type,omitempty"`
481 }
482
483 func (x *DiscoveryOccurrence_AnalysisCompleted) Reset() {
484 *x = DiscoveryOccurrence_AnalysisCompleted{}
485 if protoimpl.UnsafeEnabled {
486 mi := &file_grafeas_v1_discovery_proto_msgTypes[2]
487 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
488 ms.StoreMessageInfo(mi)
489 }
490 }
491
492 func (x *DiscoveryOccurrence_AnalysisCompleted) String() string {
493 return protoimpl.X.MessageStringOf(x)
494 }
495
496 func (*DiscoveryOccurrence_AnalysisCompleted) ProtoMessage() {}
497
498 func (x *DiscoveryOccurrence_AnalysisCompleted) ProtoReflect() protoreflect.Message {
499 mi := &file_grafeas_v1_discovery_proto_msgTypes[2]
500 if protoimpl.UnsafeEnabled && x != nil {
501 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
502 if ms.LoadMessageInfo() == nil {
503 ms.StoreMessageInfo(mi)
504 }
505 return ms
506 }
507 return mi.MessageOf(x)
508 }
509
510 // Deprecated: Use DiscoveryOccurrence_AnalysisCompleted.ProtoReflect.Descriptor instead.
511 func (*DiscoveryOccurrence_AnalysisCompleted) Descriptor() ([]byte, []int) {
512 return file_grafeas_v1_discovery_proto_rawDescGZIP(), []int{1, 0}
513 }
514
515 func (x *DiscoveryOccurrence_AnalysisCompleted) GetAnalysisType() []string {
516 if x != nil {
517 return x.AnalysisType
518 }
519 return nil
520 }
521
522 // The status of an SBOM generation.
523 type DiscoveryOccurrence_SBOMStatus struct {
524 state protoimpl.MessageState
525 sizeCache protoimpl.SizeCache
526 unknownFields protoimpl.UnknownFields
527
528 // The progress of the SBOM generation.
529 SbomState DiscoveryOccurrence_SBOMStatus_SBOMState `protobuf:"varint,1,opt,name=sbom_state,json=sbomState,proto3,enum=grafeas.v1.DiscoveryOccurrence_SBOMStatus_SBOMState" json:"sbom_state,omitempty"`
530 // If there was an error generating an SBOM, this will indicate what that
531 // error was.
532 Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
533 }
534
535 func (x *DiscoveryOccurrence_SBOMStatus) Reset() {
536 *x = DiscoveryOccurrence_SBOMStatus{}
537 if protoimpl.UnsafeEnabled {
538 mi := &file_grafeas_v1_discovery_proto_msgTypes[3]
539 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
540 ms.StoreMessageInfo(mi)
541 }
542 }
543
544 func (x *DiscoveryOccurrence_SBOMStatus) String() string {
545 return protoimpl.X.MessageStringOf(x)
546 }
547
548 func (*DiscoveryOccurrence_SBOMStatus) ProtoMessage() {}
549
550 func (x *DiscoveryOccurrence_SBOMStatus) ProtoReflect() protoreflect.Message {
551 mi := &file_grafeas_v1_discovery_proto_msgTypes[3]
552 if protoimpl.UnsafeEnabled && x != nil {
553 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
554 if ms.LoadMessageInfo() == nil {
555 ms.StoreMessageInfo(mi)
556 }
557 return ms
558 }
559 return mi.MessageOf(x)
560 }
561
562 // Deprecated: Use DiscoveryOccurrence_SBOMStatus.ProtoReflect.Descriptor instead.
563 func (*DiscoveryOccurrence_SBOMStatus) Descriptor() ([]byte, []int) {
564 return file_grafeas_v1_discovery_proto_rawDescGZIP(), []int{1, 1}
565 }
566
567 func (x *DiscoveryOccurrence_SBOMStatus) GetSbomState() DiscoveryOccurrence_SBOMStatus_SBOMState {
568 if x != nil {
569 return x.SbomState
570 }
571 return DiscoveryOccurrence_SBOMStatus_SBOM_STATE_UNSPECIFIED
572 }
573
574 func (x *DiscoveryOccurrence_SBOMStatus) GetError() string {
575 if x != nil {
576 return x.Error
577 }
578 return ""
579 }
580
581 // The status of an vulnerability attestation generation.
582 type DiscoveryOccurrence_VulnerabilityAttestation struct {
583 state protoimpl.MessageState
584 sizeCache protoimpl.SizeCache
585 unknownFields protoimpl.UnknownFields
586
587 // The last time we attempted to generate an attestation.
588 LastAttemptTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=last_attempt_time,json=lastAttemptTime,proto3" json:"last_attempt_time,omitempty"`
589 // The success/failure state of the latest attestation attempt.
590 State DiscoveryOccurrence_VulnerabilityAttestation_VulnerabilityAttestationState `protobuf:"varint,2,opt,name=state,proto3,enum=grafeas.v1.DiscoveryOccurrence_VulnerabilityAttestation_VulnerabilityAttestationState" json:"state,omitempty"`
591 // If failure, the error reason for why the attestation generation failed.
592 Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
593 }
594
595 func (x *DiscoveryOccurrence_VulnerabilityAttestation) Reset() {
596 *x = DiscoveryOccurrence_VulnerabilityAttestation{}
597 if protoimpl.UnsafeEnabled {
598 mi := &file_grafeas_v1_discovery_proto_msgTypes[4]
599 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
600 ms.StoreMessageInfo(mi)
601 }
602 }
603
604 func (x *DiscoveryOccurrence_VulnerabilityAttestation) String() string {
605 return protoimpl.X.MessageStringOf(x)
606 }
607
608 func (*DiscoveryOccurrence_VulnerabilityAttestation) ProtoMessage() {}
609
610 func (x *DiscoveryOccurrence_VulnerabilityAttestation) ProtoReflect() protoreflect.Message {
611 mi := &file_grafeas_v1_discovery_proto_msgTypes[4]
612 if protoimpl.UnsafeEnabled && x != nil {
613 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
614 if ms.LoadMessageInfo() == nil {
615 ms.StoreMessageInfo(mi)
616 }
617 return ms
618 }
619 return mi.MessageOf(x)
620 }
621
622 // Deprecated: Use DiscoveryOccurrence_VulnerabilityAttestation.ProtoReflect.Descriptor instead.
623 func (*DiscoveryOccurrence_VulnerabilityAttestation) Descriptor() ([]byte, []int) {
624 return file_grafeas_v1_discovery_proto_rawDescGZIP(), []int{1, 2}
625 }
626
627 func (x *DiscoveryOccurrence_VulnerabilityAttestation) GetLastAttemptTime() *timestamppb.Timestamp {
628 if x != nil {
629 return x.LastAttemptTime
630 }
631 return nil
632 }
633
634 func (x *DiscoveryOccurrence_VulnerabilityAttestation) GetState() DiscoveryOccurrence_VulnerabilityAttestation_VulnerabilityAttestationState {
635 if x != nil {
636 return x.State
637 }
638 return DiscoveryOccurrence_VulnerabilityAttestation_VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED
639 }
640
641 func (x *DiscoveryOccurrence_VulnerabilityAttestation) GetError() string {
642 if x != nil {
643 return x.Error
644 }
645 return ""
646 }
647
648 type DiscoveryOccurrence_File struct {
649 state protoimpl.MessageState
650 sizeCache protoimpl.SizeCache
651 unknownFields protoimpl.UnknownFields
652
653 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
654 Digest map[string]string `protobuf:"bytes,2,rep,name=digest,proto3" json:"digest,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
655 }
656
657 func (x *DiscoveryOccurrence_File) Reset() {
658 *x = DiscoveryOccurrence_File{}
659 if protoimpl.UnsafeEnabled {
660 mi := &file_grafeas_v1_discovery_proto_msgTypes[5]
661 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
662 ms.StoreMessageInfo(mi)
663 }
664 }
665
666 func (x *DiscoveryOccurrence_File) String() string {
667 return protoimpl.X.MessageStringOf(x)
668 }
669
670 func (*DiscoveryOccurrence_File) ProtoMessage() {}
671
672 func (x *DiscoveryOccurrence_File) ProtoReflect() protoreflect.Message {
673 mi := &file_grafeas_v1_discovery_proto_msgTypes[5]
674 if protoimpl.UnsafeEnabled && x != nil {
675 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
676 if ms.LoadMessageInfo() == nil {
677 ms.StoreMessageInfo(mi)
678 }
679 return ms
680 }
681 return mi.MessageOf(x)
682 }
683
684 // Deprecated: Use DiscoveryOccurrence_File.ProtoReflect.Descriptor instead.
685 func (*DiscoveryOccurrence_File) Descriptor() ([]byte, []int) {
686 return file_grafeas_v1_discovery_proto_rawDescGZIP(), []int{1, 3}
687 }
688
689 func (x *DiscoveryOccurrence_File) GetName() string {
690 if x != nil {
691 return x.Name
692 }
693 return ""
694 }
695
696 func (x *DiscoveryOccurrence_File) GetDigest() map[string]string {
697 if x != nil {
698 return x.Digest
699 }
700 return nil
701 }
702
703 var File_grafeas_v1_discovery_proto protoreflect.FileDescriptor
704
705 var file_grafeas_v1_discovery_proto_rawDesc = []byte{
706 0x0a, 0x1a, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x69, 0x73,
707 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x72,
708 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
709 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76,
710 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
711 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73,
712 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67,
713 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72,
714 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x2f,
715 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4a, 0x0a, 0x0d,
716 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x4e, 0x6f, 0x74, 0x65, 0x12, 0x39, 0x0a,
717 0x0d, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01,
718 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76,
719 0x31, 0x2e, 0x4e, 0x6f, 0x74, 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x0c, 0x61, 0x6e, 0x61, 0x6c,
720 0x79, 0x73, 0x69, 0x73, 0x4b, 0x69, 0x6e, 0x64, 0x22, 0x9b, 0x0f, 0x0a, 0x13, 0x44, 0x69, 0x73,
721 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x4f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x65,
722 0x12, 0x63, 0x0a, 0x13, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x5f, 0x61,
723 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e,
724 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f,
725 0x76, 0x65, 0x72, 0x79, 0x4f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x43,
726 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69,
727 0x73, 0x52, 0x12, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x41, 0x6e, 0x61,
728 0x6c, 0x79, 0x73, 0x69, 0x73, 0x12, 0x57, 0x0a, 0x0f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69,
729 0x73, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e,
730 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x63,
731 0x6f, 0x76, 0x65, 0x72, 0x79, 0x4f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e,
732 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0e,
733 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x60,
734 0x0a, 0x12, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c,
735 0x65, 0x74, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x72, 0x61,
736 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72,
737 0x79, 0x4f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x41, 0x6e, 0x61, 0x6c,
738 0x79, 0x73, 0x69, 0x73, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x52, 0x11, 0x61,
739 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64,
740 0x12, 0x39, 0x0a, 0x0e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x5f, 0x65, 0x72, 0x72,
741 0x6f, 0x72, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
742 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0d, 0x61, 0x6e,
743 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x46, 0x0a, 0x15, 0x61,
744 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x65,
745 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f,
746 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x13,
747 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x45, 0x72,
748 0x72, 0x6f, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
749 0x52, 0x03, 0x63, 0x70, 0x65, 0x12, 0x40, 0x0a, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x63,
750 0x61, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
751 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
752 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x53,
753 0x63, 0x61, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69,
754 0x76, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
755 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
756 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b,
757 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x4b, 0x0a, 0x0b, 0x73,
758 0x62, 0x6f, 0x6d, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b,
759 0x32, 0x2a, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69,
760 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x4f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63,
761 0x65, 0x2e, 0x53, 0x42, 0x4f, 0x4d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0a, 0x73, 0x62,
762 0x6f, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x75, 0x0a, 0x19, 0x76, 0x75, 0x6c, 0x6e,
763 0x65, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74,
764 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x72,
765 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65,
766 0x72, 0x79, 0x4f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x56, 0x75, 0x6c,
767 0x6e, 0x65, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74,
768 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x18, 0x76, 0x75, 0x6c, 0x6e, 0x65, 0x72, 0x61, 0x62, 0x69,
769 0x6c, 0x69, 0x74, 0x79, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,
770 0x3a, 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24,
771 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x63,
772 0x6f, 0x76, 0x65, 0x72, 0x79, 0x4f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e,
773 0x46, 0x69, 0x6c, 0x65, 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x5f, 0x0a, 0x1e, 0x6c,
774 0x61, 0x73, 0x74, 0x5f, 0x76, 0x75, 0x6c, 0x6e, 0x65, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74,
775 0x79, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0c, 0x20,
776 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
777 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52,
778 0x1b, 0x6c, 0x61, 0x73, 0x74, 0x56, 0x75, 0x6c, 0x6e, 0x65, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69,
779 0x74, 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x1a, 0x38, 0x0a, 0x11,
780 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65,
781 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x5f, 0x74, 0x79,
782 0x70, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73,
783 0x69, 0x73, 0x54, 0x79, 0x70, 0x65, 0x1a, 0xbb, 0x01, 0x0a, 0x0a, 0x53, 0x42, 0x4f, 0x4d, 0x53,
784 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x53, 0x0a, 0x0a, 0x73, 0x62, 0x6f, 0x6d, 0x5f, 0x73, 0x74,
785 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x67, 0x72, 0x61, 0x66,
786 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79,
787 0x4f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x53, 0x42, 0x4f, 0x4d, 0x53,
788 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x53, 0x42, 0x4f, 0x4d, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52,
789 0x09, 0x73, 0x62, 0x6f, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72,
790 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72,
791 0x22, 0x42, 0x0a, 0x09, 0x53, 0x42, 0x4f, 0x4d, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a,
792 0x16, 0x53, 0x42, 0x4f, 0x4d, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50,
793 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e,
794 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45,
795 0x54, 0x45, 0x10, 0x02, 0x1a, 0xd2, 0x02, 0x0a, 0x18, 0x56, 0x75, 0x6c, 0x6e, 0x65, 0x72, 0x61,
796 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f,
797 0x6e, 0x12, 0x46, 0x0a, 0x11, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70,
798 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
799 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
800 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x41, 0x74,
801 0x74, 0x65, 0x6d, 0x70, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x6c, 0x0a, 0x05, 0x73, 0x74, 0x61,
802 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x56, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65,
803 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x4f,
804 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x56, 0x75, 0x6c, 0x6e, 0x65, 0x72,
805 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69,
806 0x6f, 0x6e, 0x2e, 0x56, 0x75, 0x6c, 0x6e, 0x65, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79,
807 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65,
808 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72,
809 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x6a, 0x0a,
810 0x1d, 0x56, 0x75, 0x6c, 0x6e, 0x65, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x74,
811 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2f,
812 0x0a, 0x2b, 0x56, 0x55, 0x4c, 0x4e, 0x45, 0x52, 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f,
813 0x41, 0x54, 0x54, 0x45, 0x53, 0x54, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54,
814 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
815 0x0b, 0x0a, 0x07, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07,
816 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x02, 0x1a, 0x9f, 0x01, 0x0a, 0x04, 0x46, 0x69,
817 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
818 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x48, 0x0a, 0x06, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74,
819 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73,
820 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x4f, 0x63, 0x63,
821 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x2e, 0x44, 0x69, 0x67,
822 0x65, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74,
823 0x1a, 0x39, 0x0a, 0x0b, 0x44, 0x69, 0x67, 0x65, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
824 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
825 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
826 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x53, 0x0a, 0x12, 0x43,
827 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x6f, 0x75, 0x73, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69,
828 0x73, 0x12, 0x23, 0x0a, 0x1f, 0x43, 0x4f, 0x4e, 0x54, 0x49, 0x4e, 0x55, 0x4f, 0x55, 0x53, 0x5f,
829 0x41, 0x4e, 0x41, 0x4c, 0x59, 0x53, 0x49, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
830 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45,
831 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4e, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x02,
832 0x22, 0xa3, 0x01, 0x0a, 0x0e, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61,
833 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x4e, 0x41, 0x4c, 0x59, 0x53, 0x49, 0x53, 0x5f,
834 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
835 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10,
836 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x43, 0x41, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12,
837 0x14, 0x0a, 0x10, 0x46, 0x49, 0x4e, 0x49, 0x53, 0x48, 0x45, 0x44, 0x5f, 0x53, 0x55, 0x43, 0x43,
838 0x45, 0x53, 0x53, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54,
839 0x45, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x46, 0x49, 0x4e, 0x49, 0x53, 0x48, 0x45, 0x44, 0x5f,
840 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x12, 0x18, 0x0a, 0x14, 0x46, 0x49, 0x4e, 0x49,
841 0x53, 0x48, 0x45, 0x44, 0x5f, 0x55, 0x4e, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44,
842 0x10, 0x05, 0x1a, 0x02, 0x10, 0x01, 0x42, 0x51, 0x0a, 0x0d, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x61,
843 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
844 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e,
845 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
846 0x2f, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x72, 0x61, 0x66,
847 0x65, 0x61, 0x73, 0xa2, 0x02, 0x03, 0x47, 0x52, 0x41, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
848 0x33,
849 }
850
851 var (
852 file_grafeas_v1_discovery_proto_rawDescOnce sync.Once
853 file_grafeas_v1_discovery_proto_rawDescData = file_grafeas_v1_discovery_proto_rawDesc
854 )
855
856 func file_grafeas_v1_discovery_proto_rawDescGZIP() []byte {
857 file_grafeas_v1_discovery_proto_rawDescOnce.Do(func() {
858 file_grafeas_v1_discovery_proto_rawDescData = protoimpl.X.CompressGZIP(file_grafeas_v1_discovery_proto_rawDescData)
859 })
860 return file_grafeas_v1_discovery_proto_rawDescData
861 }
862
863 var file_grafeas_v1_discovery_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
864 var file_grafeas_v1_discovery_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
865 var file_grafeas_v1_discovery_proto_goTypes = []interface{}{
866 (DiscoveryOccurrence_ContinuousAnalysis)(0), // 0: grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis
867 (DiscoveryOccurrence_AnalysisStatus)(0), // 1: grafeas.v1.DiscoveryOccurrence.AnalysisStatus
868 (DiscoveryOccurrence_SBOMStatus_SBOMState)(0), // 2: grafeas.v1.DiscoveryOccurrence.SBOMStatus.SBOMState
869 (DiscoveryOccurrence_VulnerabilityAttestation_VulnerabilityAttestationState)(0), // 3: grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState
870 (*DiscoveryNote)(nil), // 4: grafeas.v1.DiscoveryNote
871 (*DiscoveryOccurrence)(nil), // 5: grafeas.v1.DiscoveryOccurrence
872 (*DiscoveryOccurrence_AnalysisCompleted)(nil), // 6: grafeas.v1.DiscoveryOccurrence.AnalysisCompleted
873 (*DiscoveryOccurrence_SBOMStatus)(nil), // 7: grafeas.v1.DiscoveryOccurrence.SBOMStatus
874 (*DiscoveryOccurrence_VulnerabilityAttestation)(nil), // 8: grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation
875 (*DiscoveryOccurrence_File)(nil), // 9: grafeas.v1.DiscoveryOccurrence.File
876 nil, // 10: grafeas.v1.DiscoveryOccurrence.File.DigestEntry
877 (NoteKind)(0), // 11: grafeas.v1.NoteKind
878 (*status.Status)(nil), // 12: google.rpc.Status
879 (*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp
880 }
881 var file_grafeas_v1_discovery_proto_depIdxs = []int32{
882 11, // 0: grafeas.v1.DiscoveryNote.analysis_kind:type_name -> grafeas.v1.NoteKind
883 0, // 1: grafeas.v1.DiscoveryOccurrence.continuous_analysis:type_name -> grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis
884 1, // 2: grafeas.v1.DiscoveryOccurrence.analysis_status:type_name -> grafeas.v1.DiscoveryOccurrence.AnalysisStatus
885 6, // 3: grafeas.v1.DiscoveryOccurrence.analysis_completed:type_name -> grafeas.v1.DiscoveryOccurrence.AnalysisCompleted
886 12, // 4: grafeas.v1.DiscoveryOccurrence.analysis_error:type_name -> google.rpc.Status
887 12, // 5: grafeas.v1.DiscoveryOccurrence.analysis_status_error:type_name -> google.rpc.Status
888 13, // 6: grafeas.v1.DiscoveryOccurrence.last_scan_time:type_name -> google.protobuf.Timestamp
889 13, // 7: grafeas.v1.DiscoveryOccurrence.archive_time:type_name -> google.protobuf.Timestamp
890 7, // 8: grafeas.v1.DiscoveryOccurrence.sbom_status:type_name -> grafeas.v1.DiscoveryOccurrence.SBOMStatus
891 8, // 9: grafeas.v1.DiscoveryOccurrence.vulnerability_attestation:type_name -> grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation
892 9, // 10: grafeas.v1.DiscoveryOccurrence.files:type_name -> grafeas.v1.DiscoveryOccurrence.File
893 13, // 11: grafeas.v1.DiscoveryOccurrence.last_vulnerability_update_time:type_name -> google.protobuf.Timestamp
894 2, // 12: grafeas.v1.DiscoveryOccurrence.SBOMStatus.sbom_state:type_name -> grafeas.v1.DiscoveryOccurrence.SBOMStatus.SBOMState
895 13, // 13: grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.last_attempt_time:type_name -> google.protobuf.Timestamp
896 3, // 14: grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.state:type_name -> grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState
897 10, // 15: grafeas.v1.DiscoveryOccurrence.File.digest:type_name -> grafeas.v1.DiscoveryOccurrence.File.DigestEntry
898 16, // [16:16] is the sub-list for method output_type
899 16, // [16:16] is the sub-list for method input_type
900 16, // [16:16] is the sub-list for extension type_name
901 16, // [16:16] is the sub-list for extension extendee
902 0, // [0:16] is the sub-list for field type_name
903 }
904
905 func init() { file_grafeas_v1_discovery_proto_init() }
906 func file_grafeas_v1_discovery_proto_init() {
907 if File_grafeas_v1_discovery_proto != nil {
908 return
909 }
910 file_grafeas_v1_common_proto_init()
911 if !protoimpl.UnsafeEnabled {
912 file_grafeas_v1_discovery_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
913 switch v := v.(*DiscoveryNote); i {
914 case 0:
915 return &v.state
916 case 1:
917 return &v.sizeCache
918 case 2:
919 return &v.unknownFields
920 default:
921 return nil
922 }
923 }
924 file_grafeas_v1_discovery_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
925 switch v := v.(*DiscoveryOccurrence); i {
926 case 0:
927 return &v.state
928 case 1:
929 return &v.sizeCache
930 case 2:
931 return &v.unknownFields
932 default:
933 return nil
934 }
935 }
936 file_grafeas_v1_discovery_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
937 switch v := v.(*DiscoveryOccurrence_AnalysisCompleted); i {
938 case 0:
939 return &v.state
940 case 1:
941 return &v.sizeCache
942 case 2:
943 return &v.unknownFields
944 default:
945 return nil
946 }
947 }
948 file_grafeas_v1_discovery_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
949 switch v := v.(*DiscoveryOccurrence_SBOMStatus); i {
950 case 0:
951 return &v.state
952 case 1:
953 return &v.sizeCache
954 case 2:
955 return &v.unknownFields
956 default:
957 return nil
958 }
959 }
960 file_grafeas_v1_discovery_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
961 switch v := v.(*DiscoveryOccurrence_VulnerabilityAttestation); i {
962 case 0:
963 return &v.state
964 case 1:
965 return &v.sizeCache
966 case 2:
967 return &v.unknownFields
968 default:
969 return nil
970 }
971 }
972 file_grafeas_v1_discovery_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
973 switch v := v.(*DiscoveryOccurrence_File); i {
974 case 0:
975 return &v.state
976 case 1:
977 return &v.sizeCache
978 case 2:
979 return &v.unknownFields
980 default:
981 return nil
982 }
983 }
984 }
985 type x struct{}
986 out := protoimpl.TypeBuilder{
987 File: protoimpl.DescBuilder{
988 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
989 RawDescriptor: file_grafeas_v1_discovery_proto_rawDesc,
990 NumEnums: 4,
991 NumMessages: 7,
992 NumExtensions: 0,
993 NumServices: 0,
994 },
995 GoTypes: file_grafeas_v1_discovery_proto_goTypes,
996 DependencyIndexes: file_grafeas_v1_discovery_proto_depIdxs,
997 EnumInfos: file_grafeas_v1_discovery_proto_enumTypes,
998 MessageInfos: file_grafeas_v1_discovery_proto_msgTypes,
999 }.Build()
1000 File_grafeas_v1_discovery_proto = out.File
1001 file_grafeas_v1_discovery_proto_rawDesc = nil
1002 file_grafeas_v1_discovery_proto_goTypes = nil
1003 file_grafeas_v1_discovery_proto_depIdxs = nil
1004 }