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
Type Description
int

OLDER_THAN_FIELD_NUMBER

public static final int OLDER_THAN_FIELD_NUMBER
Field Value
Type Description
int

PACKAGE_NAME_PREFIXES_FIELD_NUMBER

public static final int PACKAGE_NAME_PREFIXES_FIELD_NUMBER
Field Value
Type Description
int

TAG_PREFIXES_FIELD_NUMBER

public static final int TAG_PREFIXES_FIELD_NUMBER
Field Value
Type Description
int

TAG_STATE_FIELD_NUMBER

public static final int TAG_STATE_FIELD_NUMBER
Field Value
Type Description
int

VERSION_NAME_PREFIXES_FIELD_NUMBER

public static final int VERSION_NAME_PREFIXES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CleanupPolicyCondition getDefaultInstance()
Returns
Type Description
CleanupPolicyCondition

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static CleanupPolicyCondition.Builder newBuilder()
Returns
Type Description
CleanupPolicyCondition.Builder

newBuilder(CleanupPolicyCondition prototype)

public static CleanupPolicyCondition.Builder newBuilder(CleanupPolicyCondition prototype)
Parameter
Name Description
prototype CleanupPolicyCondition
Returns
Type Description
CleanupPolicyCondition.Builder

parseDelimitedFrom(InputStream input)

public static CleanupPolicyCondition parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CleanupPolicyCondition
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CleanupPolicyCondition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CleanupPolicyCondition
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CleanupPolicyCondition parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CleanupPolicyCondition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CleanupPolicyCondition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CleanupPolicyCondition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CleanupPolicyCondition parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CleanupPolicyCondition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CleanupPolicyCondition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CleanupPolicyCondition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CleanupPolicyCondition parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CleanupPolicyCondition
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CleanupPolicyCondition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CleanupPolicyCondition
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CleanupPolicyCondition parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CleanupPolicyCondition
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CleanupPolicyCondition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CleanupPolicyCondition
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CleanupPolicyCondition parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CleanupPolicyCondition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CleanupPolicyCondition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CleanupPolicyCondition
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CleanupPolicyCondition> parser()
Returns
Type Description
Parser<CleanupPolicyCondition>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CleanupPolicyCondition getDefaultInstanceForType()
Returns
Type Description
CleanupPolicyCondition

getNewerThan()

public Duration getNewerThan()

Match versions newer than a duration.

optional .google.protobuf.Duration newer_than = 7;

Returns
Type Description
Duration

The newerThan.

getNewerThanOrBuilder()

public DurationOrBuilder getNewerThanOrBuilder()

Match versions newer than a duration.

optional .google.protobuf.Duration newer_than = 7;

Returns
Type Description
DurationOrBuilder

getOlderThan()

public Duration getOlderThan()

Match versions older than a duration.

optional .google.protobuf.Duration older_than = 6;

Returns
Type Description
Duration

The olderThan.

getOlderThanOrBuilder()

public DurationOrBuilder getOlderThanOrBuilder()

Match versions older than a duration.

optional .google.protobuf.Duration older_than = 6;

Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the packageNamePrefixes.

getParserForType()

public Parser<CleanupPolicyCondition> getParserForType()
Returns
Type Description
Parser<CleanupPolicyCondition>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
CleanupPolicyCondition.TagState

The tagState.

getTagStateValue()

public int getTagStateValue()

Match versions by tag status.

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

Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the versionNamePrefixes.

hasNewerThan()

public boolean hasNewerThan()

Match versions newer than a duration.

optional .google.protobuf.Duration newer_than = 7;

Returns
Type Description
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
Type Description
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
Type Description
boolean

Whether the tagState field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CleanupPolicyCondition.Builder newBuilderForType()
Returns
Type Description
CleanupPolicyCondition.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CleanupPolicyCondition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CleanupPolicyCondition.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CleanupPolicyCondition.Builder toBuilder()
Returns
Type Description
CleanupPolicyCondition.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException