Package io.grpc.lookup.v1
Enum RouteLookupRequest.Reason
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<RouteLookupRequest.Reason>
- Enclosing class:
RouteLookupRequest
public static enum RouteLookupRequest.Reason
extends Enum<RouteLookupRequest.Reason>
implements com.google.protobuf.ProtocolMessageEnum
Possible reasons for making a request.Protobuf enum
grpc.lookup.v1.RouteLookupRequest.Reason
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNo data available in local cacheData in local cache is staleUnused -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.google.protobuf.Internal.EnumLiteMap
<RouteLookupRequest.Reason> static final int
No data available in local cachestatic final int
Data in local cache is stalestatic final int
Unusedprivate final int
private static final RouteLookupRequest.Reason[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RouteLookupRequest.Reason
forNumber
(int value) static final com.google.protobuf.Descriptors.EnumDescriptor
final com.google.protobuf.Descriptors.EnumDescriptor
final int
final com.google.protobuf.Descriptors.EnumValueDescriptor
static com.google.protobuf.Internal.EnumLiteMap
<RouteLookupRequest.Reason> static RouteLookupRequest.Reason
valueOf
(int value) Deprecated.static RouteLookupRequest.Reason
valueOf
(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static RouteLookupRequest.Reason
Returns the enum constant of this type with the specified name.static RouteLookupRequest.Reason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
REASON_UNKNOWN
Unused
REASON_UNKNOWN = 0;
-
REASON_MISS
No data available in local cache
REASON_MISS = 1;
-
REASON_STALE
Data in local cache is stale
REASON_STALE = 2;
-
UNRECOGNIZED
-
-
Field Details
-
REASON_UNKNOWN_VALUE
public static final int REASON_UNKNOWN_VALUEUnused
REASON_UNKNOWN = 0;
- See Also:
-
REASON_MISS_VALUE
public static final int REASON_MISS_VALUENo data available in local cache
REASON_MISS = 1;
- See Also:
-
REASON_STALE_VALUE
public static final int REASON_STALE_VALUEData in local cache is stale
REASON_STALE = 2;
- See Also:
-
internalValueMap
private static final com.google.protobuf.Internal.EnumLiteMap<RouteLookupRequest.Reason> internalValueMap -
VALUES
-
value
private final int value
-
-
Constructor Details
-
Reason
private Reason(int value)
-
-
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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in 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<RouteLookupRequest.Reason> 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 RouteLookupRequest.Reason 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
-