public static final class ProtobufRpcEngineProtos.RequestHeaderProto extends com.google.protobuf.GeneratedMessage implements ProtobufRpcEngineProtos.RequestHeaderProtoOrBuilder
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.
Modifier and Type | Class and Description |
---|---|
static class |
ProtobufRpcEngineProtos.RequestHeaderProto.Builder
Protobuf type
hadoop.common.RequestHeaderProto |
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>
Modifier and Type | Field and Description |
---|---|
static int |
CLIENTPROTOCOLVERSION_FIELD_NUMBER |
static int |
DECLARINGCLASSPROTOCOLNAME_FIELD_NUMBER |
static int |
METHODNAME_FIELD_NUMBER |
static com.google.protobuf.Parser<ProtobufRpcEngineProtos.RequestHeaderProto> |
PARSER |
Modifier and Type | Method and Description |
---|---|
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) |
getAllFields, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, hasField, makeExtensionsImmutable, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownField
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static com.google.protobuf.Parser<ProtobufRpcEngineProtos.RequestHeaderProto> PARSER
public static final int METHODNAME_FIELD_NUMBER
public static final int DECLARINGCLASSPROTOCOLNAME_FIELD_NUMBER
public static final int CLIENTPROTOCOLVERSION_FIELD_NUMBER
public static ProtobufRpcEngineProtos.RequestHeaderProto getDefaultInstance()
public ProtobufRpcEngineProtos.RequestHeaderProto getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<ProtobufRpcEngineProtos.RequestHeaderProto> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public boolean hasMethodName()
required string methodName = 1;
Name of the RPC method
hasMethodName
in interface ProtobufRpcEngineProtos.RequestHeaderProtoOrBuilder
public String getMethodName()
required string methodName = 1;
Name of the RPC method
getMethodName
in interface ProtobufRpcEngineProtos.RequestHeaderProtoOrBuilder
public com.google.protobuf.ByteString getMethodNameBytes()
required string methodName = 1;
Name of the RPC method
getMethodNameBytes
in interface ProtobufRpcEngineProtos.RequestHeaderProtoOrBuilder
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
hasDeclaringClassProtocolName
in interface ProtobufRpcEngineProtos.RequestHeaderProtoOrBuilder
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
getDeclaringClassProtocolName
in interface ProtobufRpcEngineProtos.RequestHeaderProtoOrBuilder
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
getDeclaringClassProtocolNameBytes
in interface ProtobufRpcEngineProtos.RequestHeaderProtoOrBuilder
public boolean hasClientProtocolVersion()
required uint64 clientProtocolVersion = 3;
protocol version of class declaring the called method
hasClientProtocolVersion
in interface ProtobufRpcEngineProtos.RequestHeaderProtoOrBuilder
public long getClientProtocolVersion()
required uint64 clientProtocolVersion = 3;
protocol version of class declaring the called method
getClientProtocolVersion
in interface ProtobufRpcEngineProtos.RequestHeaderProtoOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static ProtobufRpcEngineProtos.RequestHeaderProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ProtobufRpcEngineProtos.RequestHeaderProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ProtobufRpcEngineProtos.RequestHeaderProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ProtobufRpcEngineProtos.RequestHeaderProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ProtobufRpcEngineProtos.RequestHeaderProto parseFrom(InputStream input) throws IOException
IOException
public static ProtobufRpcEngineProtos.RequestHeaderProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ProtobufRpcEngineProtos.RequestHeaderProto parseDelimitedFrom(InputStream input) throws IOException
IOException
public static ProtobufRpcEngineProtos.RequestHeaderProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ProtobufRpcEngineProtos.RequestHeaderProto parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static ProtobufRpcEngineProtos.RequestHeaderProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ProtobufRpcEngineProtos.RequestHeaderProto.Builder newBuilder()
public ProtobufRpcEngineProtos.RequestHeaderProto.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static ProtobufRpcEngineProtos.RequestHeaderProto.Builder newBuilder(ProtobufRpcEngineProtos.RequestHeaderProto prototype)
public ProtobufRpcEngineProtos.RequestHeaderProto.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected ProtobufRpcEngineProtos.RequestHeaderProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2017 Apache Software Foundation. All Rights Reserved.