1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: grafeas/v1/image.proto
3
4package grafeas
5
6import (
7	fmt "fmt"
8	math "math"
9
10	proto "github.com/golang/protobuf/proto"
11)
12
13// Reference imports to suppress errors if they are not otherwise used.
14var _ = proto.Marshal
15var _ = fmt.Errorf
16var _ = math.Inf
17
18// This is a compile-time assertion to ensure that this generated file
19// is compatible with the proto package it is being compiled against.
20// A compilation error at this line likely means your copy of the
21// proto package needs to be updated.
22const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
23
24// Layer holds metadata specific to a layer of a Docker image.
25type Layer struct {
26	// Required. The recovered Dockerfile directive used to construct this layer.
27	// See https://docs.docker.com/engine/reference/builder/ for more information.
28	Directive string `protobuf:"bytes,1,opt,name=directive,proto3" json:"directive,omitempty"`
29	// The recovered arguments to the Dockerfile directive.
30	Arguments            string   `protobuf:"bytes,2,opt,name=arguments,proto3" json:"arguments,omitempty"`
31	XXX_NoUnkeyedLiteral struct{} `json:"-"`
32	XXX_unrecognized     []byte   `json:"-"`
33	XXX_sizecache        int32    `json:"-"`
34}
35
36func (m *Layer) Reset()         { *m = Layer{} }
37func (m *Layer) String() string { return proto.CompactTextString(m) }
38func (*Layer) ProtoMessage()    {}
39func (*Layer) Descriptor() ([]byte, []int) {
40	return fileDescriptor_4c8e3d6d73ed76c1, []int{0}
41}
42
43func (m *Layer) XXX_Unmarshal(b []byte) error {
44	return xxx_messageInfo_Layer.Unmarshal(m, b)
45}
46func (m *Layer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
47	return xxx_messageInfo_Layer.Marshal(b, m, deterministic)
48}
49func (m *Layer) XXX_Merge(src proto.Message) {
50	xxx_messageInfo_Layer.Merge(m, src)
51}
52func (m *Layer) XXX_Size() int {
53	return xxx_messageInfo_Layer.Size(m)
54}
55func (m *Layer) XXX_DiscardUnknown() {
56	xxx_messageInfo_Layer.DiscardUnknown(m)
57}
58
59var xxx_messageInfo_Layer proto.InternalMessageInfo
60
61func (m *Layer) GetDirective() string {
62	if m != nil {
63		return m.Directive
64	}
65	return ""
66}
67
68func (m *Layer) GetArguments() string {
69	if m != nil {
70		return m.Arguments
71	}
72	return ""
73}
74
75// A set of properties that uniquely identify a given Docker image.
76type Fingerprint struct {
77	// Required. The layer ID of the final layer in the Docker image's v1
78	// representation.
79	V1Name string `protobuf:"bytes,1,opt,name=v1_name,json=v1Name,proto3" json:"v1_name,omitempty"`
80	// Required. The ordered list of v2 blobs that represent a given image.
81	V2Blob []string `protobuf:"bytes,2,rep,name=v2_blob,json=v2Blob,proto3" json:"v2_blob,omitempty"`
82	// Output only. The name of the image's v2 blobs computed via:
83	//   [bottom] := v2_blob[bottom]
84	//   [N] := sha256(v2_blob[N] + " " + v2_name[N+1])
85	// Only the name of the final blob is kept.
86	V2Name               string   `protobuf:"bytes,3,opt,name=v2_name,json=v2Name,proto3" json:"v2_name,omitempty"`
87	XXX_NoUnkeyedLiteral struct{} `json:"-"`
88	XXX_unrecognized     []byte   `json:"-"`
89	XXX_sizecache        int32    `json:"-"`
90}
91
92func (m *Fingerprint) Reset()         { *m = Fingerprint{} }
93func (m *Fingerprint) String() string { return proto.CompactTextString(m) }
94func (*Fingerprint) ProtoMessage()    {}
95func (*Fingerprint) Descriptor() ([]byte, []int) {
96	return fileDescriptor_4c8e3d6d73ed76c1, []int{1}
97}
98
99func (m *Fingerprint) XXX_Unmarshal(b []byte) error {
100	return xxx_messageInfo_Fingerprint.Unmarshal(m, b)
101}
102func (m *Fingerprint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
103	return xxx_messageInfo_Fingerprint.Marshal(b, m, deterministic)
104}
105func (m *Fingerprint) XXX_Merge(src proto.Message) {
106	xxx_messageInfo_Fingerprint.Merge(m, src)
107}
108func (m *Fingerprint) XXX_Size() int {
109	return xxx_messageInfo_Fingerprint.Size(m)
110}
111func (m *Fingerprint) XXX_DiscardUnknown() {
112	xxx_messageInfo_Fingerprint.DiscardUnknown(m)
113}
114
115var xxx_messageInfo_Fingerprint proto.InternalMessageInfo
116
117func (m *Fingerprint) GetV1Name() string {
118	if m != nil {
119		return m.V1Name
120	}
121	return ""
122}
123
124func (m *Fingerprint) GetV2Blob() []string {
125	if m != nil {
126		return m.V2Blob
127	}
128	return nil
129}
130
131func (m *Fingerprint) GetV2Name() string {
132	if m != nil {
133		return m.V2Name
134	}
135	return ""
136}
137
138// Basis describes the base image portion (Note) of the DockerImage
139// relationship. Linked occurrences are derived from this or an equivalent image
140// via:
141//   FROM <Basis.resource_url>
142// Or an equivalent reference, e.g., a tag of the resource_url.
143type ImageNote struct {
144	// Required. Immutable. The resource_url for the resource representing the
145	// basis of associated occurrence images.
146	ResourceUrl string `protobuf:"bytes,1,opt,name=resource_url,json=resourceUrl,proto3" json:"resource_url,omitempty"`
147	// Required. Immutable. The fingerprint of the base image.
148	Fingerprint          *Fingerprint `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
149	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
150	XXX_unrecognized     []byte       `json:"-"`
151	XXX_sizecache        int32        `json:"-"`
152}
153
154func (m *ImageNote) Reset()         { *m = ImageNote{} }
155func (m *ImageNote) String() string { return proto.CompactTextString(m) }
156func (*ImageNote) ProtoMessage()    {}
157func (*ImageNote) Descriptor() ([]byte, []int) {
158	return fileDescriptor_4c8e3d6d73ed76c1, []int{2}
159}
160
161func (m *ImageNote) XXX_Unmarshal(b []byte) error {
162	return xxx_messageInfo_ImageNote.Unmarshal(m, b)
163}
164func (m *ImageNote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
165	return xxx_messageInfo_ImageNote.Marshal(b, m, deterministic)
166}
167func (m *ImageNote) XXX_Merge(src proto.Message) {
168	xxx_messageInfo_ImageNote.Merge(m, src)
169}
170func (m *ImageNote) XXX_Size() int {
171	return xxx_messageInfo_ImageNote.Size(m)
172}
173func (m *ImageNote) XXX_DiscardUnknown() {
174	xxx_messageInfo_ImageNote.DiscardUnknown(m)
175}
176
177var xxx_messageInfo_ImageNote proto.InternalMessageInfo
178
179func (m *ImageNote) GetResourceUrl() string {
180	if m != nil {
181		return m.ResourceUrl
182	}
183	return ""
184}
185
186func (m *ImageNote) GetFingerprint() *Fingerprint {
187	if m != nil {
188		return m.Fingerprint
189	}
190	return nil
191}
192
193// Details of the derived image portion of the DockerImage relationship. This
194// image would be produced from a Dockerfile with FROM <DockerImage.Basis in
195// attached Note>.
196type ImageOccurrence struct {
197	// Required. The fingerprint of the derived image.
198	Fingerprint *Fingerprint `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
199	// Output only. The number of layers by which this image differs from the
200	// associated image basis.
201	Distance int32 `protobuf:"varint,2,opt,name=distance,proto3" json:"distance,omitempty"`
202	// This contains layer-specific metadata, if populated it has length
203	// "distance" and is ordered with [distance] being the layer immediately
204	// following the base image and [1] being the final layer.
205	LayerInfo []*Layer `protobuf:"bytes,3,rep,name=layer_info,json=layerInfo,proto3" json:"layer_info,omitempty"`
206	// Output only. This contains the base image URL for the derived image
207	// occurrence.
208	BaseResourceUrl      string   `protobuf:"bytes,4,opt,name=base_resource_url,json=baseResourceUrl,proto3" json:"base_resource_url,omitempty"`
209	XXX_NoUnkeyedLiteral struct{} `json:"-"`
210	XXX_unrecognized     []byte   `json:"-"`
211	XXX_sizecache        int32    `json:"-"`
212}
213
214func (m *ImageOccurrence) Reset()         { *m = ImageOccurrence{} }
215func (m *ImageOccurrence) String() string { return proto.CompactTextString(m) }
216func (*ImageOccurrence) ProtoMessage()    {}
217func (*ImageOccurrence) Descriptor() ([]byte, []int) {
218	return fileDescriptor_4c8e3d6d73ed76c1, []int{3}
219}
220
221func (m *ImageOccurrence) XXX_Unmarshal(b []byte) error {
222	return xxx_messageInfo_ImageOccurrence.Unmarshal(m, b)
223}
224func (m *ImageOccurrence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
225	return xxx_messageInfo_ImageOccurrence.Marshal(b, m, deterministic)
226}
227func (m *ImageOccurrence) XXX_Merge(src proto.Message) {
228	xxx_messageInfo_ImageOccurrence.Merge(m, src)
229}
230func (m *ImageOccurrence) XXX_Size() int {
231	return xxx_messageInfo_ImageOccurrence.Size(m)
232}
233func (m *ImageOccurrence) XXX_DiscardUnknown() {
234	xxx_messageInfo_ImageOccurrence.DiscardUnknown(m)
235}
236
237var xxx_messageInfo_ImageOccurrence proto.InternalMessageInfo
238
239func (m *ImageOccurrence) GetFingerprint() *Fingerprint {
240	if m != nil {
241		return m.Fingerprint
242	}
243	return nil
244}
245
246func (m *ImageOccurrence) GetDistance() int32 {
247	if m != nil {
248		return m.Distance
249	}
250	return 0
251}
252
253func (m *ImageOccurrence) GetLayerInfo() []*Layer {
254	if m != nil {
255		return m.LayerInfo
256	}
257	return nil
258}
259
260func (m *ImageOccurrence) GetBaseResourceUrl() string {
261	if m != nil {
262		return m.BaseResourceUrl
263	}
264	return ""
265}
266
267func init() {
268	proto.RegisterType((*Layer)(nil), "grafeas.v1.Layer")
269	proto.RegisterType((*Fingerprint)(nil), "grafeas.v1.Fingerprint")
270	proto.RegisterType((*ImageNote)(nil), "grafeas.v1.ImageNote")
271	proto.RegisterType((*ImageOccurrence)(nil), "grafeas.v1.ImageOccurrence")
272}
273
274func init() { proto.RegisterFile("grafeas/v1/image.proto", fileDescriptor_4c8e3d6d73ed76c1) }
275
276var fileDescriptor_4c8e3d6d73ed76c1 = []byte{
277	// 358 bytes of a gzipped FileDescriptorProto
278	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xcf, 0x6a, 0xa3, 0x50,
279	0x14, 0xc6, 0x31, 0x4e, 0x32, 0xe3, 0x71, 0x86, 0x90, 0xbb, 0x98, 0xc8, 0x30, 0x8b, 0x8c, 0xab,
280	0x30, 0x0b, 0xad, 0x76, 0xd3, 0xd2, 0x55, 0x53, 0x68, 0x09, 0x94, 0xb4, 0x15, 0x0a, 0xa5, 0x1b,
281	0xb9, 0x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