Package com.google.cloud.compute.v1
Enum Backend.BalancingMode
- java.lang.Object
-
- java.lang.Enum<Backend.BalancingMode>
-
- com.google.cloud.compute.v1.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 enumgoogle.cloud.compute.v1.Backend.BalancingMode
-
-
Enum Constant Summary
Enum Constants Enum Constant 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.
-
Field Summary
Fields Modifier and Type Field 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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(int value)
Deprecated.static Backend.BalancingMode
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.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.
-
-
-
Enum Constant Detail
-
UNDEFINED_BALANCING_MODE
public static final Backend.BalancingMode UNDEFINED_BALANCING_MODE
A value indicating that the enum field is not set.
UNDEFINED_BALANCING_MODE = 0;
-
CONNECTION
public static final Backend.BalancingMode CONNECTION
Balance based on the number of simultaneous connections.
CONNECTION = 246311646;
-
RATE
public static final Backend.BalancingMode RATE
Balance based on requests per second (RPS).
RATE = 2508000;
-
UTILIZATION
public static final Backend.BalancingMode UTILIZATION
Balance based on the backend utilization.
UTILIZATION = 157008386;
-
UNRECOGNIZED
public static final Backend.BalancingMode UNRECOGNIZED
-
-
Field Detail
-
UNDEFINED_BALANCING_MODE_VALUE
public static final int UNDEFINED_BALANCING_MODE_VALUE
A value indicating that the enum field is not set.
UNDEFINED_BALANCING_MODE = 0;
- See Also:
- Constant Field Values
-
CONNECTION_VALUE
public static final int CONNECTION_VALUE
Balance based on the number of simultaneous connections.
CONNECTION = 246311646;
- See Also:
- Constant Field Values
-
RATE_VALUE
public static final int RATE_VALUE
Balance based on requests per second (RPS).
RATE = 2508000;
- See Also:
- Constant Field Values
-
UTILIZATION_VALUE
public static final int UTILIZATION_VALUE
Balance based on the backend utilization.
UTILIZATION = 157008386;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Backend.BalancingMode[] 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 (Backend.BalancingMode c : Backend.BalancingMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Backend.BalancingMode 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 Backend.BalancingMode 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 Backend.BalancingMode 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<Backend.BalancingMode> 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 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
-
-