public static enum RpcHeaderProtos.RpcKindProto extends Enum<RpcHeaderProtos.RpcKindProto> implements org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum
RpcKind determine the rpcEngine and the serialization of the rpc requestProtobuf enum
hadoop.common.RpcKindProto
Enum Constant and Description |
---|
RPC_BUILTIN
Used for built in calls by tests
|
RPC_PROTOCOL_BUFFER
Use ProtobufRpcEngine
|
RPC_WRITABLE
Use WritableRpcEngine
|
Modifier and Type | Field and Description |
---|---|
static int |
RPC_BUILTIN_VALUE
Used for built in calls by tests
|
static int |
RPC_PROTOCOL_BUFFER_VALUE
Use ProtobufRpcEngine
|
static int |
RPC_WRITABLE_VALUE
Use WritableRpcEngine
|
Modifier and Type | Method and Description |
---|---|
static RpcHeaderProtos.RpcKindProto |
forNumber(int value) |
static org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<RpcHeaderProtos.RpcKindProto> |
internalGetValueMap() |
static RpcHeaderProtos.RpcKindProto |
valueOf(org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor desc) |
static RpcHeaderProtos.RpcKindProto |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
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
Used for built in calls by tests
RPC_BUILTIN = 0;
public static final RpcHeaderProtos.RpcKindProto RPC_WRITABLE
Use WritableRpcEngine
RPC_WRITABLE = 1;
public static final RpcHeaderProtos.RpcKindProto RPC_PROTOCOL_BUFFER
Use ProtobufRpcEngine
RPC_PROTOCOL_BUFFER = 2;
public static final int RPC_BUILTIN_VALUE
Used for built in calls by tests
RPC_BUILTIN = 0;
public static final int RPC_WRITABLE_VALUE
Use WritableRpcEngine
RPC_WRITABLE = 1;
public static final int RPC_PROTOCOL_BUFFER_VALUE
Use ProtobufRpcEngine
RPC_PROTOCOL_BUFFER = 2;
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 org.apache.hadoop.thirdparty.protobuf.Internal.EnumLite
getNumber
in interface org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum
@Deprecated public static RpcHeaderProtos.RpcKindProto valueOf(int value)
forNumber(int)
instead.public static RpcHeaderProtos.RpcKindProto forNumber(int value)
public static org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<RpcHeaderProtos.RpcKindProto> internalGetValueMap()
public final org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum
public final org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static RpcHeaderProtos.RpcKindProto valueOf(org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2008–2021 Apache Software Foundation. All rights reserved.