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 = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Internal HTTP(S) Load Balancing. 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 enum
google.cloud.compute.v1.Subnetwork.Role| Enum Constant and 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 |
| Modifier and Type | Field and 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.
|
| Modifier and Type | Method and 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(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Subnetwork.Role |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
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.
|
public static final Subnetwork.Role UNDEFINED_ROLE
A value indicating that the enum field is not set.
UNDEFINED_ROLE = 0;public static final Subnetwork.Role ACTIVE
The ACTIVE subnet that is currently used.
ACTIVE = 314733318;public static final Subnetwork.Role BACKUP
The BACKUP subnet that could be promoted to ACTIVE.
BACKUP = 341010882;public static final Subnetwork.Role UNRECOGNIZED
public static final int UNDEFINED_ROLE_VALUE
A value indicating that the enum field is not set.
UNDEFINED_ROLE = 0;public static final int ACTIVE_VALUE
The ACTIVE subnet that is currently used.
ACTIVE = 314733318;public static final int BACKUP_VALUE
The BACKUP subnet that could be promoted to ACTIVE.
BACKUP = 341010882;public static Subnetwork.Role[] values()
for (Subnetwork.Role c : Subnetwork.Role.values()) System.out.println(c);
public static Subnetwork.Role valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static Subnetwork.Role valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Subnetwork.Role forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Subnetwork.Role> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Subnetwork.Role valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.