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 |
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; |
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 |
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 |
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, setUnknownFields
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
addAll, newUninitializedMessageException
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<RpcHeaderProtos.RpcResponseHeaderProto.Builder>
public RpcHeaderProtos.RpcResponseHeaderProto.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessage.Builder<RpcHeaderProtos.RpcResponseHeaderProto.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<RpcHeaderProtos.RpcResponseHeaderProto.Builder>
public RpcHeaderProtos.RpcResponseHeaderProto getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public RpcHeaderProtos.RpcResponseHeaderProto build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public RpcHeaderProtos.RpcResponseHeaderProto buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public RpcHeaderProtos.RpcResponseHeaderProto.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<RpcHeaderProtos.RpcResponseHeaderProto.Builder>
IOException
public boolean hasCallId()
required uint32 callId = 1;
callId used in Request
hasCallId
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public int getCallId()
required uint32 callId = 1;
callId used in Request
getCallId
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public 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.RpcResponseHeaderProtoOrBuilder
public RpcHeaderProtos.RpcResponseHeaderProto.RpcStatusProto getStatus()
required .hadoop.common.RpcResponseHeaderProto.RpcStatusProto status = 2;
getStatus
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public 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.RpcResponseHeaderProtoOrBuilder
public int getServerIpcVersionNum()
optional uint32 serverIpcVersionNum = 3;
Sent if success or fail
getServerIpcVersionNum
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public 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.RpcResponseHeaderProtoOrBuilder
public String getExceptionClassName()
optional string exceptionClassName = 4;
if request fails
getExceptionClassName
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public com.google.protobuf.ByteString getExceptionClassNameBytes()
optional string exceptionClassName = 4;
if request fails
getExceptionClassNameBytes
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public 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.RpcResponseHeaderProtoOrBuilder
public String getErrorMsg()
optional string errorMsg = 5;
if request fails, often contains strack trace
getErrorMsg
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public com.google.protobuf.ByteString getErrorMsgBytes()
optional string errorMsg = 5;
if request fails, often contains strack trace
getErrorMsgBytes
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public 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.RpcResponseHeaderProtoOrBuilder
public RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto getErrorDetail()
optional .hadoop.common.RpcResponseHeaderProto.RpcErrorCodeProto errorDetail = 6;
in case of error
getErrorDetail
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public 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.RpcResponseHeaderProtoOrBuilder
public com.google.protobuf.ByteString getClientId()
optional bytes clientId = 7;
Globally unique client ID
getClientId
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public 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.RpcResponseHeaderProtoOrBuilder
public int getRetryCount()
optional sint32 retryCount = 8 [default = -1];
getRetryCount
in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
public RpcHeaderProtos.RpcResponseHeaderProto.Builder setRetryCount(int value)
optional sint32 retryCount = 8 [default = -1];
public RpcHeaderProtos.RpcResponseHeaderProto.Builder clearRetryCount()
optional sint32 retryCount = 8 [default = -1];
Copyright © 2017 Apache Software Foundation. All Rights Reserved.