Interface CleanupPolicyOrBuilder (1.45.0)

public interface CleanupPolicyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAction()

public abstract CleanupPolicy.Action getAction()

Policy action.

.google.devtools.artifactregistry.v1.CleanupPolicy.Action action = 3;

Returns
Type Description
CleanupPolicy.Action

The action.

getActionValue()

public abstract int getActionValue()

Policy action.

.google.devtools.artifactregistry.v1.CleanupPolicy.Action action = 3;

Returns
Type Description
int

The enum numeric value on the wire for action.

getCondition()

public abstract CleanupPolicyCondition getCondition()

Policy condition for matching versions.

.google.devtools.artifactregistry.v1.CleanupPolicyCondition condition = 2;

Returns
Type Description
CleanupPolicyCondition

The condition.

getConditionOrBuilder()

public abstract CleanupPolicyConditionOrBuilder getConditionOrBuilder()

Policy condition for matching versions.

.google.devtools.artifactregistry.v1.CleanupPolicyCondition condition = 2;

Returns
Type Description
CleanupPolicyConditionOrBuilder

getConditionTypeCase()

public abstract CleanupPolicy.ConditionTypeCase getConditionTypeCase()
Returns
Type Description
CleanupPolicy.ConditionTypeCase

getId()

public abstract String getId()

The user-provided ID of the cleanup policy.

string id = 1;

Returns
Type Description
String

The id.

getIdBytes()

public abstract ByteString getIdBytes()

The user-provided ID of the cleanup policy.

string id = 1;

Returns
Type Description
ByteString

The bytes for id.

getMostRecentVersions()

public abstract CleanupPolicyMostRecentVersions getMostRecentVersions()

Policy condition for retaining a minimum number of versions. May only be specified with a Keep action.

.google.devtools.artifactregistry.v1.CleanupPolicyMostRecentVersions most_recent_versions = 4;

Returns
Type Description
CleanupPolicyMostRecentVersions

The mostRecentVersions.

getMostRecentVersionsOrBuilder()

public abstract CleanupPolicyMostRecentVersionsOrBuilder getMostRecentVersionsOrBuilder()

Policy condition for retaining a minimum number of versions. May only be specified with a Keep action.

.google.devtools.artifactregistry.v1.CleanupPolicyMostRecentVersions most_recent_versions = 4;

Returns
Type Description
CleanupPolicyMostRecentVersionsOrBuilder

hasCondition()

public abstract boolean hasCondition()

Policy condition for matching versions.

.google.devtools.artifactregistry.v1.CleanupPolicyCondition condition = 2;

Returns
Type Description
boolean

Whether the condition field is set.

hasMostRecentVersions()

public abstract boolean hasMostRecentVersions()

Policy condition for retaining a minimum number of versions. May only be specified with a Keep action.

.google.devtools.artifactregistry.v1.CleanupPolicyMostRecentVersions most_recent_versions = 4;

Returns
Type Description
boolean

Whether the mostRecentVersions field is set.