org.apache.hadoop.ipc.protobuf
Class ProtobufRpcEngineProtos.RequestHeaderProto

java.lang.Object
  extended by com.google.protobuf.AbstractMessageLite
      extended by com.google.protobuf.AbstractMessage
          extended by com.google.protobuf.GeneratedMessage
              extended by org.apache.hadoop.ipc.protobuf.ProtobufRpcEngineProtos.RequestHeaderProto
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, ProtobufRpcEngineProtos.RequestHeaderProtoOrBuilder
Enclosing class:
ProtobufRpcEngineProtos

public static final class ProtobufRpcEngineProtos.RequestHeaderProto
extends com.google.protobuf.GeneratedMessage
implements ProtobufRpcEngineProtos.RequestHeaderProtoOrBuilder

Protobuf type hadoop.common.RequestHeaderProto


 This message is the header for the Protobuf Rpc Engine
 when sending a RPC request from  RPC client to the RPC server.
 The actual request (serialized as protobuf) follows this request.

 No special header is needed for the Rpc Response for Protobuf Rpc Engine.
 The normal RPC response header (see RpcHeader.proto) are sufficient. 
 

See Also:
Serialized Form

Nested Class Summary
static class ProtobufRpcEngineProtos.RequestHeaderProto.Builder
          Protobuf type hadoop.common.RequestHeaderProto
 
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>
 
Field Summary
static int CLIENTPROTOCOLVERSION_FIELD_NUMBER
           
static int DECLARINGCLASSPROTOCOLNAME_FIELD_NUMBER
           
static int METHODNAME_FIELD_NUMBER
           
static com.google.protobuf.Parser<ProtobufRpcEngineProtos.RequestHeaderProto> PARSER
           
 
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders
 
Method Summary
 boolean equals(Object obj)
           
 long getClientProtocolVersion()
          required uint64 clientProtocolVersion = 3;
 String getDeclaringClassProtocolName()
          required string declaringClassProtocolName = 2;
 com.google.protobuf.ByteString getDeclaringClassProtocolNameBytes()
          required string declaringClassProtocolName = 2;
static ProtobufRpcEngineProtos.RequestHeaderProto getDefaultInstance()
           
 ProtobufRpcEngineProtos.RequestHeaderProto getDefaultInstanceForType()
           
static com.google.protobuf.Descriptors.Descriptor getDescriptor()
           
 String getMethodName()
          required string methodName = 1;
 com.google.protobuf.ByteString getMethodNameBytes()
          required string methodName = 1;
 com.google.protobuf.Parser<ProtobufRpcEngineProtos.RequestHeaderProto> getParserForType()
           
 int getSerializedSize()
           
 com.google.protobuf.UnknownFieldSet getUnknownFields()
           
 boolean hasClientProtocolVersion()
          required uint64 clientProtocolVersion = 3;
 boolean hasDeclaringClassProtocolName()
          required string declaringClassProtocolName = 2;
 int hashCode()
           
 boolean hasMethodName()
          required string methodName = 1;
protected  com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
           
 boolean isInitialized()
           
static ProtobufRpcEngineProtos.RequestHeaderProto.Builder newBuilder()
           
static ProtobufRpcEngineProtos.RequestHeaderProto.Builder newBuilder(ProtobufRpcEngineProtos.RequestHeaderProto prototype)
           
 ProtobufRpcEngineProtos.RequestHeaderProto.Builder newBuilderForType()
           
protected  ProtobufRpcEngineProtos.RequestHeaderProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
           
static ProtobufRpcEngineProtos.RequestHeaderProto parseDelimitedFrom(InputStream input)
           
static ProtobufRpcEngineProtos.RequestHeaderProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
static ProtobufRpcEngineProtos.RequestHeaderProto parseFrom(byte[] data)
           
static ProtobufRpcEngineProtos.RequestHeaderProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
static ProtobufRpcEngineProtos.RequestHeaderProto parseFrom(com.google.protobuf.ByteString data)
           
static ProtobufRpcEngineProtos.RequestHeaderProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
static ProtobufRpcEngineProtos.RequestHeaderProto parseFrom(com.google.protobuf.CodedInputStream input)
           
static ProtobufRpcEngineProtos.RequestHeaderProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
static ProtobufRpcEngineProtos.RequestHeaderProto parseFrom(InputStream input)
           
static ProtobufRpcEngineProtos.RequestHeaderProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
 ProtobufRpcEngineProtos.RequestHeaderProto.Builder toBuilder()
           
protected  Object writeReplace()
           
 void writeTo(com.google.protobuf.CodedOutputStream output)
           
 
Methods inherited from class com.google.protobuf.GeneratedMessage
getAllFields, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, hasField, makeExtensionsImmutable, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownField
 
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
 
Methods inherited from class com.google.protobuf.AbstractMessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getRepeatedField, getRepeatedFieldCount, hasField
 
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
 

Field Detail

PARSER

public static com.google.protobuf.Parser<ProtobufRpcEngineProtos.RequestHeaderProto> PARSER

METHODNAME_FIELD_NUMBER

public static final int METHODNAME_FIELD_NUMBER
See Also:
Constant Field Values

DECLARINGCLASSPROTOCOLNAME_FIELD_NUMBER

public static final int DECLARINGCLASSPROTOCOLNAME_FIELD_NUMBER
See Also:
Constant Field Values

CLIENTPROTOCOLVERSION_FIELD_NUMBER

public static final int CLIENTPROTOCOLVERSION_FIELD_NUMBER
See Also:
Constant Field Values
Method Detail

getDefaultInstance

public static ProtobufRpcEngineProtos.RequestHeaderProto getDefaultInstance()

getDefaultInstanceForType

public ProtobufRpcEngineProtos.RequestHeaderProto getDefaultInstanceForType()
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder

getUnknownFields

public final com.google.protobuf.UnknownFieldSet getUnknownFields()
Specified by:
getUnknownFields in interface com.google.protobuf.MessageOrBuilder
Overrides:
getUnknownFields in class com.google.protobuf.GeneratedMessage

getDescriptor

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

internalGetFieldAccessorTable

protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Specified by:
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage

getParserForType

public com.google.protobuf.Parser<ProtobufRpcEngineProtos.RequestHeaderProto> getParserForType()
Specified by:
getParserForType in interface com.google.protobuf.Message
Specified by:
getParserForType in interface com.google.protobuf.MessageLite
Overrides:
getParserForType in class com.google.protobuf.GeneratedMessage

hasMethodName

public boolean hasMethodName()
required string methodName = 1;
 Name of the RPC method 
 

Specified by:
hasMethodName in interface ProtobufRpcEngineProtos.RequestHeaderProtoOrBuilder

getMethodName

public String getMethodName()
required string methodName = 1;
 Name of the RPC method 
 

Specified by:
getMethodName in interface ProtobufRpcEngineProtos.RequestHeaderProtoOrBuilder

getMethodNameBytes

public com.google.protobuf.ByteString getMethodNameBytes()
required string methodName = 1;
 Name of the RPC method 
 

Specified by:
getMethodNameBytes in interface ProtobufRpcEngineProtos.RequestHeaderProtoOrBuilder

hasDeclaringClassProtocolName

public boolean hasDeclaringClassProtocolName()
required string declaringClassProtocolName = 2;
 
 RPCs for a particular interface (ie protocol) are done using a
 IPC connection that is setup using rpcProxy.
 The rpcProxy's has a declared protocol name that is 
 sent form client to server at connection time. 
 
 Each Rpc call also sends a protocol name 
 (called declaringClassprotocolName). This name is usually the same
 as the connection protocol name except in some cases. 
 For example metaProtocols such ProtocolInfoProto which get metainfo
 about the protocol reuse the connection but need to indicate that
 the actual protocol is different (i.e. the protocol is
 ProtocolInfoProto) since they reuse the connection; in this case
 the declaringClassProtocolName field is set to the ProtocolInfoProto
 

Specified by:
hasDeclaringClassProtocolName in interface ProtobufRpcEngineProtos.RequestHeaderProtoOrBuilder

getDeclaringClassProtocolName

public String getDeclaringClassProtocolName()
required string declaringClassProtocolName = 2;
 
 RPCs for a particular interface (ie protocol) are done using a
 IPC connection that is setup using rpcProxy.
 The rpcProxy's has a declared protocol name that is 
 sent form client to server at connection time. 
 
 Each Rpc call also sends a protocol name 
 (called declaringClassprotocolName). This name is usually the same
 as the connection protocol name except in some cases. 
 For example metaProtocols such ProtocolInfoProto which get metainfo
 about the protocol reuse the connection but need to indicate that
 the actual protocol is different (i.e. the protocol is
 ProtocolInfoProto) since they reuse the connection; in this case
 the declaringClassProtocolName field is set to the ProtocolInfoProto
 

Specified by:
getDeclaringClassProtocolName in interface ProtobufRpcEngineProtos.RequestHeaderProtoOrBuilder

getDeclaringClassProtocolNameBytes

public com.google.protobuf.ByteString getDeclaringClassProtocolNameBytes()
required string declaringClassProtocolName = 2;
 
 RPCs for a particular interface (ie protocol) are done using a
 IPC connection that is setup using rpcProxy.
 The rpcProxy's has a declared protocol name that is 
 sent form client to server at connection time. 
 
 Each Rpc call also sends a protocol name 
 (called declaringClassprotocolName). This name is usually the same
 as the connection protocol name except in some cases. 
 For example metaProtocols such ProtocolInfoProto which get metainfo
 about the protocol reuse the connection but need to indicate that
 the actual protocol is different (i.e. the protocol is
 ProtocolInfoProto) since they reuse the connection; in this case
 the declaringClassProtocolName field is set to the ProtocolInfoProto
 

Specified by:
getDeclaringClassProtocolNameBytes in interface ProtobufRpcEngineProtos.RequestHeaderProtoOrBuilder

hasClientProtocolVersion

public boolean hasClientProtocolVersion()
required uint64 clientProtocolVersion = 3;
 protocol version of class declaring the called method 
 

Specified by:
hasClientProtocolVersion in interface ProtobufRpcEngineProtos.RequestHeaderProtoOrBuilder

getClientProtocolVersion

public long getClientProtocolVersion()
required uint64 clientProtocolVersion = 3;
 protocol version of class declaring the called method 
 

Specified by:
getClientProtocolVersion in interface ProtobufRpcEngineProtos.RequestHeaderProtoOrBuilder

isInitialized

public final boolean isInitialized()
Specified by:
isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
Overrides:
isInitialized in class com.google.protobuf.GeneratedMessage

writeTo

public void writeTo(com.google.protobuf.CodedOutputStream output)
             throws IOException
Specified by:
writeTo in interface com.google.protobuf.MessageLite
Overrides:
writeTo in class com.google.protobuf.AbstractMessage
Throws:
IOException

getSerializedSize

public int getSerializedSize()
Specified by:
getSerializedSize in interface com.google.protobuf.MessageLite
Overrides:
getSerializedSize in class com.google.protobuf.AbstractMessage

writeReplace

protected Object writeReplace()
                       throws ObjectStreamException
Overrides:
writeReplace in class com.google.protobuf.GeneratedMessage
Throws:
ObjectStreamException

equals

public boolean equals(Object obj)
Specified by:
equals in interface com.google.protobuf.Message
Overrides:
equals in class com.google.protobuf.AbstractMessage

hashCode

public int hashCode()
Specified by:
hashCode in interface com.google.protobuf.Message
Overrides:
hashCode in class com.google.protobuf.AbstractMessage

parseFrom

public static ProtobufRpcEngineProtos.RequestHeaderProto parseFrom(com.google.protobuf.ByteString data)
                                                            throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static ProtobufRpcEngineProtos.RequestHeaderProto parseFrom(com.google.protobuf.ByteString data,
                                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                            throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static ProtobufRpcEngineProtos.RequestHeaderProto parseFrom(byte[] data)
                                                            throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static ProtobufRpcEngineProtos.RequestHeaderProto parseFrom(byte[] data,
                                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                            throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static ProtobufRpcEngineProtos.RequestHeaderProto parseFrom(InputStream input)
                                                            throws IOException
Throws:
IOException

parseFrom

public static ProtobufRpcEngineProtos.RequestHeaderProto parseFrom(InputStream input,
                                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                            throws IOException
Throws:
IOException

parseDelimitedFrom

public static ProtobufRpcEngineProtos.RequestHeaderProto parseDelimitedFrom(InputStream input)
                                                                     throws IOException
Throws:
IOException

parseDelimitedFrom

public static ProtobufRpcEngineProtos.RequestHeaderProto parseDelimitedFrom(InputStream input,
                                                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                     throws IOException
Throws:
IOException

parseFrom

public static ProtobufRpcEngineProtos.RequestHeaderProto parseFrom(com.google.protobuf.CodedInputStream input)
                                                            throws IOException
Throws:
IOException

parseFrom

public static ProtobufRpcEngineProtos.RequestHeaderProto parseFrom(com.google.protobuf.CodedInputStream input,
                                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                            throws IOException
Throws:
IOException

newBuilder

public static ProtobufRpcEngineProtos.RequestHeaderProto.Builder newBuilder()

newBuilderForType

public ProtobufRpcEngineProtos.RequestHeaderProto.Builder newBuilderForType()
Specified by:
newBuilderForType in interface com.google.protobuf.Message
Specified by:
newBuilderForType in interface com.google.protobuf.MessageLite

newBuilder

public static ProtobufRpcEngineProtos.RequestHeaderProto.Builder newBuilder(ProtobufRpcEngineProtos.RequestHeaderProto prototype)

toBuilder

public ProtobufRpcEngineProtos.RequestHeaderProto.Builder toBuilder()
Specified by:
toBuilder in interface com.google.protobuf.Message
Specified by:
toBuilder in interface com.google.protobuf.MessageLite

newBuilderForType

protected ProtobufRpcEngineProtos.RequestHeaderProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
Specified by:
newBuilderForType in class com.google.protobuf.GeneratedMessage


Copyright © 2013 Apache Software Foundation. All Rights Reserved.