Interface CleanupPolicyOrBuilder (1.33.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
TypeDescription
CleanupPolicy.Action

The action.

getActionValue()

public abstract int getActionValue()

Policy action.

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

Returns
TypeDescription
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
TypeDescription
CleanupPolicyCondition

The condition.

getConditionOrBuilder()

public abstract CleanupPolicyConditionOrBuilder getConditionOrBuilder()

Policy condition for matching versions.

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

Returns
TypeDescription
CleanupPolicyConditionOrBuilder

getConditionTypeCase()

public abstract CleanupPolicy.ConditionTypeCase getConditionTypeCase()
Returns
TypeDescription
CleanupPolicy.ConditionTypeCase

getId()

public abstract String getId()

The user-provided ID of the cleanup policy.

string id = 1;

Returns
TypeDescription
String

The id.

getIdBytes()

public abstract ByteString getIdBytes()

The user-provided ID of the cleanup policy.

string id = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CleanupPolicyMostRecentVersionsOrBuilder

hasCondition()

public abstract boolean hasCondition()

Policy condition for matching versions.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the mostRecentVersions field is set.