public static enum Backend.BalancingMode extends Enum<Backend.BalancingMode> implements com.google.protobuf.ProtocolMessageEnum
Specifies how to determine whether the backend of a load balancer can handle additional traffic or is fully loaded. For usage guidelines, see Connection balancing mode. Backends must use compatible balancing modes. For more information, see Supported balancing modes and target capacity settings and Restrictions and guidance for instance groups. Note: Currently, if you use the API to configure incompatible balancing modes, the configuration might be accepted even though it has no impact and is ignored. Specifically, Backend.maxUtilization is ignored when Backend.balancingMode is RATE. In the future, this incompatible combination will be rejected.Protobuf enum
google.cloud.compute.v1.Backend.BalancingMode| Enum Constant and Description |
|---|
CONNECTION
Balance based on the number of simultaneous connections.
|
RATE
Balance based on requests per second (RPS).
|
UNDEFINED_BALANCING_MODE
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
UTILIZATION
Balance based on the backend utilization.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
CONNECTION_VALUE
Balance based on the number of simultaneous connections.
|
static int |
RATE_VALUE
Balance based on requests per second (RPS).
|
static int |
UNDEFINED_BALANCING_MODE_VALUE
A value indicating that the enum field is not set.
|
static int |
UTILIZATION_VALUE
Balance based on the backend utilization.
|
| Modifier and Type | Method and Description |
|---|---|
static Backend.BalancingMode |
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.BalancingMode> |
internalGetValueMap() |
static Backend.BalancingMode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Backend.BalancingMode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Backend.BalancingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Backend.BalancingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Backend.BalancingMode UNDEFINED_BALANCING_MODE
A value indicating that the enum field is not set.
UNDEFINED_BALANCING_MODE = 0;public static final Backend.BalancingMode CONNECTION
Balance based on the number of simultaneous connections.
CONNECTION = 246311646;public static final Backend.BalancingMode RATE
Balance based on requests per second (RPS).
RATE = 2508000;public static final Backend.BalancingMode UTILIZATION
Balance based on the backend utilization.
UTILIZATION = 157008386;public static final Backend.BalancingMode UNRECOGNIZED
public static final int UNDEFINED_BALANCING_MODE_VALUE
A value indicating that the enum field is not set.
UNDEFINED_BALANCING_MODE = 0;public static final int CONNECTION_VALUE
Balance based on the number of simultaneous connections.
CONNECTION = 246311646;public static final int RATE_VALUE
Balance based on requests per second (RPS).
RATE = 2508000;public static final int UTILIZATION_VALUE
Balance based on the backend utilization.
UTILIZATION = 157008386;public static Backend.BalancingMode[] values()
for (Backend.BalancingMode c : Backend.BalancingMode.values()) System.out.println(c);
public static Backend.BalancingMode 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.BalancingMode valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Backend.BalancingMode forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Backend.BalancingMode> 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.BalancingMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.