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