org.apache.hadoop.ipc.protobuf
Enum RpcHeaderProtos.RpcKindProto

java.lang.Object
  extended by java.lang.Enum<RpcHeaderProtos.RpcKindProto>
      extended by org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcKindProto
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<RpcHeaderProtos.RpcKindProto>
Enclosing class:
RpcHeaderProtos

public static enum RpcHeaderProtos.RpcKindProto
extends Enum<RpcHeaderProtos.RpcKindProto>
implements com.google.protobuf.ProtocolMessageEnum

Protobuf enum hadoop.common.RpcKindProto


 RpcKind determine the rpcEngine and the serialization of the rpc request
 


Enum Constant Summary
RPC_BUILTIN
          RPC_BUILTIN = 0;
RPC_PROTOCOL_BUFFER
          RPC_PROTOCOL_BUFFER = 2;
RPC_WRITABLE
          RPC_WRITABLE = 1;
 
Field Summary
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;
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

RPC_BUILTIN

public static final RpcHeaderProtos.RpcKindProto RPC_BUILTIN
RPC_BUILTIN = 0;
 Used for built in calls by tests
 


RPC_WRITABLE

public static final RpcHeaderProtos.RpcKindProto RPC_WRITABLE
RPC_WRITABLE = 1;
 Use WritableRpcEngine 
 


RPC_PROTOCOL_BUFFER

public static final RpcHeaderProtos.RpcKindProto RPC_PROTOCOL_BUFFER
RPC_PROTOCOL_BUFFER = 2;
 Use ProtobufRpcEngine
 

Field Detail

RPC_BUILTIN_VALUE

public static final int RPC_BUILTIN_VALUE
RPC_BUILTIN = 0;
 Used for built in calls by tests
 

See Also:
Constant Field Values

RPC_WRITABLE_VALUE

public static final int RPC_WRITABLE_VALUE
RPC_WRITABLE = 1;
 Use WritableRpcEngine 
 

See Also:
Constant Field Values

RPC_PROTOCOL_BUFFER_VALUE

public static final int RPC_PROTOCOL_BUFFER_VALUE
RPC_PROTOCOL_BUFFER = 2;
 Use ProtobufRpcEngine
 

See Also:
Constant Field Values
Method Detail

values

public static RpcHeaderProtos.RpcKindProto[] 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 (RpcHeaderProtos.RpcKindProto c : RpcHeaderProtos.RpcKindProto.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RpcHeaderProtos.RpcKindProto valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getNumber

public final int getNumber()
Specified by:
getNumber in interface com.google.protobuf.Internal.EnumLite
Specified by:
getNumber in interface com.google.protobuf.ProtocolMessageEnum

valueOf

public static RpcHeaderProtos.RpcKindProto valueOf(int value)

internalGetValueMap

public static com.google.protobuf.Internal.EnumLiteMap<RpcHeaderProtos.RpcKindProto> internalGetValueMap()

getValueDescriptor

public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
Specified by:
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum

getDescriptorForType

public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
Specified by:
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum

getDescriptor

public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()

valueOf

public static RpcHeaderProtos.RpcKindProto valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)


Copyright © 2013 Apache Software Foundation. All Rights Reserved.