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_FAILED
The deployment has failed to lock.LOCK_STATE_UNSPECIFIED
The default value.LOCKED
The deployment is locked.LOCKING
The deployment is being locked.UNLOCK_FAILED
The deployment has failed to unlock.UNLOCKED
The deployment is unlocked.UNLOCKING
The deployment is being unlocked.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
LOCK_FAILED_VALUE
The deployment has failed to lock.static int
LOCK_STATE_UNSPECIFIED_VALUE
The default value.static int
LOCKED_VALUE
The deployment is locked.static int
LOCKING_VALUE
The deployment is being locked.static int
UNLOCK_FAILED_VALUE
The deployment has failed to unlock.static int
UNLOCKED_VALUE
The deployment is unlocked.static int
UNLOCKING_VALUE
The deployment is being unlocked.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Deployment.LockState
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<Deployment.LockState>
internalGetValueMap()
static Deployment.LockState
valueOf(int value)
Deprecated.static Deployment.LockState
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static Deployment.LockState
valueOf(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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in 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:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in 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
-
-