Class CleanupPolicyCondition
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.devtools.artifactregistry.v1.CleanupPolicyCondition
- All Implemented Interfaces:
CleanupPolicyConditionOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class CleanupPolicyCondition
extends com.google.protobuf.GeneratedMessage
implements CleanupPolicyConditionOrBuilder
CleanupPolicyCondition is a set of conditions attached to a CleanupPolicy. If multiple entries are set, all must be satisfied for the condition to be satisfied.Protobuf type
google.devtools.artifactregistry.v1.CleanupPolicyCondition- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classCleanupPolicyCondition is a set of conditions attached to a CleanupPolicy.static enumStatuses applying to versions.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CleanupPolicyConditionstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationMatch versions newer than a duration.com.google.protobuf.DurationOrBuilderMatch versions newer than a duration.com.google.protobuf.DurationMatch versions older than a duration.com.google.protobuf.DurationOrBuilderMatch versions older than a duration.getPackageNamePrefixes(int index) Match versions by package prefix.com.google.protobuf.ByteStringgetPackageNamePrefixesBytes(int index) Match versions by package prefix.intMatch versions by package prefix.com.google.protobuf.ProtocolStringListMatch versions by package prefix.com.google.protobuf.Parser<CleanupPolicyCondition>intgetTagPrefixes(int index) Match versions by tag prefix.com.google.protobuf.ByteStringgetTagPrefixesBytes(int index) Match versions by tag prefix.intMatch versions by tag prefix.com.google.protobuf.ProtocolStringListMatch versions by tag prefix.Match versions by tag status.intMatch versions by tag status.getVersionNamePrefixes(int index) Match versions by version name prefix.com.google.protobuf.ByteStringgetVersionNamePrefixesBytes(int index) Match versions by version name prefix.intMatch versions by version name prefix.com.google.protobuf.ProtocolStringListMatch versions by version name prefix.inthashCode()booleanMatch versions newer than a duration.booleanMatch versions older than a duration.booleanMatch versions by tag status.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(CleanupPolicyCondition prototype) protected CleanupPolicyCondition.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static CleanupPolicyConditionparseDelimitedFrom(InputStream input) static CleanupPolicyConditionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CleanupPolicyConditionparseFrom(byte[] data) static CleanupPolicyConditionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CleanupPolicyConditionparseFrom(com.google.protobuf.ByteString data) static CleanupPolicyConditionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CleanupPolicyConditionparseFrom(com.google.protobuf.CodedInputStream input) static CleanupPolicyConditionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CleanupPolicyConditionparseFrom(InputStream input) static CleanupPolicyConditionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CleanupPolicyConditionparseFrom(ByteBuffer data) static CleanupPolicyConditionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CleanupPolicyCondition>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TAG_STATE_FIELD_NUMBER
public static final int TAG_STATE_FIELD_NUMBER- See Also:
-
TAG_PREFIXES_FIELD_NUMBER
public static final int TAG_PREFIXES_FIELD_NUMBER- See Also:
-
VERSION_NAME_PREFIXES_FIELD_NUMBER
public static final int VERSION_NAME_PREFIXES_FIELD_NUMBER- See Also:
-
PACKAGE_NAME_PREFIXES_FIELD_NUMBER
public static final int PACKAGE_NAME_PREFIXES_FIELD_NUMBER- See Also:
-
OLDER_THAN_FIELD_NUMBER
public static final int OLDER_THAN_FIELD_NUMBER- See Also:
-
NEWER_THAN_FIELD_NUMBER
public static final int NEWER_THAN_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasTagState
public boolean hasTagState()Match versions by tag status.
optional .google.devtools.artifactregistry.v1.CleanupPolicyCondition.TagState tag_state = 2;- Specified by:
hasTagStatein interfaceCleanupPolicyConditionOrBuilder- Returns:
- Whether the tagState field is set.
-
getTagStateValue
public int getTagStateValue()Match versions by tag status.
optional .google.devtools.artifactregistry.v1.CleanupPolicyCondition.TagState tag_state = 2;- Specified by:
getTagStateValuein interfaceCleanupPolicyConditionOrBuilder- Returns:
- The enum numeric value on the wire for tagState.
-
getTagState
Match versions by tag status.
optional .google.devtools.artifactregistry.v1.CleanupPolicyCondition.TagState tag_state = 2;- Specified by:
getTagStatein interfaceCleanupPolicyConditionOrBuilder- Returns:
- The tagState.
-
getTagPrefixesList
public com.google.protobuf.ProtocolStringList getTagPrefixesList()Match versions by tag prefix. Applied on any prefix match.
repeated string tag_prefixes = 3;- Specified by:
getTagPrefixesListin interfaceCleanupPolicyConditionOrBuilder- Returns:
- A list containing the tagPrefixes.
-
getTagPrefixesCount
public int getTagPrefixesCount()Match versions by tag prefix. Applied on any prefix match.
repeated string tag_prefixes = 3;- Specified by:
getTagPrefixesCountin interfaceCleanupPolicyConditionOrBuilder- Returns:
- The count of tagPrefixes.
-
getTagPrefixes
Match versions by tag prefix. Applied on any prefix match.
repeated string tag_prefixes = 3;- Specified by:
getTagPrefixesin interfaceCleanupPolicyConditionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tagPrefixes at the given index.
-
getTagPrefixesBytes
public com.google.protobuf.ByteString getTagPrefixesBytes(int index) Match versions by tag prefix. Applied on any prefix match.
repeated string tag_prefixes = 3;- Specified by:
getTagPrefixesBytesin interfaceCleanupPolicyConditionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tagPrefixes at the given index.
-
getVersionNamePrefixesList
public com.google.protobuf.ProtocolStringList getVersionNamePrefixesList()Match versions by version name prefix. Applied on any prefix match.
repeated string version_name_prefixes = 4;- Specified by:
getVersionNamePrefixesListin interfaceCleanupPolicyConditionOrBuilder- Returns:
- A list containing the versionNamePrefixes.
-
getVersionNamePrefixesCount
public int getVersionNamePrefixesCount()Match versions by version name prefix. Applied on any prefix match.
repeated string version_name_prefixes = 4;- Specified by:
getVersionNamePrefixesCountin interfaceCleanupPolicyConditionOrBuilder- Returns:
- The count of versionNamePrefixes.
-
getVersionNamePrefixes
Match versions by version name prefix. Applied on any prefix match.
repeated string version_name_prefixes = 4;- Specified by:
getVersionNamePrefixesin interfaceCleanupPolicyConditionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The versionNamePrefixes at the given index.
-
getVersionNamePrefixesBytes
public com.google.protobuf.ByteString getVersionNamePrefixesBytes(int index) Match versions by version name prefix. Applied on any prefix match.
repeated string version_name_prefixes = 4;- Specified by:
getVersionNamePrefixesBytesin interfaceCleanupPolicyConditionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the versionNamePrefixes at the given index.
-
getPackageNamePrefixesList
public com.google.protobuf.ProtocolStringList getPackageNamePrefixesList()Match versions by package prefix. Applied on any prefix match.
repeated string package_name_prefixes = 5;- Specified by:
getPackageNamePrefixesListin interfaceCleanupPolicyConditionOrBuilder- Returns:
- A list containing the packageNamePrefixes.
-
getPackageNamePrefixesCount
public int getPackageNamePrefixesCount()Match versions by package prefix. Applied on any prefix match.
repeated string package_name_prefixes = 5;- Specified by:
getPackageNamePrefixesCountin interfaceCleanupPolicyConditionOrBuilder- Returns:
- The count of packageNamePrefixes.
-
getPackageNamePrefixes
Match versions by package prefix. Applied on any prefix match.
repeated string package_name_prefixes = 5;- Specified by:
getPackageNamePrefixesin interfaceCleanupPolicyConditionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The packageNamePrefixes at the given index.
-
getPackageNamePrefixesBytes
public com.google.protobuf.ByteString getPackageNamePrefixesBytes(int index) Match versions by package prefix. Applied on any prefix match.
repeated string package_name_prefixes = 5;- Specified by:
getPackageNamePrefixesBytesin interfaceCleanupPolicyConditionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the packageNamePrefixes at the given index.
-
hasOlderThan
public boolean hasOlderThan()Match versions older than a duration.
optional .google.protobuf.Duration older_than = 6;- Specified by:
hasOlderThanin interfaceCleanupPolicyConditionOrBuilder- Returns:
- Whether the olderThan field is set.
-
getOlderThan
public com.google.protobuf.Duration getOlderThan()Match versions older than a duration.
optional .google.protobuf.Duration older_than = 6;- Specified by:
getOlderThanin interfaceCleanupPolicyConditionOrBuilder- Returns:
- The olderThan.
-
getOlderThanOrBuilder
public com.google.protobuf.DurationOrBuilder getOlderThanOrBuilder()Match versions older than a duration.
optional .google.protobuf.Duration older_than = 6;- Specified by:
getOlderThanOrBuilderin interfaceCleanupPolicyConditionOrBuilder
-
hasNewerThan
public boolean hasNewerThan()Match versions newer than a duration.
optional .google.protobuf.Duration newer_than = 7;- Specified by:
hasNewerThanin interfaceCleanupPolicyConditionOrBuilder- Returns:
- Whether the newerThan field is set.
-
getNewerThan
public com.google.protobuf.Duration getNewerThan()Match versions newer than a duration.
optional .google.protobuf.Duration newer_than = 7;- Specified by:
getNewerThanin interfaceCleanupPolicyConditionOrBuilder- Returns:
- The newerThan.
-
getNewerThanOrBuilder
public com.google.protobuf.DurationOrBuilder getNewerThanOrBuilder()Match versions newer than a duration.
optional .google.protobuf.Duration newer_than = 7;- Specified by:
getNewerThanOrBuilderin interfaceCleanupPolicyConditionOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CleanupPolicyCondition parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CleanupPolicyCondition parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CleanupPolicyCondition parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CleanupPolicyCondition parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CleanupPolicyCondition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CleanupPolicyCondition parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CleanupPolicyCondition parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static CleanupPolicyCondition parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static CleanupPolicyCondition parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static CleanupPolicyCondition parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CleanupPolicyCondition.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-