/** * <pre> * The allocation and deallocation timeline. * </pre> * * <code>repeated .tensorflow.AllocationRecord allocation_records = 6;</code> */ public Builder addAllocationRecords( int index, org.tensorflow.framework.AllocationRecord.Builder builderForValue) { if (allocationRecordsBuilder_ == null) { ensureAllocationRecordsIsMutable(); allocationRecords_.add(index, builderForValue.build()); onChanged(); } else { allocationRecordsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * The allocation and deallocation timeline. * </pre> * * <code>repeated .tensorflow.AllocationRecord allocation_records = 6;</code> */ public Builder addAllocationRecords( org.tensorflow.framework.AllocationRecord.Builder builderForValue) { if (allocationRecordsBuilder_ == null) { ensureAllocationRecordsIsMutable(); allocationRecords_.add(builderForValue.build()); onChanged(); } else { allocationRecordsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <pre> * The allocation and deallocation timeline. * </pre> * * <code>repeated .tensorflow.AllocationRecord allocation_records = 6;</code> */ public Builder setAllocationRecords( int index, org.tensorflow.framework.AllocationRecord.Builder builderForValue) { if (allocationRecordsBuilder_ == null) { ensureAllocationRecordsIsMutable(); allocationRecords_.set(index, builderForValue.build()); onChanged(); } else { allocationRecordsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * The allocation and deallocation timeline. * </pre> * * <code>repeated .tensorflow.AllocationRecord allocation_records = 6;</code> */ public Builder addAllocationRecords( int index, org.tensorflow.framework.AllocationRecord.Builder builderForValue) { if (allocationRecordsBuilder_ == null) { ensureAllocationRecordsIsMutable(); allocationRecords_.add(index, builderForValue.build()); onChanged(); } else { allocationRecordsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.framework.AllocationRecord parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.framework.AllocationRecord) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * <pre> * Number of bytes allocated, or de-allocated if negative. * </pre> * * <code>int64 alloc_bytes = 2;</code> */ public Builder setAllocBytes(long value) { allocBytes_ = value; onChanged(); return this; } /**
public static Builder newBuilder(org.tensorflow.framework.AllocationRecord prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
private Builder() { maybeForceBuilderInitialization(); }
/** * <pre> * The timestamp of the operation. * </pre> * * <code>int64 alloc_micros = 1;</code> */ public Builder clearAllocMicros() { allocMicros_ = 0L; onChanged(); return this; }
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
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; }
/** * <pre> * Number of bytes allocated, or de-allocated if negative. * </pre> * * <code>int64 alloc_bytes = 2;</code> */ public Builder clearAllocBytes() { allocBytes_ = 0L; onChanged(); return this; } public final Builder setUnknownFields(
/** * <pre> * The timestamp of the operation. * </pre> * * <code>int64 alloc_micros = 1;</code> */ public Builder setAllocMicros(long value) { allocMicros_ = value; onChanged(); return this; } /**
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tensorflow.framework.AllocationRecord) { return mergeFrom((org.tensorflow.framework.AllocationRecord)other); } else { super.mergeFrom(other); return this; } }
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; }
private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
public org.tensorflow.framework.AllocationRecord build() { org.tensorflow.framework.AllocationRecord result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
/** * <pre> * The allocation and deallocation timeline. * </pre> * * <code>repeated .tensorflow.AllocationRecord allocation_records = 6;</code> */ public Builder addAllocationRecords( org.tensorflow.framework.AllocationRecord.Builder builderForValue) { if (allocationRecordsBuilder_ == null) { ensureAllocationRecordsIsMutable(); allocationRecords_.add(builderForValue.build()); onChanged(); } else { allocationRecordsBuilder_.addMessage(builderForValue.build()); } return this; } /**
public Builder mergeFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.framework.AllocationRecord parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.framework.AllocationRecord) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }