Package namespace.cloud.registry.v1beta
Enum Class Registry.ExpirationEnforcement
java.lang.Object
java.lang.Enum<Registry.ExpirationEnforcement>
namespace.cloud.registry.v1beta.Registry.ExpirationEnforcement
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Registry.ExpirationEnforcement>,Constable
- Enclosing class:
Registry
public static enum Registry.ExpirationEnforcement
extends Enum<Registry.ExpirationEnforcement>
implements com.google.protobuf.ProtocolMessageEnum
Controls whether image expiration is enforced.Protobuf enum
namespace.cloud.registry.v1beta.ExpirationEnforcement-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionImages do not expire, regardless of the expiration duration.Expiration is enforced.Default behavior for backwards compatibility: - If an expiration duration is set, it is enforced. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intImages do not expire, regardless of the expiration duration.static final intExpiration is enforced.static final intDefault behavior for backwards compatibility: - If an expiration duration is set, it is enforced. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Registry.ExpirationEnforcement> valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.static Registry.ExpirationEnforcement[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXPIRATION_ENFORCEMENT_UNKNOWN
Default behavior for backwards compatibility: - If an expiration duration is set, it is enforced. - If no expiration duration is set, images do not expire (same as EXPIRATION_ENFORCEMENT_DO_NOT_ENFORCE). Prefer setting an explicit enforcement value over this.
EXPIRATION_ENFORCEMENT_UNKNOWN = 0; -
EXPIRATION_ENFORCEMENT_ENFORCE
Expiration is enforced. An expiration duration must be set.
EXPIRATION_ENFORCEMENT_ENFORCE = 1; -
EXPIRATION_ENFORCEMENT_DO_NOT_ENFORCE
Images do not expire, regardless of the expiration duration.
EXPIRATION_ENFORCEMENT_DO_NOT_ENFORCE = 2; -
UNRECOGNIZED
-
-
Field Details
-
EXPIRATION_ENFORCEMENT_UNKNOWN_VALUE
public static final int EXPIRATION_ENFORCEMENT_UNKNOWN_VALUEDefault behavior for backwards compatibility: - If an expiration duration is set, it is enforced. - If no expiration duration is set, images do not expire (same as EXPIRATION_ENFORCEMENT_DO_NOT_ENFORCE). Prefer setting an explicit enforcement value over this.
EXPIRATION_ENFORCEMENT_UNKNOWN = 0;- See Also:
-
EXPIRATION_ENFORCEMENT_ENFORCE_VALUE
public static final int EXPIRATION_ENFORCEMENT_ENFORCE_VALUEExpiration is enforced. An expiration duration must be set.
EXPIRATION_ENFORCEMENT_ENFORCE = 1;- See Also:
-
EXPIRATION_ENFORCEMENT_DO_NOT_ENFORCE_VALUE
public static final int EXPIRATION_ENFORCEMENT_DO_NOT_ENFORCE_VALUEImages do not expire, regardless of the expiration duration.
EXPIRATION_ENFORCEMENT_DO_NOT_ENFORCE = 2;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Registry.ExpirationEnforcement> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static Registry.ExpirationEnforcement valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-