// Protobuf definition for the SCAI Attribute Report predicate
// (predicateType = https://in-toto.io/attestation/scai/attribute-report/v0.2)
//
// Validation of all fields is left to the users of this proto.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v4.24.4
// source: in_toto_attestation/predicates/scai/v0/scai.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"
	structpb "google.golang.org/protobuf/types/known/structpb"
	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 AttributeAssertion struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Attribute     string                 `protobuf:"bytes,1,opt,name=attribute,proto3" json:"attribute,omitempty"` // required
	Target        *v1.ResourceDescriptor `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	Conditions    *structpb.Struct       `protobuf:"bytes,3,opt,name=conditions,proto3" json:"conditions,omitempty"`
	Evidence      *v1.ResourceDescriptor `protobuf:"bytes,4,opt,name=evidence,proto3" json:"evidence,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AttributeAssertion) ProtoMessage() {}

func (x *AttributeAssertion) ProtoReflect() protoreflect.Message {
	mi := &file_in_toto_attestation_predicates_scai_v0_scai_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 AttributeAssertion.ProtoReflect.Descriptor instead.
func (*AttributeAssertion) Descriptor() ([]byte, []int) {
	return file_in_toto_attestation_predicates_scai_v0_scai_proto_rawDescGZIP(), []int{0}
}

func (x *AttributeAssertion) GetAttribute() string {
	if x != nil {
		return x.Attribute
	}
	return ""
}

func (x *AttributeAssertion) GetTarget() *v1.ResourceDescriptor {
	if x != nil {
		return x.Target
	}
	return nil
}

func (x *AttributeAssertion) GetConditions() *structpb.Struct {
	if x != nil {
		return x.Conditions
	}
	return nil
}

func (x *AttributeAssertion) GetEvidence() *v1.ResourceDescriptor {
	if x != nil {
		return x.Evidence
	}
	return nil
}

type AttributeReport struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Attributes    []*AttributeAssertion  `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"`
	Producer      *v1.ResourceDescriptor `protobuf:"bytes,2,opt,name=producer,proto3" json:"producer,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AttributeReport) ProtoMessage() {}

func (x *AttributeReport) ProtoReflect() protoreflect.Message {
	mi := &file_in_toto_attestation_predicates_scai_v0_scai_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 AttributeReport.ProtoReflect.Descriptor instead.
func (*AttributeReport) Descriptor() ([]byte, []int) {
	return file_in_toto_attestation_predicates_scai_v0_scai_proto_rawDescGZIP(), []int{1}
}

func (x *AttributeReport) GetAttributes() []*AttributeAssertion {
	if x != nil {
		return x.Attributes
	}
	return nil
}

func (x *AttributeReport) GetProducer() *v1.ResourceDescriptor {
	if x != nil {
		return x.Producer
	}
	return nil
}

var File_in_toto_attestation_predicates_scai_v0_scai_proto protoreflect.FileDescriptor

const file_in_toto_attestation_predicates_scai_v0_scai_proto_rawDesc = "" +
	"\n" +
	"1in_toto_attestation/predicates/scai/v0/scai.proto\x12&in_toto_attestation.predicates.scai.v0\x1a\x1cgoogle/protobuf/struct.proto\x1a0in_toto_attestation/v1/resource_descriptor.proto\"\xf7\x01\n" +
	"\x12AttributeAssertion\x12\x1c\n" +
	"\tattribute\x18\x01 \x01(\tR\tattribute\x12B\n" +
	"\x06target\x18\x02 \x01(\v2*.in_toto_attestation.v1.ResourceDescriptorR\x06target\x127\n" +
	"\n" +
	"conditions\x18\x03 \x01(\v2\x17.google.protobuf.StructR\n" +
	"conditions\x12F\n" +
	"\bevidence\x18\x04 \x01(\v2*.in_toto_attestation.v1.ResourceDescriptorR\bevidence\"\xb5\x01\n" +
	"\x0fAttributeReport\x12Z\n" +
	"\n" +
	"attributes\x18\x01 \x03(\v2:.in_toto_attestation.predicates.scai.v0.AttributeAssertionR\n" +
	"attributes\x12F\n" +
	"\bproducer\x18\x02 \x01(\v2*.in_toto_attestation.v1.ResourceDescriptorR\bproducerBg\n" +
	"/io.github.intoto.attestation.predicates.scai.v0Z4github.com/in-toto/attestation/go/predicates/scai/v0b\x06proto3"

var (
	file_in_toto_attestation_predicates_scai_v0_scai_proto_rawDescOnce sync.Once
	file_in_toto_attestation_predicates_scai_v0_scai_proto_rawDescData []byte
)

func file_in_toto_attestation_predicates_scai_v0_scai_proto_rawDescGZIP() []byte {
	file_in_toto_attestation_predicates_scai_v0_scai_proto_rawDescOnce.Do(func() {
		file_in_toto_attestation_predicates_scai_v0_scai_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_in_toto_attestation_predicates_scai_v0_scai_proto_rawDesc), len(file_in_toto_attestation_predicates_scai_v0_scai_proto_rawDesc)))
	})
	return file_in_toto_attestation_predicates_scai_v0_scai_proto_rawDescData
}

var file_in_toto_attestation_predicates_scai_v0_scai_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_in_toto_attestation_predicates_scai_v0_scai_proto_goTypes = []any{
	(*AttributeAssertion)(nil),    // 0: in_toto_attestation.predicates.scai.v0.AttributeAssertion
	(*AttributeReport)(nil),       // 1: in_toto_attestation.predicates.scai.v0.AttributeReport
	(*v1.ResourceDescriptor)(nil), // 2: in_toto_attestation.v1.ResourceDescriptor
	(*structpb.Struct)(nil),       // 3: google.protobuf.Struct
}
var file_in_toto_attestation_predicates_scai_v0_scai_proto_depIdxs = []int32{
	2, // 0: in_toto_attestation.predicates.scai.v0.AttributeAssertion.target:type_name -> in_toto_attestation.v1.ResourceDescriptor
	3, // 1: in_toto_attestation.predicates.scai.v0.AttributeAssertion.conditions:type_name -> google.protobuf.Struct
	2, // 2: in_toto_attestation.predicates.scai.v0.AttributeAssertion.evidence:type_name -> in_toto_attestation.v1.ResourceDescriptor
	0, // 3: in_toto_attestation.predicates.scai.v0.AttributeReport.attributes:type_name -> in_toto_attestation.predicates.scai.v0.AttributeAssertion
	2, // 4: in_toto_attestation.predicates.scai.v0.AttributeReport.producer:type_name -> in_toto_attestation.v1.ResourceDescriptor
	5, // [5:5] is the sub-list for method output_type
	5, // [5:5] is the sub-list for method input_type
	5, // [5:5] is the sub-list for extension type_name
	5, // [5:5] is the sub-list for extension extendee
	0, // [0:5] is the sub-list for field type_name
}

func init() { file_in_toto_attestation_predicates_scai_v0_scai_proto_init() }
func file_in_toto_attestation_predicates_scai_v0_scai_proto_init() {
	if File_in_toto_attestation_predicates_scai_v0_scai_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_scai_v0_scai_proto_rawDesc), len(file_in_toto_attestation_predicates_scai_v0_scai_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_in_toto_attestation_predicates_scai_v0_scai_proto_goTypes,
		DependencyIndexes: file_in_toto_attestation_predicates_scai_v0_scai_proto_depIdxs,
		MessageInfos:      file_in_toto_attestation_predicates_scai_v0_scai_proto_msgTypes,
	}.Build()
	File_in_toto_attestation_predicates_scai_v0_scai_proto = out.File
	file_in_toto_attestation_predicates_scai_v0_scai_proto_goTypes = nil
	file_in_toto_attestation_predicates_scai_v0_scai_proto_depIdxs = nil
}
