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
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>)
Static Fields
public static final int NEWER_THAN_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int OLDER_THAN_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int PACKAGE_NAME_PREFIXES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int TAG_PREFIXES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int TAG_STATE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int VERSION_NAME_PREFIXES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static CleanupPolicyCondition getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static CleanupPolicyCondition.Builder newBuilder()
public static CleanupPolicyCondition.Builder newBuilder(CleanupPolicyCondition prototype)
public static CleanupPolicyCondition parseDelimitedFrom(InputStream input)
public static CleanupPolicyCondition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CleanupPolicyCondition parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static CleanupPolicyCondition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CleanupPolicyCondition parseFrom(ByteString data)
public static CleanupPolicyCondition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CleanupPolicyCondition parseFrom(CodedInputStream input)
public static CleanupPolicyCondition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CleanupPolicyCondition parseFrom(InputStream input)
public static CleanupPolicyCondition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CleanupPolicyCondition parseFrom(ByteBuffer data)
public static CleanupPolicyCondition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<CleanupPolicyCondition> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public CleanupPolicyCondition getDefaultInstanceForType()
public Duration getNewerThan()
Match versions newer than a duration.
optional .google.protobuf.Duration newer_than = 7;
Returns |
---|
Type | Description |
Duration | The newerThan.
|
public DurationOrBuilder getNewerThanOrBuilder()
Match versions newer than a duration.
optional .google.protobuf.Duration newer_than = 7;
public Duration getOlderThan()
Match versions older than a duration.
optional .google.protobuf.Duration older_than = 6;
Returns |
---|
Type | Description |
Duration | The olderThan.
|
public DurationOrBuilder getOlderThanOrBuilder()
Match versions older than a duration.
optional .google.protobuf.Duration older_than = 6;
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.
|
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.
|
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.
|
public ProtocolStringList getPackageNamePrefixesList()
Match versions by package prefix. Applied on any prefix match.
repeated string package_name_prefixes = 5;
public Parser<CleanupPolicyCondition> getParserForType()
Overrides
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
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.
|
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.
|
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.
|
public ProtocolStringList getTagPrefixesList()
Match versions by tag prefix. Applied on any prefix match.
repeated string tag_prefixes = 3;
public CleanupPolicyCondition.TagState getTagState()
Match versions by tag status.
optional .google.devtools.artifactregistry.v1.CleanupPolicyCondition.TagState tag_state = 2;
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.
|
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.
|
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.
|
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.
|
public ProtocolStringList getVersionNamePrefixesList()
Match versions by version name prefix. Applied on any prefix match.
repeated string version_name_prefixes = 4;
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.
|
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.
|
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.
|
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public CleanupPolicyCondition.Builder newBuilderForType()
protected CleanupPolicyCondition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public CleanupPolicyCondition.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides