Package com.google.cloud.config.v1
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 Summary
Enum ConstantsEnum ConstantDescriptionThe deployment has failed to lock.The default value.The deployment is locked.The deployment is being locked.The deployment has failed to unlock.The deployment is unlocked.The deployment is being unlocked. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe deployment has failed to lock.static final intThe default value.static final intThe deployment is locked.static final intThe deployment is being locked.static final intThe deployment has failed to unlock.static final intThe deployment is unlocked.static final intThe deployment is being unlocked. -
Method Summary
Modifier and TypeMethodDescriptionstatic Deployment.LockStateforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Deployment.LockState>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.LockStateReturns 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 Details
-
LOCK_STATE_UNSPECIFIED
The default value. This value is used if the lock state is omitted.
LOCK_STATE_UNSPECIFIED = 0; -
LOCKED
The deployment is locked.
LOCKED = 1; -
UNLOCKED
The deployment is unlocked.
UNLOCKED = 2; -
LOCKING
The deployment is being locked.
LOCKING = 3; -
UNLOCKING
The deployment is being unlocked.
UNLOCKING = 4; -
LOCK_FAILED
The deployment has failed to lock.
LOCK_FAILED = 5; -
UNLOCK_FAILED
The deployment has failed to unlock.
UNLOCK_FAILED = 6; -
UNRECOGNIZED
-
-
Field Details
-
LOCK_STATE_UNSPECIFIED_VALUE
public static final int LOCK_STATE_UNSPECIFIED_VALUEThe default value. This value is used if the lock state is omitted.
LOCK_STATE_UNSPECIFIED = 0;- See Also:
-
LOCKED_VALUE
public static final int LOCKED_VALUEThe deployment is locked.
LOCKED = 1;- See Also:
-
UNLOCKED_VALUE
public static final int UNLOCKED_VALUEThe deployment is unlocked.
UNLOCKED = 2;- See Also:
-
LOCKING_VALUE
public static final int LOCKING_VALUEThe deployment is being locked.
LOCKING = 3;- See Also:
-
UNLOCKING_VALUE
public static final int UNLOCKING_VALUEThe deployment is being unlocked.
UNLOCKING = 4;- See Also:
-
LOCK_FAILED_VALUE
public static final int LOCK_FAILED_VALUEThe deployment has failed to lock.
LOCK_FAILED = 5;- See Also:
-
UNLOCK_FAILED_VALUE
public static final int UNLOCK_FAILED_VALUEThe deployment has failed to unlock.
UNLOCK_FAILED = 6;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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.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
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
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 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
-