public static enum Messages.GrpclbRouteType extends 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 enum
grpc.testing.GrpclbRouteType| Enum Constant and Description |
|---|
GRPCLB_ROUTE_TYPE_BACKEND
Indicates that a client reached a server as a gRPCLB-given backend.
|
GRPCLB_ROUTE_TYPE_FALLBACK
Indicates that a client reached a server via gRPCLB fallback.
|
GRPCLB_ROUTE_TYPE_UNKNOWN
Server didn't detect the route that a client took to reach it.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
GRPCLB_ROUTE_TYPE_BACKEND_VALUE
Indicates that a client reached a server as a gRPCLB-given backend.
|
static int |
GRPCLB_ROUTE_TYPE_FALLBACK_VALUE
Indicates that a client reached a server via gRPCLB fallback.
|
static int |
GRPCLB_ROUTE_TYPE_UNKNOWN_VALUE
Server didn't detect the route that a client took to reach it.
|
| Modifier and Type | Method and Description |
|---|---|
static Messages.GrpclbRouteType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Messages.GrpclbRouteType> |
internalGetValueMap() |
static Messages.GrpclbRouteType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Messages.GrpclbRouteType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Messages.GrpclbRouteType |
valueOf(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.
|
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;public static final Messages.GrpclbRouteType GRPCLB_ROUTE_TYPE_FALLBACK
Indicates that a client reached a server via gRPCLB fallback.
GRPCLB_ROUTE_TYPE_FALLBACK = 1;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;public static final Messages.GrpclbRouteType UNRECOGNIZED
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;public static final int GRPCLB_ROUTE_TYPE_FALLBACK_VALUE
Indicates that a client reached a server via gRPCLB fallback.
GRPCLB_ROUTE_TYPE_FALLBACK = 1;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;public static Messages.GrpclbRouteType[] values()
for (Messages.GrpclbRouteType c : Messages.GrpclbRouteType.values()) System.out.println(c);
public static Messages.GrpclbRouteType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static Messages.GrpclbRouteType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Messages.GrpclbRouteType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Messages.GrpclbRouteType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Messages.GrpclbRouteType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)