@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasApplicationIdString()) { hash = (37 * hash) + APPLICATION_ID_STRING_FIELD_NUMBER; hash = (53 * hash) + getApplicationIdString().hashCode(); } if (hasDagIndex()) { hash = (37 * hash) + DAG_INDEX_FIELD_NUMBER; hash = (53 * hash) + getDagIndex(); } if (hasAppAttemptNumber()) { hash = (37 * hash) + APP_ATTEMPT_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getAppAttemptNumber(); } 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.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.QueryIdentifierProto)) { return super.equals(obj); } org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.QueryIdentifierProto other = (org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.QueryIdentifierProto) obj; boolean result = true; result = result && (hasApplicationIdString() == other.hasApplicationIdString()); if (hasApplicationIdString()) { result = result && getApplicationIdString() .equals(other.getApplicationIdString()); } result = result && (hasDagIndex() == other.hasDagIndex()); if (hasDagIndex()) { result = result && (getDagIndex() == other.getDagIndex()); } result = result && (hasAppAttemptNumber() == other.hasAppAttemptNumber()); if (hasAppAttemptNumber()) { result = result && (getAppAttemptNumber() == other.getAppAttemptNumber()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public Builder mergeFrom(org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.QueryIdentifierProto other) { if (other == org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.QueryIdentifierProto.getDefaultInstance()) return this; if (other.hasApplicationIdString()) { bitField0_ |= 0x00000001; applicationIdString_ = other.applicationIdString_; onChanged(); } if (other.hasDagIndex()) { setDagIndex(other.getDagIndex()); } if (other.hasAppAttemptNumber()) { setAppAttemptNumber(other.getAppAttemptNumber()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }