public static final class RpcHeaderProtos.RpcResponseHeaderProto.Builder extends com.google.protobuf.GeneratedMessage.Builder<RpcHeaderProtos.RpcResponseHeaderProto.Builder> implements RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
hadoop.common.RpcResponseHeaderProto
Rpc Response Header +------------------------------------------------------------------+ | Rpc total response length in bytes (4 bytes int) | | (sum of next two parts) | +------------------------------------------------------------------+ | RpcResponseHeaderProto - serialized delimited ie has len | +------------------------------------------------------------------+ | if request is successful: | | - RpcResponse - The actual rpc response bytes follow | | the response header | | This response is serialized based on RpcKindProto | | if request fails : | | The rpc response header contains the necessary info | +------------------------------------------------------------------+ Note that rpc response header is also used when connection setup fails. Ie the response looks like a rpc response with a fake callId.
| Modifier and Type | Method and Description |
|---|---|
RpcHeaderProtos.RpcResponseHeaderProto |
build() |
RpcHeaderProtos.RpcResponseHeaderProto |
buildPartial() |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
clear() |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
clearCallId()
required uint32 callId = 1; |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
clearClientId()
optional bytes clientId = 7; |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
clearErrorDetail()
optional .hadoop.common.RpcResponseHeaderProto.RpcErrorCodeProto errorDetail = 6; |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
clearErrorMsg()
optional string errorMsg = 5; |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
clearExceptionClassName()
optional string exceptionClassName = 4; |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
clearRetryCount()
optional sint32 retryCount = 8 [default = -1]; |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
clearServerIpcVersionNum()
optional uint32 serverIpcVersionNum = 3; |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
clearStateId()
optional int64 stateId = 9; |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
clearStatus()
required .hadoop.common.RpcResponseHeaderProto.RpcStatusProto status = 2; |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
clone() |
int |
getCallId()
required uint32 callId = 1; |
com.google.protobuf.ByteString |
getClientId()
optional bytes clientId = 7; |
RpcHeaderProtos.RpcResponseHeaderProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto |
getErrorDetail()
optional .hadoop.common.RpcResponseHeaderProto.RpcErrorCodeProto errorDetail = 6; |
String |
getErrorMsg()
optional string errorMsg = 5; |
com.google.protobuf.ByteString |
getErrorMsgBytes()
optional string errorMsg = 5; |
String |
getExceptionClassName()
optional string exceptionClassName = 4; |
com.google.protobuf.ByteString |
getExceptionClassNameBytes()
optional string exceptionClassName = 4; |
int |
getRetryCount()
optional sint32 retryCount = 8 [default = -1]; |
int |
getServerIpcVersionNum()
optional uint32 serverIpcVersionNum = 3; |
long |
getStateId()
optional int64 stateId = 9; |
RpcHeaderProtos.RpcResponseHeaderProto.RpcStatusProto |
getStatus()
required .hadoop.common.RpcResponseHeaderProto.RpcStatusProto status = 2; |
boolean |
hasCallId()
required uint32 callId = 1; |
boolean |
hasClientId()
optional bytes clientId = 7; |
boolean |
hasErrorDetail()
optional .hadoop.common.RpcResponseHeaderProto.RpcErrorCodeProto errorDetail = 6; |
boolean |
hasErrorMsg()
optional string errorMsg = 5; |
boolean |
hasExceptionClassName()
optional string exceptionClassName = 4; |
boolean |
hasRetryCount()
optional sint32 retryCount = 8 [default = -1]; |
boolean |
hasServerIpcVersionNum()
optional uint32 serverIpcVersionNum = 3; |
boolean |
hasStateId()
optional int64 stateId = 9; |
boolean |
hasStatus()
required .hadoop.common.RpcResponseHeaderProto.RpcStatusProto status = 2; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
mergeFrom(com.google.protobuf.Message other) |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
mergeFrom(RpcHeaderProtos.RpcResponseHeaderProto other) |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
setCallId(int value)
required uint32 callId = 1; |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
setClientId(com.google.protobuf.ByteString value)
optional bytes clientId = 7; |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
setErrorDetail(RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto value)
optional .hadoop.common.RpcResponseHeaderProto.RpcErrorCodeProto errorDetail = 6; |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
setErrorMsg(String value)
optional string errorMsg = 5; |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
setErrorMsgBytes(com.google.protobuf.ByteString value)
optional string errorMsg = 5; |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
setExceptionClassName(String value)
optional string exceptionClassName = 4; |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
setExceptionClassNameBytes(com.google.protobuf.ByteString value)
optional string exceptionClassName = 4; |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
setRetryCount(int value)
optional sint32 retryCount = 8 [default = -1]; |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
setServerIpcVersionNum(int value)
optional uint32 serverIpcVersionNum = 3; |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
setStateId(long value)
optional int64 stateId = 9; |
RpcHeaderProtos.RpcResponseHeaderProto.Builder |
setStatus(RpcHeaderProtos.RpcResponseHeaderProto.RpcStatusProto value)
required .hadoop.common.RpcResponseHeaderProto.RpcStatusProto status = 2; |
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldsfindInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionaddAll, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<RpcHeaderProtos.RpcResponseHeaderProto.Builder>public RpcHeaderProtos.RpcResponseHeaderProto.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<RpcHeaderProtos.RpcResponseHeaderProto.Builder>public RpcHeaderProtos.RpcResponseHeaderProto.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessage.Builder<RpcHeaderProtos.RpcResponseHeaderProto.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<RpcHeaderProtos.RpcResponseHeaderProto.Builder>public RpcHeaderProtos.RpcResponseHeaderProto getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RpcHeaderProtos.RpcResponseHeaderProto build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RpcHeaderProtos.RpcResponseHeaderProto buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RpcHeaderProtos.RpcResponseHeaderProto.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RpcHeaderProtos.RpcResponseHeaderProto.Builder>public RpcHeaderProtos.RpcResponseHeaderProto.Builder mergeFrom(RpcHeaderProtos.RpcResponseHeaderProto other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<RpcHeaderProtos.RpcResponseHeaderProto.Builder>public RpcHeaderProtos.RpcResponseHeaderProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RpcHeaderProtos.RpcResponseHeaderProto.Builder>IOExceptionpublic boolean hasCallId()
required uint32 callId = 1;
callId used in Request
hasCallId in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic int getCallId()
required uint32 callId = 1;
callId used in Request
getCallId in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic RpcHeaderProtos.RpcResponseHeaderProto.Builder setCallId(int value)
required uint32 callId = 1;
callId used in Request
public RpcHeaderProtos.RpcResponseHeaderProto.Builder clearCallId()
required uint32 callId = 1;
callId used in Request
public boolean hasStatus()
required .hadoop.common.RpcResponseHeaderProto.RpcStatusProto status = 2;hasStatus in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic RpcHeaderProtos.RpcResponseHeaderProto.RpcStatusProto getStatus()
required .hadoop.common.RpcResponseHeaderProto.RpcStatusProto status = 2;getStatus in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic RpcHeaderProtos.RpcResponseHeaderProto.Builder setStatus(RpcHeaderProtos.RpcResponseHeaderProto.RpcStatusProto value)
required .hadoop.common.RpcResponseHeaderProto.RpcStatusProto status = 2;public RpcHeaderProtos.RpcResponseHeaderProto.Builder clearStatus()
required .hadoop.common.RpcResponseHeaderProto.RpcStatusProto status = 2;public boolean hasServerIpcVersionNum()
optional uint32 serverIpcVersionNum = 3;
Sent if success or fail
hasServerIpcVersionNum in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic int getServerIpcVersionNum()
optional uint32 serverIpcVersionNum = 3;
Sent if success or fail
getServerIpcVersionNum in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic RpcHeaderProtos.RpcResponseHeaderProto.Builder setServerIpcVersionNum(int value)
optional uint32 serverIpcVersionNum = 3;
Sent if success or fail
public RpcHeaderProtos.RpcResponseHeaderProto.Builder clearServerIpcVersionNum()
optional uint32 serverIpcVersionNum = 3;
Sent if success or fail
public boolean hasExceptionClassName()
optional string exceptionClassName = 4;
if request fails
hasExceptionClassName in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic String getExceptionClassName()
optional string exceptionClassName = 4;
if request fails
getExceptionClassName in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic com.google.protobuf.ByteString getExceptionClassNameBytes()
optional string exceptionClassName = 4;
if request fails
getExceptionClassNameBytes in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic RpcHeaderProtos.RpcResponseHeaderProto.Builder setExceptionClassName(String value)
optional string exceptionClassName = 4;
if request fails
public RpcHeaderProtos.RpcResponseHeaderProto.Builder clearExceptionClassName()
optional string exceptionClassName = 4;
if request fails
public RpcHeaderProtos.RpcResponseHeaderProto.Builder setExceptionClassNameBytes(com.google.protobuf.ByteString value)
optional string exceptionClassName = 4;
if request fails
public boolean hasErrorMsg()
optional string errorMsg = 5;
if request fails, often contains strack trace
hasErrorMsg in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic String getErrorMsg()
optional string errorMsg = 5;
if request fails, often contains strack trace
getErrorMsg in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic com.google.protobuf.ByteString getErrorMsgBytes()
optional string errorMsg = 5;
if request fails, often contains strack trace
getErrorMsgBytes in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic RpcHeaderProtos.RpcResponseHeaderProto.Builder setErrorMsg(String value)
optional string errorMsg = 5;
if request fails, often contains strack trace
public RpcHeaderProtos.RpcResponseHeaderProto.Builder clearErrorMsg()
optional string errorMsg = 5;
if request fails, often contains strack trace
public RpcHeaderProtos.RpcResponseHeaderProto.Builder setErrorMsgBytes(com.google.protobuf.ByteString value)
optional string errorMsg = 5;
if request fails, often contains strack trace
public boolean hasErrorDetail()
optional .hadoop.common.RpcResponseHeaderProto.RpcErrorCodeProto errorDetail = 6;
in case of error
hasErrorDetail in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto getErrorDetail()
optional .hadoop.common.RpcResponseHeaderProto.RpcErrorCodeProto errorDetail = 6;
in case of error
getErrorDetail in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic RpcHeaderProtos.RpcResponseHeaderProto.Builder setErrorDetail(RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto value)
optional .hadoop.common.RpcResponseHeaderProto.RpcErrorCodeProto errorDetail = 6;
in case of error
public RpcHeaderProtos.RpcResponseHeaderProto.Builder clearErrorDetail()
optional .hadoop.common.RpcResponseHeaderProto.RpcErrorCodeProto errorDetail = 6;
in case of error
public boolean hasClientId()
optional bytes clientId = 7;
Globally unique client ID
hasClientId in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic com.google.protobuf.ByteString getClientId()
optional bytes clientId = 7;
Globally unique client ID
getClientId in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic RpcHeaderProtos.RpcResponseHeaderProto.Builder setClientId(com.google.protobuf.ByteString value)
optional bytes clientId = 7;
Globally unique client ID
public RpcHeaderProtos.RpcResponseHeaderProto.Builder clearClientId()
optional bytes clientId = 7;
Globally unique client ID
public boolean hasRetryCount()
optional sint32 retryCount = 8 [default = -1];hasRetryCount in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic int getRetryCount()
optional sint32 retryCount = 8 [default = -1];getRetryCount in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic RpcHeaderProtos.RpcResponseHeaderProto.Builder setRetryCount(int value)
optional sint32 retryCount = 8 [default = -1];public RpcHeaderProtos.RpcResponseHeaderProto.Builder clearRetryCount()
optional sint32 retryCount = 8 [default = -1];public boolean hasStateId()
optional int64 stateId = 9;
The last written Global State ID
hasStateId in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic long getStateId()
optional int64 stateId = 9;
The last written Global State ID
getStateId in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic RpcHeaderProtos.RpcResponseHeaderProto.Builder setStateId(long value)
optional int64 stateId = 9;
The last written Global State ID
public RpcHeaderProtos.RpcResponseHeaderProto.Builder clearStateId()
optional int64 stateId = 9;
The last written Global State ID
Copyright © 2019 Apache Software Foundation. All Rights Reserved.