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 type Layer struct {
40 state protoimpl.MessageState
41 sizeCache protoimpl.SizeCache
42 unknownFields protoimpl.UnknownFields
43
44
45
46 Directive string `protobuf:"bytes,1,opt,name=directive,proto3" json:"directive,omitempty"`
47
48 Arguments string `protobuf:"bytes,2,opt,name=arguments,proto3" json:"arguments,omitempty"`
49 }
50
51 func (x *Layer) Reset() {
52 *x = Layer{}
53 if protoimpl.UnsafeEnabled {
54 mi := &file_grafeas_v1_image_proto_msgTypes[0]
55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
56 ms.StoreMessageInfo(mi)
57 }
58 }
59
60 func (x *Layer) String() string {
61 return protoimpl.X.MessageStringOf(x)
62 }
63
64 func (*Layer) ProtoMessage() {}
65
66 func (x *Layer) ProtoReflect() protoreflect.Message {
67 mi := &file_grafeas_v1_image_proto_msgTypes[0]
68 if protoimpl.UnsafeEnabled && x != nil {
69 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
70 if ms.LoadMessageInfo() == nil {
71 ms.StoreMessageInfo(mi)
72 }
73 return ms
74 }
75 return mi.MessageOf(x)
76 }
77
78
79 func (*Layer) Descriptor() ([]byte, []int) {
80 return file_grafeas_v1_image_proto_rawDescGZIP(), []int{0}
81 }
82
83 func (x *Layer) GetDirective() string {
84 if x != nil {
85 return x.Directive
86 }
87 return ""
88 }
89
90 func (x *Layer) GetArguments() string {
91 if x != nil {
92 return x.Arguments
93 }
94 return ""
95 }
96
97
98 type Fingerprint struct {
99 state protoimpl.MessageState
100 sizeCache protoimpl.SizeCache
101 unknownFields protoimpl.UnknownFields
102
103
104
105 V1Name string `protobuf:"bytes,1,opt,name=v1_name,json=v1Name,proto3" json:"v1_name,omitempty"`
106
107 V2Blob []string `protobuf:"bytes,2,rep,name=v2_blob,json=v2Blob,proto3" json:"v2_blob,omitempty"`
108
109
110
111
112 V2Name string `protobuf:"bytes,3,opt,name=v2_name,json=v2Name,proto3" json:"v2_name,omitempty"`
113 }
114
115 func (x *Fingerprint) Reset() {
116 *x = Fingerprint{}
117 if protoimpl.UnsafeEnabled {
118 mi := &file_grafeas_v1_image_proto_msgTypes[1]
119 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
120 ms.StoreMessageInfo(mi)
121 }
122 }
123
124 func (x *Fingerprint) String() string {
125 return protoimpl.X.MessageStringOf(x)
126 }
127
128 func (*Fingerprint) ProtoMessage() {}
129
130 func (x *Fingerprint) ProtoReflect() protoreflect.Message {
131 mi := &file_grafeas_v1_image_proto_msgTypes[1]
132 if protoimpl.UnsafeEnabled && x != nil {
133 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
134 if ms.LoadMessageInfo() == nil {
135 ms.StoreMessageInfo(mi)
136 }
137 return ms
138 }
139 return mi.MessageOf(x)
140 }
141
142
143 func (*Fingerprint) Descriptor() ([]byte, []int) {
144 return file_grafeas_v1_image_proto_rawDescGZIP(), []int{1}
145 }
146
147 func (x *Fingerprint) GetV1Name() string {
148 if x != nil {
149 return x.V1Name
150 }
151 return ""
152 }
153
154 func (x *Fingerprint) GetV2Blob() []string {
155 if x != nil {
156 return x.V2Blob
157 }
158 return nil
159 }
160
161 func (x *Fingerprint) GetV2Name() string {
162 if x != nil {
163 return x.V2Name
164 }
165 return ""
166 }
167
168
169
170
171
172
173
174
175 type ImageNote struct {
176 state protoimpl.MessageState
177 sizeCache protoimpl.SizeCache
178 unknownFields protoimpl.UnknownFields
179
180
181
182 ResourceUrl string `protobuf:"bytes,1,opt,name=resource_url,json=resourceUrl,proto3" json:"resource_url,omitempty"`
183
184 Fingerprint *Fingerprint `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
185 }
186
187 func (x *ImageNote) Reset() {
188 *x = ImageNote{}
189 if protoimpl.UnsafeEnabled {
190 mi := &file_grafeas_v1_image_proto_msgTypes[2]
191 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
192 ms.StoreMessageInfo(mi)
193 }
194 }
195
196 func (x *ImageNote) String() string {
197 return protoimpl.X.MessageStringOf(x)
198 }
199
200 func (*ImageNote) ProtoMessage() {}
201
202 func (x *ImageNote) ProtoReflect() protoreflect.Message {
203 mi := &file_grafeas_v1_image_proto_msgTypes[2]
204 if protoimpl.UnsafeEnabled && x != nil {
205 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
206 if ms.LoadMessageInfo() == nil {
207 ms.StoreMessageInfo(mi)
208 }
209 return ms
210 }
211 return mi.MessageOf(x)
212 }
213
214
215 func (*ImageNote) Descriptor() ([]byte, []int) {
216 return file_grafeas_v1_image_proto_rawDescGZIP(), []int{2}
217 }
218
219 func (x *ImageNote) GetResourceUrl() string {
220 if x != nil {
221 return x.ResourceUrl
222 }
223 return ""
224 }
225
226 func (x *ImageNote) GetFingerprint() *Fingerprint {
227 if x != nil {
228 return x.Fingerprint
229 }
230 return nil
231 }
232
233
234
235
236 type ImageOccurrence struct {
237 state protoimpl.MessageState
238 sizeCache protoimpl.SizeCache
239 unknownFields protoimpl.UnknownFields
240
241
242 Fingerprint *Fingerprint `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
243
244
245 Distance int32 `protobuf:"varint,2,opt,name=distance,proto3" json:"distance,omitempty"`
246
247
248
249 LayerInfo []*Layer `protobuf:"bytes,3,rep,name=layer_info,json=layerInfo,proto3" json:"layer_info,omitempty"`
250
251
252 BaseResourceUrl string `protobuf:"bytes,4,opt,name=base_resource_url,json=baseResourceUrl,proto3" json:"base_resource_url,omitempty"`
253 }
254
255 func (x *ImageOccurrence) Reset() {
256 *x = ImageOccurrence{}
257 if protoimpl.UnsafeEnabled {
258 mi := &file_grafeas_v1_image_proto_msgTypes[3]
259 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
260 ms.StoreMessageInfo(mi)
261 }
262 }
263
264 func (x *ImageOccurrence) String() string {
265 return protoimpl.X.MessageStringOf(x)
266 }
267
268 func (*ImageOccurrence) ProtoMessage() {}
269
270 func (x *ImageOccurrence) ProtoReflect() protoreflect.Message {
271 mi := &file_grafeas_v1_image_proto_msgTypes[3]
272 if protoimpl.UnsafeEnabled && x != nil {
273 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
274 if ms.LoadMessageInfo() == nil {
275 ms.StoreMessageInfo(mi)
276 }
277 return ms
278 }
279 return mi.MessageOf(x)
280 }
281
282
283 func (*ImageOccurrence) Descriptor() ([]byte, []int) {
284 return file_grafeas_v1_image_proto_rawDescGZIP(), []int{3}
285 }
286
287 func (x *ImageOccurrence) GetFingerprint() *Fingerprint {
288 if x != nil {
289 return x.Fingerprint
290 }
291 return nil
292 }
293
294 func (x *ImageOccurrence) GetDistance() int32 {
295 if x != nil {
296 return x.Distance
297 }
298 return 0
299 }
300
301 func (x *ImageOccurrence) GetLayerInfo() []*Layer {
302 if x != nil {
303 return x.LayerInfo
304 }
305 return nil
306 }
307
308 func (x *ImageOccurrence) GetBaseResourceUrl() string {
309 if x != nil {
310 return x.BaseResourceUrl
311 }
312 return ""
313 }
314
315 var File_grafeas_v1_image_proto protoreflect.FileDescriptor
316
317 var file_grafeas_v1_image_proto_rawDesc = []byte{
318 0x0a, 0x16, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6d, 0x61,
319 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61,
320 0x73, 0x2e, 0x76, 0x31, 0x22, 0x43, 0x0a, 0x05, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x1c, 0x0a,
321 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
322 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61,
323 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
324 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x58, 0x0a, 0x0b, 0x46, 0x69, 0x6e,
325 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x76, 0x31, 0x5f, 0x6e,
326 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x76, 0x31, 0x4e, 0x61, 0x6d,
327 0x65, 0x12, 0x17, 0x0a, 0x07, 0x76, 0x32, 0x5f, 0x62, 0x6c, 0x6f, 0x62, 0x18, 0x02, 0x20, 0x03,
328 0x28, 0x09, 0x52, 0x06, 0x76, 0x32, 0x42, 0x6c, 0x6f, 0x62, 0x12, 0x17, 0x0a, 0x07, 0x76, 0x32,
329 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x76, 0x32, 0x4e,
330 0x61, 0x6d, 0x65, 0x22, 0x69, 0x0a, 0x09, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x4e, 0x6f, 0x74, 0x65,
331 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x75, 0x72, 0x6c,
332 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
333 0x55, 0x72, 0x6c, 0x12, 0x39, 0x0a, 0x0b, 0x66, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69,
334 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65,
335 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e,
336 0x74, 0x52, 0x0b, 0x66, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x22, 0xc6,
337 0x01, 0x0a, 0x0f, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x4f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e,
338 0x63, 0x65, 0x12, 0x39, 0x0a, 0x0b, 0x66, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e,
339 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61,
340 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74,
341 0x52, 0x0b, 0x66, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x12, 0x1a, 0x0a,
342 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
343 0x08, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x30, 0x0a, 0x0a, 0x6c, 0x61, 0x79,
344 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e,
345 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72,
346 0x52, 0x09, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2a, 0x0a, 0x11, 0x62,
347 0x61, 0x73, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x75, 0x72, 0x6c,
348 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x6f,
349 0x75, 0x72, 0x63, 0x65, 0x55, 0x72, 0x6c, 0x42, 0x51, 0x0a, 0x0d, 0x69, 0x6f, 0x2e, 0x67, 0x72,
350 0x61, 0x66, 0x65, 0x61, 0x73, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67,
351 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65,
352 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
353 0x73, 0x2f, 0x67, 0x72, 0x61, 0x66, 0x65, 0x61, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x72, 0x61,
354 0x66, 0x65, 0x61, 0x73, 0xa2, 0x02, 0x03, 0x47, 0x52, 0x41, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
355 0x6f, 0x33,
356 }
357
358 var (
359 file_grafeas_v1_image_proto_rawDescOnce sync.Once
360 file_grafeas_v1_image_proto_rawDescData = file_grafeas_v1_image_proto_rawDesc
361 )
362
363 func file_grafeas_v1_image_proto_rawDescGZIP() []byte {
364 file_grafeas_v1_image_proto_rawDescOnce.Do(func() {
365 file_grafeas_v1_image_proto_rawDescData = protoimpl.X.CompressGZIP(file_grafeas_v1_image_proto_rawDescData)
366 })
367 return file_grafeas_v1_image_proto_rawDescData
368 }
369
370 var file_grafeas_v1_image_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
371 var file_grafeas_v1_image_proto_goTypes = []interface{}{
372 (*Layer)(nil),
373 (*Fingerprint)(nil),
374 (*ImageNote)(nil),
375 (*ImageOccurrence)(nil),
376 }
377 var file_grafeas_v1_image_proto_depIdxs = []int32{
378 1,
379 1,
380 0,
381 3,
382 3,
383 3,
384 3,
385 0,
386 }
387
388 func init() { file_grafeas_v1_image_proto_init() }
389 func file_grafeas_v1_image_proto_init() {
390 if File_grafeas_v1_image_proto != nil {
391 return
392 }
393 if !protoimpl.UnsafeEnabled {
394 file_grafeas_v1_image_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
395 switch v := v.(*Layer); i {
396 case 0:
397 return &v.state
398 case 1:
399 return &v.sizeCache
400 case 2:
401 return &v.unknownFields
402 default:
403 return nil
404 }
405 }
406 file_grafeas_v1_image_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
407 switch v := v.(*Fingerprint); 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_grafeas_v1_image_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
419 switch v := v.(*ImageNote); 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_grafeas_v1_image_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
431 switch v := v.(*ImageOccurrence); 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_grafeas_v1_image_proto_rawDesc,
448 NumEnums: 0,
449 NumMessages: 4,
450 NumExtensions: 0,
451 NumServices: 0,
452 },
453 GoTypes: file_grafeas_v1_image_proto_goTypes,
454 DependencyIndexes: file_grafeas_v1_image_proto_depIdxs,
455 MessageInfos: file_grafeas_v1_image_proto_msgTypes,
456 }.Build()
457 File_grafeas_v1_image_proto = out.File
458 file_grafeas_v1_image_proto_rawDesc = nil
459 file_grafeas_v1_image_proto_goTypes = nil
460 file_grafeas_v1_image_proto_depIdxs = nil
461 }
462
View as plain text