/** * <pre> * Optional local interconnect links to other devices. * </pre> * * <code>.tensorflow.LocalLinks links = 3;</code> */ public org.tensorflow.framework.LocalLinksOrBuilder getLinksOrBuilder() { return getLinks(); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (busId_ != 0) { output.writeInt32(1, busId_); } if (numaNode_ != 0) { output.writeInt32(2, numaNode_); } if (links_ != null) { output.writeMessage(3, getLinks()); } unknownFields.writeTo(output); }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (busId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, busId_); } if (numaNode_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, numaNode_); } if (links_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getLinks()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@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; }