Class CleanupPolicyCondition (1.40.0)

public final class CleanupPolicyCondition extends GeneratedMessageV3 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

Static Fields

NEWER_THAN_FIELD_NUMBER

public static final int NEWER_THAN_FIELD_NUMBER
Field Value
TypeDescription
int

OLDER_THAN_FIELD_NUMBER

public static final int OLDER_THAN_FIELD_NUMBER
Field Value
TypeDescription
int

PACKAGE_NAME_PREFIXES_FIELD_NUMBER

public static final int PACKAGE_NAME_PREFIXES_FIELD_NUMBER
Field Value
TypeDescription
int

TAG_PREFIXES_FIELD_NUMBER

public static final int TAG_PREFIXES_FIELD_NUMBER
Field Value
TypeDescription
int

TAG_STATE_FIELD_NUMBER

public static final int TAG_STATE_FIELD_NUMBER
Field Value
TypeDescription
int

VERSION_NAME_PREFIXES_FIELD_NUMBER

public static final int VERSION_NAME_PREFIXES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CleanupPolicyCondition getDefaultInstance()
Returns
TypeDescription
CleanupPolicyCondition

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CleanupPolicyCondition.Builder newBuilder()
Returns
TypeDescription
CleanupPolicyCondition.Builder

newBuilder(CleanupPolicyCondition prototype)

public static CleanupPolicyCondition.Builder newBuilder(CleanupPolicyCondition prototype)
Parameter
NameDescription
prototypeCleanupPolicyCondition
Returns
TypeDescription
CleanupPolicyCondition.Builder

parseDelimitedFrom(InputStream input)

public static CleanupPolicyCondition parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CleanupPolicyCondition
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CleanupPolicyCondition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CleanupPolicyCondition
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CleanupPolicyCondition parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CleanupPolicyCondition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CleanupPolicyCondition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CleanupPolicyCondition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CleanupPolicyCondition parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CleanupPolicyCondition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CleanupPolicyCondition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CleanupPolicyCondition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CleanupPolicyCondition parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CleanupPolicyCondition
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CleanupPolicyCondition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CleanupPolicyCondition
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CleanupPolicyCondition parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CleanupPolicyCondition
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CleanupPolicyCondition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CleanupPolicyCondition
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CleanupPolicyCondition parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CleanupPolicyCondition
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CleanupPolicyCondition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CleanupPolicyCondition
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CleanupPolicyCondition> parser()
Returns
TypeDescription
Parser<CleanupPolicyCondition>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CleanupPolicyCondition getDefaultInstanceForType()
Returns
TypeDescription
CleanupPolicyCondition

getNewerThan()

public Duration getNewerThan()

Match versions newer than a duration.

optional .google.protobuf.Duration newer_than = 7;

Returns
TypeDescription
Duration

The newerThan.

getNewerThanOrBuilder()

public DurationOrBuilder getNewerThanOrBuilder()

Match versions newer than a duration.

optional .google.protobuf.Duration newer_than = 7;

Returns
TypeDescription
DurationOrBuilder

getOlderThan()

public Duration getOlderThan()

Match versions older than a duration.

optional .google.protobuf.Duration older_than = 6;

Returns
TypeDescription
Duration

The olderThan.

getOlderThanOrBuilder()

public DurationOrBuilder getOlderThanOrBuilder()

Match versions older than a duration.

optional .google.protobuf.Duration older_than = 6;

Returns
TypeDescription
DurationOrBuilder

getPackageNamePrefixes(int index)

public String getPackageNamePrefixes(int index)

Match versions by package prefix. Applied on any prefix match.

repeated string package_name_prefixes = 5;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The packageNamePrefixes at the given index.

getPackageNamePrefixesBytes(int index)

public ByteString getPackageNamePrefixesBytes(int index)

Match versions by package prefix. Applied on any prefix match.

repeated string package_name_prefixes = 5;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the packageNamePrefixes at the given index.

getPackageNamePrefixesCount()

public int getPackageNamePrefixesCount()

Match versions by package prefix. Applied on any prefix match.

repeated string package_name_prefixes = 5;

Returns
TypeDescription
int

The count of packageNamePrefixes.

getPackageNamePrefixesList()

public ProtocolStringList getPackageNamePrefixesList()

Match versions by package prefix. Applied on any prefix match.

repeated string package_name_prefixes = 5;

Returns
TypeDescription
ProtocolStringList

A list containing the packageNamePrefixes.

getParserForType()

public Parser<CleanupPolicyCondition> getParserForType()
Returns
TypeDescription
Parser<CleanupPolicyCondition>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTagPrefixes(int index)

public String getTagPrefixes(int index)

Match versions by tag prefix. Applied on any prefix match.

repeated string tag_prefixes = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The tagPrefixes at the given index.

getTagPrefixesBytes(int index)

public ByteString getTagPrefixesBytes(int index)

Match versions by tag prefix. Applied on any prefix match.

repeated string tag_prefixes = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the tagPrefixes at the given index.

getTagPrefixesCount()

public int getTagPrefixesCount()

Match versions by tag prefix. Applied on any prefix match.

repeated string tag_prefixes = 3;

Returns
TypeDescription
int

The count of tagPrefixes.

getTagPrefixesList()

public ProtocolStringList getTagPrefixesList()

Match versions by tag prefix. Applied on any prefix match.

repeated string tag_prefixes = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the tagPrefixes.

getTagState()

public CleanupPolicyCondition.TagState getTagState()

Match versions by tag status.

optional .google.devtools.artifactregistry.v1.CleanupPolicyCondition.TagState tag_state = 2;

Returns
TypeDescription
CleanupPolicyCondition.TagState

The tagState.

getTagStateValue()

public int getTagStateValue()

Match versions by tag status.

optional .google.devtools.artifactregistry.v1.CleanupPolicyCondition.TagState tag_state = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for tagState.

getVersionNamePrefixes(int index)

public String getVersionNamePrefixes(int index)

Match versions by version name prefix. Applied on any prefix match.

repeated string version_name_prefixes = 4;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The versionNamePrefixes at the given index.

getVersionNamePrefixesBytes(int index)

public ByteString getVersionNamePrefixesBytes(int index)

Match versions by version name prefix. Applied on any prefix match.

repeated string version_name_prefixes = 4;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the versionNamePrefixes at the given index.

getVersionNamePrefixesCount()

public int getVersionNamePrefixesCount()

Match versions by version name prefix. Applied on any prefix match.

repeated string version_name_prefixes = 4;

Returns
TypeDescription
int

The count of versionNamePrefixes.

getVersionNamePrefixesList()

public ProtocolStringList getVersionNamePrefixesList()

Match versions by version name prefix. Applied on any prefix match.

repeated string version_name_prefixes = 4;

Returns
TypeDescription
ProtocolStringList

A list containing the versionNamePrefixes.

hasNewerThan()

public boolean hasNewerThan()

Match versions newer than a duration.

optional .google.protobuf.Duration newer_than = 7;

Returns
TypeDescription
boolean

Whether the newerThan field is set.

hasOlderThan()

public boolean hasOlderThan()

Match versions older than a duration.

optional .google.protobuf.Duration older_than = 6;

Returns
TypeDescription
boolean

Whether the olderThan field is set.

hasTagState()

public boolean hasTagState()

Match versions by tag status.

optional .google.devtools.artifactregistry.v1.CleanupPolicyCondition.TagState tag_state = 2;

Returns
TypeDescription
boolean

Whether the tagState field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CleanupPolicyCondition.Builder newBuilderForType()
Returns
TypeDescription
CleanupPolicyCondition.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CleanupPolicyCondition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CleanupPolicyCondition.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CleanupPolicyCondition.Builder toBuilder()
Returns
TypeDescription
CleanupPolicyCondition.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException