Class AllocatorMemoryUsed.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<AllocatorMemoryUsed.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<AllocatorMemoryUsed.Builder>
org.tensorflow.framework.AllocatorMemoryUsed.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, AllocatorMemoryUsedOrBuilder
Enclosing class:
AllocatorMemoryUsed

public static final class AllocatorMemoryUsed.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AllocatorMemoryUsed.Builder> implements AllocatorMemoryUsedOrBuilder
Protobuf type tensorflow.AllocatorMemoryUsed
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AllocatorMemoryUsed.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<AllocatorMemoryUsed.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AllocatorMemoryUsed.Builder>
    • getDefaultInstanceForType

      public AllocatorMemoryUsed getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public AllocatorMemoryUsed build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AllocatorMemoryUsed buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<AllocatorMemoryUsed.Builder>
    • setField

      public AllocatorMemoryUsed.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocatorMemoryUsed.Builder>
    • clearField

      public AllocatorMemoryUsed.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocatorMemoryUsed.Builder>
    • clearOneof

      public AllocatorMemoryUsed.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AllocatorMemoryUsed.Builder>
    • setRepeatedField

      public AllocatorMemoryUsed.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocatorMemoryUsed.Builder>
    • addRepeatedField

      public AllocatorMemoryUsed.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocatorMemoryUsed.Builder>
    • mergeFrom

      public AllocatorMemoryUsed.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AllocatorMemoryUsed.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AllocatorMemoryUsed.Builder>
    • mergeFrom

      public AllocatorMemoryUsed.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AllocatorMemoryUsed.Builder>
      Throws:
      IOException
    • getAllocatorName

      public String getAllocatorName()
      string allocator_name = 1;
      Specified by:
      getAllocatorName in interface AllocatorMemoryUsedOrBuilder
      Returns:
      The allocatorName.
    • getAllocatorNameBytes

      public com.google.protobuf.ByteString getAllocatorNameBytes()
      string allocator_name = 1;
      Specified by:
      getAllocatorNameBytes in interface AllocatorMemoryUsedOrBuilder
      Returns:
      The bytes for allocatorName.
    • setAllocatorName

      public AllocatorMemoryUsed.Builder setAllocatorName(String value)
      string allocator_name = 1;
      Parameters:
      value - The allocatorName to set.
      Returns:
      This builder for chaining.
    • clearAllocatorName

      public AllocatorMemoryUsed.Builder clearAllocatorName()
      string allocator_name = 1;
      Returns:
      This builder for chaining.
    • setAllocatorNameBytes

      public AllocatorMemoryUsed.Builder setAllocatorNameBytes(com.google.protobuf.ByteString value)
      string allocator_name = 1;
      Parameters:
      value - The bytes for allocatorName to set.
      Returns:
      This builder for chaining.
    • getTotalBytes

      public long getTotalBytes()
       These are per-node allocator memory stats.
       
      int64 total_bytes = 2;
      Specified by:
      getTotalBytes in interface AllocatorMemoryUsedOrBuilder
      Returns:
      The totalBytes.
    • setTotalBytes

      public AllocatorMemoryUsed.Builder setTotalBytes(long value)
       These are per-node allocator memory stats.
       
      int64 total_bytes = 2;
      Parameters:
      value - The totalBytes to set.
      Returns:
      This builder for chaining.
    • clearTotalBytes

      public AllocatorMemoryUsed.Builder clearTotalBytes()
       These are per-node allocator memory stats.
       
      int64 total_bytes = 2;
      Returns:
      This builder for chaining.
    • getPeakBytes

      public long getPeakBytes()
      int64 peak_bytes = 3;
      Specified by:
      getPeakBytes in interface AllocatorMemoryUsedOrBuilder
      Returns:
      The peakBytes.
    • setPeakBytes

      public AllocatorMemoryUsed.Builder setPeakBytes(long value)
      int64 peak_bytes = 3;
      Parameters:
      value - The peakBytes to set.
      Returns:
      This builder for chaining.
    • clearPeakBytes

      public AllocatorMemoryUsed.Builder clearPeakBytes()
      int64 peak_bytes = 3;
      Returns:
      This builder for chaining.
    • getLiveBytes

      public long getLiveBytes()
       The bytes that are not deallocated.
       
      int64 live_bytes = 4;
      Specified by:
      getLiveBytes in interface AllocatorMemoryUsedOrBuilder
      Returns:
      The liveBytes.
    • setLiveBytes

      public AllocatorMemoryUsed.Builder setLiveBytes(long value)
       The bytes that are not deallocated.
       
      int64 live_bytes = 4;
      Parameters:
      value - The liveBytes to set.
      Returns:
      This builder for chaining.
    • clearLiveBytes

      public AllocatorMemoryUsed.Builder clearLiveBytes()
       The bytes that are not deallocated.
       
      int64 live_bytes = 4;
      Returns:
      This builder for chaining.
    • getAllocationRecordsList

      public List<AllocationRecord> getAllocationRecordsList()
       The allocation and deallocation timeline.
       
      repeated .tensorflow.AllocationRecord allocation_records = 6;
      Specified by:
      getAllocationRecordsList in interface AllocatorMemoryUsedOrBuilder
    • getAllocationRecordsCount

      public int getAllocationRecordsCount()
       The allocation and deallocation timeline.
       
      repeated .tensorflow.AllocationRecord allocation_records = 6;
      Specified by:
      getAllocationRecordsCount in interface AllocatorMemoryUsedOrBuilder
    • getAllocationRecords

      public AllocationRecord getAllocationRecords(int index)
       The allocation and deallocation timeline.
       
      repeated .tensorflow.AllocationRecord allocation_records = 6;
      Specified by:
      getAllocationRecords in interface AllocatorMemoryUsedOrBuilder
    • setAllocationRecords

      public AllocatorMemoryUsed.Builder setAllocationRecords(int index, AllocationRecord value)
       The allocation and deallocation timeline.
       
      repeated .tensorflow.AllocationRecord allocation_records = 6;
    • setAllocationRecords

      public AllocatorMemoryUsed.Builder setAllocationRecords(int index, AllocationRecord.Builder builderForValue)
       The allocation and deallocation timeline.
       
      repeated .tensorflow.AllocationRecord allocation_records = 6;
    • addAllocationRecords

      public AllocatorMemoryUsed.Builder addAllocationRecords(AllocationRecord value)
       The allocation and deallocation timeline.
       
      repeated .tensorflow.AllocationRecord allocation_records = 6;
    • addAllocationRecords

      public AllocatorMemoryUsed.Builder addAllocationRecords(int index, AllocationRecord value)
       The allocation and deallocation timeline.
       
      repeated .tensorflow.AllocationRecord allocation_records = 6;
    • addAllocationRecords

      public AllocatorMemoryUsed.Builder addAllocationRecords(AllocationRecord.Builder builderForValue)
       The allocation and deallocation timeline.
       
      repeated .tensorflow.AllocationRecord allocation_records = 6;
    • addAllocationRecords

      public AllocatorMemoryUsed.Builder addAllocationRecords(int index, AllocationRecord.Builder builderForValue)
       The allocation and deallocation timeline.
       
      repeated .tensorflow.AllocationRecord allocation_records = 6;
    • addAllAllocationRecords

      public AllocatorMemoryUsed.Builder addAllAllocationRecords(Iterable<? extends AllocationRecord> values)
       The allocation and deallocation timeline.
       
      repeated .tensorflow.AllocationRecord allocation_records = 6;
    • clearAllocationRecords

      public AllocatorMemoryUsed.Builder clearAllocationRecords()
       The allocation and deallocation timeline.
       
      repeated .tensorflow.AllocationRecord allocation_records = 6;
    • removeAllocationRecords

      public AllocatorMemoryUsed.Builder removeAllocationRecords(int index)
       The allocation and deallocation timeline.
       
      repeated .tensorflow.AllocationRecord allocation_records = 6;
    • getAllocationRecordsBuilder

      public AllocationRecord.Builder getAllocationRecordsBuilder(int index)
       The allocation and deallocation timeline.
       
      repeated .tensorflow.AllocationRecord allocation_records = 6;
    • getAllocationRecordsOrBuilder

      public AllocationRecordOrBuilder getAllocationRecordsOrBuilder(int index)
       The allocation and deallocation timeline.
       
      repeated .tensorflow.AllocationRecord allocation_records = 6;
      Specified by:
      getAllocationRecordsOrBuilder in interface AllocatorMemoryUsedOrBuilder
    • getAllocationRecordsOrBuilderList

      public List<? extends AllocationRecordOrBuilder> getAllocationRecordsOrBuilderList()
       The allocation and deallocation timeline.
       
      repeated .tensorflow.AllocationRecord allocation_records = 6;
      Specified by:
      getAllocationRecordsOrBuilderList in interface AllocatorMemoryUsedOrBuilder
    • addAllocationRecordsBuilder

      public AllocationRecord.Builder addAllocationRecordsBuilder()
       The allocation and deallocation timeline.
       
      repeated .tensorflow.AllocationRecord allocation_records = 6;
    • addAllocationRecordsBuilder

      public AllocationRecord.Builder addAllocationRecordsBuilder(int index)
       The allocation and deallocation timeline.
       
      repeated .tensorflow.AllocationRecord allocation_records = 6;
    • getAllocationRecordsBuilderList

      public List<AllocationRecord.Builder> getAllocationRecordsBuilderList()
       The allocation and deallocation timeline.
       
      repeated .tensorflow.AllocationRecord allocation_records = 6;
    • getAllocatorBytesInUse

      public long getAllocatorBytesInUse()
       These are snapshots of the overall allocator memory stats.
       The number of live bytes currently allocated by the allocator.
       
      int64 allocator_bytes_in_use = 5;
      Specified by:
      getAllocatorBytesInUse in interface AllocatorMemoryUsedOrBuilder
      Returns:
      The allocatorBytesInUse.
    • setAllocatorBytesInUse

      public AllocatorMemoryUsed.Builder setAllocatorBytesInUse(long value)
       These are snapshots of the overall allocator memory stats.
       The number of live bytes currently allocated by the allocator.
       
      int64 allocator_bytes_in_use = 5;
      Parameters:
      value - The allocatorBytesInUse to set.
      Returns:
      This builder for chaining.
    • clearAllocatorBytesInUse

      public AllocatorMemoryUsed.Builder clearAllocatorBytesInUse()
       These are snapshots of the overall allocator memory stats.
       The number of live bytes currently allocated by the allocator.
       
      int64 allocator_bytes_in_use = 5;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final AllocatorMemoryUsed.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AllocatorMemoryUsed.Builder>
    • mergeUnknownFields

      public final AllocatorMemoryUsed.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AllocatorMemoryUsed.Builder>