public static enum GeneralRPCProtos.RpcMode extends Enum<GeneralRPCProtos.RpcMode> implements com.google.protobuf.ProtocolMessageEnum
exec.rpc.RpcMode| Enum Constant and Description |
|---|
PING
PING = 3; |
PONG
PONG = 4; |
REQUEST
REQUEST = 0; |
RESPONSE
RESPONSE = 1; |
RESPONSE_FAILURE
RESPONSE_FAILURE = 2; |
| Modifier and Type | Field and Description |
|---|---|
static int |
PING_VALUE
PING = 3; |
static int |
PONG_VALUE
PONG = 4; |
static int |
REQUEST_VALUE
REQUEST = 0; |
static int |
RESPONSE_FAILURE_VALUE
RESPONSE_FAILURE = 2; |
static int |
RESPONSE_VALUE
RESPONSE = 1; |
| Modifier and Type | Method and Description |
|---|---|
static GeneralRPCProtos.RpcMode |
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<GeneralRPCProtos.RpcMode> |
internalGetValueMap() |
static GeneralRPCProtos.RpcMode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static GeneralRPCProtos.RpcMode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static GeneralRPCProtos.RpcMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GeneralRPCProtos.RpcMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GeneralRPCProtos.RpcMode REQUEST
REQUEST = 0;public static final GeneralRPCProtos.RpcMode RESPONSE
RESPONSE = 1;public static final GeneralRPCProtos.RpcMode RESPONSE_FAILURE
RESPONSE_FAILURE = 2;public static final GeneralRPCProtos.RpcMode PING
PING = 3;public static final GeneralRPCProtos.RpcMode PONG
PONG = 4;public static final int REQUEST_VALUE
REQUEST = 0;public static final int RESPONSE_VALUE
RESPONSE = 1;public static final int RESPONSE_FAILURE_VALUE
RESPONSE_FAILURE = 2;public static final int PING_VALUE
PING = 3;public static final int PONG_VALUE
PONG = 4;public static GeneralRPCProtos.RpcMode[] values()
for (GeneralRPCProtos.RpcMode c : GeneralRPCProtos.RpcMode.values()) System.out.println(c);
public static GeneralRPCProtos.RpcMode 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 GeneralRPCProtos.RpcMode valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static GeneralRPCProtos.RpcMode forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<GeneralRPCProtos.RpcMode> 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 GeneralRPCProtos.RpcMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2021 The Apache Software Foundation. All rights reserved.