1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package build
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 provenance "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/provenance"
28 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
29 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
30 )
31
32 const (
33
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39
40 type BuildSignature_KeyType int32
41
42 const (
43
44 BuildSignature_KEY_TYPE_UNSPECIFIED BuildSignature_KeyType = 0
45
46 BuildSignature_PGP_ASCII_ARMORED BuildSignature_KeyType = 1
47
48 BuildSignature_PKIX_PEM BuildSignature_KeyType = 2
49 )
50
51
52 var (
53 BuildSignature_KeyType_name = map[int32]string{
54 0: "KEY_TYPE_UNSPECIFIED",
55 1: "PGP_ASCII_ARMORED",
56 2: "PKIX_PEM",
57 }
58 BuildSignature_KeyType_value = map[string]int32{
59 "KEY_TYPE_UNSPECIFIED": 0,
60 "PGP_ASCII_ARMORED": 1,
61 "PKIX_PEM": 2,
62 }
63 )
64
65 func (x BuildSignature_KeyType) Enum() *BuildSignature_KeyType {
66 p := new(BuildSignature_KeyType)
67 *p = x
68 return p
69 }
70
71 func (x BuildSignature_KeyType) String() string {
72 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
73 }
74
75 func (BuildSignature_KeyType) Descriptor() protoreflect.EnumDescriptor {
76 return file_google_devtools_containeranalysis_v1beta1_build_build_proto_enumTypes[0].Descriptor()
77 }
78
79 func (BuildSignature_KeyType) Type() protoreflect.EnumType {
80 return &file_google_devtools_containeranalysis_v1beta1_build_build_proto_enumTypes[0]
81 }
82
83 func (x BuildSignature_KeyType) Number() protoreflect.EnumNumber {
84 return protoreflect.EnumNumber(x)
85 }
86
87
88 func (BuildSignature_KeyType) EnumDescriptor() ([]byte, []int) {
89 return file_google_devtools_containeranalysis_v1beta1_build_build_proto_rawDescGZIP(), []int{1, 0}
90 }
91
92
93
94 type Build struct {
95 state protoimpl.MessageState
96 sizeCache protoimpl.SizeCache
97 unknownFields protoimpl.UnknownFields
98
99
100 BuilderVersion string `protobuf:"bytes,1,opt,name=builder_version,json=builderVersion,proto3" json:"builder_version,omitempty"`
101
102
103 Signature *BuildSignature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
104 }
105
106 func (x *Build) Reset() {
107 *x = Build{}
108 if protoimpl.UnsafeEnabled {
109 mi := &file_google_devtools_containeranalysis_v1beta1_build_build_proto_msgTypes[0]
110 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
111 ms.StoreMessageInfo(mi)
112 }
113 }
114
115 func (x *Build) String() string {
116 return protoimpl.X.MessageStringOf(x)
117 }
118
119 func (*Build) ProtoMessage() {}
120
121 func (x *Build) ProtoReflect() protoreflect.Message {
122 mi := &file_google_devtools_containeranalysis_v1beta1_build_build_proto_msgTypes[0]
123 if protoimpl.UnsafeEnabled && x != nil {
124 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
125 if ms.LoadMessageInfo() == nil {
126 ms.StoreMessageInfo(mi)
127 }
128 return ms
129 }
130 return mi.MessageOf(x)
131 }
132
133
134 func (*Build) Descriptor() ([]byte, []int) {
135 return file_google_devtools_containeranalysis_v1beta1_build_build_proto_rawDescGZIP(), []int{0}
136 }
137
138 func (x *Build) GetBuilderVersion() string {
139 if x != nil {
140 return x.BuilderVersion
141 }
142 return ""
143 }
144
145 func (x *Build) GetSignature() *BuildSignature {
146 if x != nil {
147 return x.Signature
148 }
149 return nil
150 }
151
152
153 type BuildSignature struct {
154 state protoimpl.MessageState
155 sizeCache protoimpl.SizeCache
156 unknownFields protoimpl.UnknownFields
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171 PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
172
173
174 Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
175
176
177
178
179 KeyId string `protobuf:"bytes,3,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
180
181
182 KeyType BuildSignature_KeyType `protobuf:"varint,4,opt,name=key_type,json=keyType,proto3,enum=grafeas.v1beta1.build.BuildSignature_KeyType" json:"key_type,omitempty"`
183 }
184
185 func (x *BuildSignature) Reset() {
186 *x = BuildSignature{}
187 if protoimpl.UnsafeEnabled {
188 mi := &file_google_devtools_containeranalysis_v1beta1_build_build_proto_msgTypes[1]
189 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
190 ms.StoreMessageInfo(mi)
191 }
192 }
193
194 func (x *BuildSignature) String() string {
195 return protoimpl.X.MessageStringOf(x)
196 }
197
198 func (*BuildSignature) ProtoMessage() {}
199
200 func (x *BuildSignature) ProtoReflect() protoreflect.Message {
201 mi := &file_google_devtools_containeranalysis_v1beta1_build_build_proto_msgTypes[1]
202 if protoimpl.UnsafeEnabled && x != nil {
203 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
204 if ms.LoadMessageInfo() == nil {
205 ms.StoreMessageInfo(mi)
206 }
207 return ms
208 }
209 return mi.MessageOf(x)
210 }
211
212
213 func (*BuildSignature) Descriptor() ([]byte, []int) {
214 return file_google_devtools_containeranalysis_v1beta1_build_build_proto_rawDescGZIP(), []int{1}
215 }
216
217 func (x *BuildSignature) GetPublicKey() string {
218 if x != nil {
219 return x.PublicKey
220 }
221 return ""
222 }
223
224 func (x *BuildSignature) GetSignature() []byte {
225 if x != nil {
226 return x.Signature
227 }
228 return nil
229 }
230
231 func (x *BuildSignature) GetKeyId() string {
232 if x != nil {
233 return x.KeyId
234 }
235 return ""
236 }
237
238 func (x *BuildSignature) GetKeyType() BuildSignature_KeyType {
239 if x != nil {
240 return x.KeyType
241 }
242 return BuildSignature_KEY_TYPE_UNSPECIFIED
243 }
244
245
246 type Details struct {
247 state protoimpl.MessageState
248 sizeCache protoimpl.SizeCache
249 unknownFields protoimpl.UnknownFields
250
251
252 Provenance *provenance.BuildProvenance `protobuf:"bytes,1,opt,name=provenance,proto3" json:"provenance,omitempty"`
253
254
255
256
257
258
259
260
261
262
263
264 ProvenanceBytes string `protobuf:"bytes,2,opt,name=provenance_bytes,json=provenanceBytes,proto3" json:"provenance_bytes,omitempty"`
265 }
266
267 func (x *Details) Reset() {
268 *x = Details{}
269 if protoimpl.UnsafeEnabled {
270 mi := &file_google_devtools_containeranalysis_v1beta1_build_build_proto_msgTypes[2]
271 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
272 ms.StoreMessageInfo(mi)
273 }
274 }
275
276 func (x *Details) String() string {
277 return protoimpl.X.MessageStringOf(x)
278 }
279
280 func (*Details) ProtoMessage() {}
281
282 func (x *Details) ProtoReflect() protoreflect.Message {
283 mi := &file_google_devtools_containeranalysis_v1beta1_build_build_proto_msgTypes[2]
284 if protoimpl.UnsafeEnabled && x != nil {
285 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
286 if ms.LoadMessageInfo() == nil {
287 ms.StoreMessageInfo(mi)
288 }
289 return ms
290 }
291 return mi.MessageOf(x)
292 }
293
294
295 func (*Details) Descriptor() ([]byte, []int) {
296 return file_google_devtools_containeranalysis_v1beta1_build_build_proto_rawDescGZIP(), []int{2}
297 }
298
299 func (x *Details) GetProvenance() *provenance.BuildProvenance {
300 if x != nil {
301 return x.Provenance
302 }
303 return nil
304 }
305
306 func (x *Details) GetProvenanceBytes() string {
307 if x != nil {
308 return x.ProvenanceBytes
309 }
310 return ""
311 }
312
313 var File_google_devtools_containeranalysis_v1beta1_build_build_proto protoreflect.FileDescriptor
314
315 var file_google_devtools_containeranalysis_v1beta1_build_build_proto_rawDesc = []byte{
316 0x0a, 0x3b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c,
317 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x6c, 0x79,
318 0x73, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x62, 0x75, 0x69, 0x6c,
319 0x64, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67,
320 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x62,
321 0x75, 0x69, 0x6c, 0x64, 0x1a, 0x45, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x64, 0x65, 0x76,
322 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x61,
323 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
324 0x70, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x65,
325 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x75, 0x0a, 0x05, 0x42,
326 0x75, 0x69, 0x6c, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x5f,
327 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x62,
328 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x43, 0x0a,
329 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
330 0x32, 0x25, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
331 0x61, 0x31, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x69,
332 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75,
333 0x72, 0x65, 0x22, 0xf8, 0x01, 0x0a, 0x0e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x69, 0x67, 0x6e,
334 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f,
335 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69,
336 0x63, 0x4b, 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72,
337 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75,
338 0x72, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
339 0x28, 0x09, 0x52, 0x05, 0x6b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x48, 0x0a, 0x08, 0x6b, 0x65, 0x79,
340 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x67, 0x72,
341 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x62, 0x75,
342 0x69, 0x6c, 0x64, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75,
343 0x72, 0x65, 0x2e, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x54,
344 0x79, 0x70, 0x65, 0x22, 0x48, 0x0a, 0x07, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18,
345 0x0a, 0x14, 0x4b, 0x45, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
346 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x47, 0x50, 0x5f,
347 0x41, 0x53, 0x43, 0x49, 0x49, 0x5f, 0x41, 0x52, 0x4d, 0x4f, 0x52, 0x45, 0x44, 0x10, 0x01, 0x12,
348 0x0c, 0x0a, 0x08, 0x50, 0x4b, 0x49, 0x58, 0x5f, 0x50, 0x45, 0x4d, 0x10, 0x02, 0x22, 0x81, 0x01,
349 0x0a, 0x07, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x4b, 0x0a, 0x0a, 0x70, 0x72, 0x6f,
350 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e,
351 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e,
352 0x70, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64,
353 0x50, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x76,
354 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x6e,
355 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
356 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x42, 0x79, 0x74, 0x65,
357 0x73, 0x42, 0x78, 0x0a, 0x18, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e,
358 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x01, 0x5a,
359 0x54, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
360 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67,
361 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2f,
362 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69,
363 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x3b,
364 0x62, 0x75, 0x69, 0x6c, 0x64, 0xa2, 0x02, 0x03, 0x47, 0x52, 0x41, 0x62, 0x06, 0x70, 0x72, 0x6f,
365 0x74, 0x6f, 0x33,
366 }
367
368 var (
369 file_google_devtools_containeranalysis_v1beta1_build_build_proto_rawDescOnce sync.Once
370 file_google_devtools_containeranalysis_v1beta1_build_build_proto_rawDescData = file_google_devtools_containeranalysis_v1beta1_build_build_proto_rawDesc
371 )
372
373 func file_google_devtools_containeranalysis_v1beta1_build_build_proto_rawDescGZIP() []byte {
374 file_google_devtools_containeranalysis_v1beta1_build_build_proto_rawDescOnce.Do(func() {
375 file_google_devtools_containeranalysis_v1beta1_build_build_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_devtools_containeranalysis_v1beta1_build_build_proto_rawDescData)
376 })
377 return file_google_devtools_containeranalysis_v1beta1_build_build_proto_rawDescData
378 }
379
380 var file_google_devtools_containeranalysis_v1beta1_build_build_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
381 var file_google_devtools_containeranalysis_v1beta1_build_build_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
382 var file_google_devtools_containeranalysis_v1beta1_build_build_proto_goTypes = []interface{}{
383 (BuildSignature_KeyType)(0),
384 (*Build)(nil),
385 (*BuildSignature)(nil),
386 (*Details)(nil),
387 (*provenance.BuildProvenance)(nil),
388 }
389 var file_google_devtools_containeranalysis_v1beta1_build_build_proto_depIdxs = []int32{
390 2,
391 0,
392 4,
393 3,
394 3,
395 3,
396 3,
397 0,
398 }
399
400 func init() { file_google_devtools_containeranalysis_v1beta1_build_build_proto_init() }
401 func file_google_devtools_containeranalysis_v1beta1_build_build_proto_init() {
402 if File_google_devtools_containeranalysis_v1beta1_build_build_proto != nil {
403 return
404 }
405 if !protoimpl.UnsafeEnabled {
406 file_google_devtools_containeranalysis_v1beta1_build_build_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
407 switch v := v.(*Build); i {
408 case 0:
409 return &v.state
410 case 1:
411 return &v.sizeCache
412 case 2:
413 return &v.unknownFields
414 default:
415 return nil
416 }
417 }
418 file_google_devtools_containeranalysis_v1beta1_build_build_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
419 switch v := v.(*BuildSignature); i {
420 case 0:
421 return &v.state
422 case 1:
423 return &v.sizeCache
424 case 2:
425 return &v.unknownFields
426 default:
427 return nil
428 }
429 }
430 file_google_devtools_containeranalysis_v1beta1_build_build_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
431 switch v := v.(*Details); i {
432 case 0:
433 return &v.state
434 case 1:
435 return &v.sizeCache
436 case 2:
437 return &v.unknownFields
438 default:
439 return nil
440 }
441 }
442 }
443 type x struct{}
444 out := protoimpl.TypeBuilder{
445 File: protoimpl.DescBuilder{
446 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
447 RawDescriptor: file_google_devtools_containeranalysis_v1beta1_build_build_proto_rawDesc,
448 NumEnums: 1,
449 NumMessages: 3,
450 NumExtensions: 0,
451 NumServices: 0,
452 },
453 GoTypes: file_google_devtools_containeranalysis_v1beta1_build_build_proto_goTypes,
454 DependencyIndexes: file_google_devtools_containeranalysis_v1beta1_build_build_proto_depIdxs,
455 EnumInfos: file_google_devtools_containeranalysis_v1beta1_build_build_proto_enumTypes,
456 MessageInfos: file_google_devtools_containeranalysis_v1beta1_build_build_proto_msgTypes,
457 }.Build()
458 File_google_devtools_containeranalysis_v1beta1_build_build_proto = out.File
459 file_google_devtools_containeranalysis_v1beta1_build_build_proto_rawDesc = nil
460 file_google_devtools_containeranalysis_v1beta1_build_build_proto_goTypes = nil
461 file_google_devtools_containeranalysis_v1beta1_build_build_proto_depIdxs = nil
462 }
463
View as plain text