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

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

public static final class ProtobufRpcEngineProtos.RequestHeaderProto.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ProtobufRpcEngineProtos.RequestHeaderProto.Builder>
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. 
 


Method Summary
 ProtobufRpcEngineProtos.RequestHeaderProto build()
           
 ProtobufRpcEngineProtos.RequestHeaderProto buildPartial()
           
 ProtobufRpcEngineProtos.RequestHeaderProto.Builder clear()
           
 ProtobufRpcEngineProtos.RequestHeaderProto.Builder clearClientProtocolVersion()
          required uint64 clientProtocolVersion = 3;
 ProtobufRpcEngineProtos.RequestHeaderProto.Builder clearDeclaringClassProtocolName()
          required string declaringClassProtocolName = 2;
 ProtobufRpcEngineProtos.RequestHeaderProto.Builder clearMethodName()
          required string methodName = 1;
 ProtobufRpcEngineProtos.RequestHeaderProto.Builder clone()
           
 long getClientProtocolVersion()
          required uint64 clientProtocolVersion = 3;
 String getDeclaringClassProtocolName()
          required string declaringClassProtocolName = 2;
 com.google.protobuf.ByteString getDeclaringClassProtocolNameBytes()
          required string declaringClassProtocolName = 2;
 ProtobufRpcEngineProtos.RequestHeaderProto getDefaultInstanceForType()
           
static com.google.protobuf.Descriptors.Descriptor getDescriptor()
           
 com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
           
 String getMethodName()
          required string methodName = 1;
 com.google.protobuf.ByteString getMethodNameBytes()
          required string methodName = 1;
 boolean hasClientProtocolVersion()
          required uint64 clientProtocolVersion = 3;
 boolean hasDeclaringClassProtocolName()
          required string declaringClassProtocolName = 2;
 boolean hasMethodName()
          required string methodName = 1;
protected  com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
           
 boolean isInitialized()
           
 ProtobufRpcEngineProtos.RequestHeaderProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
 ProtobufRpcEngineProtos.RequestHeaderProto.Builder mergeFrom(com.google.protobuf.Message other)
           
 ProtobufRpcEngineProtos.RequestHeaderProto.Builder mergeFrom(ProtobufRpcEngineProtos.RequestHeaderProto other)
           
 ProtobufRpcEngineProtos.RequestHeaderProto.Builder setClientProtocolVersion(long value)
          required uint64 clientProtocolVersion = 3;
 ProtobufRpcEngineProtos.RequestHeaderProto.Builder setDeclaringClassProtocolName(String value)
          required string declaringClassProtocolName = 2;
 ProtobufRpcEngineProtos.RequestHeaderProto.Builder setDeclaringClassProtocolNameBytes(com.google.protobuf.ByteString value)
          required string declaringClassProtocolName = 2;
 ProtobufRpcEngineProtos.RequestHeaderProto.Builder setMethodName(String value)
          required string methodName = 1;
 ProtobufRpcEngineProtos.RequestHeaderProto.Builder setMethodNameBytes(com.google.protobuf.ByteString value)
          required string methodName = 1;
 
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
 
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
 
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, newUninitializedMessageException
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField
 

Method Detail

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.Builder<ProtobufRpcEngineProtos.RequestHeaderProto.Builder>

clear

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

clone

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

getDescriptorForType

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Specified by:
getDescriptorForType in interface com.google.protobuf.Message.Builder
Specified by:
getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
Overrides:
getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ProtobufRpcEngineProtos.RequestHeaderProto.Builder>

getDefaultInstanceForType

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

build

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

buildPartial

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

mergeFrom

public ProtobufRpcEngineProtos.RequestHeaderProto.Builder mergeFrom(com.google.protobuf.Message other)
Specified by:
mergeFrom in interface com.google.protobuf.Message.Builder
Overrides:
mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ProtobufRpcEngineProtos.RequestHeaderProto.Builder>

mergeFrom

public ProtobufRpcEngineProtos.RequestHeaderProto.Builder mergeFrom(ProtobufRpcEngineProtos.RequestHeaderProto other)

isInitialized

public final boolean isInitialized()
Specified by:
isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
Overrides:
isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ProtobufRpcEngineProtos.RequestHeaderProto.Builder>

mergeFrom

public ProtobufRpcEngineProtos.RequestHeaderProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input,
                                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                             throws IOException
Specified by:
mergeFrom in interface com.google.protobuf.Message.Builder
Specified by:
mergeFrom in interface com.google.protobuf.MessageLite.Builder
Overrides:
mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ProtobufRpcEngineProtos.RequestHeaderProto.Builder>
Throws:
IOException

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

setMethodName

public ProtobufRpcEngineProtos.RequestHeaderProto.Builder setMethodName(String value)
required string methodName = 1;
 Name of the RPC method 
 


clearMethodName

public ProtobufRpcEngineProtos.RequestHeaderProto.Builder clearMethodName()
required string methodName = 1;
 Name of the RPC method 
 


setMethodNameBytes

public ProtobufRpcEngineProtos.RequestHeaderProto.Builder setMethodNameBytes(com.google.protobuf.ByteString value)
required string methodName = 1;
 Name of the RPC method 
 


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

setDeclaringClassProtocolName

public ProtobufRpcEngineProtos.RequestHeaderProto.Builder setDeclaringClassProtocolName(String value)
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
 


clearDeclaringClassProtocolName

public ProtobufRpcEngineProtos.RequestHeaderProto.Builder clearDeclaringClassProtocolName()
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
 


setDeclaringClassProtocolNameBytes

public ProtobufRpcEngineProtos.RequestHeaderProto.Builder setDeclaringClassProtocolNameBytes(com.google.protobuf.ByteString value)
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
 


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

setClientProtocolVersion

public ProtobufRpcEngineProtos.RequestHeaderProto.Builder setClientProtocolVersion(long value)
required uint64 clientProtocolVersion = 3;
 protocol version of class declaring the called method 
 


clearClientProtocolVersion

public ProtobufRpcEngineProtos.RequestHeaderProto.Builder clearClientProtocolVersion()
required uint64 clientProtocolVersion = 3;
 protocol version of class declaring the called method 
 



Copyright © 2014 Apache Software Foundation. All Rights Reserved.