Class MemoryStats.Builder

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

public static final class MemoryStats.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MemoryStats.Builder> implements MemoryStatsOrBuilder
 For memory tracking.
 
Protobuf type tensorflow.MemoryStats
  • 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<MemoryStats.Builder>
    • clear

      public MemoryStats.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<MemoryStats.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<MemoryStats.Builder>
    • getDefaultInstanceForType

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

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

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

      public MemoryStats.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<MemoryStats.Builder>
    • setField

      public MemoryStats.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<MemoryStats.Builder>
    • clearField

      public MemoryStats.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<MemoryStats.Builder>
    • clearOneof

      public MemoryStats.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<MemoryStats.Builder>
    • setRepeatedField

      public MemoryStats.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<MemoryStats.Builder>
    • addRepeatedField

      public MemoryStats.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<MemoryStats.Builder>
    • mergeFrom

      public MemoryStats.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<MemoryStats.Builder>
    • mergeFrom

      public MemoryStats.Builder mergeFrom(MemoryStats other)
    • isInitialized

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

      public MemoryStats.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<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=64
      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=64
      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=64
      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=65
      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=65
      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=65
      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=66
      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=66
      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=66
      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=66
      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=66
      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=66
      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=66
      repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true];
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final MemoryStats.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<MemoryStats.Builder>
    • mergeUnknownFields

      public final MemoryStats.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<MemoryStats.Builder>