public org.tensorflow.framework.DeviceLocality buildPartial() { org.tensorflow.framework.DeviceLocality result = new org.tensorflow.framework.DeviceLocality(this); result.busId_ = busId_; onBuilt(); return result; }
@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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * <pre> * Platform-specific data about device that may be useful * for supporting efficient data transfers. * </pre> * * <code>.tensorflow.DeviceLocality locality = 5;</code> */ public org.tensorflow.framework.DeviceLocality getLocality() { return locality_ == null ? org.tensorflow.framework.DeviceLocality.getDefaultInstance() : locality_; } /**
public Builder mergeFrom(org.tensorflow.framework.DeviceLocality other) { if (other == org.tensorflow.framework.DeviceLocality.getDefaultInstance()) return this; if (other.getBusId() != 0) { setBusId(other.getBusId()); } 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.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; }
break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
public org.tensorflow.framework.DeviceLocality build() { org.tensorflow.framework.DeviceLocality result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.framework.DeviceAttributes)) { return super.equals(obj); } org.tensorflow.framework.DeviceAttributes other = (org.tensorflow.framework.DeviceAttributes) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getDeviceType() .equals(other.getDeviceType()); result = result && (getMemoryLimit() == other.getMemoryLimit()); result = result && (hasLocality() == other.hasLocality()); if (hasLocality()) { result = result && getLocality() .equals(other.getLocality()); } result = result && (getIncarnation() == other.getIncarnation()); result = result && getPhysicalDeviceDesc() .equals(other.getPhysicalDeviceDesc()); 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(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DEVICE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getDeviceType().hashCode(); hash = (37 * hash) + MEMORY_LIMIT_FIELD_NUMBER; hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong( getMemoryLimit()); if (hasLocality()) { hash = (37 * hash) + LOCALITY_FIELD_NUMBER; hash = (53 * hash) + getLocality().hashCode(); } hash = (37 * hash) + INCARNATION_FIELD_NUMBER; hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong( getIncarnation()); hash = (37 * hash) + PHYSICAL_DEVICE_DESC_FIELD_NUMBER; hash = (53 * hash) + getPhysicalDeviceDesc().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 && 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(); 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; }
break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
/** * <pre> * Platform-specific data about device that may be useful * for supporting efficient data transfers. * </pre> * * <code>.tensorflow.DeviceLocality locality = 5;</code> */ public Builder mergeLocality(org.tensorflow.framework.DeviceLocality value) { if (localityBuilder_ == null) { if (locality_ != null) { locality_ = org.tensorflow.framework.DeviceLocality.newBuilder(locality_).mergeFrom(value).buildPartial(); } else { locality_ = value; } onChanged(); } else { localityBuilder_.mergeFrom(value); } return this; } /**
public org.tensorflow.framework.DeviceLocality build() { org.tensorflow.framework.DeviceLocality result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.framework.DeviceAttributes)) { return super.equals(obj); } org.tensorflow.framework.DeviceAttributes other = (org.tensorflow.framework.DeviceAttributes) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getDeviceType() .equals(other.getDeviceType()); result = result && (getMemoryLimit() == other.getMemoryLimit()); result = result && (hasLocality() == other.hasLocality()); if (hasLocality()) { result = result && getLocality() .equals(other.getLocality()); } result = result && (getIncarnation() == other.getIncarnation()); result = result && getPhysicalDeviceDesc() .equals(other.getPhysicalDeviceDesc()); 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(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DEVICE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getDeviceType().hashCode(); hash = (37 * hash) + MEMORY_LIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemoryLimit()); if (hasLocality()) { hash = (37 * hash) + LOCALITY_FIELD_NUMBER; hash = (53 * hash) + getLocality().hashCode(); } hash = (37 * hash) + INCARNATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getIncarnation()); hash = (37 * hash) + PHYSICAL_DEVICE_DESC_FIELD_NUMBER; hash = (53 * hash) + getPhysicalDeviceDesc().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
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; }
public org.tensorflow.framework.DeviceLocality getDefaultInstanceForType() { return org.tensorflow.framework.DeviceLocality.getDefaultInstance(); }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {