public org.tensorflow.framework.AllocatorMemoryUsed buildPartial() { org.tensorflow.framework.AllocatorMemoryUsed result = new org.tensorflow.framework.AllocatorMemoryUsed(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.allocatorName_ = allocatorName_; result.totalBytes_ = totalBytes_; result.peakBytes_ = peakBytes_; result.liveBytes_ = liveBytes_; if (allocationRecordsBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { allocationRecords_ = java.util.Collections.unmodifiableList(allocationRecords_); bitField0_ = (bitField0_ & ~0x00000010); } result.allocationRecords_ = allocationRecords_; } else { result.allocationRecords_ = allocationRecordsBuilder_.build(); } result.allocatorBytesInUse_ = allocatorBytesInUse_; result.bitField0_ = to_bitField0_; 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) + ALLOCATOR_NAME_FIELD_NUMBER; hash = (53 * hash) + getAllocatorName().hashCode(); hash = (37 * hash) + TOTAL_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong( getTotalBytes()); hash = (37 * hash) + PEAK_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong( getPeakBytes()); hash = (37 * hash) + LIVE_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong( getLiveBytes()); if (getAllocationRecordsCount() > 0) { hash = (37 * hash) + ALLOCATION_RECORDS_FIELD_NUMBER; hash = (53 * hash) + getAllocationRecordsList().hashCode(); } hash = (37 * hash) + ALLOCATOR_BYTES_IN_USE_FIELD_NUMBER; hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong( getAllocatorBytesInUse()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(org.tensorflow.framework.AllocatorMemoryUsed other) { if (other == org.tensorflow.framework.AllocatorMemoryUsed.getDefaultInstance()) return this; if (!other.getAllocatorName().isEmpty()) { allocatorName_ = other.allocatorName_; onChanged(); if (other.getTotalBytes() != 0L) { setTotalBytes(other.getTotalBytes()); if (other.getPeakBytes() != 0L) { setPeakBytes(other.getPeakBytes()); if (other.getLiveBytes() != 0L) { setLiveBytes(other.getLiveBytes()); if (other.getAllocatorBytesInUse() != 0L) { setAllocatorBytesInUse(other.getAllocatorBytesInUse());
/** * <code>string allocator_name = 1;</code> */ public Builder clearAllocatorName() { allocatorName_ = getDefaultInstance().getAllocatorName(); 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.AllocatorMemoryUsed)) { return super.equals(obj); } org.tensorflow.framework.AllocatorMemoryUsed other = (org.tensorflow.framework.AllocatorMemoryUsed) obj; boolean result = true; result = result && getAllocatorName() .equals(other.getAllocatorName()); result = result && (getTotalBytes() == other.getTotalBytes()); result = result && (getPeakBytes() == other.getPeakBytes()); result = result && (getLiveBytes() == other.getLiveBytes()); result = result && getAllocationRecordsList() .equals(other.getAllocationRecordsList()); result = result && (getAllocatorBytesInUse() == other.getAllocatorBytesInUse()); result = result && unknownFields.equals(other.unknownFields); return result; }
public org.tensorflow.framework.AllocatorMemoryUsed getDefaultInstanceForType() { return org.tensorflow.framework.AllocatorMemoryUsed.getDefaultInstance(); }
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output) throws java.io.IOException { if (!getAllocatorNameBytes().isEmpty()) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 1, allocatorName_); } if (totalBytes_ != 0L) { output.writeInt64(2, totalBytes_); } if (peakBytes_ != 0L) { output.writeInt64(3, peakBytes_); } if (liveBytes_ != 0L) { output.writeInt64(4, liveBytes_); } if (allocatorBytesInUse_ != 0L) { output.writeInt64(5, allocatorBytesInUse_); } for (int i = 0; i < allocationRecords_.size(); i++) { output.writeMessage(6, allocationRecords_.get(i)); } unknownFields.writeTo(output); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.framework.AllocatorMemoryUsed)) { return super.equals(obj); } org.tensorflow.framework.AllocatorMemoryUsed other = (org.tensorflow.framework.AllocatorMemoryUsed) obj; boolean result = true; result = result && getAllocatorName() .equals(other.getAllocatorName()); result = result && (getTotalBytes() == other.getTotalBytes()); result = result && (getPeakBytes() == other.getPeakBytes()); result = result && (getLiveBytes() == other.getLiveBytes()); result = result && getAllocationRecordsList() .equals(other.getAllocationRecordsList()); result = result && (getAllocatorBytesInUse() == other.getAllocatorBytesInUse()); result = result && unknownFields.equals(other.unknownFields); return result; }
/** * <code>string allocator_name = 1;</code> */ public Builder clearAllocatorName() { allocatorName_ = getDefaultInstance().getAllocatorName(); onChanged(); return this; } /**
/** * <code>repeated .tensorflow.AllocatorMemoryUsed memory = 6;</code> */ public org.tensorflow.framework.AllocatorMemoryUsed.Builder addMemoryBuilder() { return getMemoryFieldBuilder().addBuilder( org.tensorflow.framework.AllocatorMemoryUsed.getDefaultInstance()); } /**
if (!getAllocatorNameBytes().isEmpty()) { size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, allocatorName_);
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ALLOCATOR_NAME_FIELD_NUMBER; hash = (53 * hash) + getAllocatorName().hashCode(); hash = (37 * hash) + TOTAL_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalBytes()); hash = (37 * hash) + PEAK_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPeakBytes()); hash = (37 * hash) + LIVE_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLiveBytes()); if (getAllocationRecordsCount() > 0) { hash = (37 * hash) + ALLOCATION_RECORDS_FIELD_NUMBER; hash = (53 * hash) + getAllocationRecordsList().hashCode(); } hash = (37 * hash) + ALLOCATOR_BYTES_IN_USE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAllocatorBytesInUse()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(org.tensorflow.framework.AllocatorMemoryUsed other) { if (other == org.tensorflow.framework.AllocatorMemoryUsed.getDefaultInstance()) return this; if (!other.getAllocatorName().isEmpty()) { allocatorName_ = other.allocatorName_; onChanged(); if (other.getTotalBytes() != 0L) { setTotalBytes(other.getTotalBytes()); if (other.getPeakBytes() != 0L) { setPeakBytes(other.getPeakBytes()); if (other.getLiveBytes() != 0L) { setLiveBytes(other.getLiveBytes()); if (other.getAllocatorBytesInUse() != 0L) { setAllocatorBytesInUse(other.getAllocatorBytesInUse());
/** * <code>repeated .tensorflow.AllocatorMemoryUsed memory = 6;</code> */ public org.tensorflow.framework.AllocatorMemoryUsed.Builder addMemoryBuilder( int index) { return getMemoryFieldBuilder().addBuilder( index, org.tensorflow.framework.AllocatorMemoryUsed.getDefaultInstance()); } /**
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getAllocatorNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, allocatorName_); } if (totalBytes_ != 0L) { output.writeInt64(2, totalBytes_); } if (peakBytes_ != 0L) { output.writeInt64(3, peakBytes_); } if (liveBytes_ != 0L) { output.writeInt64(4, liveBytes_); } if (allocatorBytesInUse_ != 0L) { output.writeInt64(5, allocatorBytesInUse_); } for (int i = 0; i < allocationRecords_.size(); i++) { output.writeMessage(6, allocationRecords_.get(i)); } unknownFields.writeTo(output); }
public org.tensorflow.framework.AllocatorMemoryUsed buildPartial() { org.tensorflow.framework.AllocatorMemoryUsed result = new org.tensorflow.framework.AllocatorMemoryUsed(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.allocatorName_ = allocatorName_; result.totalBytes_ = totalBytes_; result.peakBytes_ = peakBytes_; result.liveBytes_ = liveBytes_; if (allocationRecordsBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { allocationRecords_ = java.util.Collections.unmodifiableList(allocationRecords_); bitField0_ = (bitField0_ & ~0x00000010); } result.allocationRecords_ = allocationRecords_; } else { result.allocationRecords_ = allocationRecordsBuilder_.build(); } result.allocatorBytesInUse_ = allocatorBytesInUse_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public org.tensorflow.framework.AllocatorMemoryUsed getDefaultInstanceForType() { return org.tensorflow.framework.AllocatorMemoryUsed.getDefaultInstance(); }
if (!getAllocatorNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, allocatorName_);
/** * <code>repeated .tensorflow.AllocatorMemoryUsed memory = 6;</code> */ public org.tensorflow.framework.AllocatorMemoryUsed.Builder addMemoryBuilder() { return getMemoryFieldBuilder().addBuilder( org.tensorflow.framework.AllocatorMemoryUsed.getDefaultInstance()); } /**
/** * <code>repeated .tensorflow.AllocatorMemoryUsed memory = 6;</code> */ public org.tensorflow.framework.AllocatorMemoryUsed.Builder addMemoryBuilder( int index) { return getMemoryFieldBuilder().addBuilder( index, org.tensorflow.framework.AllocatorMemoryUsed.getDefaultInstance()); } /**