Package com.google.cloud.compute.v1
Enum Backend.BalancingMode
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Backend.BalancingMode>
- Enclosing class:
- Backend
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 Summary
Enum ConstantsEnum ConstantDescriptionBalance based on the number of simultaneous connections.Based on custom defined and reported metrics.Balance based on the number of in-flight requests.Balance based on requests per second (RPS).A value indicating that the enum field is not set.Balance based on the backend utilization. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intBalance based on the number of simultaneous connections.static final intBased on custom defined and reported metrics.static final intBalance based on the number of in-flight requests.static final intBalance based on requests per second (RPS).static final intA value indicating that the enum field is not set.static final intBalance based on the backend utilization. -
Method Summary
Modifier and TypeMethodDescriptionstatic Backend.BalancingModeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Backend.BalancingMode>static Backend.BalancingModevalueOf(int value) Deprecated.static Backend.BalancingModevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Backend.BalancingModeReturns 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.
-
Enum Constant Details
-
UNDEFINED_BALANCING_MODE
A value indicating that the enum field is not set.
UNDEFINED_BALANCING_MODE = 0; -
CONNECTION
Balance based on the number of simultaneous connections.
CONNECTION = 246311646; -
CUSTOM_METRICS
Based on custom defined and reported metrics.
CUSTOM_METRICS = 331575765; -
IN_FLIGHT
Balance based on the number of in-flight requests.
IN_FLIGHT = 190040266; -
RATE
Balance based on requests per second (RPS).
RATE = 2508000; -
UTILIZATION
Balance based on the backend utilization.
UTILIZATION = 157008386; -
UNRECOGNIZED
-
-
Field Details
-
UNDEFINED_BALANCING_MODE_VALUE
public static final int UNDEFINED_BALANCING_MODE_VALUEA value indicating that the enum field is not set.
UNDEFINED_BALANCING_MODE = 0;- See Also:
-
CONNECTION_VALUE
public static final int CONNECTION_VALUEBalance based on the number of simultaneous connections.
CONNECTION = 246311646;- See Also:
-
CUSTOM_METRICS_VALUE
public static final int CUSTOM_METRICS_VALUEBased on custom defined and reported metrics.
CUSTOM_METRICS = 331575765;- See Also:
-
IN_FLIGHT_VALUE
public static final int IN_FLIGHT_VALUEBalance based on the number of in-flight requests.
IN_FLIGHT = 190040266;- See Also:
-
RATE_VALUE
public static final int RATE_VALUEBalance based on requests per second (RPS).
RATE = 2508000;- See Also:
-
UTILIZATION_VALUE
public static final int UTILIZATION_VALUEBalance based on the backend utilization.
UTILIZATION = 157008386;- 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
public static Backend.BalancingMode 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
-