Interface CleanupPolicyMostRecentVersionsOrBuilder (1.34.0)

public interface CleanupPolicyMostRecentVersionsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getKeepCount()

public abstract int getKeepCount()

Minimum number of versions to keep.

optional int32 keep_count = 2;

Returns
TypeDescription
int

The keepCount.

getPackageNamePrefixes(int index)

public abstract String getPackageNamePrefixes(int index)

List of package name prefixes that will apply this rule.

repeated string package_name_prefixes = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The packageNamePrefixes at the given index.

getPackageNamePrefixesBytes(int index)

public abstract ByteString getPackageNamePrefixesBytes(int index)

List of package name prefixes that will apply this rule.

repeated string package_name_prefixes = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the packageNamePrefixes at the given index.

getPackageNamePrefixesCount()

public abstract int getPackageNamePrefixesCount()

List of package name prefixes that will apply this rule.

repeated string package_name_prefixes = 1;

Returns
TypeDescription
int

The count of packageNamePrefixes.

getPackageNamePrefixesList()

public abstract List<String> getPackageNamePrefixesList()

List of package name prefixes that will apply this rule.

repeated string package_name_prefixes = 1;

Returns
TypeDescription
List<String>

A list containing the packageNamePrefixes.

hasKeepCount()

public abstract boolean hasKeepCount()

Minimum number of versions to keep.

optional int32 keep_count = 2;

Returns
TypeDescription
boolean

Whether the keepCount field is set.