public org.tensorflow.framework.AllocationRecord buildPartial() { org.tensorflow.framework.AllocationRecord result = new org.tensorflow.framework.AllocationRecord(this); result.allocMicros_ = allocMicros_; result.allocBytes_ = allocBytes_; onBuilt(); return result; }
public Builder mergeFrom(org.tensorflow.framework.AllocationRecord other) { if (other == org.tensorflow.framework.AllocationRecord.getDefaultInstance()) return this; if (other.getAllocMicros() != 0L) { setAllocMicros(other.getAllocMicros()); } if (other.getAllocBytes() != 0L) { setAllocBytes(other.getAllocBytes()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ALLOC_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong( getAllocMicros()); hash = (37 * hash) + ALLOC_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong( getAllocBytes()); 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.AllocationRecord)) { return super.equals(obj); } org.tensorflow.framework.AllocationRecord other = (org.tensorflow.framework.AllocationRecord) obj; boolean result = true; result = result && (getAllocMicros() == other.getAllocMicros()); result = result && (getAllocBytes() == other.getAllocBytes()); 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 org.tensorflow.framework.AllocationRecord getDefaultInstanceForType() { return org.tensorflow.framework.AllocationRecord.getDefaultInstance(); }
public org.tensorflow.framework.AllocationRecord build() { org.tensorflow.framework.AllocationRecord result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
input.readMessage(org.tensorflow.framework.AllocationRecord.parser(), extensionRegistry)); break;
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.framework.AllocationRecord)) { return super.equals(obj); } org.tensorflow.framework.AllocationRecord other = (org.tensorflow.framework.AllocationRecord) obj; boolean result = true; result = result && (getAllocMicros() == other.getAllocMicros()); result = result && (getAllocBytes() == other.getAllocBytes()); result = result && unknownFields.equals(other.unknownFields); return result; }
break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
/** * <pre> * The allocation and deallocation timeline. * </pre> * * <code>repeated .tensorflow.AllocationRecord allocation_records = 6;</code> */ public org.tensorflow.framework.AllocationRecord.Builder addAllocationRecordsBuilder() { return getAllocationRecordsFieldBuilder().addBuilder( org.tensorflow.framework.AllocationRecord.getDefaultInstance()); } /**
public org.tensorflow.framework.AllocationRecord build() { org.tensorflow.framework.AllocationRecord result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
input.readMessage(org.tensorflow.framework.AllocationRecord.parser(), extensionRegistry)); break;
public Builder mergeFrom(org.tensorflow.framework.AllocationRecord other) { if (other == org.tensorflow.framework.AllocationRecord.getDefaultInstance()) return this; if (other.getAllocMicros() != 0L) { setAllocMicros(other.getAllocMicros()); } if (other.getAllocBytes() != 0L) { setAllocBytes(other.getAllocBytes()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ALLOC_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAllocMicros()); hash = (37 * hash) + ALLOC_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAllocBytes()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * <pre> * The allocation and deallocation timeline. * </pre> * * <code>repeated .tensorflow.AllocationRecord allocation_records = 6;</code> */ public org.tensorflow.framework.AllocationRecord.Builder addAllocationRecordsBuilder( int index) { return getAllocationRecordsFieldBuilder().addBuilder( index, org.tensorflow.framework.AllocationRecord.getDefaultInstance()); } /**
public org.tensorflow.framework.AllocationRecord buildPartial() { org.tensorflow.framework.AllocationRecord result = new org.tensorflow.framework.AllocationRecord(this); result.allocMicros_ = allocMicros_; result.allocBytes_ = allocBytes_; onBuilt(); return result; }
public org.tensorflow.framework.AllocationRecord getDefaultInstanceForType() { return org.tensorflow.framework.AllocationRecord.getDefaultInstance(); }