1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package grafeas
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
40 type BuildNote struct {
41 state protoimpl.MessageState
42 sizeCache protoimpl.SizeCache
43 unknownFields protoimpl.UnknownFields
44
45
46 BuilderVersion string `protobuf:"bytes,1,opt,name=builder_version,json=builderVersion,proto3" json:"builder_version,omitempty"`
47 }
48
49 func (x *BuildNote) Reset() {
50 *x = BuildNote{}
51 if protoimpl.UnsafeEnabled {
52 mi := &file_grafeas_v1_build_proto_msgTypes[0]
53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
54 ms.StoreMessageInfo(mi)
55 }
56 }
57
58 func (x *BuildNote) String() string {
59 return protoimpl.X.MessageStringOf(x)
60 }
61
62 func (*BuildNote) ProtoMessage() {}
63
64 func (x *BuildNote) ProtoReflect() protoreflect.Message {
65 mi := &file_grafeas_v1_build_proto_msgTypes[0]
66 if protoimpl.UnsafeEnabled && x != nil {
67 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
68 if ms.LoadMessageInfo() == nil {
69 ms.StoreMessageInfo(mi)
70 }
71 return ms
72 }
73 return mi.MessageOf(x)
74 }
75
76
77 func (*BuildNote) Descriptor() ([]byte, []int) {
78 return file_grafeas_v1_build_proto_rawDescGZIP(), []int{0}
79 }
80
81 func (x *BuildNote) GetBuilderVersion() string {
82 if x != nil {
83 return x.BuilderVersion
84 }
85 return ""
86 }
87
88
89 type BuildOccurrence struct {
90 state protoimpl.MessageState
91 sizeCache protoimpl.SizeCache
92 unknownFields protoimpl.UnknownFields
93
94
95 Provenance *BuildProvenance `protobuf:"bytes,1,opt,name=provenance,proto3" json:"provenance,omitempty"`
96
97
98
99
100
101
102
103
104
105
106
107 ProvenanceBytes string `protobuf:"bytes,2,opt,name=provenance_bytes,json=provenanceBytes,proto3" json:"provenance_bytes,omitempty"`
108
109
110 IntotoProvenance *InTotoProvenance `protobuf:"bytes,3,opt,name=intoto_provenance,json=intotoProvenance,proto3" json:"intoto_provenance,omitempty"`
111
112
113
114
115 IntotoStatement *InTotoStatement `protobuf:"bytes,4,opt,name=intoto_statement,json=intotoStatement,proto3" json:"intoto_statement,omitempty"`
116
117
118
119
120 InTotoSlsaProvenanceV1 *InTotoSlsaProvenanceV1 `protobuf:"bytes,5,opt,name=in_toto_slsa_provenance_v1,json=inTotoSlsaProvenanceV1,proto3" json:"in_toto_slsa_provenance_v1,omitempty"`
121 }
122
123 func (x *BuildOccurrence) Reset() {
124 *x = BuildOccurrence{}
125 if protoimpl.UnsafeEnabled {
126 mi := &file_grafeas_v1_build_proto_msgTypes[1]
127 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
128 ms.StoreMessageInfo(mi)
129 }
130 }
131
132 func (x *BuildOccurrence) String() string {
133 return protoimpl.X.MessageStringOf(x)
134 }
135
136 func (*BuildOccurrence) ProtoMessage() {}
137
138 func (x *BuildOccurrence) ProtoReflect() protoreflect.Message {
139 mi := &file_grafeas_v1_build_proto_msgTypes[1]
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 (*BuildOccurrence) Descriptor() ([]byte, []int) {
152 return file_grafeas_v1_build_proto_rawDescGZIP(), []int{1}
153 }
154
155 func (x *BuildOccurrence) GetProvenance() *BuildProvenance {
156 if x != nil {
157 return x.Provenance
158 }
159 return nil
160 }
161
162 func (x *BuildOccurrence) GetProvenanceBytes() string {
163 if x != nil {
164 return x.ProvenanceBytes
165 }
166 return ""
167 }
168
169 func (x *BuildOccurrence) GetIntotoProvenance() *InTotoProvenance {
170 if x != nil {
171 return x.IntotoProvenance
172 }
173 return nil
174 }
175
176 func (x *BuildOccurrence) GetIntotoStatement() *InTotoStatement {
177 if x != nil {
178 return x.IntotoStatement
179 }
180 return nil
181 }
182
183 func (x *BuildOccurrence) GetInTotoSlsaProvenanceV1() *InTotoSlsaProvenanceV1 {
184 if x != nil {
185 return x.InTotoSlsaProvenanceV1
186 }
187 return nil
188 }
189
190 var File_grafeas_v1_build_proto protoreflect.FileDescriptor
191
192 var file_grafeas_v1_build_proto_rawDesc = []byte{
193 0x0a, 0x16, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x75, 0x69,
194 0x6c, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61,
195 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x22, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31,
196 0x2f, 0x69, 0x6e, 0x74, 0x6f, 0x74, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e,
197 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61,
198 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x74, 0x6f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x61, 0x74,
199 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x72, 0x61,
200 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e,
201 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x34, 0x0a, 0x09, 0x42, 0x75, 0x69, 0x6c,
202 0x64, 0x4e, 0x6f, 0x74, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72,
203 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e,
204 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xec,
205 0x02, 0x0a, 0x0f, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x4f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e,
206 0x63, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65,
207 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73,
208 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61,
209 0x6e, 0x63, 0x65, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x12,
210 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x62, 0x79,
211 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x76, 0x65,
212 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x49, 0x0a, 0x11, 0x69, 0x6e,
213 0x74, 0x6f, 0x74, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x18,
214 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e,
215 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x54, 0x6f, 0x74, 0x6f, 0x50, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61,
216 0x6e, 0x63, 0x65, 0x52, 0x10, 0x69, 0x6e, 0x74, 0x6f, 0x74, 0x6f, 0x50, 0x72, 0x6f, 0x76, 0x65,
217 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x46, 0x0a, 0x10, 0x69, 0x6e, 0x74, 0x6f, 0x74, 0x6f, 0x5f,
218 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
219 0x1b, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x54,
220 0x6f, 0x74, 0x6f, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0f, 0x69, 0x6e,
221 0x74, 0x6f, 0x74, 0x6f, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x5e, 0x0a,
222 0x1a, 0x69, 0x6e, 0x5f, 0x74, 0x6f, 0x74, 0x6f, 0x5f, 0x73, 0x6c, 0x73, 0x61, 0x5f, 0x70, 0x72,
223 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x76, 0x31, 0x18, 0x05, 0x20, 0x01, 0x28,
224 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49,
225 0x6e, 0x54, 0x6f, 0x74, 0x6f, 0x53, 0x6c, 0x73, 0x61, 0x50, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61,
226 0x6e, 0x63, 0x65, 0x56, 0x31, 0x52, 0x16, 0x69, 0x6e, 0x54, 0x6f, 0x74, 0x6f, 0x53, 0x6c, 0x73,
227 0x61, 0x50, 0x72, 0x6f, 0x76, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x56, 0x31, 0x42, 0x51, 0x0a,
228 0x0d, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x50, 0x01,
229 0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e,
230 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f,
231 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f,
232 0x76, 0x31, 0x3b, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0xa2, 0x02, 0x03, 0x47, 0x52, 0x41,
233 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
234 }
235
236 var (
237 file_grafeas_v1_build_proto_rawDescOnce sync.Once
238 file_grafeas_v1_build_proto_rawDescData = file_grafeas_v1_build_proto_rawDesc
239 )
240
241 func file_grafeas_v1_build_proto_rawDescGZIP() []byte {
242 file_grafeas_v1_build_proto_rawDescOnce.Do(func() {
243 file_grafeas_v1_build_proto_rawDescData = protoimpl.X.CompressGZIP(file_grafeas_v1_build_proto_rawDescData)
244 })
245 return file_grafeas_v1_build_proto_rawDescData
246 }
247
248 var file_grafeas_v1_build_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
249 var file_grafeas_v1_build_proto_goTypes = []interface{}{
250 (*BuildNote)(nil),
251 (*BuildOccurrence)(nil),
252 (*BuildProvenance)(nil),
253 (*InTotoProvenance)(nil),
254 (*InTotoStatement)(nil),
255 (*InTotoSlsaProvenanceV1)(nil),
256 }
257 var file_grafeas_v1_build_proto_depIdxs = []int32{
258 2,
259 3,
260 4,
261 5,
262 4,
263 4,
264 4,
265 4,
266 0,
267 }
268
269 func init() { file_grafeas_v1_build_proto_init() }
270 func file_grafeas_v1_build_proto_init() {
271 if File_grafeas_v1_build_proto != nil {
272 return
273 }
274 file_grafeas_v1_intoto_provenance_proto_init()
275 file_grafeas_v1_intoto_statement_proto_init()
276 file_grafeas_v1_provenance_proto_init()
277 if !protoimpl.UnsafeEnabled {
278 file_grafeas_v1_build_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
279 switch v := v.(*BuildNote); i {
280 case 0:
281 return &v.state
282 case 1:
283 return &v.sizeCache
284 case 2:
285 return &v.unknownFields
286 default:
287 return nil
288 }
289 }
290 file_grafeas_v1_build_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
291 switch v := v.(*BuildOccurrence); i {
292 case 0:
293 return &v.state
294 case 1:
295 return &v.sizeCache
296 case 2:
297 return &v.unknownFields
298 default:
299 return nil
300 }
301 }
302 }
303 type x struct{}
304 out := protoimpl.TypeBuilder{
305 File: protoimpl.DescBuilder{
306 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
307 RawDescriptor: file_grafeas_v1_build_proto_rawDesc,
308 NumEnums: 0,
309 NumMessages: 2,
310 NumExtensions: 0,
311 NumServices: 0,
312 },
313 GoTypes: file_grafeas_v1_build_proto_goTypes,
314 DependencyIndexes: file_grafeas_v1_build_proto_depIdxs,
315 MessageInfos: file_grafeas_v1_build_proto_msgTypes,
316 }.Build()
317 File_grafeas_v1_build_proto = out.File
318 file_grafeas_v1_build_proto_rawDesc = nil
319 file_grafeas_v1_build_proto_goTypes = nil
320 file_grafeas_v1_build_proto_depIdxs = nil
321 }
322
View as plain text