Class MemoryStats.Builder

All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, MemoryStatsOrBuilder
Enclosing class:
MemoryStats

public static final class MemoryStats.Builder extends GeneratedMessage.Builder<MemoryStats.Builder> implements MemoryStatsOrBuilder
For memory tracking.
Protobuf type tensorflow.MemoryStats
  • Method Details

    • getDescriptor

      public static final Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class GeneratedMessage.Builder<MemoryStats.Builder>
    • clear

      public MemoryStats.Builder clear()
      Specified by:
      clear in interface Message.Builder
      Specified by:
      clear in interface MessageLite.Builder
      Overrides:
      clear in class GeneratedMessage.Builder<MemoryStats.Builder>
    • getDescriptorForType

      public Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface Message.Builder
      Specified by:
      getDescriptorForType in interface MessageOrBuilder
      Overrides:
      getDescriptorForType in class GeneratedMessage.Builder<MemoryStats.Builder>
    • getDefaultInstanceForType

      public MemoryStats getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface MessageOrBuilder
    • build

      public MemoryStats build()
      Specified by:
      build in interface Message.Builder
      Specified by:
      build in interface MessageLite.Builder
    • buildPartial

      public MemoryStats buildPartial()
      Specified by:
      buildPartial in interface Message.Builder
      Specified by:
      buildPartial in interface MessageLite.Builder
    • mergeFrom

      public MemoryStats.Builder mergeFrom(Message other)
      Specified by:
      mergeFrom in interface Message.Builder
      Overrides:
      mergeFrom in class AbstractMessage.Builder<MemoryStats.Builder>
    • mergeFrom

      public MemoryStats.Builder mergeFrom(MemoryStats other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface MessageLiteOrBuilder
      Overrides:
      isInitialized in class GeneratedMessage.Builder<MemoryStats.Builder>
    • mergeFrom

      public MemoryStats.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface Message.Builder
      Specified by:
      mergeFrom in interface MessageLite.Builder
      Overrides:
      mergeFrom in class AbstractMessage.Builder<MemoryStats.Builder>
      Throws:
      IOException
    • getTempMemorySize

      public long getTempMemorySize()
      int64 temp_memory_size = 1;
      Specified by:
      getTempMemorySize in interface MemoryStatsOrBuilder
      Returns:
      The tempMemorySize.
    • setTempMemorySize

      public MemoryStats.Builder setTempMemorySize(long value)
      int64 temp_memory_size = 1;
      Parameters:
      value - The tempMemorySize to set.
      Returns:
      This builder for chaining.
    • clearTempMemorySize

      public MemoryStats.Builder clearTempMemorySize()
      int64 temp_memory_size = 1;
      Returns:
      This builder for chaining.
    • getPersistentMemorySize

      public long getPersistentMemorySize()
      int64 persistent_memory_size = 3;
      Specified by:
      getPersistentMemorySize in interface MemoryStatsOrBuilder
      Returns:
      The persistentMemorySize.
    • setPersistentMemorySize

      public MemoryStats.Builder setPersistentMemorySize(long value)
      int64 persistent_memory_size = 3;
      Parameters:
      value - The persistentMemorySize to set.
      Returns:
      This builder for chaining.
    • clearPersistentMemorySize

      public MemoryStats.Builder clearPersistentMemorySize()
      int64 persistent_memory_size = 3;
      Returns:
      This builder for chaining.
    • getPersistentTensorAllocIdsList

      public List<Long> getPersistentTensorAllocIdsList()
      repeated int64 persistent_tensor_alloc_ids = 5;
      Specified by:
      getPersistentTensorAllocIdsList in interface MemoryStatsOrBuilder
      Returns:
      A list containing the persistentTensorAllocIds.
    • getPersistentTensorAllocIdsCount

      public int getPersistentTensorAllocIdsCount()
      repeated int64 persistent_tensor_alloc_ids = 5;
      Specified by:
      getPersistentTensorAllocIdsCount in interface MemoryStatsOrBuilder
      Returns:
      The count of persistentTensorAllocIds.
    • getPersistentTensorAllocIds

      public long getPersistentTensorAllocIds(int index)
      repeated int64 persistent_tensor_alloc_ids = 5;
      Specified by:
      getPersistentTensorAllocIds in interface MemoryStatsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The persistentTensorAllocIds at the given index.
    • setPersistentTensorAllocIds

      public MemoryStats.Builder setPersistentTensorAllocIds(int index, long value)
      repeated int64 persistent_tensor_alloc_ids = 5;
      Parameters:
      index - The index to set the value at.
      value - The persistentTensorAllocIds to set.
      Returns:
      This builder for chaining.
    • addPersistentTensorAllocIds

      public MemoryStats.Builder addPersistentTensorAllocIds(long value)
      repeated int64 persistent_tensor_alloc_ids = 5;
      Parameters:
      value - The persistentTensorAllocIds to add.
      Returns:
      This builder for chaining.
    • addAllPersistentTensorAllocIds

      public MemoryStats.Builder addAllPersistentTensorAllocIds(Iterable<? extends Long> values)
      repeated int64 persistent_tensor_alloc_ids = 5;
      Parameters:
      values - The persistentTensorAllocIds to add.
      Returns:
      This builder for chaining.
    • clearPersistentTensorAllocIds

      public MemoryStats.Builder clearPersistentTensorAllocIds()
      repeated int64 persistent_tensor_alloc_ids = 5;
      Returns:
      This builder for chaining.
    • getDeviceTempMemorySize

      @Deprecated public long getDeviceTempMemorySize()
      Deprecated.
      tensorflow.MemoryStats.device_temp_memory_size is deprecated. See tensorflow/core/framework/step_stats.proto;l=48
      int64 device_temp_memory_size = 2 [deprecated = true];
      Specified by:
      getDeviceTempMemorySize in interface MemoryStatsOrBuilder
      Returns:
      The deviceTempMemorySize.
    • setDeviceTempMemorySize

      @Deprecated public MemoryStats.Builder setDeviceTempMemorySize(long value)
      Deprecated.
      tensorflow.MemoryStats.device_temp_memory_size is deprecated. See tensorflow/core/framework/step_stats.proto;l=48
      int64 device_temp_memory_size = 2 [deprecated = true];
      Parameters:
      value - The deviceTempMemorySize to set.
      Returns:
      This builder for chaining.
    • clearDeviceTempMemorySize

      @Deprecated public MemoryStats.Builder clearDeviceTempMemorySize()
      Deprecated.
      tensorflow.MemoryStats.device_temp_memory_size is deprecated. See tensorflow/core/framework/step_stats.proto;l=48
      int64 device_temp_memory_size = 2 [deprecated = true];
      Returns:
      This builder for chaining.
    • getDevicePersistentMemorySize

      @Deprecated public long getDevicePersistentMemorySize()
      Deprecated.
      tensorflow.MemoryStats.device_persistent_memory_size is deprecated. See tensorflow/core/framework/step_stats.proto;l=49
      int64 device_persistent_memory_size = 4 [deprecated = true];
      Specified by:
      getDevicePersistentMemorySize in interface MemoryStatsOrBuilder
      Returns:
      The devicePersistentMemorySize.
    • setDevicePersistentMemorySize

      @Deprecated public MemoryStats.Builder setDevicePersistentMemorySize(long value)
      Deprecated.
      tensorflow.MemoryStats.device_persistent_memory_size is deprecated. See tensorflow/core/framework/step_stats.proto;l=49
      int64 device_persistent_memory_size = 4 [deprecated = true];
      Parameters:
      value - The devicePersistentMemorySize to set.
      Returns:
      This builder for chaining.
    • clearDevicePersistentMemorySize

      @Deprecated public MemoryStats.Builder clearDevicePersistentMemorySize()
      Deprecated.
      tensorflow.MemoryStats.device_persistent_memory_size is deprecated. See tensorflow/core/framework/step_stats.proto;l=49
      int64 device_persistent_memory_size = 4 [deprecated = true];
      Returns:
      This builder for chaining.
    • getDevicePersistentTensorAllocIdsList

      @Deprecated public List<Long> getDevicePersistentTensorAllocIdsList()
      Deprecated.
      tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. See tensorflow/core/framework/step_stats.proto;l=50
      repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true];
      Specified by:
      getDevicePersistentTensorAllocIdsList in interface MemoryStatsOrBuilder
      Returns:
      A list containing the devicePersistentTensorAllocIds.
    • getDevicePersistentTensorAllocIdsCount

      @Deprecated public int getDevicePersistentTensorAllocIdsCount()
      Deprecated.
      tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. See tensorflow/core/framework/step_stats.proto;l=50
      repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true];
      Specified by:
      getDevicePersistentTensorAllocIdsCount in interface MemoryStatsOrBuilder
      Returns:
      The count of devicePersistentTensorAllocIds.
    • getDevicePersistentTensorAllocIds

      @Deprecated public long getDevicePersistentTensorAllocIds(int index)
      Deprecated.
      tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. See tensorflow/core/framework/step_stats.proto;l=50
      repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true];
      Specified by:
      getDevicePersistentTensorAllocIds in interface MemoryStatsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The devicePersistentTensorAllocIds at the given index.
    • setDevicePersistentTensorAllocIds

      @Deprecated public MemoryStats.Builder setDevicePersistentTensorAllocIds(int index, long value)
      Deprecated.
      tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. See tensorflow/core/framework/step_stats.proto;l=50
      repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true];
      Parameters:
      index - The index to set the value at.
      value - The devicePersistentTensorAllocIds to set.
      Returns:
      This builder for chaining.
    • addDevicePersistentTensorAllocIds

      @Deprecated public MemoryStats.Builder addDevicePersistentTensorAllocIds(long value)
      Deprecated.
      tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. See tensorflow/core/framework/step_stats.proto;l=50
      repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true];
      Parameters:
      value - The devicePersistentTensorAllocIds to add.
      Returns:
      This builder for chaining.
    • addAllDevicePersistentTensorAllocIds

      @Deprecated public MemoryStats.Builder addAllDevicePersistentTensorAllocIds(Iterable<? extends Long> values)
      Deprecated.
      tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. See tensorflow/core/framework/step_stats.proto;l=50
      repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true];
      Parameters:
      values - The devicePersistentTensorAllocIds to add.
      Returns:
      This builder for chaining.
    • clearDevicePersistentTensorAllocIds

      @Deprecated public MemoryStats.Builder clearDevicePersistentTensorAllocIds()
      Deprecated.
      tensorflow.MemoryStats.device_persistent_tensor_alloc_ids is deprecated. See tensorflow/core/framework/step_stats.proto;l=50
      repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true];
      Returns:
      This builder for chaining.