Package com.google.cloud.compute.v1
Enum Subnetwork.Role
- java.lang.Object
-
- java.lang.Enum<Subnetwork.Role>
-
- com.google.cloud.compute.v1.Subnetwork.Role
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<Subnetwork.Role>
- Enclosing class:
- Subnetwork
public static enum Subnetwork.Role extends Enum<Subnetwork.Role> implements com.google.protobuf.ProtocolMessageEnum
The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request.
Protobuf enumgoogle.cloud.compute.v1.Subnetwork.Role
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVE
The ACTIVE subnet that is currently used.BACKUP
The BACKUP subnet that could be promoted to ACTIVE.UNDEFINED_ROLE
A value indicating that the enum field is not set.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
ACTIVE_VALUE
The ACTIVE subnet that is currently used.static int
BACKUP_VALUE
The BACKUP subnet that could be promoted to ACTIVE.static int
UNDEFINED_ROLE_VALUE
A value indicating that the enum field is not set.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Subnetwork.Role
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<Subnetwork.Role>
internalGetValueMap()
static Subnetwork.Role
valueOf(int value)
Deprecated.static Subnetwork.Role
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static Subnetwork.Role
valueOf(String name)
Returns the enum constant of this type with the specified name.static Subnetwork.Role[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDEFINED_ROLE
public static final Subnetwork.Role UNDEFINED_ROLE
A value indicating that the enum field is not set.
UNDEFINED_ROLE = 0;
-
ACTIVE
public static final Subnetwork.Role ACTIVE
The ACTIVE subnet that is currently used.
ACTIVE = 314733318;
-
BACKUP
public static final Subnetwork.Role BACKUP
The BACKUP subnet that could be promoted to ACTIVE.
BACKUP = 341010882;
-
UNRECOGNIZED
public static final Subnetwork.Role UNRECOGNIZED
-
-
Field Detail
-
UNDEFINED_ROLE_VALUE
public static final int UNDEFINED_ROLE_VALUE
A value indicating that the enum field is not set.
UNDEFINED_ROLE = 0;
- See Also:
- Constant Field Values
-
ACTIVE_VALUE
public static final int ACTIVE_VALUE
The ACTIVE subnet that is currently used.
ACTIVE = 314733318;
- See Also:
- Constant Field Values
-
BACKUP_VALUE
public static final int BACKUP_VALUE
The BACKUP subnet that could be promoted to ACTIVE.
BACKUP = 341010882;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Subnetwork.Role[] 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 (Subnetwork.Role c : Subnetwork.Role.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Subnetwork.Role 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 Subnetwork.Role 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 Subnetwork.Role 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<Subnetwork.Role> 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 Subnetwork.Role 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
-
-