Package com.grpc.health.v1
Enum HealthCheckResponse.ServingStatus
- java.lang.Object
-
- java.lang.Enum<HealthCheckResponse.ServingStatus>
-
- com.grpc.health.v1.HealthCheckResponse.ServingStatus
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,java.io.Serializable,java.lang.Comparable<HealthCheckResponse.ServingStatus>
- Enclosing class:
- HealthCheckResponse
public static enum HealthCheckResponse.ServingStatus extends java.lang.Enum<HealthCheckResponse.ServingStatus> implements com.google.protobuf.Internal.EnumLite
Protobuf enumgrpc.health.v1.HealthCheckResponse.ServingStatus
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SERVING_STATUS_NOT_SERVINGSERVING_STATUS_NOT_SERVING = 2;SERVING_STATUS_SERVINGSERVING_STATUS_SERVING = 1;SERVING_STATUS_UNSPECIFIEDSERVING_STATUS_UNSPECIFIED = 0;UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intSERVING_STATUS_NOT_SERVING_VALUESERVING_STATUS_NOT_SERVING = 2;static intSERVING_STATUS_SERVING_VALUESERVING_STATUS_SERVING = 1;static intSERVING_STATUS_UNSPECIFIED_VALUESERVING_STATUS_UNSPECIFIED = 0;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static HealthCheckResponse.ServingStatusforNumber(int value)intgetNumber()static com.google.protobuf.Internal.EnumLiteMap<HealthCheckResponse.ServingStatus>internalGetValueMap()static com.google.protobuf.Internal.EnumVerifierinternalGetVerifier()static HealthCheckResponse.ServingStatusvalueOf(int value)Deprecated.static HealthCheckResponse.ServingStatusvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static HealthCheckResponse.ServingStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SERVING_STATUS_UNSPECIFIED
public static final HealthCheckResponse.ServingStatus SERVING_STATUS_UNSPECIFIED
SERVING_STATUS_UNSPECIFIED = 0;
-
SERVING_STATUS_SERVING
public static final HealthCheckResponse.ServingStatus SERVING_STATUS_SERVING
SERVING_STATUS_SERVING = 1;
-
SERVING_STATUS_NOT_SERVING
public static final HealthCheckResponse.ServingStatus SERVING_STATUS_NOT_SERVING
SERVING_STATUS_NOT_SERVING = 2;
-
UNRECOGNIZED
public static final HealthCheckResponse.ServingStatus UNRECOGNIZED
-
-
Field Detail
-
SERVING_STATUS_UNSPECIFIED_VALUE
public static final int SERVING_STATUS_UNSPECIFIED_VALUE
SERVING_STATUS_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
SERVING_STATUS_SERVING_VALUE
public static final int SERVING_STATUS_SERVING_VALUE
SERVING_STATUS_SERVING = 1;- See Also:
- Constant Field Values
-
SERVING_STATUS_NOT_SERVING_VALUE
public static final int SERVING_STATUS_NOT_SERVING_VALUE
SERVING_STATUS_NOT_SERVING = 2;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static HealthCheckResponse.ServingStatus[] 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 (HealthCheckResponse.ServingStatus c : HealthCheckResponse.ServingStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HealthCheckResponse.ServingStatus valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite
-
valueOf
@Deprecated public static HealthCheckResponse.ServingStatus 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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forNumber
public static HealthCheckResponse.ServingStatus forNumber(int value)
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<HealthCheckResponse.ServingStatus> internalGetValueMap()
-
internalGetVerifier
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
-
-