// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: yandex/cloud/cloudregistry/v1/scan_policy.proto

package cloudregistry

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	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 ScheduledRule_IntervalUnit int32

const (
	ScheduledRule_INTERVAL_UNIT_UNSPECIFIED ScheduledRule_IntervalUnit = 0
	// Time unit is days.
	ScheduledRule_DAYS ScheduledRule_IntervalUnit = 1
)

// Enum value maps for ScheduledRule_IntervalUnit.
var (
	ScheduledRule_IntervalUnit_name = map[int32]string{
		0: "INTERVAL_UNIT_UNSPECIFIED",
		1: "DAYS",
	}
	ScheduledRule_IntervalUnit_value = map[string]int32{
		"INTERVAL_UNIT_UNSPECIFIED": 0,
		"DAYS":                      1,
	}
)

func (x ScheduledRule_IntervalUnit) Enum() *ScheduledRule_IntervalUnit {
	p := new(ScheduledRule_IntervalUnit)
	*p = x
	return p
}

func (x ScheduledRule_IntervalUnit) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (ScheduledRule_IntervalUnit) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_cloudregistry_v1_scan_policy_proto_enumTypes[0].Descriptor()
}

func (ScheduledRule_IntervalUnit) Type() protoreflect.EnumType {
	return &file_yandex_cloud_cloudregistry_v1_scan_policy_proto_enumTypes[0]
}

func (x ScheduledRule_IntervalUnit) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use ScheduledRule_IntervalUnit.Descriptor instead.
func (ScheduledRule_IntervalUnit) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_cloudregistry_v1_scan_policy_proto_rawDescGZIP(), []int{4, 0}
}

type ScanPolicy struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Output only. ID of the scan policy.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the registry that the scan policy belongs to.
	// Required. The maximum string length in characters is 50.
	RegistryId string `protobuf:"bytes,2,opt,name=registry_id,json=registryId,proto3" json:"registry_id,omitempty"`
	// Name of the scan policy.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Description of the scan policy.
	// The maximum string length in characters is 256.
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// Scan policy options.
	ScanPolicyOptions *ScanPolicyOptions `protobuf:"bytes,5,opt,name=scan_policy_options,json=scanPolicyOptions,proto3" json:"scan_policy_options,omitempty"`
	// The rules of scan policy.
	Rules *ScanRules `protobuf:"bytes,6,opt,name=rules,proto3" json:"rules,omitempty"`
	// Output only. Creation timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Turns off scan policy.
	Disabled      bool `protobuf:"varint,8,opt,name=disabled,proto3" json:"disabled,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ScanPolicy) ProtoMessage() {}

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

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

func (x *ScanPolicy) GetRegistryId() string {
	if x != nil {
		return x.RegistryId
	}
	return ""
}

func (x *ScanPolicy) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *ScanPolicy) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *ScanPolicy) GetScanPolicyOptions() *ScanPolicyOptions {
	if x != nil {
		return x.ScanPolicyOptions
	}
	return nil
}

func (x *ScanPolicy) GetRules() *ScanRules {
	if x != nil {
		return x.Rules
	}
	return nil
}

func (x *ScanPolicy) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

func (x *ScanPolicy) GetDisabled() bool {
	if x != nil {
		return x.Disabled
	}
	return false
}

type ScanPolicyOptions struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Flag indicating whether language packages should be scanned.
	ScanLangPackages bool `protobuf:"varint,1,opt,name=scan_lang_packages,json=scanLangPackages,proto3" json:"scan_lang_packages,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

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

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

func (*ScanPolicyOptions) ProtoMessage() {}

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

func (x *ScanPolicyOptions) GetScanLangPackages() bool {
	if x != nil {
		return x.ScanLangPackages
	}
	return false
}

type ScanRules struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Description of on-push scan rule.
	PushRule *PushRule `protobuf:"bytes,1,opt,name=push_rule,json=pushRule,proto3" json:"push_rule,omitempty"`
	// Description of time based rescan rule.
	ScheduleRules []*ScheduledRule `protobuf:"bytes,2,rep,name=schedule_rules,json=scheduleRules,proto3" json:"schedule_rules,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ScanRules) Reset() {
	*x = ScanRules{}
	mi := &file_yandex_cloud_cloudregistry_v1_scan_policy_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ScanRules) ProtoMessage() {}

func (x *ScanRules) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_cloudregistry_v1_scan_policy_proto_msgTypes[2]
	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 ScanRules.ProtoReflect.Descriptor instead.
func (*ScanRules) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_cloudregistry_v1_scan_policy_proto_rawDescGZIP(), []int{2}
}

func (x *ScanRules) GetPushRule() *PushRule {
	if x != nil {
		return x.PushRule
	}
	return nil
}

func (x *ScanRules) GetScheduleRules() []*ScheduledRule {
	if x != nil {
		return x.ScheduleRules
	}
	return nil
}

type PushRule struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// List of paths that are scanned with rule. Child paths are included into parent node. "*" - means all artifacts in registry
	Paths []string `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"`
	// Turns off scan rule.
	Disabled      bool `protobuf:"varint,2,opt,name=disabled,proto3" json:"disabled,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *PushRule) Reset() {
	*x = PushRule{}
	mi := &file_yandex_cloud_cloudregistry_v1_scan_policy_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*PushRule) ProtoMessage() {}

func (x *PushRule) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_cloudregistry_v1_scan_policy_proto_msgTypes[3]
	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 PushRule.ProtoReflect.Descriptor instead.
func (*PushRule) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_cloudregistry_v1_scan_policy_proto_rawDescGZIP(), []int{3}
}

func (x *PushRule) GetPaths() []string {
	if x != nil {
		return x.Paths
	}
	return nil
}

func (x *PushRule) GetDisabled() bool {
	if x != nil {
		return x.Disabled
	}
	return false
}

type ScheduledRule struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Amount of time units for the scan interval.
	Amount int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	// Unit for the scan interval.
	IntervalUnit ScheduledRule_IntervalUnit `protobuf:"varint,2,opt,name=interval_unit,json=intervalUnit,proto3,enum=yandex.cloud.cloudregistry.v1.ScheduledRule_IntervalUnit" json:"interval_unit,omitempty"`
	// List of paths that are scanned with rule. Child paths are included into parent node. "*" - means all artifacts in registry
	Paths []string `protobuf:"bytes,3,rep,name=paths,proto3" json:"paths,omitempty"`
	// Turns off scan rule.
	Disabled      bool `protobuf:"varint,4,opt,name=disabled,proto3" json:"disabled,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ScheduledRule) Reset() {
	*x = ScheduledRule{}
	mi := &file_yandex_cloud_cloudregistry_v1_scan_policy_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ScheduledRule) ProtoMessage() {}

func (x *ScheduledRule) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_cloudregistry_v1_scan_policy_proto_msgTypes[4]
	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 ScheduledRule.ProtoReflect.Descriptor instead.
func (*ScheduledRule) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_cloudregistry_v1_scan_policy_proto_rawDescGZIP(), []int{4}
}

func (x *ScheduledRule) GetAmount() int64 {
	if x != nil {
		return x.Amount
	}
	return 0
}

func (x *ScheduledRule) GetIntervalUnit() ScheduledRule_IntervalUnit {
	if x != nil {
		return x.IntervalUnit
	}
	return ScheduledRule_INTERVAL_UNIT_UNSPECIFIED
}

func (x *ScheduledRule) GetPaths() []string {
	if x != nil {
		return x.Paths
	}
	return nil
}

func (x *ScheduledRule) GetDisabled() bool {
	if x != nil {
		return x.Disabled
	}
	return false
}

var File_yandex_cloud_cloudregistry_v1_scan_policy_proto protoreflect.FileDescriptor

const file_yandex_cloud_cloudregistry_v1_scan_policy_proto_rawDesc = "" +
	"\n" +
	"/yandex/cloud/cloudregistry/v1/scan_policy.proto\x12\x1dyandex.cloud.cloudregistry.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dyandex/cloud/validation.proto\"\xec\x02\n" +
	"\n" +
	"ScanPolicy\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x1f\n" +
	"\vregistry_id\x18\x02 \x01(\tR\n" +
	"registryId\x12\x12\n" +
	"\x04name\x18\x03 \x01(\tR\x04name\x12 \n" +
	"\vdescription\x18\x04 \x01(\tR\vdescription\x12`\n" +
	"\x13scan_policy_options\x18\x05 \x01(\v20.yandex.cloud.cloudregistry.v1.ScanPolicyOptionsR\x11scanPolicyOptions\x12>\n" +
	"\x05rules\x18\x06 \x01(\v2(.yandex.cloud.cloudregistry.v1.ScanRulesR\x05rules\x129\n" +
	"\n" +
	"created_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x1a\n" +
	"\bdisabled\x18\b \x01(\bR\bdisabled\"A\n" +
	"\x11ScanPolicyOptions\x12,\n" +
	"\x12scan_lang_packages\x18\x01 \x01(\bR\x10scanLangPackages\"\xa6\x01\n" +
	"\tScanRules\x12D\n" +
	"\tpush_rule\x18\x01 \x01(\v2'.yandex.cloud.cloudregistry.v1.PushRuleR\bpushRule\x12S\n" +
	"\x0eschedule_rules\x18\x02 \x03(\v2,.yandex.cloud.cloudregistry.v1.ScheduledRuleR\rscheduleRules\"\x89\x01\n" +
	"\bPushRule\x12a\n" +
	"\x05paths\x18\x01 \x03(\tBK\xf2\xc71A\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*\x82\xc81\x02>0R\x05paths\x12\x1a\n" +
	"\bdisabled\x18\x02 \x01(\bR\bdisabled\"\xcb\x02\n" +
	"\rScheduledRule\x12\x1e\n" +
	"\x06amount\x18\x01 \x01(\x03B\x06\xfa\xc71\x02>0R\x06amount\x12^\n" +
	"\rinterval_unit\x18\x02 \x01(\x0e29.yandex.cloud.cloudregistry.v1.ScheduledRule.IntervalUnitR\fintervalUnit\x12e\n" +
	"\x05paths\x18\x03 \x03(\tBO\xf2\xc71A\\*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*\x82\xc81\x061-1000R\x05paths\x12\x1a\n" +
	"\bdisabled\x18\x04 \x01(\bR\bdisabled\"7\n" +
	"\fIntervalUnit\x12\x1d\n" +
	"\x19INTERVAL_UNIT_UNSPECIFIED\x10\x00\x12\b\n" +
	"\x04DAYS\x10\x01Bt\n" +
	"!yandex.cloud.api.cloudregistry.v1ZOgithub.com/yandex-cloud/go-genproto/yandex/cloud/cloudregistry/v1;cloudregistryb\x06proto3"

var (
	file_yandex_cloud_cloudregistry_v1_scan_policy_proto_rawDescOnce sync.Once
	file_yandex_cloud_cloudregistry_v1_scan_policy_proto_rawDescData []byte
)

func file_yandex_cloud_cloudregistry_v1_scan_policy_proto_rawDescGZIP() []byte {
	file_yandex_cloud_cloudregistry_v1_scan_policy_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_cloudregistry_v1_scan_policy_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_cloudregistry_v1_scan_policy_proto_rawDesc), len(file_yandex_cloud_cloudregistry_v1_scan_policy_proto_rawDesc)))
	})
	return file_yandex_cloud_cloudregistry_v1_scan_policy_proto_rawDescData
}

var file_yandex_cloud_cloudregistry_v1_scan_policy_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_cloudregistry_v1_scan_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_yandex_cloud_cloudregistry_v1_scan_policy_proto_goTypes = []any{
	(ScheduledRule_IntervalUnit)(0), // 0: yandex.cloud.cloudregistry.v1.ScheduledRule.IntervalUnit
	(*ScanPolicy)(nil),              // 1: yandex.cloud.cloudregistry.v1.ScanPolicy
	(*ScanPolicyOptions)(nil),       // 2: yandex.cloud.cloudregistry.v1.ScanPolicyOptions
	(*ScanRules)(nil),               // 3: yandex.cloud.cloudregistry.v1.ScanRules
	(*PushRule)(nil),                // 4: yandex.cloud.cloudregistry.v1.PushRule
	(*ScheduledRule)(nil),           // 5: yandex.cloud.cloudregistry.v1.ScheduledRule
	(*timestamppb.Timestamp)(nil),   // 6: google.protobuf.Timestamp
}
var file_yandex_cloud_cloudregistry_v1_scan_policy_proto_depIdxs = []int32{
	2, // 0: yandex.cloud.cloudregistry.v1.ScanPolicy.scan_policy_options:type_name -> yandex.cloud.cloudregistry.v1.ScanPolicyOptions
	3, // 1: yandex.cloud.cloudregistry.v1.ScanPolicy.rules:type_name -> yandex.cloud.cloudregistry.v1.ScanRules
	6, // 2: yandex.cloud.cloudregistry.v1.ScanPolicy.created_at:type_name -> google.protobuf.Timestamp
	4, // 3: yandex.cloud.cloudregistry.v1.ScanRules.push_rule:type_name -> yandex.cloud.cloudregistry.v1.PushRule
	5, // 4: yandex.cloud.cloudregistry.v1.ScanRules.schedule_rules:type_name -> yandex.cloud.cloudregistry.v1.ScheduledRule
	0, // 5: yandex.cloud.cloudregistry.v1.ScheduledRule.interval_unit:type_name -> yandex.cloud.cloudregistry.v1.ScheduledRule.IntervalUnit
	6, // [6:6] is the sub-list for method output_type
	6, // [6:6] is the sub-list for method input_type
	6, // [6:6] is the sub-list for extension type_name
	6, // [6:6] is the sub-list for extension extendee
	0, // [0:6] is the sub-list for field type_name
}

func init() { file_yandex_cloud_cloudregistry_v1_scan_policy_proto_init() }
func file_yandex_cloud_cloudregistry_v1_scan_policy_proto_init() {
	if File_yandex_cloud_cloudregistry_v1_scan_policy_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_cloudregistry_v1_scan_policy_proto_rawDesc), len(file_yandex_cloud_cloudregistry_v1_scan_policy_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_cloudregistry_v1_scan_policy_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_cloudregistry_v1_scan_policy_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_cloudregistry_v1_scan_policy_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_cloudregistry_v1_scan_policy_proto_msgTypes,
	}.Build()
	File_yandex_cloud_cloudregistry_v1_scan_policy_proto = out.File
	file_yandex_cloud_cloudregistry_v1_scan_policy_proto_goTypes = nil
	file_yandex_cloud_cloudregistry_v1_scan_policy_proto_depIdxs = nil
}
