@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } if (hasSignature()) { hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSignature().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto)) { return super.equals(obj); } org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto other = (org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && (hasSignature() == other.hasSignature()); if (hasSignature()) { result = result && getSignature() .equals(other.getSignature()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
if (header.hasCallerContext()) { callerContext = new CallerContext.Builder(header.getCallerContext().getContext()) .setSignature(header.getCallerContext().getSignature() .toByteArray())
if (header.hasCallerContext()) { callerContext = new CallerContext.Builder(header.getCallerContext().getContext()) .setSignature(header.getCallerContext().getSignature() .toByteArray())
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto)) { return super.equals(obj); } org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto other = (org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && (hasSignature() == other.hasSignature()); if (hasSignature()) { result = result && getSignature() .equals(other.getSignature()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } if (hasSignature()) { hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSignature().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@Override public CallerContext getCallerContext() { ApplicationStateDataProtoOrBuilder p = viaProto ? proto : builder; RpcHeaderProtos.RPCCallerContextProto pbContext = p.getCallerContext(); if (pbContext != null) { CallerContext context = new CallerContext.Builder(pbContext.getContext()) .setSignature(pbContext.getSignature().toByteArray()).build(); return context; } return null; }
/** * <code>required string context = 1;</code> */ public Builder clearContext() { bitField0_ = (bitField0_ & ~0x00000001); context_ = getDefaultInstance().getContext(); onChanged(); return this; } /**
/** * <code>required string context = 1;</code> */ public Builder clearContext() { bitField0_ = (bitField0_ & ~0x00000001); context_ = getDefaultInstance().getContext(); onChanged(); return this; } /**