@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BUS_ID_FIELD_NUMBER; hash = (53 * hash) + getBusId(); hash = (37 * hash) + NUMA_NODE_FIELD_NUMBER; hash = (53 * hash) + getNumaNode(); if (hasLinks()) { hash = (37 * hash) + LINKS_FIELD_NUMBER; hash = (53 * hash) + getLinks().hashCode(); } hash = (29 * hash) + unknownFields.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.tensorflow.framework.DeviceLocality)) { return super.equals(obj); } org.tensorflow.framework.DeviceLocality other = (org.tensorflow.framework.DeviceLocality) obj; boolean result = true; result = result && (getBusId() == other.getBusId()); result = result && (getNumaNode() == other.getNumaNode()); result = result && (hasLinks() == other.hasLinks()); if (hasLinks()) { result = result && getLinks() .equals(other.getLinks()); } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(org.tensorflow.framework.DeviceLocality other) { if (other == org.tensorflow.framework.DeviceLocality.getDefaultInstance()) return this; if (other.getBusId() != 0) { setBusId(other.getBusId()); } if (other.getNumaNode() != 0) { setNumaNode(other.getNumaNode()); } if (other.hasLinks()) { mergeLinks(other.getLinks()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }