@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; }
public Builder mergeFrom(org.tensorflow.framework.DeviceAttributes other) { if (other == org.tensorflow.framework.DeviceAttributes.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDeviceType().isEmpty()) { deviceType_ = other.deviceType_; onChanged(); } if (other.getMemoryLimit() != 0L) { setMemoryLimit(other.getMemoryLimit()); } if (other.hasLocality()) { mergeLocality(other.getLocality()); } if (other.getIncarnation() != 0L) { setIncarnation(other.getIncarnation()); } if (!other.getPhysicalDeviceDesc().isEmpty()) { physicalDeviceDesc_ = other.physicalDeviceDesc_; onChanged(); } 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.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; }
@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; }
public Builder mergeFrom(org.tensorflow.framework.DeviceAttributes other) { if (other == org.tensorflow.framework.DeviceAttributes.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDeviceType().isEmpty()) { deviceType_ = other.deviceType_; onChanged(); } if (other.getMemoryLimit() != 0L) { setMemoryLimit(other.getMemoryLimit()); } if (other.hasLocality()) { mergeLocality(other.getLocality()); } if (other.getIncarnation() != 0L) { setIncarnation(other.getIncarnation()); } if (!other.getPhysicalDeviceDesc().isEmpty()) { physicalDeviceDesc_ = other.physicalDeviceDesc_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }