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 enum google.cloud.compute.v1.Backend.BalancingMode
  • Enum Constant Details

    • 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;
    • CUSTOM_METRICS

      public static final Backend.BalancingMode CUSTOM_METRICS
       Based on custom defined and reported metrics.
       
      CUSTOM_METRICS = 331575765;
    • IN_FLIGHT

      public static final Backend.BalancingMode IN_FLIGHT
       Balance based on the number of in-flight requests.
       
      IN_FLIGHT = 190040266;
    • 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 Details

    • 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:
    • CONNECTION_VALUE

      public static final int CONNECTION_VALUE
       Balance based on the number of simultaneous connections.
       
      CONNECTION = 246311646;
      See Also:
    • CUSTOM_METRICS_VALUE

      public static final int CUSTOM_METRICS_VALUE
       Based on custom defined and reported metrics.
       
      CUSTOM_METRICS = 331575765;
      See Also:
    • IN_FLIGHT_VALUE

      public static final int IN_FLIGHT_VALUE
       Balance based on the number of in-flight requests.
       
      IN_FLIGHT = 190040266;
      See Also:
    • RATE_VALUE

      public static final int RATE_VALUE
       Balance based on requests per second (RPS).
       
      RATE = 2508000;
      See Also:
    • UTILIZATION_VALUE

      public static final int UTILIZATION_VALUE
       Balance based on the backend utilization.
       
      UTILIZATION = 157008386;
      See Also:
  • Method Details

    • values

      public static Backend.BalancingMode[] 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

      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.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 name
      NullPointerException - 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 interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null