Package com.google.cloud.config.v1
Enum Deployment.LockState
- java.lang.Object
-
- java.lang.Enum<Deployment.LockState>
-
- com.google.cloud.config.v1.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 enumgoogle.cloud.config.v1.Deployment.LockState
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LOCK_FAILEDThe deployment has failed to lock.LOCK_STATE_UNSPECIFIEDThe default value.LOCKEDThe deployment is locked.LOCKINGThe deployment is being locked.UNLOCK_FAILEDThe deployment has failed to unlock.UNLOCKEDThe deployment is unlocked.UNLOCKINGThe deployment is being unlocked.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intLOCK_FAILED_VALUEThe deployment has failed to lock.static intLOCK_STATE_UNSPECIFIED_VALUEThe default value.static intLOCKED_VALUEThe deployment is locked.static intLOCKING_VALUEThe deployment is being locked.static intUNLOCK_FAILED_VALUEThe deployment has failed to unlock.static intUNLOCKED_VALUEThe deployment is unlocked.static intUNLOCKING_VALUEThe deployment is being unlocked.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Deployment.LockStateforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<Deployment.LockState>internalGetValueMap()static Deployment.LockStatevalueOf(int value)Deprecated.static Deployment.LockStatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static Deployment.LockStatevalueOf(String name)Returns the enum constant of this type with the specified name.static Deployment.LockState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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;
-
LOCKED
public static final Deployment.LockState LOCKED
The deployment is locked.
LOCKED = 1;
-
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;
-
UNRECOGNIZED
public static final Deployment.LockState UNRECOGNIZED
-
-
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 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 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 nameNullPointerException- 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.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 nameNullPointerException- if the argument is null
-
-