Package com.google.cloud.compute.v1
Enum Subnetwork.State
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Subnetwork.State>
- Enclosing class:
- Subnetwork
public static enum Subnetwork.State
extends Enum<Subnetwork.State>
implements com.google.protobuf.ProtocolMessageEnum
Output only. [Output Only] The state of the subnetwork, which can be one of the following values:READY: Subnetwork is created and ready to useDRAINING: only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained. A subnetwork that is draining cannot be used or modified until it reaches a status ofREADYProtobuf enum
google.cloud.compute.v1.Subnetwork.State-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSubnetwork is being drained.Subnetwork is ready for use.A value indicating that the enum field is not set. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSubnetwork is being drained.static final intSubnetwork is ready for use.static final intA value indicating that the enum field is not set. -
Method Summary
Modifier and TypeMethodDescriptionstatic Subnetwork.StateforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Subnetwork.State>static Subnetwork.StatevalueOf(int value) Deprecated.static Subnetwork.StatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Subnetwork.StateReturns the enum constant of this type with the specified name.static Subnetwork.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED_STATE
A value indicating that the enum field is not set.
UNDEFINED_STATE = 0; -
DRAINING
Subnetwork is being drained.
DRAINING = 480455402; -
READY
Subnetwork is ready for use.
READY = 77848963; -
UNRECOGNIZED
-
-
Field Details
-
UNDEFINED_STATE_VALUE
public static final int UNDEFINED_STATE_VALUEA value indicating that the enum field is not set.
UNDEFINED_STATE = 0;- See Also:
-
DRAINING_VALUE
public static final int DRAINING_VALUESubnetwork is being drained.
DRAINING = 480455402;- See Also:
-
READY_VALUE
public static final int READY_VALUESubnetwork is ready for use.
READY = 77848963;- 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
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
-