public static final class RpcHeaderProtos.RpcResponseHeaderProto.Builder extends <any> implements RpcHeaderProtos.RpcResponseHeaderProtoOrBuilder
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.Protobuf type
hadoop.common.RpcResponseHeaderProtopublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public RpcHeaderProtos.RpcResponseHeaderProto.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.MessageOrBuilderpublic RpcHeaderProtos.RpcResponseHeaderProto getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RpcHeaderProtos.RpcResponseHeaderProto build()
public RpcHeaderProtos.RpcResponseHeaderProto buildPartial()
public RpcHeaderProtos.RpcResponseHeaderProto.Builder clone()
public RpcHeaderProtos.RpcResponseHeaderProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public RpcHeaderProtos.RpcResponseHeaderProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public RpcHeaderProtos.RpcResponseHeaderProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public RpcHeaderProtos.RpcResponseHeaderProto.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
public RpcHeaderProtos.RpcResponseHeaderProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public RpcHeaderProtos.RpcResponseHeaderProto.Builder mergeFrom(com.google.protobuf.Message other)
public RpcHeaderProtos.RpcResponseHeaderProto.Builder mergeFrom(RpcHeaderProtos.RpcResponseHeaderProto other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderpublic RpcHeaderProtos.RpcResponseHeaderProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic boolean hasCallId()
callId used in Request
required uint32 callId = 1;hasCallId in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic int getCallId()
callId used in Request
required uint32 callId = 1;getCallId in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic RpcHeaderProtos.RpcResponseHeaderProto.Builder setCallId(int value)
callId used in Request
required uint32 callId = 1;public RpcHeaderProtos.RpcResponseHeaderProto.Builder clearCallId()
callId used in Request
required uint32 callId = 1;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()
Sent if success or fail
optional uint32 serverIpcVersionNum = 3;hasServerIpcVersionNum in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic int getServerIpcVersionNum()
Sent if success or fail
optional uint32 serverIpcVersionNum = 3;getServerIpcVersionNum in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic RpcHeaderProtos.RpcResponseHeaderProto.Builder setServerIpcVersionNum(int value)
Sent if success or fail
optional uint32 serverIpcVersionNum = 3;public RpcHeaderProtos.RpcResponseHeaderProto.Builder clearServerIpcVersionNum()
Sent if success or fail
optional uint32 serverIpcVersionNum = 3;public boolean hasExceptionClassName()
if request fails
optional string exceptionClassName = 4;hasExceptionClassName in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic String getExceptionClassName()
if request fails
optional string exceptionClassName = 4;getExceptionClassName in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic com.google.protobuf.ByteString getExceptionClassNameBytes()
if request fails
optional string exceptionClassName = 4;getExceptionClassNameBytes in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic RpcHeaderProtos.RpcResponseHeaderProto.Builder setExceptionClassName(String value)
if request fails
optional string exceptionClassName = 4;public RpcHeaderProtos.RpcResponseHeaderProto.Builder clearExceptionClassName()
if request fails
optional string exceptionClassName = 4;public RpcHeaderProtos.RpcResponseHeaderProto.Builder setExceptionClassNameBytes(com.google.protobuf.ByteString value)
if request fails
optional string exceptionClassName = 4;public boolean hasErrorMsg()
if request fails, often contains strack trace
optional string errorMsg = 5;hasErrorMsg in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic String getErrorMsg()
if request fails, often contains strack trace
optional string errorMsg = 5;getErrorMsg in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic com.google.protobuf.ByteString getErrorMsgBytes()
if request fails, often contains strack trace
optional string errorMsg = 5;getErrorMsgBytes in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic RpcHeaderProtos.RpcResponseHeaderProto.Builder setErrorMsg(String value)
if request fails, often contains strack trace
optional string errorMsg = 5;public RpcHeaderProtos.RpcResponseHeaderProto.Builder clearErrorMsg()
if request fails, often contains strack trace
optional string errorMsg = 5;public RpcHeaderProtos.RpcResponseHeaderProto.Builder setErrorMsgBytes(com.google.protobuf.ByteString value)
if request fails, often contains strack trace
optional string errorMsg = 5;public boolean hasErrorDetail()
in case of error
optional .hadoop.common.RpcResponseHeaderProto.RpcErrorCodeProto errorDetail = 6;hasErrorDetail in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto getErrorDetail()
in case of error
optional .hadoop.common.RpcResponseHeaderProto.RpcErrorCodeProto errorDetail = 6;getErrorDetail in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic RpcHeaderProtos.RpcResponseHeaderProto.Builder setErrorDetail(RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto value)
in case of error
optional .hadoop.common.RpcResponseHeaderProto.RpcErrorCodeProto errorDetail = 6;public RpcHeaderProtos.RpcResponseHeaderProto.Builder clearErrorDetail()
in case of error
optional .hadoop.common.RpcResponseHeaderProto.RpcErrorCodeProto errorDetail = 6;public boolean hasClientId()
Globally unique client ID
optional bytes clientId = 7;hasClientId in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic com.google.protobuf.ByteString getClientId()
Globally unique client ID
optional bytes clientId = 7;getClientId in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic RpcHeaderProtos.RpcResponseHeaderProto.Builder setClientId(com.google.protobuf.ByteString value)
Globally unique client ID
optional bytes clientId = 7;public RpcHeaderProtos.RpcResponseHeaderProto.Builder clearClientId()
Globally unique client ID
optional bytes clientId = 7;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()
The last written Global State ID
optional int64 stateId = 9;hasStateId in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic long getStateId()
The last written Global State ID
optional int64 stateId = 9;getStateId in interface RpcHeaderProtos.RpcResponseHeaderProtoOrBuilderpublic RpcHeaderProtos.RpcResponseHeaderProto.Builder setStateId(long value)
The last written Global State ID
optional int64 stateId = 9;public RpcHeaderProtos.RpcResponseHeaderProto.Builder clearStateId()
The last written Global State ID
optional int64 stateId = 9;public final RpcHeaderProtos.RpcResponseHeaderProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final RpcHeaderProtos.RpcResponseHeaderProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Copyright © 2008–2020 Apache Software Foundation. All rights reserved.