@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + NODE_ID_FIELD_NUMBER; hash = (53 * hash) + getNodeId(); if (getShapeCount() > 0) { hash = (37 * hash) + SHAPE_FIELD_NUMBER; hash = (53 * hash) + getShapeList().hashCode(); } hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); hash = (37 * hash) + DTYPE_FIELD_NUMBER; hash = (53 * hash) + dtype_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo other) { if (other == org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getNodeId() != 0) { setNodeId(other.getNodeId()); } if (!other.shape_.isEmpty()) { if (shape_.isEmpty()) { shape_ = other.shape_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureShapeIsMutable(); shape_.addAll(other.shape_); } onChanged(); } if (other.getData() != com.github.os72.protobuf351.ByteString.EMPTY) { setData(other.getData()); } if (other.dtype_ != 0) { setDtypeValue(other.getDtypeValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo)) { return super.equals(obj); } org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo other = (org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && (getNodeId() == other.getNodeId()); result = result && getShapeList() .equals(other.getShapeList()); result = result && getData() .equals(other.getData()); result = result && dtype_ == other.dtype_; result = result && unknownFields.equals(other.unknownFields); return result; }
/** * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**