public static enum Backend.Preference extends Enum<Backend.Preference> implements com.google.protobuf.ProtocolMessageEnum
This field indicates whether this backend should be fully utilized before sending traffic to backends with default preference. The possible values are: - PREFERRED: Backends with this preference level will be filled up to their capacity limits first, based on RTT. - DEFAULT: If preferred backends don't have enough capacity, backends in this layer would be used and traffic would be assigned based on the load balancing algorithm you use. This is the defaultProtobuf enum
google.cloud.compute.v1.Backend.Preference| Enum Constant and Description |
|---|
DEFAULT
No preference.
|
PREFERENCE_UNSPECIFIED
If preference is unspecified, we set it to the DEFAULT value
PREFERENCE_UNSPECIFIED = 496219571; |
PREFERRED
Traffic will be sent to this backend first.
|
UNDEFINED_PREFERENCE
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_VALUE
No preference.
|
static int |
PREFERENCE_UNSPECIFIED_VALUE
If preference is unspecified, we set it to the DEFAULT value
PREFERENCE_UNSPECIFIED = 496219571; |
static int |
PREFERRED_VALUE
Traffic will be sent to this backend first.
|
static int |
UNDEFINED_PREFERENCE_VALUE
A value indicating that the enum field is not set.
|
| Modifier and Type | Method and Description |
|---|---|
static Backend.Preference |
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<Backend.Preference> |
internalGetValueMap() |
static Backend.Preference |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Backend.Preference |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Backend.Preference |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Backend.Preference[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Backend.Preference UNDEFINED_PREFERENCE
A value indicating that the enum field is not set.
UNDEFINED_PREFERENCE = 0;public static final Backend.Preference DEFAULT
No preference.
DEFAULT = 115302945;public static final Backend.Preference PREFERENCE_UNSPECIFIED
If preference is unspecified, we set it to the DEFAULT value
PREFERENCE_UNSPECIFIED = 496219571;public static final Backend.Preference PREFERRED
Traffic will be sent to this backend first.
PREFERRED = 418847841;public static final Backend.Preference UNRECOGNIZED
public static final int UNDEFINED_PREFERENCE_VALUE
A value indicating that the enum field is not set.
UNDEFINED_PREFERENCE = 0;public static final int DEFAULT_VALUE
No preference.
DEFAULT = 115302945;public static final int PREFERENCE_UNSPECIFIED_VALUE
If preference is unspecified, we set it to the DEFAULT value
PREFERENCE_UNSPECIFIED = 496219571;public static final int PREFERRED_VALUE
Traffic will be sent to this backend first.
PREFERRED = 418847841;public static Backend.Preference[] values()
for (Backend.Preference c : Backend.Preference.values()) System.out.println(c);
public static Backend.Preference 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 Backend.Preference valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Backend.Preference forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Backend.Preference> 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 Backend.Preference valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.