@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.framework.GraphDef)) { return super.equals(obj); } org.tensorflow.framework.GraphDef other = (org.tensorflow.framework.GraphDef) obj; boolean result = true; result = result && getNodeList() .equals(other.getNodeList()); result = result && (hasVersions() == other.hasVersions()); if (hasVersions()) { result = result && getVersions() .equals(other.getVersions()); } result = result && (getVersion() == other.getVersion()); result = result && (hasLibrary() == other.hasLibrary()); if (hasLibrary()) { result = result && getLibrary() .equals(other.getLibrary()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getNodeCount() > 0) { hash = (37 * hash) + NODE_FIELD_NUMBER; hash = (53 * hash) + getNodeList().hashCode(); } if (hasVersions()) { hash = (37 * hash) + VERSIONS_FIELD_NUMBER; hash = (53 * hash) + getVersions().hashCode(); } hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion(); if (hasLibrary()) { hash = (37 * hash) + LIBRARY_FIELD_NUMBER; hash = (53 * hash) + getLibrary().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
if (other.hasVersions()) { mergeVersions(other.getVersions());
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.framework.GraphDef)) { return super.equals(obj); } org.tensorflow.framework.GraphDef other = (org.tensorflow.framework.GraphDef) obj; boolean result = true; result = result && getNodeList() .equals(other.getNodeList()); result = result && (hasVersions() == other.hasVersions()); if (hasVersions()) { result = result && getVersions() .equals(other.getVersions()); } result = result && (getVersion() == other.getVersion()); result = result && (hasLibrary() == other.hasLibrary()); if (hasLibrary()) { result = result && getLibrary() .equals(other.getLibrary()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getNodeCount() > 0) { hash = (37 * hash) + NODE_FIELD_NUMBER; hash = (53 * hash) + getNodeList().hashCode(); } if (hasVersions()) { hash = (37 * hash) + VERSIONS_FIELD_NUMBER; hash = (53 * hash) + getVersions().hashCode(); } hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion(); if (hasLibrary()) { hash = (37 * hash) + LIBRARY_FIELD_NUMBER; hash = (53 * hash) + getLibrary().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
if (other.hasVersions()) { mergeVersions(other.getVersions());