@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasConnectedVertexName()) { hash = (37 * hash) + CONNECTED_VERTEX_NAME_FIELD_NUMBER; hash = (53 * hash) + getConnectedVertexName().hashCode(); } if (hasIoDescriptor()) { hash = (37 * hash) + IO_DESCRIPTOR_FIELD_NUMBER; hash = (53 * hash) + getIoDescriptor().hashCode(); } if (hasPhysicalEdgeCount()) { hash = (37 * hash) + PHYSICAL_EDGE_COUNT_FIELD_NUMBER; hash = (53 * hash) + getPhysicalEdgeCount(); } 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.IOSpecProto)) { return super.equals(obj); } org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.IOSpecProto other = (org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.IOSpecProto) obj; boolean result = true; result = result && (hasConnectedVertexName() == other.hasConnectedVertexName()); if (hasConnectedVertexName()) { result = result && getConnectedVertexName() .equals(other.getConnectedVertexName()); } result = result && (hasIoDescriptor() == other.hasIoDescriptor()); if (hasIoDescriptor()) { result = result && getIoDescriptor() .equals(other.getIoDescriptor()); } result = result && (hasPhysicalEdgeCount() == other.hasPhysicalEdgeCount()); if (hasPhysicalEdgeCount()) { result = result && (getPhysicalEdgeCount() == other.getPhysicalEdgeCount()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public Builder mergeFrom(org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.IOSpecProto other) { if (other == org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.IOSpecProto.getDefaultInstance()) return this; if (other.hasConnectedVertexName()) { bitField0_ |= 0x00000001; connectedVertexName_ = other.connectedVertexName_; onChanged(); } if (other.hasIoDescriptor()) { mergeIoDescriptor(other.getIoDescriptor()); } if (other.hasPhysicalEdgeCount()) { setPhysicalEdgeCount(other.getPhysicalEdgeCount()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }