1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package common
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 )
30
31 const (
32
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38
39 type NoteKind int32
40
41 const (
42
43 NoteKind_NOTE_KIND_UNSPECIFIED NoteKind = 0
44
45 NoteKind_VULNERABILITY NoteKind = 1
46
47 NoteKind_BUILD NoteKind = 2
48
49 NoteKind_IMAGE NoteKind = 3
50
51 NoteKind_PACKAGE NoteKind = 4
52
53 NoteKind_DEPLOYMENT NoteKind = 5
54
55 NoteKind_DISCOVERY NoteKind = 6
56
57 NoteKind_ATTESTATION NoteKind = 7
58 )
59
60
61 var (
62 NoteKind_name = map[int32]string{
63 0: "NOTE_KIND_UNSPECIFIED",
64 1: "VULNERABILITY",
65 2: "BUILD",
66 3: "IMAGE",
67 4: "PACKAGE",
68 5: "DEPLOYMENT",
69 6: "DISCOVERY",
70 7: "ATTESTATION",
71 }
72 NoteKind_value = map[string]int32{
73 "NOTE_KIND_UNSPECIFIED": 0,
74 "VULNERABILITY": 1,
75 "BUILD": 2,
76 "IMAGE": 3,
77 "PACKAGE": 4,
78 "DEPLOYMENT": 5,
79 "DISCOVERY": 6,
80 "ATTESTATION": 7,
81 }
82 )
83
84 func (x NoteKind) Enum() *NoteKind {
85 p := new(NoteKind)
86 *p = x
87 return p
88 }
89
90 func (x NoteKind) String() string {
91 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
92 }
93
94 func (NoteKind) Descriptor() protoreflect.EnumDescriptor {
95 return file_google_devtools_containeranalysis_v1beta1_common_common_proto_enumTypes[0].Descriptor()
96 }
97
98 func (NoteKind) Type() protoreflect.EnumType {
99 return &file_google_devtools_containeranalysis_v1beta1_common_common_proto_enumTypes[0]
100 }
101
102 func (x NoteKind) Number() protoreflect.EnumNumber {
103 return protoreflect.EnumNumber(x)
104 }
105
106
107 func (NoteKind) EnumDescriptor() ([]byte, []int) {
108 return file_google_devtools_containeranalysis_v1beta1_common_common_proto_rawDescGZIP(), []int{0}
109 }
110
111
112 type RelatedUrl struct {
113 state protoimpl.MessageState
114 sizeCache protoimpl.SizeCache
115 unknownFields protoimpl.UnknownFields
116
117
118 Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
119
120 Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
121 }
122
123 func (x *RelatedUrl) Reset() {
124 *x = RelatedUrl{}
125 if protoimpl.UnsafeEnabled {
126 mi := &file_google_devtools_containeranalysis_v1beta1_common_common_proto_msgTypes[0]
127 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
128 ms.StoreMessageInfo(mi)
129 }
130 }
131
132 func (x *RelatedUrl) String() string {
133 return protoimpl.X.MessageStringOf(x)
134 }
135
136 func (*RelatedUrl) ProtoMessage() {}
137
138 func (x *RelatedUrl) ProtoReflect() protoreflect.Message {
139 mi := &file_google_devtools_containeranalysis_v1beta1_common_common_proto_msgTypes[0]
140 if protoimpl.UnsafeEnabled && x != nil {
141 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
142 if ms.LoadMessageInfo() == nil {
143 ms.StoreMessageInfo(mi)
144 }
145 return ms
146 }
147 return mi.MessageOf(x)
148 }
149
150
151 func (*RelatedUrl) Descriptor() ([]byte, []int) {
152 return file_google_devtools_containeranalysis_v1beta1_common_common_proto_rawDescGZIP(), []int{0}
153 }
154
155 func (x *RelatedUrl) GetUrl() string {
156 if x != nil {
157 return x.Url
158 }
159 return ""
160 }
161
162 func (x *RelatedUrl) GetLabel() string {
163 if x != nil {
164 return x.Label
165 }
166 return ""
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 type Signature struct {
192 state protoimpl.MessageState
193 sizeCache protoimpl.SizeCache
194 unknownFields protoimpl.UnknownFields
195
196
197
198
199
200
201
202 Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220 PublicKeyId string `protobuf:"bytes,2,opt,name=public_key_id,json=publicKeyId,proto3" json:"public_key_id,omitempty"`
221 }
222
223 func (x *Signature) Reset() {
224 *x = Signature{}
225 if protoimpl.UnsafeEnabled {
226 mi := &file_google_devtools_containeranalysis_v1beta1_common_common_proto_msgTypes[1]
227 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
228 ms.StoreMessageInfo(mi)
229 }
230 }
231
232 func (x *Signature) String() string {
233 return protoimpl.X.MessageStringOf(x)
234 }
235
236 func (*Signature) ProtoMessage() {}
237
238 func (x *Signature) ProtoReflect() protoreflect.Message {
239 mi := &file_google_devtools_containeranalysis_v1beta1_common_common_proto_msgTypes[1]
240 if protoimpl.UnsafeEnabled && x != nil {
241 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
242 if ms.LoadMessageInfo() == nil {
243 ms.StoreMessageInfo(mi)
244 }
245 return ms
246 }
247 return mi.MessageOf(x)
248 }
249
250
251 func (*Signature) Descriptor() ([]byte, []int) {
252 return file_google_devtools_containeranalysis_v1beta1_common_common_proto_rawDescGZIP(), []int{1}
253 }
254
255 func (x *Signature) GetSignature() []byte {
256 if x != nil {
257 return x.Signature
258 }
259 return nil
260 }
261
262 func (x *Signature) GetPublicKeyId() string {
263 if x != nil {
264 return x.PublicKeyId
265 }
266 return ""
267 }
268
269 var File_google_devtools_containeranalysis_v1beta1_common_common_proto protoreflect.FileDescriptor
270
271 var file_google_devtools_containeranalysis_v1beta1_common_common_proto_rawDesc = []byte{
272 0x0a, 0x3d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c,
273 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x6c, 0x79,
274 0x73, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d,
275 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
276 0x0f, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
277 0x22, 0x34, 0x0a, 0x0a, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x55, 0x72, 0x6c, 0x12, 0x10,
278 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c,
279 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
280 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x22, 0x4d, 0x0a, 0x09, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74,
281 0x75, 0x72, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65,
282 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72,
283 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x5f,
284 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63,
285 0x4b, 0x65, 0x79, 0x49, 0x64, 0x2a, 0x8b, 0x01, 0x0a, 0x08, 0x4e, 0x6f, 0x74, 0x65, 0x4b, 0x69,
286 0x6e, 0x64, 0x12, 0x19, 0x0a, 0x15, 0x4e, 0x4f, 0x54, 0x45, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f,
287 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a,
288 0x0d, 0x56, 0x55, 0x4c, 0x4e, 0x45, 0x52, 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x10, 0x01,
289 0x12, 0x09, 0x0a, 0x05, 0x42, 0x55, 0x49, 0x4c, 0x44, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x49,
290 0x4d, 0x41, 0x47, 0x45, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x41, 0x43, 0x4b, 0x41, 0x47,
291 0x45, 0x10, 0x04, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x45, 0x50, 0x4c, 0x4f, 0x59, 0x4d, 0x45, 0x4e,
292 0x54, 0x10, 0x05, 0x12, 0x0d, 0x0a, 0x09, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x59,
293 0x10, 0x06, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x54, 0x54, 0x45, 0x53, 0x54, 0x41, 0x54, 0x49, 0x4f,
294 0x4e, 0x10, 0x07, 0x42, 0x7b, 0x0a, 0x19, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61,
295 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
296 0x50, 0x01, 0x5a, 0x56, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
297 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
298 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f,
299 0x6c, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x6c,
300 0x79, 0x73, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x6d,
301 0x6d, 0x6f, 0x6e, 0x3b, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x47, 0x52, 0x41,
302 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
303 }
304
305 var (
306 file_google_devtools_containeranalysis_v1beta1_common_common_proto_rawDescOnce sync.Once
307 file_google_devtools_containeranalysis_v1beta1_common_common_proto_rawDescData = file_google_devtools_containeranalysis_v1beta1_common_common_proto_rawDesc
308 )
309
310 func file_google_devtools_containeranalysis_v1beta1_common_common_proto_rawDescGZIP() []byte {
311 file_google_devtools_containeranalysis_v1beta1_common_common_proto_rawDescOnce.Do(func() {
312 file_google_devtools_containeranalysis_v1beta1_common_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_devtools_containeranalysis_v1beta1_common_common_proto_rawDescData)
313 })
314 return file_google_devtools_containeranalysis_v1beta1_common_common_proto_rawDescData
315 }
316
317 var file_google_devtools_containeranalysis_v1beta1_common_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
318 var file_google_devtools_containeranalysis_v1beta1_common_common_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
319 var file_google_devtools_containeranalysis_v1beta1_common_common_proto_goTypes = []interface{}{
320 (NoteKind)(0),
321 (*RelatedUrl)(nil),
322 (*Signature)(nil),
323 }
324 var file_google_devtools_containeranalysis_v1beta1_common_common_proto_depIdxs = []int32{
325 0,
326 0,
327 0,
328 0,
329 0,
330 }
331
332 func init() { file_google_devtools_containeranalysis_v1beta1_common_common_proto_init() }
333 func file_google_devtools_containeranalysis_v1beta1_common_common_proto_init() {
334 if File_google_devtools_containeranalysis_v1beta1_common_common_proto != nil {
335 return
336 }
337 if !protoimpl.UnsafeEnabled {
338 file_google_devtools_containeranalysis_v1beta1_common_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
339 switch v := v.(*RelatedUrl); i {
340 case 0:
341 return &v.state
342 case 1:
343 return &v.sizeCache
344 case 2:
345 return &v.unknownFields
346 default:
347 return nil
348 }
349 }
350 file_google_devtools_containeranalysis_v1beta1_common_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
351 switch v := v.(*Signature); i {
352 case 0:
353 return &v.state
354 case 1:
355 return &v.sizeCache
356 case 2:
357 return &v.unknownFields
358 default:
359 return nil
360 }
361 }
362 }
363 type x struct{}
364 out := protoimpl.TypeBuilder{
365 File: protoimpl.DescBuilder{
366 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
367 RawDescriptor: file_google_devtools_containeranalysis_v1beta1_common_common_proto_rawDesc,
368 NumEnums: 1,
369 NumMessages: 2,
370 NumExtensions: 0,
371 NumServices: 0,
372 },
373 GoTypes: file_google_devtools_containeranalysis_v1beta1_common_common_proto_goTypes,
374 DependencyIndexes: file_google_devtools_containeranalysis_v1beta1_common_common_proto_depIdxs,
375 EnumInfos: file_google_devtools_containeranalysis_v1beta1_common_common_proto_enumTypes,
376 MessageInfos: file_google_devtools_containeranalysis_v1beta1_common_common_proto_msgTypes,
377 }.Build()
378 File_google_devtools_containeranalysis_v1beta1_common_common_proto = out.File
379 file_google_devtools_containeranalysis_v1beta1_common_common_proto_rawDesc = nil
380 file_google_devtools_containeranalysis_v1beta1_common_common_proto_goTypes = nil
381 file_google_devtools_containeranalysis_v1beta1_common_common_proto_depIdxs = nil
382 }
383
View as plain text