1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: grafeas/v1/attestation.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 kind that represents a logical attestation "role" or "authority". For
25// example, an organization might have one `Authority` for "QA" and one for
26// "build". This note is intended to act strictly as a grouping mechanism for
27// the attached occurrences (Attestations). This grouping mechanism also
28// provides a security boundary, since IAM ACLs gate the ability for a principle
29// to attach an occurrence to a given note. It also provides a single point of
30// lookup to find all attached attestation occurrences, even if they don't all
31// live in the same project.
32type AttestationNote struct {
33	// Hint hints at the purpose of the attestation authority.
34	Hint                 *AttestationNote_Hint `protobuf:"bytes,1,opt,name=hint,proto3" json:"hint,omitempty"`
35	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
36	XXX_unrecognized     []byte                `json:"-"`
37	XXX_sizecache        int32                 `json:"-"`
38}
39
40func (m *AttestationNote) Reset()         { *m = AttestationNote{} }
41func (m *AttestationNote) String() string { return proto.CompactTextString(m) }
42func (*AttestationNote) ProtoMessage()    {}
43func (*AttestationNote) Descriptor() ([]byte, []int) {
44	return fileDescriptor_7b5fa61d903b1ef3, []int{0}
45}
46
47func (m *AttestationNote) XXX_Unmarshal(b []byte) error {
48	return xxx_messageInfo_AttestationNote.Unmarshal(m, b)
49}
50func (m *AttestationNote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
51	return xxx_messageInfo_AttestationNote.Marshal(b, m, deterministic)
52}
53func (m *AttestationNote) XXX_Merge(src proto.Message) {
54	xxx_messageInfo_AttestationNote.Merge(m, src)
55}
56func (m *AttestationNote) XXX_Size() int {
57	return xxx_messageInfo_AttestationNote.Size(m)
58}
59func (m *AttestationNote) XXX_DiscardUnknown() {
60	xxx_messageInfo_AttestationNote.DiscardUnknown(m)
61}
62
63var xxx_messageInfo_AttestationNote proto.InternalMessageInfo
64
65func (m *AttestationNote) GetHint() *AttestationNote_Hint {
66	if m != nil {
67		return m.Hint
68	}
69	return nil
70}
71
72// This submessage provides human-readable hints about the purpose of the
73// authority. Because the name of a note acts as its resource reference, it is
74// important to disambiguate the canonical name of the Note (which might be a
75// UUID for security purposes) from "readable" names more suitable for debug
76// output. Note that these hints should not be used to look up authorities in
77// security sensitive contexts, such as when looking up attestations to
78// verify.
79type AttestationNote_Hint struct {
80	// Required. The human readable name of this attestation authority, for
81	// example "qa".
82	HumanReadableName    string   `protobuf:"bytes,1,opt,name=human_readable_name,json=humanReadableName,proto3" json:"human_readable_name,omitempty"`
83	XXX_NoUnkeyedLiteral struct{} `json:"-"`
84	XXX_unrecognized     []byte   `json:"-"`
85	XXX_sizecache        int32    `json:"-"`
86}
87
88func (m *AttestationNote_Hint) Reset()         { *m = AttestationNote_Hint{} }
89func (m *AttestationNote_Hint) String() string { return proto.CompactTextString(m) }
90func (*AttestationNote_Hint) ProtoMessage()    {}
91func (*AttestationNote_Hint) Descriptor() ([]byte, []int) {
92	return fileDescriptor_7b5fa61d903b1ef3, []int{0, 0}
93}
94
95func (m *AttestationNote_Hint) XXX_Unmarshal(b []byte) error {
96	return xxx_messageInfo_AttestationNote_Hint.Unmarshal(m, b)
97}
98func (m *AttestationNote_Hint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
99	return xxx_messageInfo_AttestationNote_Hint.Marshal(b, m, deterministic)
100}
101func (m *AttestationNote_Hint) XXX_Merge(src proto.Message) {
102	xxx_messageInfo_AttestationNote_Hint.Merge(m, src)
103}
104func (m *AttestationNote_Hint) XXX_Size() int {
105	return xxx_messageInfo_AttestationNote_Hint.Size(m)
106}
107func (m *AttestationNote_Hint) XXX_DiscardUnknown() {
108	xxx_messageInfo_AttestationNote_Hint.DiscardUnknown(m)
109}
110
111var xxx_messageInfo_AttestationNote_Hint proto.InternalMessageInfo
112
113func (m *AttestationNote_Hint) GetHumanReadableName() string {
114	if m != nil {
115		return m.HumanReadableName
116	}
117	return ""
118}
119
120// Occurrence that represents a single "attestation". The authenticity of an
121// attestation can be verified using the attached signature. If the verifier
122// trusts the public key of the signer, then verifying the signature is
123// sufficient to establish trust. In this circumstance, the authority to which
124// this attestation is attached is primarily useful for lookup (how to find
125// this attestation if you already know the authority and artifact to be
126// verified) and intent (for which authority this attestation was intended to
127// sign.
128type AttestationOccurrence struct {
129	// Required. The serialized payload that is verified by one or more
130	// `signatures`.
131	SerializedPayload []byte `protobuf:"bytes,1,opt,name=serialized_payload,json=serializedPayload,proto3" json:"serialized_payload,omitempty"`
132	// One or more signatures over `serialized_payload`.  Verifier implementations
133	// should consider this attestation message verified if at least one
134	// `signature` verifies `serialized_payload`.  See `Signature` in common.proto
135	// for more details on signature structure and verification.
136	Signatures           []*Signature `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"`
137	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
138	XXX_unrecognized     []byte       `json:"-"`
139	XXX_sizecache        int32        `json:"-"`
140}
141
142func (m *AttestationOccurrence) Reset()         { *m = AttestationOccurrence{} }
143func (m *AttestationOccurrence) String() string { return proto.CompactTextString(m) }
144func (*AttestationOccurrence) ProtoMessage()    {}
145func (*AttestationOccurrence) Descriptor() ([]byte, []int) {
146	return fileDescriptor_7b5fa61d903b1ef3, []int{1}
147}
148
149func (m *AttestationOccurrence) XXX_Unmarshal(b []byte) error {
150	return xxx_messageInfo_AttestationOccurrence.Unmarshal(m, b)
151}
152func (m *AttestationOccurrence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
153	return xxx_messageInfo_AttestationOccurrence.Marshal(b, m, deterministic)
154}
155func (m *AttestationOccurrence) XXX_Merge(src proto.Message) {
156	xxx_messageInfo_AttestationOccurrence.Merge(m, src)
157}
158func (m *AttestationOccurrence) XXX_Size() int {
159	return xxx_messageInfo_AttestationOccurrence.Size(m)
160}
161func (m *AttestationOccurrence) XXX_DiscardUnknown() {
162	xxx_messageInfo_AttestationOccurrence.DiscardUnknown(m)
163}
164
165var xxx_messageInfo_AttestationOccurrence proto.InternalMessageInfo
166
167func (m *AttestationOccurrence) GetSerializedPayload() []byte {
168	if m != nil {
169		return m.SerializedPayload
170	}
171	return nil
172}
173
174func (m *AttestationOccurrence) GetSignatures() []*Signature {
175	if m != nil {
176		return m.Signatures
177	}
178	return nil
179}
180
181func init() {
182	proto.RegisterType((*AttestationNote)(nil), "grafeas.v1.AttestationNote")
183	proto.RegisterType((*AttestationNote_Hint)(nil), "grafeas.v1.AttestationNote.Hint")
184	proto.RegisterType((*AttestationOccurrence)(nil), "grafeas.v1.AttestationOccurrence")
185}
186
187func init() { proto.RegisterFile("grafeas/v1/attestation.proto", fileDescriptor_7b5fa61d903b1ef3) }
188
189var fileDescriptor_7b5fa61d903b1ef3 = []byte{
190	// 280 bytes of a gzipped FileDescriptorProto
191	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0x4d, 0x4b, 0x33, 0x31,
192	0x14, 0x46, 0xe9, 0x07, 0x2f, 0xbc, 0xa9, 0x22, 0x8d, 0x14, 0x4b, 0x71, 0x31, 0x74, 0xd5, 0x8d,
193	0x19, 0x5a, 0x3f, 0x10, 0x5c, 0xd5, 0x8d, 0xae, 0x6a, 0x8d, 0x3b, 0x37, 0xc3, 0xed, 0xcc, 0x35,
194	0x0d, 0xcc, 0xe4, 0x0e, 0x49, 0xa6, 0xa0, 0x20, 0xfe, 0x17, 0x7f, 0xa9, 0x98, 0x4e, 0x99, 0xc1,
195	0x5d, 0xc2, 0x39, 0x39, 0x84, 0x87, 0x9d, 0x2b, 0x0b, 0x6f, 0x08, 0x2e, 0xde, 0xcd, 0x63, 0xf0,
196	0x1e, 0x9d, 0x07, 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, 0x0b, 0xea, 0xe5, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff,
208	0xa2, 0x62, 0xca, 0x17, 0x9e, 0x01, 0x00, 0x00,
209}
210