Package io.grpc.testing.integration
Enum Messages.GrpclbRouteType
- java.lang.Object
-
- java.lang.Enum<Messages.GrpclbRouteType>
-
- io.grpc.testing.integration.Messages.GrpclbRouteType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<Messages.GrpclbRouteType>
- Enclosing class:
- Messages
public static enum Messages.GrpclbRouteType extends java.lang.Enum<Messages.GrpclbRouteType> implements com.google.protobuf.ProtocolMessageEnum
The type of route that a client took to reach a server w.r.t. gRPCLB. The server must fill in "fallback" if it detects that the RPC reached the server via the "gRPCLB fallback" path, and "backend" if it detects that the RPC reached the server via "gRPCLB backend" path (i.e. if it got the address of this server from the gRPCLB server BalanceLoad RPC). Exactly how this detection is done is context and server dependent.
Protobuf enumgrpc.testing.GrpclbRouteType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GRPCLB_ROUTE_TYPE_BACKENDIndicates that a client reached a server as a gRPCLB-given backend.GRPCLB_ROUTE_TYPE_FALLBACKIndicates that a client reached a server via gRPCLB fallback.GRPCLB_ROUTE_TYPE_UNKNOWNServer didn't detect the route that a client took to reach it.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intGRPCLB_ROUTE_TYPE_BACKEND_VALUEIndicates that a client reached a server as a gRPCLB-given backend.static intGRPCLB_ROUTE_TYPE_FALLBACK_VALUEIndicates that a client reached a server via gRPCLB fallback.static intGRPCLB_ROUTE_TYPE_UNKNOWN_VALUEServer didn't detect the route that a client took to reach it.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Messages.GrpclbRouteTypeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<Messages.GrpclbRouteType>internalGetValueMap()static Messages.GrpclbRouteTypevalueOf(int value)Deprecated.static Messages.GrpclbRouteTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static Messages.GrpclbRouteTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Messages.GrpclbRouteType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GRPCLB_ROUTE_TYPE_UNKNOWN
public static final Messages.GrpclbRouteType GRPCLB_ROUTE_TYPE_UNKNOWN
Server didn't detect the route that a client took to reach it.
GRPCLB_ROUTE_TYPE_UNKNOWN = 0;
-
GRPCLB_ROUTE_TYPE_FALLBACK
public static final Messages.GrpclbRouteType GRPCLB_ROUTE_TYPE_FALLBACK
Indicates that a client reached a server via gRPCLB fallback.
GRPCLB_ROUTE_TYPE_FALLBACK = 1;
-
GRPCLB_ROUTE_TYPE_BACKEND
public static final Messages.GrpclbRouteType GRPCLB_ROUTE_TYPE_BACKEND
Indicates that a client reached a server as a gRPCLB-given backend.
GRPCLB_ROUTE_TYPE_BACKEND = 2;
-
UNRECOGNIZED
public static final Messages.GrpclbRouteType UNRECOGNIZED
-
-
Field Detail
-
GRPCLB_ROUTE_TYPE_UNKNOWN_VALUE
public static final int GRPCLB_ROUTE_TYPE_UNKNOWN_VALUE
Server didn't detect the route that a client took to reach it.
GRPCLB_ROUTE_TYPE_UNKNOWN = 0;- See Also:
- Constant Field Values
-
GRPCLB_ROUTE_TYPE_FALLBACK_VALUE
public static final int GRPCLB_ROUTE_TYPE_FALLBACK_VALUE
Indicates that a client reached a server via gRPCLB fallback.
GRPCLB_ROUTE_TYPE_FALLBACK = 1;- See Also:
- Constant Field Values
-
GRPCLB_ROUTE_TYPE_BACKEND_VALUE
public static final int GRPCLB_ROUTE_TYPE_BACKEND_VALUE
Indicates that a client reached a server as a gRPCLB-given backend.
GRPCLB_ROUTE_TYPE_BACKEND = 2;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Messages.GrpclbRouteType[] 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 (Messages.GrpclbRouteType c : Messages.GrpclbRouteType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Messages.GrpclbRouteType 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- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static Messages.GrpclbRouteType 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 Messages.GrpclbRouteType 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<Messages.GrpclbRouteType> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static Messages.GrpclbRouteType 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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-