@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId(); } if (hasClusterTimestamp()) { hash = (37 * hash) + CLUSTER_TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + hashLong(getClusterTimestamp()); } 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.yarn.proto.YarnProtos.ApplicationIdProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto other = (org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto) obj; boolean result = true; result = result && (hasId() == other.hasId()); if (hasId()) { result = result && (getId() == other.getId()); } result = result && (hasClusterTimestamp() == other.hasClusterTimestamp()); if (hasClusterTimestamp()) { result = result && (getClusterTimestamp() == other.getClusterTimestamp()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto other) { if (other == org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasClusterTimestamp()) { setClusterTimestamp(other.getClusterTimestamp()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }