/
vulnerability.pb.go
executable file
·1620 lines (1453 loc) · 72.9 KB
/
vulnerability.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.32.0
// protoc v4.25.2
// source: google/cloud/osconfig/v1alpha/vulnerability.proto
package osconfigpb
import (
reflect "reflect"
sync "sync"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This metric reflects the context by which vulnerability exploitation is
// possible.
type CVSSv3_AttackVector int32
const (
// Invalid value.
CVSSv3_ATTACK_VECTOR_UNSPECIFIED CVSSv3_AttackVector = 0
// The vulnerable component is bound to the network stack and the set of
// possible attackers extends beyond the other options listed below, up to
// and including the entire Internet.
CVSSv3_ATTACK_VECTOR_NETWORK CVSSv3_AttackVector = 1
// The vulnerable component is bound to the network stack, but the attack is
// limited at the protocol level to a logically adjacent topology.
CVSSv3_ATTACK_VECTOR_ADJACENT CVSSv3_AttackVector = 2
// The vulnerable component is not bound to the network stack and the
// attacker's path is via read/write/execute capabilities.
CVSSv3_ATTACK_VECTOR_LOCAL CVSSv3_AttackVector = 3
// The attack requires the attacker to physically touch or manipulate the
// vulnerable component.
CVSSv3_ATTACK_VECTOR_PHYSICAL CVSSv3_AttackVector = 4
)
// Enum value maps for CVSSv3_AttackVector.
var (
CVSSv3_AttackVector_name = map[int32]string{
0: "ATTACK_VECTOR_UNSPECIFIED",
1: "ATTACK_VECTOR_NETWORK",
2: "ATTACK_VECTOR_ADJACENT",
3: "ATTACK_VECTOR_LOCAL",
4: "ATTACK_VECTOR_PHYSICAL",
}
CVSSv3_AttackVector_value = map[string]int32{
"ATTACK_VECTOR_UNSPECIFIED": 0,
"ATTACK_VECTOR_NETWORK": 1,
"ATTACK_VECTOR_ADJACENT": 2,
"ATTACK_VECTOR_LOCAL": 3,
"ATTACK_VECTOR_PHYSICAL": 4,
}
)
func (x CVSSv3_AttackVector) Enum() *CVSSv3_AttackVector {
p := new(CVSSv3_AttackVector)
*p = x
return p
}
func (x CVSSv3_AttackVector) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CVSSv3_AttackVector) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_osconfig_v1alpha_vulnerability_proto_enumTypes[0].Descriptor()
}
func (CVSSv3_AttackVector) Type() protoreflect.EnumType {
return &file_google_cloud_osconfig_v1alpha_vulnerability_proto_enumTypes[0]
}
func (x CVSSv3_AttackVector) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CVSSv3_AttackVector.Descriptor instead.
func (CVSSv3_AttackVector) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1alpha_vulnerability_proto_rawDescGZIP(), []int{4, 0}
}
// This metric describes the conditions beyond the attacker's control that
// must exist in order to exploit the vulnerability.
type CVSSv3_AttackComplexity int32
const (
// Invalid value.
CVSSv3_ATTACK_COMPLEXITY_UNSPECIFIED CVSSv3_AttackComplexity = 0
// Specialized access conditions or extenuating circumstances do not exist.
// An attacker can expect repeatable success when attacking the vulnerable
// component.
CVSSv3_ATTACK_COMPLEXITY_LOW CVSSv3_AttackComplexity = 1
// A successful attack depends on conditions beyond the attacker's control.
// That is, a successful attack cannot be accomplished at will, but requires
// the attacker to invest in some measurable amount of effort in preparation
// or execution against the vulnerable component before a successful attack
// can be expected.
CVSSv3_ATTACK_COMPLEXITY_HIGH CVSSv3_AttackComplexity = 2
)
// Enum value maps for CVSSv3_AttackComplexity.
var (
CVSSv3_AttackComplexity_name = map[int32]string{
0: "ATTACK_COMPLEXITY_UNSPECIFIED",
1: "ATTACK_COMPLEXITY_LOW",
2: "ATTACK_COMPLEXITY_HIGH",
}
CVSSv3_AttackComplexity_value = map[string]int32{
"ATTACK_COMPLEXITY_UNSPECIFIED": 0,
"ATTACK_COMPLEXITY_LOW": 1,
"ATTACK_COMPLEXITY_HIGH": 2,
}
)
func (x CVSSv3_AttackComplexity) Enum() *CVSSv3_AttackComplexity {
p := new(CVSSv3_AttackComplexity)
*p = x
return p
}
func (x CVSSv3_AttackComplexity) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CVSSv3_AttackComplexity) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_osconfig_v1alpha_vulnerability_proto_enumTypes[1].Descriptor()
}
func (CVSSv3_AttackComplexity) Type() protoreflect.EnumType {
return &file_google_cloud_osconfig_v1alpha_vulnerability_proto_enumTypes[1]
}
func (x CVSSv3_AttackComplexity) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CVSSv3_AttackComplexity.Descriptor instead.
func (CVSSv3_AttackComplexity) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1alpha_vulnerability_proto_rawDescGZIP(), []int{4, 1}
}
// This metric describes the level of privileges an attacker must possess
// before successfully exploiting the vulnerability.
type CVSSv3_PrivilegesRequired int32
const (
// Invalid value.
CVSSv3_PRIVILEGES_REQUIRED_UNSPECIFIED CVSSv3_PrivilegesRequired = 0
// The attacker is unauthorized prior to attack, and therefore does not
// require any access to settings or files of the vulnerable system to
// carry out an attack.
CVSSv3_PRIVILEGES_REQUIRED_NONE CVSSv3_PrivilegesRequired = 1
// The attacker requires privileges that provide basic user capabilities
// that could normally affect only settings and files owned by a user.
// Alternatively, an attacker with Low privileges has the ability to access
// only non-sensitive resources.
CVSSv3_PRIVILEGES_REQUIRED_LOW CVSSv3_PrivilegesRequired = 2
// The attacker requires privileges that provide significant (e.g.,
// administrative) control over the vulnerable component allowing access to
// component-wide settings and files.
CVSSv3_PRIVILEGES_REQUIRED_HIGH CVSSv3_PrivilegesRequired = 3
)
// Enum value maps for CVSSv3_PrivilegesRequired.
var (
CVSSv3_PrivilegesRequired_name = map[int32]string{
0: "PRIVILEGES_REQUIRED_UNSPECIFIED",
1: "PRIVILEGES_REQUIRED_NONE",
2: "PRIVILEGES_REQUIRED_LOW",
3: "PRIVILEGES_REQUIRED_HIGH",
}
CVSSv3_PrivilegesRequired_value = map[string]int32{
"PRIVILEGES_REQUIRED_UNSPECIFIED": 0,
"PRIVILEGES_REQUIRED_NONE": 1,
"PRIVILEGES_REQUIRED_LOW": 2,
"PRIVILEGES_REQUIRED_HIGH": 3,
}
)
func (x CVSSv3_PrivilegesRequired) Enum() *CVSSv3_PrivilegesRequired {
p := new(CVSSv3_PrivilegesRequired)
*p = x
return p
}
func (x CVSSv3_PrivilegesRequired) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CVSSv3_PrivilegesRequired) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_osconfig_v1alpha_vulnerability_proto_enumTypes[2].Descriptor()
}
func (CVSSv3_PrivilegesRequired) Type() protoreflect.EnumType {
return &file_google_cloud_osconfig_v1alpha_vulnerability_proto_enumTypes[2]
}
func (x CVSSv3_PrivilegesRequired) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CVSSv3_PrivilegesRequired.Descriptor instead.
func (CVSSv3_PrivilegesRequired) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1alpha_vulnerability_proto_rawDescGZIP(), []int{4, 2}
}
// This metric captures the requirement for a human user, other than the
// attacker, to participate in the successful compromise of the vulnerable
// component.
type CVSSv3_UserInteraction int32
const (
// Invalid value.
CVSSv3_USER_INTERACTION_UNSPECIFIED CVSSv3_UserInteraction = 0
// The vulnerable system can be exploited without interaction from any user.
CVSSv3_USER_INTERACTION_NONE CVSSv3_UserInteraction = 1
// Successful exploitation of this vulnerability requires a user to take
// some action before the vulnerability can be exploited.
CVSSv3_USER_INTERACTION_REQUIRED CVSSv3_UserInteraction = 2
)
// Enum value maps for CVSSv3_UserInteraction.
var (
CVSSv3_UserInteraction_name = map[int32]string{
0: "USER_INTERACTION_UNSPECIFIED",
1: "USER_INTERACTION_NONE",
2: "USER_INTERACTION_REQUIRED",
}
CVSSv3_UserInteraction_value = map[string]int32{
"USER_INTERACTION_UNSPECIFIED": 0,
"USER_INTERACTION_NONE": 1,
"USER_INTERACTION_REQUIRED": 2,
}
)
func (x CVSSv3_UserInteraction) Enum() *CVSSv3_UserInteraction {
p := new(CVSSv3_UserInteraction)
*p = x
return p
}
func (x CVSSv3_UserInteraction) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CVSSv3_UserInteraction) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_osconfig_v1alpha_vulnerability_proto_enumTypes[3].Descriptor()
}
func (CVSSv3_UserInteraction) Type() protoreflect.EnumType {
return &file_google_cloud_osconfig_v1alpha_vulnerability_proto_enumTypes[3]
}
func (x CVSSv3_UserInteraction) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CVSSv3_UserInteraction.Descriptor instead.
func (CVSSv3_UserInteraction) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1alpha_vulnerability_proto_rawDescGZIP(), []int{4, 3}
}
// The Scope metric captures whether a vulnerability in one vulnerable
// component impacts resources in components beyond its security scope.
type CVSSv3_Scope int32
const (
// Invalid value.
CVSSv3_SCOPE_UNSPECIFIED CVSSv3_Scope = 0
// An exploited vulnerability can only affect resources managed by the same
// security authority.
CVSSv3_SCOPE_UNCHANGED CVSSv3_Scope = 1
// An exploited vulnerability can affect resources beyond the security scope
// managed by the security authority of the vulnerable component.
CVSSv3_SCOPE_CHANGED CVSSv3_Scope = 2
)
// Enum value maps for CVSSv3_Scope.
var (
CVSSv3_Scope_name = map[int32]string{
0: "SCOPE_UNSPECIFIED",
1: "SCOPE_UNCHANGED",
2: "SCOPE_CHANGED",
}
CVSSv3_Scope_value = map[string]int32{
"SCOPE_UNSPECIFIED": 0,
"SCOPE_UNCHANGED": 1,
"SCOPE_CHANGED": 2,
}
)
func (x CVSSv3_Scope) Enum() *CVSSv3_Scope {
p := new(CVSSv3_Scope)
*p = x
return p
}
func (x CVSSv3_Scope) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CVSSv3_Scope) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_osconfig_v1alpha_vulnerability_proto_enumTypes[4].Descriptor()
}
func (CVSSv3_Scope) Type() protoreflect.EnumType {
return &file_google_cloud_osconfig_v1alpha_vulnerability_proto_enumTypes[4]
}
func (x CVSSv3_Scope) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CVSSv3_Scope.Descriptor instead.
func (CVSSv3_Scope) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1alpha_vulnerability_proto_rawDescGZIP(), []int{4, 4}
}
// The Impact metrics capture the effects of a successfully exploited
// vulnerability on the component that suffers the worst outcome that is most
// directly and predictably associated with the attack.
type CVSSv3_Impact int32
const (
// Invalid value.
CVSSv3_IMPACT_UNSPECIFIED CVSSv3_Impact = 0
// High impact.
CVSSv3_IMPACT_HIGH CVSSv3_Impact = 1
// Low impact.
CVSSv3_IMPACT_LOW CVSSv3_Impact = 2
// No impact.
CVSSv3_IMPACT_NONE CVSSv3_Impact = 3
)
// Enum value maps for CVSSv3_Impact.
var (
CVSSv3_Impact_name = map[int32]string{
0: "IMPACT_UNSPECIFIED",
1: "IMPACT_HIGH",
2: "IMPACT_LOW",
3: "IMPACT_NONE",
}
CVSSv3_Impact_value = map[string]int32{
"IMPACT_UNSPECIFIED": 0,
"IMPACT_HIGH": 1,
"IMPACT_LOW": 2,
"IMPACT_NONE": 3,
}
)
func (x CVSSv3_Impact) Enum() *CVSSv3_Impact {
p := new(CVSSv3_Impact)
*p = x
return p
}
func (x CVSSv3_Impact) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CVSSv3_Impact) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_osconfig_v1alpha_vulnerability_proto_enumTypes[5].Descriptor()
}
func (CVSSv3_Impact) Type() protoreflect.EnumType {
return &file_google_cloud_osconfig_v1alpha_vulnerability_proto_enumTypes[5]
}
func (x CVSSv3_Impact) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CVSSv3_Impact.Descriptor instead.
func (CVSSv3_Impact) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1alpha_vulnerability_proto_rawDescGZIP(), []int{4, 5}
}
// This API resource represents the vulnerability report for a specified
// Compute Engine virtual machine (VM) instance at a given point in time.
//
// For more information, see [Vulnerability
// reports](https://cloud.google.com/compute/docs/instances/os-inventory-management#vulnerability-reports).
type VulnerabilityReport struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only. The `vulnerabilityReport` API resource name.
//
// Format:
// `projects/{project_number}/locations/{location}/instances/{instance_id}/vulnerabilityReport`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. List of vulnerabilities affecting the VM.
Vulnerabilities []*VulnerabilityReport_Vulnerability `protobuf:"bytes,2,rep,name=vulnerabilities,proto3" json:"vulnerabilities,omitempty"`
// Output only. The timestamp for when the last vulnerability report was generated for the
// VM.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
}
func (x *VulnerabilityReport) Reset() {
*x = VulnerabilityReport{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_osconfig_v1alpha_vulnerability_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *VulnerabilityReport) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VulnerabilityReport) ProtoMessage() {}
func (x *VulnerabilityReport) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_osconfig_v1alpha_vulnerability_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use VulnerabilityReport.ProtoReflect.Descriptor instead.
func (*VulnerabilityReport) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1alpha_vulnerability_proto_rawDescGZIP(), []int{0}
}
func (x *VulnerabilityReport) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *VulnerabilityReport) GetVulnerabilities() []*VulnerabilityReport_Vulnerability {
if x != nil {
return x.Vulnerabilities
}
return nil
}
func (x *VulnerabilityReport) GetUpdateTime() *timestamppb.Timestamp {
if x != nil {
return x.UpdateTime
}
return nil
}
// A request message for getting the vulnerability report for the specified VM.
type GetVulnerabilityReportRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. API resource name for vulnerability resource.
//
// Format:
// `projects/{project}/locations/{location}/instances/{instance}/vulnerabilityReport`
//
// For `{project}`, either `project-number` or `project-id` can be provided.
// For `{instance}`, either Compute Engine `instance-id` or `instance-name`
// can be provided.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetVulnerabilityReportRequest) Reset() {
*x = GetVulnerabilityReportRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_osconfig_v1alpha_vulnerability_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetVulnerabilityReportRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetVulnerabilityReportRequest) ProtoMessage() {}
func (x *GetVulnerabilityReportRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_osconfig_v1alpha_vulnerability_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetVulnerabilityReportRequest.ProtoReflect.Descriptor instead.
func (*GetVulnerabilityReportRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1alpha_vulnerability_proto_rawDescGZIP(), []int{1}
}
func (x *GetVulnerabilityReportRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// A request message for listing vulnerability reports for all VM instances in
// the specified location.
type ListVulnerabilityReportsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The parent resource name.
//
// Format: `projects/{project}/locations/{location}/instances/-`
//
// For `{project}`, either `project-number` or `project-id` can be provided.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of results to return.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A pagination token returned from a previous call to
// `ListVulnerabilityReports` that indicates where this listing
// should continue from.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// If provided, this field specifies the criteria that must be met by a
// `vulnerabilityReport` API resource to be included in the response.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
}
func (x *ListVulnerabilityReportsRequest) Reset() {
*x = ListVulnerabilityReportsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_osconfig_v1alpha_vulnerability_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListVulnerabilityReportsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListVulnerabilityReportsRequest) ProtoMessage() {}
func (x *ListVulnerabilityReportsRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_osconfig_v1alpha_vulnerability_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListVulnerabilityReportsRequest.ProtoReflect.Descriptor instead.
func (*ListVulnerabilityReportsRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1alpha_vulnerability_proto_rawDescGZIP(), []int{2}
}
func (x *ListVulnerabilityReportsRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *ListVulnerabilityReportsRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListVulnerabilityReportsRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListVulnerabilityReportsRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
// A response message for listing vulnerability reports for all VM instances in
// the specified location.
type ListVulnerabilityReportsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// List of vulnerabilityReport objects.
VulnerabilityReports []*VulnerabilityReport `protobuf:"bytes,1,rep,name=vulnerability_reports,json=vulnerabilityReports,proto3" json:"vulnerability_reports,omitempty"`
// The pagination token to retrieve the next page of vulnerabilityReports
// object.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListVulnerabilityReportsResponse) Reset() {
*x = ListVulnerabilityReportsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_osconfig_v1alpha_vulnerability_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListVulnerabilityReportsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListVulnerabilityReportsResponse) ProtoMessage() {}
func (x *ListVulnerabilityReportsResponse) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_osconfig_v1alpha_vulnerability_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListVulnerabilityReportsResponse.ProtoReflect.Descriptor instead.
func (*ListVulnerabilityReportsResponse) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1alpha_vulnerability_proto_rawDescGZIP(), []int{3}
}
func (x *ListVulnerabilityReportsResponse) GetVulnerabilityReports() []*VulnerabilityReport {
if x != nil {
return x.VulnerabilityReports
}
return nil
}
func (x *ListVulnerabilityReportsResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
// Common Vulnerability Scoring System version 3.
// For details, see https://www.first.org/cvss/specification-document
type CVSSv3 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The base score is a function of the base metric scores.
// https://www.first.org/cvss/specification-document#Base-Metrics
BaseScore float32 `protobuf:"fixed32,1,opt,name=base_score,json=baseScore,proto3" json:"base_score,omitempty"`
// The Exploitability sub-score equation is derived from the Base
// Exploitability metrics.
// https://www.first.org/cvss/specification-document#2-1-Exploitability-Metrics
ExploitabilityScore float32 `protobuf:"fixed32,2,opt,name=exploitability_score,json=exploitabilityScore,proto3" json:"exploitability_score,omitempty"`
// The Impact sub-score equation is derived from the Base Impact metrics.
ImpactScore float32 `protobuf:"fixed32,3,opt,name=impact_score,json=impactScore,proto3" json:"impact_score,omitempty"`
// This metric reflects the context by which vulnerability exploitation is
// possible.
AttackVector CVSSv3_AttackVector `protobuf:"varint,5,opt,name=attack_vector,json=attackVector,proto3,enum=google.cloud.osconfig.v1alpha.CVSSv3_AttackVector" json:"attack_vector,omitempty"`
// This metric describes the conditions beyond the attacker's control that
// must exist in order to exploit the vulnerability.
AttackComplexity CVSSv3_AttackComplexity `protobuf:"varint,6,opt,name=attack_complexity,json=attackComplexity,proto3,enum=google.cloud.osconfig.v1alpha.CVSSv3_AttackComplexity" json:"attack_complexity,omitempty"`
// This metric describes the level of privileges an attacker must possess
// before successfully exploiting the vulnerability.
PrivilegesRequired CVSSv3_PrivilegesRequired `protobuf:"varint,7,opt,name=privileges_required,json=privilegesRequired,proto3,enum=google.cloud.osconfig.v1alpha.CVSSv3_PrivilegesRequired" json:"privileges_required,omitempty"`
// This metric captures the requirement for a human user, other than the
// attacker, to participate in the successful compromise of the vulnerable
// component.
UserInteraction CVSSv3_UserInteraction `protobuf:"varint,8,opt,name=user_interaction,json=userInteraction,proto3,enum=google.cloud.osconfig.v1alpha.CVSSv3_UserInteraction" json:"user_interaction,omitempty"`
// The Scope metric captures whether a vulnerability in one vulnerable
// component impacts resources in components beyond its security scope.
Scope CVSSv3_Scope `protobuf:"varint,9,opt,name=scope,proto3,enum=google.cloud.osconfig.v1alpha.CVSSv3_Scope" json:"scope,omitempty"`
// This metric measures the impact to the confidentiality of the information
// resources managed by a software component due to a successfully exploited
// vulnerability.
ConfidentialityImpact CVSSv3_Impact `protobuf:"varint,10,opt,name=confidentiality_impact,json=confidentialityImpact,proto3,enum=google.cloud.osconfig.v1alpha.CVSSv3_Impact" json:"confidentiality_impact,omitempty"`
// This metric measures the impact to integrity of a successfully exploited
// vulnerability.
IntegrityImpact CVSSv3_Impact `protobuf:"varint,11,opt,name=integrity_impact,json=integrityImpact,proto3,enum=google.cloud.osconfig.v1alpha.CVSSv3_Impact" json:"integrity_impact,omitempty"`
// This metric measures the impact to the availability of the impacted
// component resulting from a successfully exploited vulnerability.
AvailabilityImpact CVSSv3_Impact `protobuf:"varint,12,opt,name=availability_impact,json=availabilityImpact,proto3,enum=google.cloud.osconfig.v1alpha.CVSSv3_Impact" json:"availability_impact,omitempty"`
}
func (x *CVSSv3) Reset() {
*x = CVSSv3{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_osconfig_v1alpha_vulnerability_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CVSSv3) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CVSSv3) ProtoMessage() {}
func (x *CVSSv3) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_osconfig_v1alpha_vulnerability_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CVSSv3.ProtoReflect.Descriptor instead.
func (*CVSSv3) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1alpha_vulnerability_proto_rawDescGZIP(), []int{4}
}
func (x *CVSSv3) GetBaseScore() float32 {
if x != nil {
return x.BaseScore
}
return 0
}
func (x *CVSSv3) GetExploitabilityScore() float32 {
if x != nil {
return x.ExploitabilityScore
}
return 0
}
func (x *CVSSv3) GetImpactScore() float32 {
if x != nil {
return x.ImpactScore
}
return 0
}
func (x *CVSSv3) GetAttackVector() CVSSv3_AttackVector {
if x != nil {
return x.AttackVector
}
return CVSSv3_ATTACK_VECTOR_UNSPECIFIED
}
func (x *CVSSv3) GetAttackComplexity() CVSSv3_AttackComplexity {
if x != nil {
return x.AttackComplexity
}
return CVSSv3_ATTACK_COMPLEXITY_UNSPECIFIED
}
func (x *CVSSv3) GetPrivilegesRequired() CVSSv3_PrivilegesRequired {
if x != nil {
return x.PrivilegesRequired
}
return CVSSv3_PRIVILEGES_REQUIRED_UNSPECIFIED
}
func (x *CVSSv3) GetUserInteraction() CVSSv3_UserInteraction {
if x != nil {
return x.UserInteraction
}
return CVSSv3_USER_INTERACTION_UNSPECIFIED
}
func (x *CVSSv3) GetScope() CVSSv3_Scope {
if x != nil {
return x.Scope
}
return CVSSv3_SCOPE_UNSPECIFIED
}
func (x *CVSSv3) GetConfidentialityImpact() CVSSv3_Impact {
if x != nil {
return x.ConfidentialityImpact
}
return CVSSv3_IMPACT_UNSPECIFIED
}
func (x *CVSSv3) GetIntegrityImpact() CVSSv3_Impact {
if x != nil {
return x.IntegrityImpact
}
return CVSSv3_IMPACT_UNSPECIFIED
}
func (x *CVSSv3) GetAvailabilityImpact() CVSSv3_Impact {
if x != nil {
return x.AvailabilityImpact
}
return CVSSv3_IMPACT_UNSPECIFIED
}
// A vulnerability affecting the VM instance.
type VulnerabilityReport_Vulnerability struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Contains metadata as per the upstream feed of the operating system and
// NVD.
Details *VulnerabilityReport_Vulnerability_Details `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"`
// Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
// This field displays the inventory items affected by this vulnerability.
// If the vulnerability report was not updated after the VM inventory
// update, these values might not display in VM inventory. For some distros,
// this field may be empty.
//
// Deprecated: Marked as deprecated in google/cloud/osconfig/v1alpha/vulnerability.proto.
InstalledInventoryItemIds []string `protobuf:"bytes,2,rep,name=installed_inventory_item_ids,json=installedInventoryItemIds,proto3" json:"installed_inventory_item_ids,omitempty"`
// Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.
// If the vulnerability report was not updated after the VM inventory
// update, these values might not display in VM inventory. If there is no
// available fix, the field is empty. The `inventory_item` value specifies
// the latest `SoftwarePackage` available to the VM that fixes the
// vulnerability.
//
// Deprecated: Marked as deprecated in google/cloud/osconfig/v1alpha/vulnerability.proto.
AvailableInventoryItemIds []string `protobuf:"bytes,3,rep,name=available_inventory_item_ids,json=availableInventoryItemIds,proto3" json:"available_inventory_item_ids,omitempty"`
// The timestamp for when the vulnerability was first detected.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// The timestamp for when the vulnerability was last modified.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// List of items affected by the vulnerability.
Items []*VulnerabilityReport_Vulnerability_Item `protobuf:"bytes,6,rep,name=items,proto3" json:"items,omitempty"`
}
func (x *VulnerabilityReport_Vulnerability) Reset() {
*x = VulnerabilityReport_Vulnerability{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_osconfig_v1alpha_vulnerability_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *VulnerabilityReport_Vulnerability) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VulnerabilityReport_Vulnerability) ProtoMessage() {}
func (x *VulnerabilityReport_Vulnerability) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_osconfig_v1alpha_vulnerability_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use VulnerabilityReport_Vulnerability.ProtoReflect.Descriptor instead.
func (*VulnerabilityReport_Vulnerability) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1alpha_vulnerability_proto_rawDescGZIP(), []int{0, 0}
}
func (x *VulnerabilityReport_Vulnerability) GetDetails() *VulnerabilityReport_Vulnerability_Details {
if x != nil {
return x.Details
}
return nil
}
// Deprecated: Marked as deprecated in google/cloud/osconfig/v1alpha/vulnerability.proto.
func (x *VulnerabilityReport_Vulnerability) GetInstalledInventoryItemIds() []string {
if x != nil {
return x.InstalledInventoryItemIds
}
return nil
}
// Deprecated: Marked as deprecated in google/cloud/osconfig/v1alpha/vulnerability.proto.
func (x *VulnerabilityReport_Vulnerability) GetAvailableInventoryItemIds() []string {
if x != nil {
return x.AvailableInventoryItemIds
}
return nil
}
func (x *VulnerabilityReport_Vulnerability) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *VulnerabilityReport_Vulnerability) GetUpdateTime() *timestamppb.Timestamp {
if x != nil {
return x.UpdateTime
}
return nil
}
func (x *VulnerabilityReport_Vulnerability) GetItems() []*VulnerabilityReport_Vulnerability_Item {
if x != nil {
return x.Items
}
return nil
}
// Contains metadata information for the vulnerability. This information is
// collected from the upstream feed of the operating system.
type VulnerabilityReport_Vulnerability_Details struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The CVE of the vulnerability. CVE cannot be
// empty and the combination of <cve, classification> should be unique
// across vulnerabilities for a VM.
Cve string `protobuf:"bytes,1,opt,name=cve,proto3" json:"cve,omitempty"`
// The CVSS V2 score of this vulnerability. CVSS V2 score is on a scale of
// 0 - 10 where 0 indicates low severity and 10 indicates high severity.
CvssV2Score float32 `protobuf:"fixed32,2,opt,name=cvss_v2_score,json=cvssV2Score,proto3" json:"cvss_v2_score,omitempty"`
// The full description of the CVSSv3 for this vulnerability from NVD.
CvssV3 *CVSSv3 `protobuf:"bytes,3,opt,name=cvss_v3,json=cvssV3,proto3" json:"cvss_v3,omitempty"`
// Assigned severity/impact ranking from the distro.
Severity string `protobuf:"bytes,4,opt,name=severity,proto3" json:"severity,omitempty"`
// The note or description describing the vulnerability from the distro.
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
// Corresponds to the references attached to the `VulnerabilityDetails`.
References []*VulnerabilityReport_Vulnerability_Details_Reference `protobuf:"bytes,6,rep,name=references,proto3" json:"references,omitempty"`
}
func (x *VulnerabilityReport_Vulnerability_Details) Reset() {
*x = VulnerabilityReport_Vulnerability_Details{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_osconfig_v1alpha_vulnerability_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *VulnerabilityReport_Vulnerability_Details) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VulnerabilityReport_Vulnerability_Details) ProtoMessage() {}
func (x *VulnerabilityReport_Vulnerability_Details) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_osconfig_v1alpha_vulnerability_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use VulnerabilityReport_Vulnerability_Details.ProtoReflect.Descriptor instead.
func (*VulnerabilityReport_Vulnerability_Details) Descriptor() ([]byte, []int) {
return file_google_cloud_osconfig_v1alpha_vulnerability_proto_rawDescGZIP(), []int{0, 0, 0}
}
func (x *VulnerabilityReport_Vulnerability_Details) GetCve() string {
if x != nil {
return x.Cve
}