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 type DSSEAttestationNote struct {
39 state protoimpl.MessageState
40 sizeCache protoimpl.SizeCache
41 unknownFields protoimpl.UnknownFields
42
43
44 Hint *DSSEAttestationNote_DSSEHint `protobuf:"bytes,1,opt,name=hint,proto3" json:"hint,omitempty"`
45 }
46
47 func (x *DSSEAttestationNote) Reset() {
48 *x = DSSEAttestationNote{}
49 if protoimpl.UnsafeEnabled {
50 mi := &file_grafeas_v1_dsse_attestation_proto_msgTypes[0]
51 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
52 ms.StoreMessageInfo(mi)
53 }
54 }
55
56 func (x *DSSEAttestationNote) String() string {
57 return protoimpl.X.MessageStringOf(x)
58 }
59
60 func (*DSSEAttestationNote) ProtoMessage() {}
61
62 func (x *DSSEAttestationNote) ProtoReflect() protoreflect.Message {
63 mi := &file_grafeas_v1_dsse_attestation_proto_msgTypes[0]
64 if protoimpl.UnsafeEnabled && x != nil {
65 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
66 if ms.LoadMessageInfo() == nil {
67 ms.StoreMessageInfo(mi)
68 }
69 return ms
70 }
71 return mi.MessageOf(x)
72 }
73
74
75 func (*DSSEAttestationNote) Descriptor() ([]byte, []int) {
76 return file_grafeas_v1_dsse_attestation_proto_rawDescGZIP(), []int{0}
77 }
78
79 func (x *DSSEAttestationNote) GetHint() *DSSEAttestationNote_DSSEHint {
80 if x != nil {
81 return x.Hint
82 }
83 return nil
84 }
85
86
87
88 type DSSEAttestationOccurrence struct {
89 state protoimpl.MessageState
90 sizeCache protoimpl.SizeCache
91 unknownFields protoimpl.UnknownFields
92
93
94
95 Envelope *Envelope `protobuf:"bytes,1,opt,name=envelope,proto3" json:"envelope,omitempty"`
96
97
98 DecodedPayload isDSSEAttestationOccurrence_DecodedPayload `protobuf_oneof:"decoded_payload"`
99 }
100
101 func (x *DSSEAttestationOccurrence) Reset() {
102 *x = DSSEAttestationOccurrence{}
103 if protoimpl.UnsafeEnabled {
104 mi := &file_grafeas_v1_dsse_attestation_proto_msgTypes[1]
105 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
106 ms.StoreMessageInfo(mi)
107 }
108 }
109
110 func (x *DSSEAttestationOccurrence) String() string {
111 return protoimpl.X.MessageStringOf(x)
112 }
113
114 func (*DSSEAttestationOccurrence) ProtoMessage() {}
115
116 func (x *DSSEAttestationOccurrence) ProtoReflect() protoreflect.Message {
117 mi := &file_grafeas_v1_dsse_attestation_proto_msgTypes[1]
118 if protoimpl.UnsafeEnabled && x != nil {
119 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
120 if ms.LoadMessageInfo() == nil {
121 ms.StoreMessageInfo(mi)
122 }
123 return ms
124 }
125 return mi.MessageOf(x)
126 }
127
128
129 func (*DSSEAttestationOccurrence) Descriptor() ([]byte, []int) {
130 return file_grafeas_v1_dsse_attestation_proto_rawDescGZIP(), []int{1}
131 }
132
133 func (x *DSSEAttestationOccurrence) GetEnvelope() *Envelope {
134 if x != nil {
135 return x.Envelope
136 }
137 return nil
138 }
139
140 func (m *DSSEAttestationOccurrence) GetDecodedPayload() isDSSEAttestationOccurrence_DecodedPayload {
141 if m != nil {
142 return m.DecodedPayload
143 }
144 return nil
145 }
146
147 func (x *DSSEAttestationOccurrence) GetStatement() *InTotoStatement {
148 if x, ok := x.GetDecodedPayload().(*DSSEAttestationOccurrence_Statement); ok {
149 return x.Statement
150 }
151 return nil
152 }
153
154 type isDSSEAttestationOccurrence_DecodedPayload interface {
155 isDSSEAttestationOccurrence_DecodedPayload()
156 }
157
158 type DSSEAttestationOccurrence_Statement struct {
159 Statement *InTotoStatement `protobuf:"bytes,2,opt,name=statement,proto3,oneof"`
160 }
161
162 func (*DSSEAttestationOccurrence_Statement) isDSSEAttestationOccurrence_DecodedPayload() {}
163
164
165
166
167
168
169
170
171 type DSSEAttestationNote_DSSEHint struct {
172 state protoimpl.MessageState
173 sizeCache protoimpl.SizeCache
174 unknownFields protoimpl.UnknownFields
175
176
177
178 HumanReadableName string `protobuf:"bytes,1,opt,name=human_readable_name,json=humanReadableName,proto3" json:"human_readable_name,omitempty"`
179 }
180
181 func (x *DSSEAttestationNote_DSSEHint) Reset() {
182 *x = DSSEAttestationNote_DSSEHint{}
183 if protoimpl.UnsafeEnabled {
184 mi := &file_grafeas_v1_dsse_attestation_proto_msgTypes[2]
185 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
186 ms.StoreMessageInfo(mi)
187 }
188 }
189
190 func (x *DSSEAttestationNote_DSSEHint) String() string {
191 return protoimpl.X.MessageStringOf(x)
192 }
193
194 func (*DSSEAttestationNote_DSSEHint) ProtoMessage() {}
195
196 func (x *DSSEAttestationNote_DSSEHint) ProtoReflect() protoreflect.Message {
197 mi := &file_grafeas_v1_dsse_attestation_proto_msgTypes[2]
198 if protoimpl.UnsafeEnabled && x != nil {
199 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
200 if ms.LoadMessageInfo() == nil {
201 ms.StoreMessageInfo(mi)
202 }
203 return ms
204 }
205 return mi.MessageOf(x)
206 }
207
208
209 func (*DSSEAttestationNote_DSSEHint) Descriptor() ([]byte, []int) {
210 return file_grafeas_v1_dsse_attestation_proto_rawDescGZIP(), []int{0, 0}
211 }
212
213 func (x *DSSEAttestationNote_DSSEHint) GetHumanReadableName() string {
214 if x != nil {
215 return x.HumanReadableName
216 }
217 return ""
218 }
219
220 var File_grafeas_v1_dsse_attestation_proto protoreflect.FileDescriptor
221
222 var file_grafeas_v1_dsse_attestation_proto_rawDesc = []byte{
223 0x0a, 0x21, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x73, 0x73,
224 0x65, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72,
225 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x1a,
226 0x17, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d,
227 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61,
228 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x74, 0x6f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x61, 0x74,
229 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8f, 0x01, 0x0a, 0x13,
230 0x44, 0x53, 0x53, 0x45, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e,
231 0x6f, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x04, 0x68, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
232 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44,
233 0x53, 0x53, 0x45, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x6f,
234 0x74, 0x65, 0x2e, 0x44, 0x53, 0x53, 0x45, 0x48, 0x69, 0x6e, 0x74, 0x52, 0x04, 0x68, 0x69, 0x6e,
235 0x74, 0x1a, 0x3a, 0x0a, 0x08, 0x44, 0x53, 0x53, 0x45, 0x48, 0x69, 0x6e, 0x74, 0x12, 0x2e, 0x0a,
236 0x13, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f,
237 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x68, 0x75, 0x6d, 0x61,
238 0x6e, 0x52, 0x65, 0x61, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x9d, 0x01,
239 0x0a, 0x19, 0x44, 0x53, 0x53, 0x45, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f,
240 0x6e, 0x4f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x65,
241 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e,
242 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x76, 0x65, 0x6c,
243 0x6f, 0x70, 0x65, 0x52, 0x08, 0x65, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x3b, 0x0a,
244 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
245 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e,
246 0x54, 0x6f, 0x74, 0x6f, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52,
247 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x11, 0x0a, 0x0f, 0x64, 0x65,
248 0x63, 0x6f, 0x64, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x51, 0x0a,
249 0x0d, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x50, 0x01,
250 0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e,
251 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f,
252 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f,
253 0x76, 0x31, 0x3b, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0xa2, 0x02, 0x03, 0x47, 0x52, 0x41,
254 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
255 }
256
257 var (
258 file_grafeas_v1_dsse_attestation_proto_rawDescOnce sync.Once
259 file_grafeas_v1_dsse_attestation_proto_rawDescData = file_grafeas_v1_dsse_attestation_proto_rawDesc
260 )
261
262 func file_grafeas_v1_dsse_attestation_proto_rawDescGZIP() []byte {
263 file_grafeas_v1_dsse_attestation_proto_rawDescOnce.Do(func() {
264 file_grafeas_v1_dsse_attestation_proto_rawDescData = protoimpl.X.CompressGZIP(file_grafeas_v1_dsse_attestation_proto_rawDescData)
265 })
266 return file_grafeas_v1_dsse_attestation_proto_rawDescData
267 }
268
269 var file_grafeas_v1_dsse_attestation_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
270 var file_grafeas_v1_dsse_attestation_proto_goTypes = []interface{}{
271 (*DSSEAttestationNote)(nil),
272 (*DSSEAttestationOccurrence)(nil),
273 (*DSSEAttestationNote_DSSEHint)(nil),
274 (*Envelope)(nil),
275 (*InTotoStatement)(nil),
276 }
277 var file_grafeas_v1_dsse_attestation_proto_depIdxs = []int32{
278 2,
279 3,
280 4,
281 3,
282 3,
283 3,
284 3,
285 0,
286 }
287
288 func init() { file_grafeas_v1_dsse_attestation_proto_init() }
289 func file_grafeas_v1_dsse_attestation_proto_init() {
290 if File_grafeas_v1_dsse_attestation_proto != nil {
291 return
292 }
293 file_grafeas_v1_common_proto_init()
294 file_grafeas_v1_intoto_statement_proto_init()
295 if !protoimpl.UnsafeEnabled {
296 file_grafeas_v1_dsse_attestation_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
297 switch v := v.(*DSSEAttestationNote); i {
298 case 0:
299 return &v.state
300 case 1:
301 return &v.sizeCache
302 case 2:
303 return &v.unknownFields
304 default:
305 return nil
306 }
307 }
308 file_grafeas_v1_dsse_attestation_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
309 switch v := v.(*DSSEAttestationOccurrence); i {
310 case 0:
311 return &v.state
312 case 1:
313 return &v.sizeCache
314 case 2:
315 return &v.unknownFields
316 default:
317 return nil
318 }
319 }
320 file_grafeas_v1_dsse_attestation_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
321 switch v := v.(*DSSEAttestationNote_DSSEHint); i {
322 case 0:
323 return &v.state
324 case 1:
325 return &v.sizeCache
326 case 2:
327 return &v.unknownFields
328 default:
329 return nil
330 }
331 }
332 }
333 file_grafeas_v1_dsse_attestation_proto_msgTypes[1].OneofWrappers = []interface{}{
334 (*DSSEAttestationOccurrence_Statement)(nil),
335 }
336 type x struct{}
337 out := protoimpl.TypeBuilder{
338 File: protoimpl.DescBuilder{
339 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
340 RawDescriptor: file_grafeas_v1_dsse_attestation_proto_rawDesc,
341 NumEnums: 0,
342 NumMessages: 3,
343 NumExtensions: 0,
344 NumServices: 0,
345 },
346 GoTypes: file_grafeas_v1_dsse_attestation_proto_goTypes,
347 DependencyIndexes: file_grafeas_v1_dsse_attestation_proto_depIdxs,
348 MessageInfos: file_grafeas_v1_dsse_attestation_proto_msgTypes,
349 }.Build()
350 File_grafeas_v1_dsse_attestation_proto = out.File
351 file_grafeas_v1_dsse_attestation_proto_rawDesc = nil
352 file_grafeas_v1_dsse_attestation_proto_goTypes = nil
353 file_grafeas_v1_dsse_attestation_proto_depIdxs = nil
354 }
355
View as plain text