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:
  • 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • hasTagState

      public boolean hasTagState()
       Match versions by tag status.
       
      optional .google.devtools.artifactregistry.v1.CleanupPolicyCondition.TagState tag_state = 2;
      Specified by:
      hasTagState in interface CleanupPolicyConditionOrBuilder
      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:
      getTagStateValue in interface CleanupPolicyConditionOrBuilder
      Returns:
      The enum numeric value on the wire for tagState.
    • getTagState

      public CleanupPolicyCondition.TagState getTagState()
       Match versions by tag status.
       
      optional .google.devtools.artifactregistry.v1.CleanupPolicyCondition.TagState tag_state = 2;
      Specified by:
      getTagState in interface CleanupPolicyConditionOrBuilder
      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:
      getTagPrefixesList in interface CleanupPolicyConditionOrBuilder
      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:
      getTagPrefixesCount in interface CleanupPolicyConditionOrBuilder
      Returns:
      The count of tagPrefixes.
    • getTagPrefixes

      public String getTagPrefixes(int index)
       Match versions by tag prefix. Applied on any prefix match.
       
      repeated string tag_prefixes = 3;
      Specified by:
      getTagPrefixes in interface CleanupPolicyConditionOrBuilder
      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:
      getTagPrefixesBytes in interface CleanupPolicyConditionOrBuilder
      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:
      getVersionNamePrefixesList in interface CleanupPolicyConditionOrBuilder
      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:
      getVersionNamePrefixesCount in interface CleanupPolicyConditionOrBuilder
      Returns:
      The count of versionNamePrefixes.
    • getVersionNamePrefixes

      public String getVersionNamePrefixes(int index)
       Match versions by version name prefix. Applied on any prefix match.
       
      repeated string version_name_prefixes = 4;
      Specified by:
      getVersionNamePrefixes in interface CleanupPolicyConditionOrBuilder
      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:
      getVersionNamePrefixesBytes in interface CleanupPolicyConditionOrBuilder
      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:
      getPackageNamePrefixesList in interface CleanupPolicyConditionOrBuilder
      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:
      getPackageNamePrefixesCount in interface CleanupPolicyConditionOrBuilder
      Returns:
      The count of packageNamePrefixes.
    • getPackageNamePrefixes

      public String getPackageNamePrefixes(int index)
       Match versions by package prefix. Applied on any prefix match.
       
      repeated string package_name_prefixes = 5;
      Specified by:
      getPackageNamePrefixes in interface CleanupPolicyConditionOrBuilder
      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:
      getPackageNamePrefixesBytes in interface CleanupPolicyConditionOrBuilder
      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:
      hasOlderThan in interface CleanupPolicyConditionOrBuilder
      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:
      getOlderThan in interface CleanupPolicyConditionOrBuilder
      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:
      getOlderThanOrBuilder in interface CleanupPolicyConditionOrBuilder
    • hasNewerThan

      public boolean hasNewerThan()
       Match versions newer than a duration.
       
      optional .google.protobuf.Duration newer_than = 7;
      Specified by:
      hasNewerThan in interface CleanupPolicyConditionOrBuilder
      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:
      getNewerThan in interface CleanupPolicyConditionOrBuilder
      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:
      getNewerThanOrBuilder in interface CleanupPolicyConditionOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static CleanupPolicyCondition parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CleanupPolicyCondition parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CleanupPolicyCondition parseDelimitedFrom(InputStream input) throws IOException
      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

      public CleanupPolicyCondition.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static CleanupPolicyCondition.Builder newBuilder()
    • newBuilder

      public static CleanupPolicyCondition.Builder newBuilder(CleanupPolicyCondition prototype)
    • toBuilder

      public CleanupPolicyCondition.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected CleanupPolicyCondition.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static CleanupPolicyCondition getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<CleanupPolicyCondition> parser()
    • getParserForType

      public com.google.protobuf.Parser<CleanupPolicyCondition> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public CleanupPolicyCondition getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder