1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: grafeas/v1/build.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// Note holding the version of the provider's builder and the signature of the
25// provenance message in the build details occurrence.
26type BuildNote struct {
27	// Required. Immutable. Version of the builder which produced this build.
28	BuilderVersion       string   `protobuf:"bytes,1,opt,name=builder_version,json=builderVersion,proto3" json:"builder_version,omitempty"`
29	XXX_NoUnkeyedLiteral struct{} `json:"-"`
30	XXX_unrecognized     []byte   `json:"-"`
31	XXX_sizecache        int32    `json:"-"`
32}
33
34func (m *BuildNote) Reset()         { *m = BuildNote{} }
35func (m *BuildNote) String() string { return proto.CompactTextString(m) }
36func (*BuildNote) ProtoMessage()    {}
37func (*BuildNote) Descriptor() ([]byte, []int) {
38	return fileDescriptor_056b00916e290af1, []int{0}
39}
40
41func (m *BuildNote) XXX_Unmarshal(b []byte) error {
42	return xxx_messageInfo_BuildNote.Unmarshal(m, b)
43}
44func (m *BuildNote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
45	return xxx_messageInfo_BuildNote.Marshal(b, m, deterministic)
46}
47func (m *BuildNote) XXX_Merge(src proto.Message) {
48	xxx_messageInfo_BuildNote.Merge(m, src)
49}
50func (m *BuildNote) XXX_Size() int {
51	return xxx_messageInfo_BuildNote.Size(m)
52}
53func (m *BuildNote) XXX_DiscardUnknown() {
54	xxx_messageInfo_BuildNote.DiscardUnknown(m)
55}
56
57var xxx_messageInfo_BuildNote proto.InternalMessageInfo
58
59func (m *BuildNote) GetBuilderVersion() string {
60	if m != nil {
61		return m.BuilderVersion
62	}
63	return ""
64}
65
66// Details of a build occurrence.
67type BuildOccurrence struct {
68	// Required. The actual provenance for the build.
69	Provenance *BuildProvenance `protobuf:"bytes,1,opt,name=provenance,proto3" json:"provenance,omitempty"`
70	// Serialized JSON representation of the provenance, used in generating the
71	// build signature in the corresponding build note. After verifying the
72	// signature, `provenance_bytes` can be unmarshalled and compared to the
73	// provenance to confirm that it is unchanged. A base64-encoded string
74	// representation of the provenance bytes is used for the signature in order
75	// to interoperate with openssl which expects this format for signature
76	// verification.
77	//
78	// The serialized form is captured both to avoid ambiguity in how the
79	// provenance is marshalled to json as well to prevent incompatibilities with
80	// future changes.
81	ProvenanceBytes      string   `protobuf:"bytes,2,opt,name=provenance_bytes,json=provenanceBytes,proto3" json:"provenance_bytes,omitempty"`
82	XXX_NoUnkeyedLiteral struct{} `json:"-"`
83	XXX_unrecognized     []byte   `json:"-"`
84	XXX_sizecache        int32    `json:"-"`
85}
86
87func (m *BuildOccurrence) Reset()         { *m = BuildOccurrence{} }
88func (m *BuildOccurrence) String() string { return proto.CompactTextString(m) }
89func (*BuildOccurrence) ProtoMessage()    {}
90func (*BuildOccurrence) Descriptor() ([]byte, []int) {
91	return fileDescriptor_056b00916e290af1, []int{1}
92}
93
94func (m *BuildOccurrence) XXX_Unmarshal(b []byte) error {
95	return xxx_messageInfo_BuildOccurrence.Unmarshal(m, b)
96}
97func (m *BuildOccurrence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
98	return xxx_messageInfo_BuildOccurrence.Marshal(b, m, deterministic)
99}
100func (m *BuildOccurrence) XXX_Merge(src proto.Message) {
101	xxx_messageInfo_BuildOccurrence.Merge(m, src)
102}
103func (m *BuildOccurrence) XXX_Size() int {
104	return xxx_messageInfo_BuildOccurrence.Size(m)
105}
106func (m *BuildOccurrence) XXX_DiscardUnknown() {
107	xxx_messageInfo_BuildOccurrence.DiscardUnknown(m)
108}
109
110var xxx_messageInfo_BuildOccurrence proto.InternalMessageInfo
111
112func (m *BuildOccurrence) GetProvenance() *BuildProvenance {
113	if m != nil {
114		return m.Provenance
115	}
116	return nil
117}
118
119func (m *BuildOccurrence) GetProvenanceBytes() string {
120	if m != nil {
121		return m.ProvenanceBytes
122	}
123	return ""
124}
125
126func init() {
127	proto.RegisterType((*BuildNote)(nil), "grafeas.v1.BuildNote")
128	proto.RegisterType((*BuildOccurrence)(nil), "grafeas.v1.BuildOccurrence")
129}
130
131func init() { proto.RegisterFile("grafeas/v1/build.proto", fileDescriptor_056b00916e290af1) }
132
133var fileDescriptor_056b00916e290af1 = []byte{
134	// 232 bytes of a gzipped FileDescriptorProto
135	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4b, 0x2f, 0x4a, 0x4c,
136	0x4b, 0x4d, 0x2c, 0xd6, 0x2f, 0x33, 0xd4, 0x4f, 0x2a, 0xcd, 0xcc, 0x49, 0xd1, 0x2b, 0x28, 0xca,
137	0x2f, 0xc9, 0x17, 0xe2, 0x82, 0x8a, 0xeb, 0x95, 0x19, 0x4a, 0x49, 0x23, 0xa9, 0x29, 0x28, 0xca,
138	0x2f, 0x4b, 0xcd, 0x4b, 0xcc, 0x4b, 0x4e, 0x85, 0x28, 0x54, 0x32, 0xe1, 0xe2, 0x74, 0x02, 0xe9,
139	0xf3, 0xcb, 0x2f, 0x49, 0x15, 0x52, 0xe7, 0xe2, 0x07, 0x1b, 0x92, 0x5a, 0x14, 0x5f, 0x96, 0x5a,
140	0x54, 0x9c, 0x99, 0x9f, 0x27, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x19, 0xc4, 0x07, 0x15, 0x0e, 0x83,
141	0x88, 0x2a, 0x55, 0x72, 0xf1, 0x83, 0x75, 0xf9, 0x27, 0x27, 0x97, 0x16, 0x15, 0xa5, 0xe6, 0x25,
142	0xa7, 0x0a, 0x59, 0x73, 0x71, 0x21, 0x0c, 0x07, 0x6b, 0xe3, 0x36, 0x92, 0xd6, 0x43, 0x38, 0x43,
143	0x0f, 0xac, 0x21, 0x00, 0xae, 0x24, 0x08, 0x49, 0xb9, 0x90, 0x26, 0x97, 0x00, 0x82, 0x17, 0x9f,
144	0x54, 0x59, 0x92, 0x5a, 0x2c, 0xc1, 0x04, 0xb6, 0x99, 0x1f, 0x21, 0xee, 0x04, 0x12, 0x76, 0x0a,
145	0xe4, 0xe2, 0xcd, 0xcc, 0x47, 0x32, 0x37, 0x80, 0x31, 0xca, 0x22, 0x3d, 0x3f, 0x3f, 0x3d, 0x27,
146	0x55, 0x2f, 0x3d, 0x3f, 0x27, 0x31, 0x2f, 0x5d, 0x2f, 0xbf, 0x28, 0x5d, 0x3f, 0x3d, 0x35, 0x0f,
147	0xec, 0x3f, 0x7d, 0x88, 0x54, 0x62, 0x41, 0x66, 0xb1, 0x3e, 0x22, 0x18, 0xac, 0xa1, 0xcc, 0x45,
148	0x4c, 0xcc, 0xee, 0x41, 0x8e, 0x49, 0x6c, 0x60, 0xa5, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff,
149	0xd7, 0x4a, 0x16, 0x20, 0x4d, 0x01, 0x00, 0x00,
150}
151