@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasSourceIndex()) { hash = (37 * hash) + SOURCE_INDEX_FIELD_NUMBER; hash = (53 * hash) + getSourceIndex(); } if (hasTargetIndex()) { hash = (37 * hash) + TARGET_INDEX_FIELD_NUMBER; hash = (53 * hash) + getTargetIndex(); } if (hasUserPayload()) { hash = (37 * hash) + USER_PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getUserPayload().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.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto)) { return super.equals(obj); } org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto other = (org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto) obj; boolean result = true; result = result && (hasSourceIndex() == other.hasSourceIndex()); if (hasSourceIndex()) { result = result && (getSourceIndex() == other.getSourceIndex()); } result = result && (hasTargetIndex() == other.hasTargetIndex()); if (hasTargetIndex()) { result = result && (getTargetIndex() == other.getTargetIndex()); } result = result && (hasUserPayload() == other.hasUserPayload()); if (hasUserPayload()) { result = result && getUserPayload() .equals(other.getUserPayload()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public Builder mergeFrom(org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto other) { if (other == org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto.getDefaultInstance()) return this; if (other.hasSourceIndex()) { setSourceIndex(other.getSourceIndex()); } if (other.hasTargetIndex()) { setTargetIndex(other.getTargetIndex()); } if (other.hasUserPayload()) { setUserPayload(other.getUserPayload()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }