Enum Deployment.LockState

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<Deployment.LockState>
    Enclosing class:
    Deployment

    public static enum Deployment.LockState
    extends Enum<Deployment.LockState>
    implements com.google.protobuf.ProtocolMessageEnum
     Possible lock states of a deployment.
     
    Protobuf enum google.cloud.config.v1.Deployment.LockState
    • Enum Constant Detail

      • LOCK_STATE_UNSPECIFIED

        public static final Deployment.LockState LOCK_STATE_UNSPECIFIED
         The default value. This value is used if the lock state is omitted.
         
        LOCK_STATE_UNSPECIFIED = 0;
      • UNLOCKED

        public static final Deployment.LockState UNLOCKED
         The deployment is unlocked.
         
        UNLOCKED = 2;
      • LOCKING

        public static final Deployment.LockState LOCKING
         The deployment is being locked.
         
        LOCKING = 3;
      • UNLOCKING

        public static final Deployment.LockState UNLOCKING
         The deployment is being unlocked.
         
        UNLOCKING = 4;
      • LOCK_FAILED

        public static final Deployment.LockState LOCK_FAILED
         The deployment has failed to lock.
         
        LOCK_FAILED = 5;
      • UNLOCK_FAILED

        public static final Deployment.LockState UNLOCK_FAILED
         The deployment has failed to unlock.
         
        UNLOCK_FAILED = 6;
    • Field Detail

      • LOCK_STATE_UNSPECIFIED_VALUE

        public static final int LOCK_STATE_UNSPECIFIED_VALUE
         The default value. This value is used if the lock state is omitted.
         
        LOCK_STATE_UNSPECIFIED = 0;
        See Also:
        Constant Field Values
      • LOCKED_VALUE

        public static final int LOCKED_VALUE
         The deployment is locked.
         
        LOCKED = 1;
        See Also:
        Constant Field Values
      • UNLOCKED_VALUE

        public static final int UNLOCKED_VALUE
         The deployment is unlocked.
         
        UNLOCKED = 2;
        See Also:
        Constant Field Values
      • LOCKING_VALUE

        public static final int LOCKING_VALUE
         The deployment is being locked.
         
        LOCKING = 3;
        See Also:
        Constant Field Values
      • UNLOCKING_VALUE

        public static final int UNLOCKING_VALUE
         The deployment is being unlocked.
         
        UNLOCKING = 4;
        See Also:
        Constant Field Values
      • LOCK_FAILED_VALUE

        public static final int LOCK_FAILED_VALUE
         The deployment has failed to lock.
         
        LOCK_FAILED = 5;
        See Also:
        Constant Field Values
      • UNLOCK_FAILED_VALUE

        public static final int UNLOCK_FAILED_VALUE
         The deployment has failed to unlock.
         
        UNLOCK_FAILED = 6;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static Deployment.LockState[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Deployment.LockState c : Deployment.LockState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Deployment.LockState valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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 Deployment.LockState valueOf​(int value)
        Deprecated.
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • forNumber

        public static Deployment.LockState 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<Deployment.LockState> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static Deployment.LockState valueOf​(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null