@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasTargetVertexName()) { hash = (37 * hash) + TARGET_VERTEX_NAME_FIELD_NUMBER; hash = (53 * hash) + getTargetVertexName().hashCode(); } if (hasTargetInputName()) { hash = (37 * hash) + TARGET_INPUT_NAME_FIELD_NUMBER; hash = (53 * hash) + getTargetInputName().hashCode(); } 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.RootInputInitializerEventProto)) { return super.equals(obj); } org.apache.tez.runtime.api.events.EventProtos.RootInputInitializerEventProto other = (org.apache.tez.runtime.api.events.EventProtos.RootInputInitializerEventProto) obj; boolean result = true; result = result && (hasTargetVertexName() == other.hasTargetVertexName()); if (hasTargetVertexName()) { result = result && getTargetVertexName() .equals(other.getTargetVertexName()); } result = result && (hasTargetInputName() == other.hasTargetInputName()); if (hasTargetInputName()) { result = result && getTargetInputName() .equals(other.getTargetInputName()); } 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.RootInputInitializerEventProto other) { if (other == org.apache.tez.runtime.api.events.EventProtos.RootInputInitializerEventProto.getDefaultInstance()) return this; if (other.hasTargetVertexName()) { bitField0_ |= 0x00000001; targetVertexName_ = other.targetVertexName_; onChanged(); } if (other.hasTargetInputName()) { bitField0_ |= 0x00000002; targetInputName_ = other.targetInputName_; onChanged(); } if (other.hasUserPayload()) { setUserPayload(other.getUserPayload()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }