// Code generated by protoc-gen-goext. DO NOT EDIT.

package cloudregistry

import (
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)

func (m *LifecyclePolicy) SetId(v string) {
	m.Id = v
}

func (m *LifecyclePolicy) SetName(v string) {
	m.Name = v
}

func (m *LifecyclePolicy) SetDescription(v string) {
	m.Description = v
}

func (m *LifecyclePolicy) SetRules(v []*LifecycleRule) {
	m.Rules = v
}

func (m *LifecyclePolicy) SetState(v LifecyclePolicyState) {
	m.State = v
}

func (m *LifecyclePolicy) SetRegistryId(v string) {
	m.RegistryId = v
}

func (m *LifecyclePolicy) SetCreatedAt(v *timestamppb.Timestamp) {
	m.CreatedAt = v
}

func (m *LifecyclePolicy) SetModifiedAt(v *timestamppb.Timestamp) {
	m.ModifiedAt = v
}

func (m *LifecyclePolicy) SetCreatedBy(v string) {
	m.CreatedBy = v
}

func (m *LifecyclePolicy) SetModifiedBy(v string) {
	m.ModifiedBy = v
}

type LifecycleRule_Kind = isLifecycleRule_Kind

func (m *LifecycleRule) SetKind(v LifecycleRule_Kind) {
	m.Kind = v
}

type LifecycleRule_Filter = isLifecycleRule_Filter

func (m *LifecycleRule) SetFilter(v LifecycleRule_Filter) {
	m.Filter = v
}

func (m *LifecycleRule) SetPathPrefix(v string) {
	m.PathPrefix = v
}

func (m *LifecycleRule) SetKeepByAge(v *KeepByAgeLifecycleRule) {
	m.Kind = &LifecycleRule_KeepByAge{
		KeepByAge: v,
	}
}

func (m *LifecycleRule) SetKeepByVersion(v *KeepByVersionLifecycleRule) {
	m.Kind = &LifecycleRule_KeepByVersion{
		KeepByVersion: v,
	}
}

func (m *LifecycleRule) SetDelete(v *DeleteLifecycleRule) {
	m.Kind = &LifecycleRule_Delete{
		Delete: v,
	}
}

func (m *LifecycleRule) SetDockerFilters(v *DockerFilters) {
	m.Filter = &LifecycleRule_DockerFilters{
		DockerFilters: v,
	}
}

func (m *LifecycleRule) SetMavenFilters(v *MavenFilters) {
	m.Filter = &LifecycleRule_MavenFilters{
		MavenFilters: v,
	}
}

func (m *DockerFilters) SetTagStatus(v DockerFilters_TagStatus) {
	m.TagStatus = v
}

func (m *MavenFilters) SetVersionType(v MavenFilters_VersionType) {
	m.VersionType = v
}

func (m *KeepByVersionLifecycleRule) SetKeepVersionsCount(v int64) {
	m.KeepVersionsCount = v
}

func (m *KeepByAgeLifecycleRule) SetYoungerThanDays(v int64) {
	m.YoungerThanDays = v
}

type DeleteLifecycleRule_Condition = isDeleteLifecycleRule_Condition

func (m *DeleteLifecycleRule) SetCondition(v DeleteLifecycleRule_Condition) {
	m.Condition = v
}

func (m *DeleteLifecycleRule) SetType(v DeleteLifecycleRuleKind) {
	m.Type = v
}

func (m *DeleteLifecycleRule) SetCooldownPeriodDays(v int64) {
	m.CooldownPeriodDays = v
}

func (m *DeleteLifecycleRule) SetOlderThanDays(v int64) {
	m.Condition = &DeleteLifecycleRule_OlderThanDays{
		OlderThanDays: v,
	}
}

func (m *DeleteLifecycleRule) SetVersionCondition(v *DeleteByVersionCondition) {
	m.Condition = &DeleteLifecycleRule_VersionCondition{
		VersionCondition: v,
	}
}

func (m *DeleteLifecycleRule) SetAlways(v bool) {
	m.Condition = &DeleteLifecycleRule_Always{
		Always: v,
	}
}

func (m *DeleteByVersionCondition) SetVersionsCountGreaterThan(v int64) {
	m.VersionsCountGreaterThan = v
}
