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 intNo data available in local cachestatic final intData in local cache is stalestatic final intUnusedprivate final intprivate static final RouteLookupRequest.Reason[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RouteLookupRequest.ReasonforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<RouteLookupRequest.Reason> static RouteLookupRequest.ReasonvalueOf(int value) Deprecated.static RouteLookupRequest.ReasonvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static RouteLookupRequest.ReasonReturns 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:
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<RouteLookupRequest.Reason> 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 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
-