Class DebugEvent.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, DebugEventOrBuilder
    Enclosing class:
    DebugEvent

    public static final class DebugEvent.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<DebugEvent.Builder>
    implements DebugEventOrBuilder
     An Event related to the debugging of a TensorFlow program.
     
    Protobuf type org.platanios.tensorflow.proto.DebugEvent
    • 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<DebugEvent.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public DebugEvent.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<DebugEvent.Builder>
        Throws:
        java.io.IOException
      • getWallTime

        public double getWallTime()
         Timestamp in seconds (with microsecond precision).
         
        double wall_time = 1;
        Specified by:
        getWallTime in interface DebugEventOrBuilder
        Returns:
        The wallTime.
      • setWallTime

        public DebugEvent.Builder setWallTime​(double value)
         Timestamp in seconds (with microsecond precision).
         
        double wall_time = 1;
        Parameters:
        value - The wallTime to set.
        Returns:
        This builder for chaining.
      • clearWallTime

        public DebugEvent.Builder clearWallTime()
         Timestamp in seconds (with microsecond precision).
         
        double wall_time = 1;
        Returns:
        This builder for chaining.
      • getStep

        public long getStep()
         Step of training (if available).
         
        int64 step = 2;
        Specified by:
        getStep in interface DebugEventOrBuilder
        Returns:
        The step.
      • setStep

        public DebugEvent.Builder setStep​(long value)
         Step of training (if available).
         
        int64 step = 2;
        Parameters:
        value - The step to set.
        Returns:
        This builder for chaining.
      • clearStep

        public DebugEvent.Builder clearStep()
         Step of training (if available).
         
        int64 step = 2;
        Returns:
        This builder for chaining.
      • hasDebugMetadata

        public boolean hasDebugMetadata()
         Metadata related to this debugging data.
         
        .org.platanios.tensorflow.proto.DebugMetadata debug_metadata = 3;
        Specified by:
        hasDebugMetadata in interface DebugEventOrBuilder
        Returns:
        Whether the debugMetadata field is set.
      • getDebugMetadata

        public DebugMetadata getDebugMetadata()
         Metadata related to this debugging data.
         
        .org.platanios.tensorflow.proto.DebugMetadata debug_metadata = 3;
        Specified by:
        getDebugMetadata in interface DebugEventOrBuilder
        Returns:
        The debugMetadata.
      • setDebugMetadata

        public DebugEvent.Builder setDebugMetadata​(DebugMetadata value)
         Metadata related to this debugging data.
         
        .org.platanios.tensorflow.proto.DebugMetadata debug_metadata = 3;
      • setDebugMetadata

        public DebugEvent.Builder setDebugMetadata​(DebugMetadata.Builder builderForValue)
         Metadata related to this debugging data.
         
        .org.platanios.tensorflow.proto.DebugMetadata debug_metadata = 3;
      • mergeDebugMetadata

        public DebugEvent.Builder mergeDebugMetadata​(DebugMetadata value)
         Metadata related to this debugging data.
         
        .org.platanios.tensorflow.proto.DebugMetadata debug_metadata = 3;
      • clearDebugMetadata

        public DebugEvent.Builder clearDebugMetadata()
         Metadata related to this debugging data.
         
        .org.platanios.tensorflow.proto.DebugMetadata debug_metadata = 3;
      • getDebugMetadataBuilder

        public DebugMetadata.Builder getDebugMetadataBuilder()
         Metadata related to this debugging data.
         
        .org.platanios.tensorflow.proto.DebugMetadata debug_metadata = 3;
      • hasSourceFile

        public boolean hasSourceFile()
         The content of a source file.
         
        .org.platanios.tensorflow.proto.SourceFile source_file = 4;
        Specified by:
        hasSourceFile in interface DebugEventOrBuilder
        Returns:
        Whether the sourceFile field is set.
      • getSourceFile

        public SourceFile getSourceFile()
         The content of a source file.
         
        .org.platanios.tensorflow.proto.SourceFile source_file = 4;
        Specified by:
        getSourceFile in interface DebugEventOrBuilder
        Returns:
        The sourceFile.
      • setSourceFile

        public DebugEvent.Builder setSourceFile​(SourceFile value)
         The content of a source file.
         
        .org.platanios.tensorflow.proto.SourceFile source_file = 4;
      • setSourceFile

        public DebugEvent.Builder setSourceFile​(SourceFile.Builder builderForValue)
         The content of a source file.
         
        .org.platanios.tensorflow.proto.SourceFile source_file = 4;
      • mergeSourceFile

        public DebugEvent.Builder mergeSourceFile​(SourceFile value)
         The content of a source file.
         
        .org.platanios.tensorflow.proto.SourceFile source_file = 4;
      • clearSourceFile

        public DebugEvent.Builder clearSourceFile()
         The content of a source file.
         
        .org.platanios.tensorflow.proto.SourceFile source_file = 4;
      • getSourceFileBuilder

        public SourceFile.Builder getSourceFileBuilder()
         The content of a source file.
         
        .org.platanios.tensorflow.proto.SourceFile source_file = 4;
      • hasStackFrameWithId

        public boolean hasStackFrameWithId()
         A stack frame (filename, line number and column number, function name and
         code string) with ID.
         
        .org.platanios.tensorflow.proto.StackFrameWithId stack_frame_with_id = 6;
        Specified by:
        hasStackFrameWithId in interface DebugEventOrBuilder
        Returns:
        Whether the stackFrameWithId field is set.
      • getStackFrameWithId

        public StackFrameWithId getStackFrameWithId()
         A stack frame (filename, line number and column number, function name and
         code string) with ID.
         
        .org.platanios.tensorflow.proto.StackFrameWithId stack_frame_with_id = 6;
        Specified by:
        getStackFrameWithId in interface DebugEventOrBuilder
        Returns:
        The stackFrameWithId.
      • setStackFrameWithId

        public DebugEvent.Builder setStackFrameWithId​(StackFrameWithId value)
         A stack frame (filename, line number and column number, function name and
         code string) with ID.
         
        .org.platanios.tensorflow.proto.StackFrameWithId stack_frame_with_id = 6;
      • setStackFrameWithId

        public DebugEvent.Builder setStackFrameWithId​(StackFrameWithId.Builder builderForValue)
         A stack frame (filename, line number and column number, function name and
         code string) with ID.
         
        .org.platanios.tensorflow.proto.StackFrameWithId stack_frame_with_id = 6;
      • mergeStackFrameWithId

        public DebugEvent.Builder mergeStackFrameWithId​(StackFrameWithId value)
         A stack frame (filename, line number and column number, function name and
         code string) with ID.
         
        .org.platanios.tensorflow.proto.StackFrameWithId stack_frame_with_id = 6;
      • clearStackFrameWithId

        public DebugEvent.Builder clearStackFrameWithId()
         A stack frame (filename, line number and column number, function name and
         code string) with ID.
         
        .org.platanios.tensorflow.proto.StackFrameWithId stack_frame_with_id = 6;
      • getStackFrameWithIdBuilder

        public StackFrameWithId.Builder getStackFrameWithIdBuilder()
         A stack frame (filename, line number and column number, function name and
         code string) with ID.
         
        .org.platanios.tensorflow.proto.StackFrameWithId stack_frame_with_id = 6;
      • hasGraphOpCreation

        public boolean hasGraphOpCreation()
         The creation of an op within a graph (e.g., a FuncGraph compiled from
         a Python function).
         
        .org.platanios.tensorflow.proto.GraphOpCreation graph_op_creation = 7;
        Specified by:
        hasGraphOpCreation in interface DebugEventOrBuilder
        Returns:
        Whether the graphOpCreation field is set.
      • getGraphOpCreation

        public GraphOpCreation getGraphOpCreation()
         The creation of an op within a graph (e.g., a FuncGraph compiled from
         a Python function).
         
        .org.platanios.tensorflow.proto.GraphOpCreation graph_op_creation = 7;
        Specified by:
        getGraphOpCreation in interface DebugEventOrBuilder
        Returns:
        The graphOpCreation.
      • setGraphOpCreation

        public DebugEvent.Builder setGraphOpCreation​(GraphOpCreation value)
         The creation of an op within a graph (e.g., a FuncGraph compiled from
         a Python function).
         
        .org.platanios.tensorflow.proto.GraphOpCreation graph_op_creation = 7;
      • setGraphOpCreation

        public DebugEvent.Builder setGraphOpCreation​(GraphOpCreation.Builder builderForValue)
         The creation of an op within a graph (e.g., a FuncGraph compiled from
         a Python function).
         
        .org.platanios.tensorflow.proto.GraphOpCreation graph_op_creation = 7;
      • mergeGraphOpCreation

        public DebugEvent.Builder mergeGraphOpCreation​(GraphOpCreation value)
         The creation of an op within a graph (e.g., a FuncGraph compiled from
         a Python function).
         
        .org.platanios.tensorflow.proto.GraphOpCreation graph_op_creation = 7;
      • clearGraphOpCreation

        public DebugEvent.Builder clearGraphOpCreation()
         The creation of an op within a graph (e.g., a FuncGraph compiled from
         a Python function).
         
        .org.platanios.tensorflow.proto.GraphOpCreation graph_op_creation = 7;
      • getGraphOpCreationBuilder

        public GraphOpCreation.Builder getGraphOpCreationBuilder()
         The creation of an op within a graph (e.g., a FuncGraph compiled from
         a Python function).
         
        .org.platanios.tensorflow.proto.GraphOpCreation graph_op_creation = 7;
      • hasDebuggedGraph

        public boolean hasDebuggedGraph()
         Information about a debugged graph.
         
        .org.platanios.tensorflow.proto.DebuggedGraph debugged_graph = 8;
        Specified by:
        hasDebuggedGraph in interface DebugEventOrBuilder
        Returns:
        Whether the debuggedGraph field is set.
      • getDebuggedGraph

        public DebuggedGraph getDebuggedGraph()
         Information about a debugged graph.
         
        .org.platanios.tensorflow.proto.DebuggedGraph debugged_graph = 8;
        Specified by:
        getDebuggedGraph in interface DebugEventOrBuilder
        Returns:
        The debuggedGraph.
      • setDebuggedGraph

        public DebugEvent.Builder setDebuggedGraph​(DebuggedGraph value)
         Information about a debugged graph.
         
        .org.platanios.tensorflow.proto.DebuggedGraph debugged_graph = 8;
      • setDebuggedGraph

        public DebugEvent.Builder setDebuggedGraph​(DebuggedGraph.Builder builderForValue)
         Information about a debugged graph.
         
        .org.platanios.tensorflow.proto.DebuggedGraph debugged_graph = 8;
      • mergeDebuggedGraph

        public DebugEvent.Builder mergeDebuggedGraph​(DebuggedGraph value)
         Information about a debugged graph.
         
        .org.platanios.tensorflow.proto.DebuggedGraph debugged_graph = 8;
      • clearDebuggedGraph

        public DebugEvent.Builder clearDebuggedGraph()
         Information about a debugged graph.
         
        .org.platanios.tensorflow.proto.DebuggedGraph debugged_graph = 8;
      • getDebuggedGraphBuilder

        public DebuggedGraph.Builder getDebuggedGraphBuilder()
         Information about a debugged graph.
         
        .org.platanios.tensorflow.proto.DebuggedGraph debugged_graph = 8;
      • hasExecution

        public boolean hasExecution()
         Execution of an op or a Graph (e.g., a tf.function).
         
        .org.platanios.tensorflow.proto.Execution execution = 9;
        Specified by:
        hasExecution in interface DebugEventOrBuilder
        Returns:
        Whether the execution field is set.
      • getExecution

        public Execution getExecution()
         Execution of an op or a Graph (e.g., a tf.function).
         
        .org.platanios.tensorflow.proto.Execution execution = 9;
        Specified by:
        getExecution in interface DebugEventOrBuilder
        Returns:
        The execution.
      • setExecution

        public DebugEvent.Builder setExecution​(Execution value)
         Execution of an op or a Graph (e.g., a tf.function).
         
        .org.platanios.tensorflow.proto.Execution execution = 9;
      • setExecution

        public DebugEvent.Builder setExecution​(Execution.Builder builderForValue)
         Execution of an op or a Graph (e.g., a tf.function).
         
        .org.platanios.tensorflow.proto.Execution execution = 9;
      • mergeExecution

        public DebugEvent.Builder mergeExecution​(Execution value)
         Execution of an op or a Graph (e.g., a tf.function).
         
        .org.platanios.tensorflow.proto.Execution execution = 9;
      • clearExecution

        public DebugEvent.Builder clearExecution()
         Execution of an op or a Graph (e.g., a tf.function).
         
        .org.platanios.tensorflow.proto.Execution execution = 9;
      • getExecutionBuilder

        public Execution.Builder getExecutionBuilder()
         Execution of an op or a Graph (e.g., a tf.function).
         
        .org.platanios.tensorflow.proto.Execution execution = 9;
      • hasGraphExecutionTrace

        public boolean hasGraphExecutionTrace()
         A graph execution trace: Contains information about the intermediate
         tensors computed during the graph execution.
         
        .org.platanios.tensorflow.proto.GraphExecutionTrace graph_execution_trace = 10;
        Specified by:
        hasGraphExecutionTrace in interface DebugEventOrBuilder
        Returns:
        Whether the graphExecutionTrace field is set.
      • getGraphExecutionTrace

        public GraphExecutionTrace getGraphExecutionTrace()
         A graph execution trace: Contains information about the intermediate
         tensors computed during the graph execution.
         
        .org.platanios.tensorflow.proto.GraphExecutionTrace graph_execution_trace = 10;
        Specified by:
        getGraphExecutionTrace in interface DebugEventOrBuilder
        Returns:
        The graphExecutionTrace.
      • setGraphExecutionTrace

        public DebugEvent.Builder setGraphExecutionTrace​(GraphExecutionTrace value)
         A graph execution trace: Contains information about the intermediate
         tensors computed during the graph execution.
         
        .org.platanios.tensorflow.proto.GraphExecutionTrace graph_execution_trace = 10;
      • setGraphExecutionTrace

        public DebugEvent.Builder setGraphExecutionTrace​(GraphExecutionTrace.Builder builderForValue)
         A graph execution trace: Contains information about the intermediate
         tensors computed during the graph execution.
         
        .org.platanios.tensorflow.proto.GraphExecutionTrace graph_execution_trace = 10;
      • mergeGraphExecutionTrace

        public DebugEvent.Builder mergeGraphExecutionTrace​(GraphExecutionTrace value)
         A graph execution trace: Contains information about the intermediate
         tensors computed during the graph execution.
         
        .org.platanios.tensorflow.proto.GraphExecutionTrace graph_execution_trace = 10;
      • clearGraphExecutionTrace

        public DebugEvent.Builder clearGraphExecutionTrace()
         A graph execution trace: Contains information about the intermediate
         tensors computed during the graph execution.
         
        .org.platanios.tensorflow.proto.GraphExecutionTrace graph_execution_trace = 10;
      • getGraphExecutionTraceBuilder

        public GraphExecutionTrace.Builder getGraphExecutionTraceBuilder()
         A graph execution trace: Contains information about the intermediate
         tensors computed during the graph execution.
         
        .org.platanios.tensorflow.proto.GraphExecutionTrace graph_execution_trace = 10;
      • getGraphId

        public java.lang.String getGraphId()
         The ID of the graph (i.e., FuncGraph) executed here: applicable only
         to the execution of a FuncGraph.
         
        string graph_id = 11;
        Specified by:
        getGraphId in interface DebugEventOrBuilder
        Returns:
        The graphId.
      • getGraphIdBytes

        public com.google.protobuf.ByteString getGraphIdBytes()
         The ID of the graph (i.e., FuncGraph) executed here: applicable only
         to the execution of a FuncGraph.
         
        string graph_id = 11;
        Specified by:
        getGraphIdBytes in interface DebugEventOrBuilder
        Returns:
        The bytes for graphId.
      • setGraphId

        public DebugEvent.Builder setGraphId​(java.lang.String value)
         The ID of the graph (i.e., FuncGraph) executed here: applicable only
         to the execution of a FuncGraph.
         
        string graph_id = 11;
        Parameters:
        value - The graphId to set.
        Returns:
        This builder for chaining.
      • clearGraphId

        public DebugEvent.Builder clearGraphId()
         The ID of the graph (i.e., FuncGraph) executed here: applicable only
         to the execution of a FuncGraph.
         
        string graph_id = 11;
        Returns:
        This builder for chaining.
      • setGraphIdBytes

        public DebugEvent.Builder setGraphIdBytes​(com.google.protobuf.ByteString value)
         The ID of the graph (i.e., FuncGraph) executed here: applicable only
         to the execution of a FuncGraph.
         
        string graph_id = 11;
        Parameters:
        value - The bytes for graphId to set.
        Returns:
        This builder for chaining.
      • hasDebuggedDevice

        public boolean hasDebuggedDevice()
         A device on which debugger-instrumented ops and/or tensors reside.
         
        .org.platanios.tensorflow.proto.DebuggedDevice debugged_device = 12;
        Specified by:
        hasDebuggedDevice in interface DebugEventOrBuilder
        Returns:
        Whether the debuggedDevice field is set.
      • getDebuggedDevice

        public DebuggedDevice getDebuggedDevice()
         A device on which debugger-instrumented ops and/or tensors reside.
         
        .org.platanios.tensorflow.proto.DebuggedDevice debugged_device = 12;
        Specified by:
        getDebuggedDevice in interface DebugEventOrBuilder
        Returns:
        The debuggedDevice.
      • setDebuggedDevice

        public DebugEvent.Builder setDebuggedDevice​(DebuggedDevice value)
         A device on which debugger-instrumented ops and/or tensors reside.
         
        .org.platanios.tensorflow.proto.DebuggedDevice debugged_device = 12;
      • setDebuggedDevice

        public DebugEvent.Builder setDebuggedDevice​(DebuggedDevice.Builder builderForValue)
         A device on which debugger-instrumented ops and/or tensors reside.
         
        .org.platanios.tensorflow.proto.DebuggedDevice debugged_device = 12;
      • mergeDebuggedDevice

        public DebugEvent.Builder mergeDebuggedDevice​(DebuggedDevice value)
         A device on which debugger-instrumented ops and/or tensors reside.
         
        .org.platanios.tensorflow.proto.DebuggedDevice debugged_device = 12;
      • clearDebuggedDevice

        public DebugEvent.Builder clearDebuggedDevice()
         A device on which debugger-instrumented ops and/or tensors reside.
         
        .org.platanios.tensorflow.proto.DebuggedDevice debugged_device = 12;
      • getDebuggedDeviceBuilder

        public DebuggedDevice.Builder getDebuggedDeviceBuilder()
         A device on which debugger-instrumented ops and/or tensors reside.
         
        .org.platanios.tensorflow.proto.DebuggedDevice debugged_device = 12;
      • setUnknownFields

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

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