-
Notifications
You must be signed in to change notification settings - Fork 174
Expand file tree
/
Copy pathnode_component.pb.go
More file actions
204 lines (178 loc) · 6.77 KB
/
node_component.pb.go
File metadata and controls
204 lines (178 loc) · 6.77 KB
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
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v6.32.1
// source: storage/node_component.proto
package storage
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
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)
)
type NodeComponent struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" search:"Component ID,hidden" sql:"pk,id"` // This field is composite id over name, version, and operating system. // @gotags: search:"Component ID,hidden" sql:"pk,id"
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" search:"Component"` // @gotags: search:"Component"
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty" search:"Component Version"` // @gotags: search:"Component Version"
Priority int64 `protobuf:"varint,5,opt,name=priority,proto3" json:"priority,omitempty" search:"Component Risk Priority,hidden"` // @gotags: search:"Component Risk Priority,hidden"
RiskScore float32 `protobuf:"fixed32,7,opt,name=risk_score,json=riskScore,proto3" json:"risk_score,omitempty" search:"Component Risk Score,hidden"` // @gotags: search:"Component Risk Score,hidden"
// Types that are valid to be assigned to SetTopCvss:
//
// *NodeComponent_TopCvss
SetTopCvss isNodeComponent_SetTopCvss `protobuf_oneof:"set_top_cvss"`
OperatingSystem string `protobuf:"bytes,9,opt,name=operating_system,json=operatingSystem,proto3" json:"operating_system,omitempty" search:"Operating System"` // @gotags: search:"Operating System"
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NodeComponent) Reset() {
*x = NodeComponent{}
mi := &file_storage_node_component_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NodeComponent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NodeComponent) ProtoMessage() {}
func (x *NodeComponent) ProtoReflect() protoreflect.Message {
mi := &file_storage_node_component_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NodeComponent.ProtoReflect.Descriptor instead.
func (*NodeComponent) Descriptor() ([]byte, []int) {
return file_storage_node_component_proto_rawDescGZIP(), []int{0}
}
func (x *NodeComponent) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *NodeComponent) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *NodeComponent) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
func (x *NodeComponent) GetPriority() int64 {
if x != nil {
return x.Priority
}
return 0
}
func (x *NodeComponent) GetRiskScore() float32 {
if x != nil {
return x.RiskScore
}
return 0
}
func (x *NodeComponent) GetSetTopCvss() isNodeComponent_SetTopCvss {
if x != nil {
return x.SetTopCvss
}
return nil
}
func (x *NodeComponent) GetTopCvss() float32 {
if x != nil {
if x, ok := x.SetTopCvss.(*NodeComponent_TopCvss); ok {
return x.TopCvss
}
}
return 0
}
func (x *NodeComponent) GetOperatingSystem() string {
if x != nil {
return x.OperatingSystem
}
return ""
}
type isNodeComponent_SetTopCvss interface {
isNodeComponent_SetTopCvss()
}
type NodeComponent_TopCvss struct {
TopCvss float32 `protobuf:"fixed32,8,opt,name=top_cvss,json=topCvss,proto3,oneof" search:"Component Top CVSS"` // @gotags: search:"Component Top CVSS"
}
func (*NodeComponent_TopCvss) isNodeComponent_SetTopCvss() {}
var File_storage_node_component_proto protoreflect.FileDescriptor
const file_storage_node_component_proto_rawDesc = "" +
"\n" +
"\x1cstorage/node_component.proto\x12\astorage\"\xe0\x01\n" +
"\rNodeComponent\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12\x18\n" +
"\aversion\x18\x03 \x01(\tR\aversion\x12\x1a\n" +
"\bpriority\x18\x05 \x01(\x03R\bpriority\x12\x1d\n" +
"\n" +
"risk_score\x18\a \x01(\x02R\triskScore\x12\x1b\n" +
"\btop_cvss\x18\b \x01(\x02H\x00R\atopCvss\x12)\n" +
"\x10operating_system\x18\t \x01(\tR\x0foperatingSystemB\x0e\n" +
"\fset_top_cvssB.\n" +
"\x19io.stackrox.proto.storageZ\x11./storage;storageb\x06proto3"
var (
file_storage_node_component_proto_rawDescOnce sync.Once
file_storage_node_component_proto_rawDescData []byte
)
func file_storage_node_component_proto_rawDescGZIP() []byte {
file_storage_node_component_proto_rawDescOnce.Do(func() {
file_storage_node_component_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_storage_node_component_proto_rawDesc), len(file_storage_node_component_proto_rawDesc)))
})
return file_storage_node_component_proto_rawDescData
}
var file_storage_node_component_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_storage_node_component_proto_goTypes = []any{
(*NodeComponent)(nil), // 0: storage.NodeComponent
}
var file_storage_node_component_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_storage_node_component_proto_init() }
func file_storage_node_component_proto_init() {
if File_storage_node_component_proto != nil {
return
}
file_storage_node_component_proto_msgTypes[0].OneofWrappers = []any{
(*NodeComponent_TopCvss)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_storage_node_component_proto_rawDesc), len(file_storage_node_component_proto_rawDesc)),
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_storage_node_component_proto_goTypes,
DependencyIndexes: file_storage_node_component_proto_depIdxs,
MessageInfos: file_storage_node_component_proto_msgTypes,
}.Build()
File_storage_node_component_proto = out.File
file_storage_node_component_proto_goTypes = nil
file_storage_node_component_proto_depIdxs = nil
}