@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.framework.FunctionDefLibrary)) { return super.equals(obj); } org.tensorflow.framework.FunctionDefLibrary other = (org.tensorflow.framework.FunctionDefLibrary) obj; boolean result = true; result = result && getFunctionList() .equals(other.getFunctionList()); result = result && getGradientList() .equals(other.getGradientList()); 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 (getFunctionCount() > 0) { hash = (37 * hash) + FUNCTION_FIELD_NUMBER; hash = (53 * hash) + getFunctionList().hashCode(); } if (getGradientCount() > 0) { hash = (37 * hash) + GRADIENT_FIELD_NUMBER; hash = (53 * hash) + getGradientList().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.FunctionDefLibrary)) { return super.equals(obj); } org.tensorflow.framework.FunctionDefLibrary other = (org.tensorflow.framework.FunctionDefLibrary) obj; boolean result = true; result = result && getFunctionList() .equals(other.getFunctionList()); result = result && getGradientList() .equals(other.getGradientList()); 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 (getFunctionCount() > 0) { hash = (37 * hash) + FUNCTION_FIELD_NUMBER; hash = (53 * hash) + getFunctionList().hashCode(); } if (getGradientCount() > 0) { hash = (37 * hash) + GRADIENT_FIELD_NUMBER; hash = (53 * hash) + getGradientList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }