Package com.google.cloud.compute.v1
Enum HealthStatus.WeightError
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<HealthStatus.WeightError>
- Enclosing class:
- HealthStatus
public static enum HealthStatus.WeightError
extends Enum<HealthStatus.WeightError>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
google.cloud.compute.v1.HealthStatus.WeightError-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe response to a Health Check probe had the HTTP response header field X-Load-Balancing-Endpoint-Weight, but its content was invalid (i.e., not a non-negative single-precision floating-point number in decimal string representation).The response to a Health Check probe did not have the HTTP response header field X-Load-Balancing-Endpoint-Weight.This is the value when the accompanied health status is either TIMEOUT (i.e.,the Health Check probe was not able to get a response in time) or UNKNOWN.A value indicating that the enum field is not set.This is the default value when WeightReportMode is DISABLE, and is also the initial value when WeightReportMode has just updated to ENABLE or DRY_RUN and there has not been sufficient time to parse and report the backend weight. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe response to a Health Check probe had the HTTP response header field X-Load-Balancing-Endpoint-Weight, but its content was invalid (i.e., not a non-negative single-precision floating-point number in decimal string representation).static final intThe response to a Health Check probe did not have the HTTP response header field X-Load-Balancing-Endpoint-Weight.static final intThis is the value when the accompanied health status is either TIMEOUT (i.e.,the Health Check probe was not able to get a response in time) or UNKNOWN.static final intA value indicating that the enum field is not set.static final intThis is the default value when WeightReportMode is DISABLE, and is also the initial value when WeightReportMode has just updated to ENABLE or DRY_RUN and there has not been sufficient time to parse and report the backend weight. -
Method Summary
Modifier and TypeMethodDescriptionstatic HealthStatus.WeightErrorforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<HealthStatus.WeightError>static HealthStatus.WeightErrorvalueOf(int value) Deprecated.static HealthStatus.WeightErrorvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static HealthStatus.WeightErrorReturns the enum constant of this type with the specified name.static HealthStatus.WeightError[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED_WEIGHT_ERROR
A value indicating that the enum field is not set.
UNDEFINED_WEIGHT_ERROR = 0; -
INVALID_WEIGHT
The response to a Health Check probe had the HTTP response header field X-Load-Balancing-Endpoint-Weight, but its content was invalid (i.e., not a non-negative single-precision floating-point number in decimal string representation).
INVALID_WEIGHT = 383698400; -
MISSING_WEIGHT
The response to a Health Check probe did not have the HTTP response header field X-Load-Balancing-Endpoint-Weight.
MISSING_WEIGHT = 384027537; -
UNAVAILABLE_WEIGHT
This is the value when the accompanied health status is either TIMEOUT (i.e.,the Health Check probe was not able to get a response in time) or UNKNOWN. For the latter, it should be typically because there has not been sufficient time to parse and report the weight for a new backend (which is with 0.0.0.0 ip address). However, it can be also due to an outage case for which the health status is explicitly reset to UNKNOWN.
UNAVAILABLE_WEIGHT = 439464295; -
WEIGHT_NONE
This is the default value when WeightReportMode is DISABLE, and is also the initial value when WeightReportMode has just updated to ENABLE or DRY_RUN and there has not been sufficient time to parse and report the backend weight.
WEIGHT_NONE = 502428831; -
UNRECOGNIZED
-
-
Field Details
-
UNDEFINED_WEIGHT_ERROR_VALUE
public static final int UNDEFINED_WEIGHT_ERROR_VALUEA value indicating that the enum field is not set.
UNDEFINED_WEIGHT_ERROR = 0;- See Also:
-
INVALID_WEIGHT_VALUE
public static final int INVALID_WEIGHT_VALUEThe response to a Health Check probe had the HTTP response header field X-Load-Balancing-Endpoint-Weight, but its content was invalid (i.e., not a non-negative single-precision floating-point number in decimal string representation).
INVALID_WEIGHT = 383698400;- See Also:
-
MISSING_WEIGHT_VALUE
public static final int MISSING_WEIGHT_VALUEThe response to a Health Check probe did not have the HTTP response header field X-Load-Balancing-Endpoint-Weight.
MISSING_WEIGHT = 384027537;- See Also:
-
UNAVAILABLE_WEIGHT_VALUE
public static final int UNAVAILABLE_WEIGHT_VALUEThis is the value when the accompanied health status is either TIMEOUT (i.e.,the Health Check probe was not able to get a response in time) or UNKNOWN. For the latter, it should be typically because there has not been sufficient time to parse and report the weight for a new backend (which is with 0.0.0.0 ip address). However, it can be also due to an outage case for which the health status is explicitly reset to UNKNOWN.
UNAVAILABLE_WEIGHT = 439464295;- See Also:
-
WEIGHT_NONE_VALUE
public static final int WEIGHT_NONE_VALUEThis is the default value when WeightReportMode is DISABLE, and is also the initial value when WeightReportMode has just updated to ENABLE or DRY_RUN and there has not been sufficient time to parse and report the backend weight.
WEIGHT_NONE = 502428831;- 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
public static com.google.protobuf.Internal.EnumLiteMap<HealthStatus.WeightError> 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 HealthStatus.WeightError 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
-