/** * <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.DeviceLocalityOrBuilder getLocalityOrBuilder() { return getLocality(); }
@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.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; }
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 1, name_); } if (!getDeviceTypeBytes().isEmpty()) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 2, deviceType_); } if (memoryLimit_ != 0L) { output.writeInt64(4, memoryLimit_); } if (locality_ != null) { output.writeMessage(5, getLocality()); } if (incarnation_ != 0L) { output.writeFixed64(6, incarnation_); } if (!getPhysicalDeviceDescBytes().isEmpty()) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 7, physicalDeviceDesc_); } unknownFields.writeTo(output); }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, name_); } if (!getDeviceTypeBytes().isEmpty()) { size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(2, deviceType_); } if (memoryLimit_ != 0L) { size += com.github.os72.protobuf351.CodedOutputStream .computeInt64Size(4, memoryLimit_); } if (locality_ != null) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(5, getLocality()); } if (incarnation_ != 0L) { size += com.github.os72.protobuf351.CodedOutputStream .computeFixed64Size(6, incarnation_); } if (!getPhysicalDeviceDescBytes().isEmpty()) { size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(7, physicalDeviceDesc_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
/** * <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.DeviceLocalityOrBuilder getLocalityOrBuilder() { return getLocality(); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getDeviceTypeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deviceType_); } if (memoryLimit_ != 0L) { output.writeInt64(4, memoryLimit_); } if (locality_ != null) { output.writeMessage(5, getLocality()); } if (incarnation_ != 0L) { output.writeFixed64(6, incarnation_); } if (!getPhysicalDeviceDescBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, physicalDeviceDesc_); } unknownFields.writeTo(output); }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getDeviceTypeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deviceType_); } if (memoryLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, memoryLimit_); } if (locality_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getLocality()); } if (incarnation_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeFixed64Size(6, incarnation_); } if (!getPhysicalDeviceDescBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, physicalDeviceDesc_); } 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) + 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; }