Class DeviceStepStats.Builder

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

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

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceStepStats.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<DeviceStepStats.Builder>
    • internalGetFieldAccessorTable

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

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

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

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

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

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

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

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

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

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

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

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

      public DeviceStepStats.Builder mergeFrom(DeviceStepStats other)
    • isInitialized

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

      public DeviceStepStats.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<DeviceStepStats.Builder>
      Throws:
      IOException
    • getDevice

      public String getDevice()
      string device = 1;
      Specified by:
      getDevice in interface DeviceStepStatsOrBuilder
      Returns:
      The device.
    • getDeviceBytes

      public com.google.protobuf.ByteString getDeviceBytes()
      string device = 1;
      Specified by:
      getDeviceBytes in interface DeviceStepStatsOrBuilder
      Returns:
      The bytes for device.
    • setDevice

      public DeviceStepStats.Builder setDevice(String value)
      string device = 1;
      Parameters:
      value - The device to set.
      Returns:
      This builder for chaining.
    • clearDevice

      public DeviceStepStats.Builder clearDevice()
      string device = 1;
      Returns:
      This builder for chaining.
    • setDeviceBytes

      public DeviceStepStats.Builder setDeviceBytes(com.google.protobuf.ByteString value)
      string device = 1;
      Parameters:
      value - The bytes for device to set.
      Returns:
      This builder for chaining.
    • getNodeStatsList

      public List<NodeExecStats> getNodeStatsList()
      repeated .tensorflow.NodeExecStats node_stats = 2;
      Specified by:
      getNodeStatsList in interface DeviceStepStatsOrBuilder
    • getNodeStatsCount

      public int getNodeStatsCount()
      repeated .tensorflow.NodeExecStats node_stats = 2;
      Specified by:
      getNodeStatsCount in interface DeviceStepStatsOrBuilder
    • getNodeStats

      public NodeExecStats getNodeStats(int index)
      repeated .tensorflow.NodeExecStats node_stats = 2;
      Specified by:
      getNodeStats in interface DeviceStepStatsOrBuilder
    • setNodeStats

      public DeviceStepStats.Builder setNodeStats(int index, NodeExecStats value)
      repeated .tensorflow.NodeExecStats node_stats = 2;
    • setNodeStats

      public DeviceStepStats.Builder setNodeStats(int index, NodeExecStats.Builder builderForValue)
      repeated .tensorflow.NodeExecStats node_stats = 2;
    • addNodeStats

      public DeviceStepStats.Builder addNodeStats(NodeExecStats value)
      repeated .tensorflow.NodeExecStats node_stats = 2;
    • addNodeStats

      public DeviceStepStats.Builder addNodeStats(int index, NodeExecStats value)
      repeated .tensorflow.NodeExecStats node_stats = 2;
    • addNodeStats

      public DeviceStepStats.Builder addNodeStats(NodeExecStats.Builder builderForValue)
      repeated .tensorflow.NodeExecStats node_stats = 2;
    • addNodeStats

      public DeviceStepStats.Builder addNodeStats(int index, NodeExecStats.Builder builderForValue)
      repeated .tensorflow.NodeExecStats node_stats = 2;
    • addAllNodeStats

      public DeviceStepStats.Builder addAllNodeStats(Iterable<? extends NodeExecStats> values)
      repeated .tensorflow.NodeExecStats node_stats = 2;
    • clearNodeStats

      public DeviceStepStats.Builder clearNodeStats()
      repeated .tensorflow.NodeExecStats node_stats = 2;
    • removeNodeStats

      public DeviceStepStats.Builder removeNodeStats(int index)
      repeated .tensorflow.NodeExecStats node_stats = 2;
    • getNodeStatsBuilder

      public NodeExecStats.Builder getNodeStatsBuilder(int index)
      repeated .tensorflow.NodeExecStats node_stats = 2;
    • getNodeStatsOrBuilder

      public NodeExecStatsOrBuilder getNodeStatsOrBuilder(int index)
      repeated .tensorflow.NodeExecStats node_stats = 2;
      Specified by:
      getNodeStatsOrBuilder in interface DeviceStepStatsOrBuilder
    • getNodeStatsOrBuilderList

      public List<? extends NodeExecStatsOrBuilder> getNodeStatsOrBuilderList()
      repeated .tensorflow.NodeExecStats node_stats = 2;
      Specified by:
      getNodeStatsOrBuilderList in interface DeviceStepStatsOrBuilder
    • addNodeStatsBuilder

      public NodeExecStats.Builder addNodeStatsBuilder()
      repeated .tensorflow.NodeExecStats node_stats = 2;
    • addNodeStatsBuilder

      public NodeExecStats.Builder addNodeStatsBuilder(int index)
      repeated .tensorflow.NodeExecStats node_stats = 2;
    • getNodeStatsBuilderList

      public List<NodeExecStats.Builder> getNodeStatsBuilderList()
      repeated .tensorflow.NodeExecStats node_stats = 2;
    • getThreadNamesCount

      public int getThreadNamesCount()
      Description copied from interface: DeviceStepStatsOrBuilder
       Its key is thread id.
       
      map<uint32, string> thread_names = 3;
      Specified by:
      getThreadNamesCount in interface DeviceStepStatsOrBuilder
    • containsThreadNames

      public boolean containsThreadNames(int key)
       Its key is thread id.
       
      map<uint32, string> thread_names = 3;
      Specified by:
      containsThreadNames in interface DeviceStepStatsOrBuilder
    • getThreadNames

      @Deprecated public Map<Integer,String> getThreadNames()
      Deprecated.
      Use getThreadNamesMap() instead.
      Specified by:
      getThreadNames in interface DeviceStepStatsOrBuilder
    • getThreadNamesMap

      public Map<Integer,String> getThreadNamesMap()
       Its key is thread id.
       
      map<uint32, string> thread_names = 3;
      Specified by:
      getThreadNamesMap in interface DeviceStepStatsOrBuilder
    • getThreadNamesOrDefault

      public String getThreadNamesOrDefault(int key, String defaultValue)
       Its key is thread id.
       
      map<uint32, string> thread_names = 3;
      Specified by:
      getThreadNamesOrDefault in interface DeviceStepStatsOrBuilder
    • getThreadNamesOrThrow

      public String getThreadNamesOrThrow(int key)
       Its key is thread id.
       
      map<uint32, string> thread_names = 3;
      Specified by:
      getThreadNamesOrThrow in interface DeviceStepStatsOrBuilder
    • clearThreadNames

      public DeviceStepStats.Builder clearThreadNames()
    • removeThreadNames

      public DeviceStepStats.Builder removeThreadNames(int key)
       Its key is thread id.
       
      map<uint32, string> thread_names = 3;
    • getMutableThreadNames

      @Deprecated public Map<Integer,String> getMutableThreadNames()
      Deprecated.
      Use alternate mutation accessors instead.
    • putThreadNames

      public DeviceStepStats.Builder putThreadNames(int key, String value)
       Its key is thread id.
       
      map<uint32, string> thread_names = 3;
    • putAllThreadNames

      public DeviceStepStats.Builder putAllThreadNames(Map<Integer,String> values)
       Its key is thread id.
       
      map<uint32, string> thread_names = 3;
    • setUnknownFields

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

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