@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnProtos.PreemptionContainerProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnProtos.PreemptionContainerProto other = (org.apache.hadoop.yarn.proto.YarnProtos.PreemptionContainerProto) obj; boolean result = true; result = result && (hasId() == other.hasId()); if (hasId()) { result = result && getId() .equals(other.getId()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
/** * <code>optional .hadoop.yarn.ContainerIdProto container_id = 1;</code> */ public Builder mergeContainerId(org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto value) { if (containerIdBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && containerId_ != org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance()) { containerId_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.newBuilder(containerId_).mergeFrom(value).buildPartial(); } else { containerId_ = value; } onChanged(); } else { containerIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /**
hash = (53 * hash) + getMasterContainerId().hashCode();
if (hasContainerId()) { hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER; hash = (53 * hash) + getContainerId().hashCode();
if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode();
hash = (53 * hash) + getContainerId().hashCode();
hash = (53 * hash) + getContainerId().hashCode();
hash = (53 * hash) + getContainerId().hashCode();
hash = (53 * hash) + getContainerId().hashCode();
if (hasContainerId()) { hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER; hash = (53 * hash) + getContainerId().hashCode();
if (hasContainerId()) { hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER; hash = (53 * hash) + getContainerId().hashCode();
if (hasContainerId()) { hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER; hash = (53 * hash) + getContainerId().hashCode();
if (hasContainerId()) { hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER; hash = (53 * hash) + getContainerId().hashCode();
if (hasContainerId()) { hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER; hash = (53 * hash) + getContainerId().hashCode();
if (hasContainerId()) { hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER; hash = (53 * hash) + getContainerId().hashCode();
if (hasContainerId()) { hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER; hash = (53 * hash) + getContainerId().hashCode();
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto other = (org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto) obj; boolean result = true; result = result && (hasAppId() == other.hasAppId()); if (hasAppId()) { result = result && getAppId() .equals(other.getAppId()); } result = result && (hasAppAttemptId() == other.hasAppAttemptId()); if (hasAppAttemptId()) { result = result && getAppAttemptId() .equals(other.getAppAttemptId()); } result = result && (hasId() == other.hasId()); if (hasId()) { result = result && (getId() == other.getId()); } 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 (hasApplicationAttemptId()) { hash = (37 * hash) + APPLICATION_ATTEMPT_ID_FIELD_NUMBER; hash = (53 * hash) + getApplicationAttemptId().hashCode(); } if (hasHost()) { hash = (37 * hash) + HOST_FIELD_NUMBER; hash = (53 * hash) + getHost().hashCode(); } if (hasRpcPort()) { hash = (37 * hash) + RPC_PORT_FIELD_NUMBER; hash = (53 * hash) + getRpcPort(); } if (hasMasterContainerId()) { hash = (37 * hash) + MASTER_CONTAINER_ID_FIELD_NUMBER; hash = (53 * hash) + getMasterContainerId().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
private void mergeLocalToBuilder() { if (this.containerId != null && !((ContainerIdPBImpl) containerId).getProto().equals( builder.getId())) { builder.setId(convertToProtoFormat(this.containerId)); } if (this.nodeId != null && !((NodeIdPBImpl) nodeId).getProto().equals( builder.getNodeId())) { builder.setNodeId(convertToProtoFormat(this.nodeId)); } if (this.resource != null && !((ResourcePBImpl) this.resource).getProto().equals( builder.getResource())) { builder.setResource(convertToProtoFormat(this.resource)); } if (this.priority != null && !((PriorityPBImpl) this.priority).getProto().equals( builder.getPriority())) { builder.setPriority(convertToProtoFormat(this.priority)); } if (this.containerToken != null && !((TokenPBImpl) this.containerToken).getProto().equals( builder.getContainerToken())) { builder.setContainerToken(convertToProtoFormat(this.containerToken)); } }
if (hasContainerId()) { hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER; hash = (53 * hash) + getContainerId().hashCode();