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
  • Enum Constant Details

    • EXPIRATION_ENFORCEMENT_UNKNOWN

      public static final Registry.ExpirationEnforcement 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

      public static final Registry.ExpirationEnforcement EXPIRATION_ENFORCEMENT_ENFORCE
       Expiration is enforced. An expiration duration must be set.
       
      EXPIRATION_ENFORCEMENT_ENFORCE = 1;
    • EXPIRATION_ENFORCEMENT_DO_NOT_ENFORCE

      public static final Registry.ExpirationEnforcement EXPIRATION_ENFORCEMENT_DO_NOT_ENFORCE
       Images do not expire, regardless of the expiration duration.
       
      EXPIRATION_ENFORCEMENT_DO_NOT_ENFORCE = 2;
    • UNRECOGNIZED

      public static final Registry.ExpirationEnforcement UNRECOGNIZED
  • Field Details

    • EXPIRATION_ENFORCEMENT_UNKNOWN_VALUE

      public static final int EXPIRATION_ENFORCEMENT_UNKNOWN_VALUE
       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;
      See Also:
    • EXPIRATION_ENFORCEMENT_ENFORCE_VALUE

      public static final int EXPIRATION_ENFORCEMENT_ENFORCE_VALUE
       Expiration 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_VALUE
       Images do not expire, regardless of the expiration duration.
       
      EXPIRATION_ENFORCEMENT_DO_NOT_ENFORCE = 2;
      See Also:
  • Method Details

    • values

      public static Registry.ExpirationEnforcement[] 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

      public static Registry.ExpirationEnforcement valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static Registry.ExpirationEnforcement valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static Registry.ExpirationEnforcement forNumber(int value)
      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:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null