Class NodeExecStats.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable, NodeExecStatsOrBuilder
    Enclosing class:
    NodeExecStats

    public static final class NodeExecStats.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<NodeExecStats.Builder>
    implements NodeExecStatsOrBuilder
     Time/size stats recorded for a single execution of a graph node.
     
    Protobuf type org.platanios.tensorflow.proto.NodeExecStats
    • Method Detail

      • 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<NodeExecStats.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

        public NodeExecStats.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<NodeExecStats.Builder>
      • isInitialized

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

        public NodeExecStats.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws java.io.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<NodeExecStats.Builder>
        Throws:
        java.io.IOException
      • getNodeName

        public java.lang.String getNodeName()
         TODO(tucker): Use some more compact form of node identity than
         the full string name.  Either all processes should agree on a
         global id (cost_id?) for each node, or we should use a hash of
         the name.
         
        string node_name = 1;
        Specified by:
        getNodeName in interface NodeExecStatsOrBuilder
        Returns:
        The nodeName.
      • getNodeNameBytes

        public com.google.protobuf.ByteString getNodeNameBytes()
         TODO(tucker): Use some more compact form of node identity than
         the full string name.  Either all processes should agree on a
         global id (cost_id?) for each node, or we should use a hash of
         the name.
         
        string node_name = 1;
        Specified by:
        getNodeNameBytes in interface NodeExecStatsOrBuilder
        Returns:
        The bytes for nodeName.
      • setNodeName

        public NodeExecStats.Builder setNodeName​(java.lang.String value)
         TODO(tucker): Use some more compact form of node identity than
         the full string name.  Either all processes should agree on a
         global id (cost_id?) for each node, or we should use a hash of
         the name.
         
        string node_name = 1;
        Parameters:
        value - The nodeName to set.
        Returns:
        This builder for chaining.
      • clearNodeName

        public NodeExecStats.Builder clearNodeName()
         TODO(tucker): Use some more compact form of node identity than
         the full string name.  Either all processes should agree on a
         global id (cost_id?) for each node, or we should use a hash of
         the name.
         
        string node_name = 1;
        Returns:
        This builder for chaining.
      • setNodeNameBytes

        public NodeExecStats.Builder setNodeNameBytes​(com.google.protobuf.ByteString value)
         TODO(tucker): Use some more compact form of node identity than
         the full string name.  Either all processes should agree on a
         global id (cost_id?) for each node, or we should use a hash of
         the name.
         
        string node_name = 1;
        Parameters:
        value - The bytes for nodeName to set.
        Returns:
        This builder for chaining.
      • setAllStartMicros

        public NodeExecStats.Builder setAllStartMicros​(long value)
        int64 all_start_micros = 2;
        Parameters:
        value - The allStartMicros to set.
        Returns:
        This builder for chaining.
      • clearAllStartMicros

        public NodeExecStats.Builder clearAllStartMicros()
        int64 all_start_micros = 2;
        Returns:
        This builder for chaining.
      • setOpStartRelMicros

        public NodeExecStats.Builder setOpStartRelMicros​(long value)
        int64 op_start_rel_micros = 3;
        Parameters:
        value - The opStartRelMicros to set.
        Returns:
        This builder for chaining.
      • clearOpStartRelMicros

        public NodeExecStats.Builder clearOpStartRelMicros()
        int64 op_start_rel_micros = 3;
        Returns:
        This builder for chaining.
      • setOpEndRelMicros

        public NodeExecStats.Builder setOpEndRelMicros​(long value)
        int64 op_end_rel_micros = 4;
        Parameters:
        value - The opEndRelMicros to set.
        Returns:
        This builder for chaining.
      • clearOpEndRelMicros

        public NodeExecStats.Builder clearOpEndRelMicros()
        int64 op_end_rel_micros = 4;
        Returns:
        This builder for chaining.
      • setAllEndRelMicros

        public NodeExecStats.Builder setAllEndRelMicros​(long value)
        int64 all_end_rel_micros = 5;
        Parameters:
        value - The allEndRelMicros to set.
        Returns:
        This builder for chaining.
      • clearAllEndRelMicros

        public NodeExecStats.Builder clearAllEndRelMicros()
        int64 all_end_rel_micros = 5;
        Returns:
        This builder for chaining.
      • getMemoryCount

        public int getMemoryCount()
        repeated .org.platanios.tensorflow.proto.AllocatorMemoryUsed memory = 6;
        Specified by:
        getMemoryCount in interface NodeExecStatsOrBuilder
      • clearMemory

        public NodeExecStats.Builder clearMemory()
        repeated .org.platanios.tensorflow.proto.AllocatorMemoryUsed memory = 6;
      • removeMemory

        public NodeExecStats.Builder removeMemory​(int index)
        repeated .org.platanios.tensorflow.proto.AllocatorMemoryUsed memory = 6;
      • getMemoryBuilder

        public AllocatorMemoryUsed.Builder getMemoryBuilder​(int index)
        repeated .org.platanios.tensorflow.proto.AllocatorMemoryUsed memory = 6;
      • addMemoryBuilder

        public AllocatorMemoryUsed.Builder addMemoryBuilder()
        repeated .org.platanios.tensorflow.proto.AllocatorMemoryUsed memory = 6;
      • addMemoryBuilder

        public AllocatorMemoryUsed.Builder addMemoryBuilder​(int index)
        repeated .org.platanios.tensorflow.proto.AllocatorMemoryUsed memory = 6;
      • getMemoryBuilderList

        public java.util.List<AllocatorMemoryUsed.Builder> getMemoryBuilderList()
        repeated .org.platanios.tensorflow.proto.AllocatorMemoryUsed memory = 6;
      • addAllOutput

        public NodeExecStats.Builder addAllOutput​(java.lang.Iterable<? extends NodeOutput> values)
        repeated .org.platanios.tensorflow.proto.NodeOutput output = 7;
      • clearOutput

        public NodeExecStats.Builder clearOutput()
        repeated .org.platanios.tensorflow.proto.NodeOutput output = 7;
      • removeOutput

        public NodeExecStats.Builder removeOutput​(int index)
        repeated .org.platanios.tensorflow.proto.NodeOutput output = 7;
      • getOutputBuilder

        public NodeOutput.Builder getOutputBuilder​(int index)
        repeated .org.platanios.tensorflow.proto.NodeOutput output = 7;
      • addOutputBuilder

        public NodeOutput.Builder addOutputBuilder()
        repeated .org.platanios.tensorflow.proto.NodeOutput output = 7;
      • addOutputBuilder

        public NodeOutput.Builder addOutputBuilder​(int index)
        repeated .org.platanios.tensorflow.proto.NodeOutput output = 7;
      • getOutputBuilderList

        public java.util.List<NodeOutput.Builder> getOutputBuilderList()
        repeated .org.platanios.tensorflow.proto.NodeOutput output = 7;
      • getTimelineLabelBytes

        public com.google.protobuf.ByteString getTimelineLabelBytes()
        string timeline_label = 8;
        Specified by:
        getTimelineLabelBytes in interface NodeExecStatsOrBuilder
        Returns:
        The bytes for timelineLabel.
      • setTimelineLabel

        public NodeExecStats.Builder setTimelineLabel​(java.lang.String value)
        string timeline_label = 8;
        Parameters:
        value - The timelineLabel to set.
        Returns:
        This builder for chaining.
      • clearTimelineLabel

        public NodeExecStats.Builder clearTimelineLabel()
        string timeline_label = 8;
        Returns:
        This builder for chaining.
      • setTimelineLabelBytes

        public NodeExecStats.Builder setTimelineLabelBytes​(com.google.protobuf.ByteString value)
        string timeline_label = 8;
        Parameters:
        value - The bytes for timelineLabel to set.
        Returns:
        This builder for chaining.
      • setScheduledMicros

        public NodeExecStats.Builder setScheduledMicros​(long value)
        int64 scheduled_micros = 9;
        Parameters:
        value - The scheduledMicros to set.
        Returns:
        This builder for chaining.
      • clearScheduledMicros

        public NodeExecStats.Builder clearScheduledMicros()
        int64 scheduled_micros = 9;
        Returns:
        This builder for chaining.
      • setThreadId

        public NodeExecStats.Builder setThreadId​(int value)
        uint32 thread_id = 10;
        Parameters:
        value - The threadId to set.
        Returns:
        This builder for chaining.
      • clearThreadId

        public NodeExecStats.Builder clearThreadId()
        uint32 thread_id = 10;
        Returns:
        This builder for chaining.
      • getReferencedTensorCount

        public int getReferencedTensorCount()
        repeated .org.platanios.tensorflow.proto.AllocationDescription referenced_tensor = 11;
        Specified by:
        getReferencedTensorCount in interface NodeExecStatsOrBuilder
      • addAllReferencedTensor

        public NodeExecStats.Builder addAllReferencedTensor​(java.lang.Iterable<? extends AllocationDescription> values)
        repeated .org.platanios.tensorflow.proto.AllocationDescription referenced_tensor = 11;
      • clearReferencedTensor

        public NodeExecStats.Builder clearReferencedTensor()
        repeated .org.platanios.tensorflow.proto.AllocationDescription referenced_tensor = 11;
      • removeReferencedTensor

        public NodeExecStats.Builder removeReferencedTensor​(int index)
        repeated .org.platanios.tensorflow.proto.AllocationDescription referenced_tensor = 11;
      • getReferencedTensorBuilder

        public AllocationDescription.Builder getReferencedTensorBuilder​(int index)
        repeated .org.platanios.tensorflow.proto.AllocationDescription referenced_tensor = 11;
      • addReferencedTensorBuilder

        public AllocationDescription.Builder addReferencedTensorBuilder()
        repeated .org.platanios.tensorflow.proto.AllocationDescription referenced_tensor = 11;
      • addReferencedTensorBuilder

        public AllocationDescription.Builder addReferencedTensorBuilder​(int index)
        repeated .org.platanios.tensorflow.proto.AllocationDescription referenced_tensor = 11;
      • getReferencedTensorBuilderList

        public java.util.List<AllocationDescription.Builder> getReferencedTensorBuilderList()
        repeated .org.platanios.tensorflow.proto.AllocationDescription referenced_tensor = 11;
      • hasMemoryStats

        public boolean hasMemoryStats()
        .org.platanios.tensorflow.proto.MemoryStats memory_stats = 12;
        Specified by:
        hasMemoryStats in interface NodeExecStatsOrBuilder
        Returns:
        Whether the memoryStats field is set.
      • clearMemoryStats

        public NodeExecStats.Builder clearMemoryStats()
        .org.platanios.tensorflow.proto.MemoryStats memory_stats = 12;
      • getMemoryStatsBuilder

        public MemoryStats.Builder getMemoryStatsBuilder()
        .org.platanios.tensorflow.proto.MemoryStats memory_stats = 12;
      • setAllStartNanos

        public NodeExecStats.Builder setAllStartNanos​(long value)
        int64 all_start_nanos = 13;
        Parameters:
        value - The allStartNanos to set.
        Returns:
        This builder for chaining.
      • clearAllStartNanos

        public NodeExecStats.Builder clearAllStartNanos()
        int64 all_start_nanos = 13;
        Returns:
        This builder for chaining.
      • setOpStartRelNanos

        public NodeExecStats.Builder setOpStartRelNanos​(long value)
        int64 op_start_rel_nanos = 14;
        Parameters:
        value - The opStartRelNanos to set.
        Returns:
        This builder for chaining.
      • clearOpStartRelNanos

        public NodeExecStats.Builder clearOpStartRelNanos()
        int64 op_start_rel_nanos = 14;
        Returns:
        This builder for chaining.
      • setOpEndRelNanos

        public NodeExecStats.Builder setOpEndRelNanos​(long value)
        int64 op_end_rel_nanos = 15;
        Parameters:
        value - The opEndRelNanos to set.
        Returns:
        This builder for chaining.
      • clearOpEndRelNanos

        public NodeExecStats.Builder clearOpEndRelNanos()
        int64 op_end_rel_nanos = 15;
        Returns:
        This builder for chaining.
      • setAllEndRelNanos

        public NodeExecStats.Builder setAllEndRelNanos​(long value)
        int64 all_end_rel_nanos = 16;
        Parameters:
        value - The allEndRelNanos to set.
        Returns:
        This builder for chaining.
      • clearAllEndRelNanos

        public NodeExecStats.Builder clearAllEndRelNanos()
        int64 all_end_rel_nanos = 16;
        Returns:
        This builder for chaining.
      • setScheduledNanos

        public NodeExecStats.Builder setScheduledNanos​(long value)
        int64 scheduled_nanos = 17;
        Parameters:
        value - The scheduledNanos to set.
        Returns:
        This builder for chaining.
      • clearScheduledNanos

        public NodeExecStats.Builder clearScheduledNanos()
        int64 scheduled_nanos = 17;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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