Send feedback
Class CleanupPolicyMostRecentVersions (1.32.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.32.0 keyboard_arrow_down
public final class CleanupPolicyMostRecentVersions extends GeneratedMessageV3 implements CleanupPolicyMostRecentVersionsOrBuilder
CleanupPolicyMostRecentVersions is an alternate condition of a CleanupPolicy
for retaining a minimum number of versions.
Protobuf type google.devtools.artifactregistry.v1.CleanupPolicyMostRecentVersions
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int KEEP_COUNT_FIELD_NUMBER
Field Value Type Description int
public static final int PACKAGE_NAME_PREFIXES_FIELD_NUMBER
Field Value Type Description int
Static Methods
public static CleanupPolicyMostRecentVersions getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static CleanupPolicyMostRecentVersions . Builder newBuilder ()
public static CleanupPolicyMostRecentVersions . Builder newBuilder ( CleanupPolicyMostRecentVersions prototype )
public static CleanupPolicyMostRecentVersions parseDelimitedFrom ( InputStream input )
public static CleanupPolicyMostRecentVersions parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static CleanupPolicyMostRecentVersions parseFrom ( byte [] data )
Parameter Name Description data
byte []
public static CleanupPolicyMostRecentVersions parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static CleanupPolicyMostRecentVersions parseFrom ( ByteString data )
public static CleanupPolicyMostRecentVersions parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static CleanupPolicyMostRecentVersions parseFrom ( CodedInputStream input )
public static CleanupPolicyMostRecentVersions parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static CleanupPolicyMostRecentVersions parseFrom ( InputStream input )
public static CleanupPolicyMostRecentVersions parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static CleanupPolicyMostRecentVersions parseFrom ( ByteBuffer data )
public static CleanupPolicyMostRecentVersions parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<CleanupPolicyMostRecentVersions> parser ()
Methods
public boolean equals ( Object obj )
Parameter Name Description obj
Object
Overrides
public CleanupPolicyMostRecentVersions getDefaultInstanceForType ()
public int getKeepCount ()
Minimum number of versions to keep.
optional int32 keep_count = 2;
Returns Type Description int
The keepCount.
public String getPackageNamePrefixes ( int index )
List of package name prefixes that will apply this rule.
repeated string package_name_prefixes = 1;
Parameter Name Description index
int
The index of the element to return.
Returns Type Description String
The packageNamePrefixes at the given index.
public ByteString getPackageNamePrefixesBytes ( int index )
List of package name prefixes that will apply this rule.
repeated string package_name_prefixes = 1;
Parameter Name Description index
int
The index of the value to return.
Returns Type Description ByteString
The bytes of the packageNamePrefixes at the given index.
public int getPackageNamePrefixesCount ()
List of package name prefixes that will apply this rule.
repeated string package_name_prefixes = 1;
Returns Type Description int
The count of packageNamePrefixes.
public ProtocolStringList getPackageNamePrefixesList ()
List of package name prefixes that will apply this rule.
repeated string package_name_prefixes = 1;
public Parser<CleanupPolicyMostRecentVersions> getParserForType ()
Overrides
public int getSerializedSize ()
Returns Type Description int
Overrides
public boolean hasKeepCount ()
Minimum number of versions to keep.
optional int32 keep_count = 2;
Returns Type Description boolean
Whether the keepCount field is set.
Returns Type Description int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public CleanupPolicyMostRecentVersions . Builder newBuilderForType ()
protected CleanupPolicyMostRecentVersions . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Overrides
public CleanupPolicyMostRecentVersions . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]