Interface CleanupPolicyOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CleanupPolicy,CleanupPolicy.Builder
@Generated
public interface CleanupPolicyOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionPolicy action.intPolicy action.Policy condition for matching versions.Policy condition for matching versions.getId()The user-provided ID of the cleanup policy.com.google.protobuf.ByteStringThe user-provided ID of the cleanup policy.Policy condition for retaining a minimum number of versions.Policy condition for retaining a minimum number of versions.booleanPolicy condition for matching versions.booleanPolicy condition for retaining a minimum number of versions.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasCondition
boolean hasCondition()Policy condition for matching versions.
.google.devtools.artifactregistry.v1.CleanupPolicyCondition condition = 2;- Returns:
- Whether the condition field is set.
-
getCondition
CleanupPolicyCondition getCondition()Policy condition for matching versions.
.google.devtools.artifactregistry.v1.CleanupPolicyCondition condition = 2;- Returns:
- The condition.
-
getConditionOrBuilder
CleanupPolicyConditionOrBuilder getConditionOrBuilder()Policy condition for matching versions.
.google.devtools.artifactregistry.v1.CleanupPolicyCondition condition = 2; -
hasMostRecentVersions
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:
- Whether the mostRecentVersions field is set.
-
getMostRecentVersions
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:
- The mostRecentVersions.
-
getMostRecentVersionsOrBuilder
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; -
getId
String getId()The user-provided ID of the cleanup policy.
string id = 1;- Returns:
- The id.
-
getIdBytes
com.google.protobuf.ByteString getIdBytes()The user-provided ID of the cleanup policy.
string id = 1;- Returns:
- The bytes for id.
-
getActionValue
int getActionValue()Policy action.
.google.devtools.artifactregistry.v1.CleanupPolicy.Action action = 3;- Returns:
- The enum numeric value on the wire for action.
-
getAction
CleanupPolicy.Action getAction()Policy action.
.google.devtools.artifactregistry.v1.CleanupPolicy.Action action = 3;- Returns:
- The action.
-
getConditionTypeCase
CleanupPolicy.ConditionTypeCase getConditionTypeCase()
-