// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v4.24.4
// source: in_toto_attestation/predicates/reference/v0/reference.proto

package v0

import (
	v1 "github.com/in-toto/attestation/go/v1"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type Reference struct {
	state         protoimpl.MessageState   `protogen:"open.v1"`
	Attester      *Reference_Attester      `protobuf:"bytes,1,opt,name=attester,proto3" json:"attester,omitempty"`
	References    []*v1.ResourceDescriptor `protobuf:"bytes,2,rep,name=references,proto3" json:"references,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Reference) Reset() {
	*x = Reference{}
	mi := &file_in_toto_attestation_predicates_reference_v0_reference_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Reference) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Reference) ProtoMessage() {}

func (x *Reference) ProtoReflect() protoreflect.Message {
	mi := &file_in_toto_attestation_predicates_reference_v0_reference_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Reference.ProtoReflect.Descriptor instead.
func (*Reference) Descriptor() ([]byte, []int) {
	return file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDescGZIP(), []int{0}
}

func (x *Reference) GetAttester() *Reference_Attester {
	if x != nil {
		return x.Attester
	}
	return nil
}

func (x *Reference) GetReferences() []*v1.ResourceDescriptor {
	if x != nil {
		return x.References
	}
	return nil
}

type Reference_Attester struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Id            string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Reference_Attester) Reset() {
	*x = Reference_Attester{}
	mi := &file_in_toto_attestation_predicates_reference_v0_reference_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Reference_Attester) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Reference_Attester) ProtoMessage() {}

func (x *Reference_Attester) ProtoReflect() protoreflect.Message {
	mi := &file_in_toto_attestation_predicates_reference_v0_reference_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Reference_Attester.ProtoReflect.Descriptor instead.
func (*Reference_Attester) Descriptor() ([]byte, []int) {
	return file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDescGZIP(), []int{0, 0}
}

func (x *Reference_Attester) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

var File_in_toto_attestation_predicates_reference_v0_reference_proto protoreflect.FileDescriptor

const file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDesc = "" +
	"\n" +
	";in_toto_attestation/predicates/reference/v0/reference.proto\x12+in_toto_attestation.predicates.reference.v0\x1a0in_toto_attestation/v1/resource_descriptor.proto\"\xd0\x01\n" +
	"\tReference\x12[\n" +
	"\battester\x18\x01 \x01(\v2?.in_toto_attestation.predicates.reference.v0.Reference.AttesterR\battester\x12J\n" +
	"\n" +
	"references\x18\x02 \x03(\v2*.in_toto_attestation.v1.ResourceDescriptorR\n" +
	"references\x1a\x1a\n" +
	"\bAttester\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02idBq\n" +
	"4io.github.intoto.attestation.predicates.reference.v0Z9github.com/in-toto/attestation/go/predicates/reference/v0b\x06proto3"

var (
	file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDescOnce sync.Once
	file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDescData []byte
)

func file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDescGZIP() []byte {
	file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDescOnce.Do(func() {
		file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDesc), len(file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDesc)))
	})
	return file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDescData
}

var file_in_toto_attestation_predicates_reference_v0_reference_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_in_toto_attestation_predicates_reference_v0_reference_proto_goTypes = []any{
	(*Reference)(nil),             // 0: in_toto_attestation.predicates.reference.v0.Reference
	(*Reference_Attester)(nil),    // 1: in_toto_attestation.predicates.reference.v0.Reference.Attester
	(*v1.ResourceDescriptor)(nil), // 2: in_toto_attestation.v1.ResourceDescriptor
}
var file_in_toto_attestation_predicates_reference_v0_reference_proto_depIdxs = []int32{
	1, // 0: in_toto_attestation.predicates.reference.v0.Reference.attester:type_name -> in_toto_attestation.predicates.reference.v0.Reference.Attester
	2, // 1: in_toto_attestation.predicates.reference.v0.Reference.references:type_name -> in_toto_attestation.v1.ResourceDescriptor
	2, // [2:2] is the sub-list for method output_type
	2, // [2:2] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_in_toto_attestation_predicates_reference_v0_reference_proto_init() }
func file_in_toto_attestation_predicates_reference_v0_reference_proto_init() {
	if File_in_toto_attestation_predicates_reference_v0_reference_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDesc), len(file_in_toto_attestation_predicates_reference_v0_reference_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_in_toto_attestation_predicates_reference_v0_reference_proto_goTypes,
		DependencyIndexes: file_in_toto_attestation_predicates_reference_v0_reference_proto_depIdxs,
		MessageInfos:      file_in_toto_attestation_predicates_reference_v0_reference_proto_msgTypes,
	}.Build()
	File_in_toto_attestation_predicates_reference_v0_reference_proto = out.File
	file_in_toto_attestation_predicates_reference_v0_reference_proto_goTypes = nil
	file_in_toto_attestation_predicates_reference_v0_reference_proto_depIdxs = nil
}
