public static enum RpcHeaderProtos.RpcKindProto extends Enum<RpcHeaderProtos.RpcKindProto> implements com.google.protobuf.ProtocolMessageEnum
hadoop.common.RpcKindProto
RpcKind determine the rpcEngine and the serialization of the rpc request
| Enum Constant and Description |
|---|
RPC_BUILTIN
RPC_BUILTIN = 0; |
RPC_PROTOCOL_BUFFER
RPC_PROTOCOL_BUFFER = 2; |
RPC_WRITABLE
RPC_WRITABLE = 1; |
| Modifier and Type | Field and Description |
|---|---|
static int |
RPC_BUILTIN_VALUE
RPC_BUILTIN = 0; |
static int |
RPC_PROTOCOL_BUFFER_VALUE
RPC_PROTOCOL_BUFFER = 2; |
static int |
RPC_WRITABLE_VALUE
RPC_WRITABLE = 1; |
| Modifier and Type | Method and Description |
|---|---|
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<RpcHeaderProtos.RpcKindProto> |
internalGetValueMap() |
static RpcHeaderProtos.RpcKindProto |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static RpcHeaderProtos.RpcKindProto |
valueOf(int value) |
static RpcHeaderProtos.RpcKindProto |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RpcHeaderProtos.RpcKindProto[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RpcHeaderProtos.RpcKindProto RPC_BUILTIN
RPC_BUILTIN = 0;
Used for built in calls by tests
public static final RpcHeaderProtos.RpcKindProto RPC_WRITABLE
RPC_WRITABLE = 1;
Use WritableRpcEngine
public static final RpcHeaderProtos.RpcKindProto RPC_PROTOCOL_BUFFER
RPC_PROTOCOL_BUFFER = 2;
Use ProtobufRpcEngine
public static final int RPC_BUILTIN_VALUE
RPC_BUILTIN = 0;
Used for built in calls by tests
public static final int RPC_WRITABLE_VALUE
RPC_WRITABLE = 1;
Use WritableRpcEngine
public static final int RPC_PROTOCOL_BUFFER_VALUE
RPC_PROTOCOL_BUFFER = 2;
Use ProtobufRpcEngine
public static RpcHeaderProtos.RpcKindProto[] values()
for (RpcHeaderProtos.RpcKindProto c : RpcHeaderProtos.RpcKindProto.values()) System.out.println(c);
public static RpcHeaderProtos.RpcKindProto 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.ProtocolMessageEnumpublic static RpcHeaderProtos.RpcKindProto valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<RpcHeaderProtos.RpcKindProto> 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 RpcHeaderProtos.RpcKindProto valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2017 Apache Software Foundation. All Rights Reserved.