Class DebuggedGraph.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, DebuggedGraphOrBuilder
    Enclosing class:
    DebuggedGraph

    public static final class DebuggedGraph.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<DebuggedGraph.Builder>
    implements DebuggedGraphOrBuilder
     A debugger-instrumented graph.
     
    Protobuf type org.platanios.tensorflow.proto.DebuggedGraph
    • 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<DebuggedGraph.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

        public java.lang.String getGraphId()
         An ID for the graph.
         This can be used up to look up graph names. Generated by the debugger.
         
        string graph_id = 1;
        Specified by:
        getGraphId in interface DebuggedGraphOrBuilder
        Returns:
        The graphId.
      • getGraphIdBytes

        public com.google.protobuf.ByteString getGraphIdBytes()
         An ID for the graph.
         This can be used up to look up graph names. Generated by the debugger.
         
        string graph_id = 1;
        Specified by:
        getGraphIdBytes in interface DebuggedGraphOrBuilder
        Returns:
        The bytes for graphId.
      • setGraphId

        public DebuggedGraph.Builder setGraphId​(java.lang.String value)
         An ID for the graph.
         This can be used up to look up graph names. Generated by the debugger.
         
        string graph_id = 1;
        Parameters:
        value - The graphId to set.
        Returns:
        This builder for chaining.
      • clearGraphId

        public DebuggedGraph.Builder clearGraphId()
         An ID for the graph.
         This can be used up to look up graph names. Generated by the debugger.
         
        string graph_id = 1;
        Returns:
        This builder for chaining.
      • setGraphIdBytes

        public DebuggedGraph.Builder setGraphIdBytes​(com.google.protobuf.ByteString value)
         An ID for the graph.
         This can be used up to look up graph names. Generated by the debugger.
         
        string graph_id = 1;
        Parameters:
        value - The bytes for graphId to set.
        Returns:
        This builder for chaining.
      • getGraphName

        public java.lang.String getGraphName()
         Name of the graph (if available).
         
        string graph_name = 2;
        Specified by:
        getGraphName in interface DebuggedGraphOrBuilder
        Returns:
        The graphName.
      • getGraphNameBytes

        public com.google.protobuf.ByteString getGraphNameBytes()
         Name of the graph (if available).
         
        string graph_name = 2;
        Specified by:
        getGraphNameBytes in interface DebuggedGraphOrBuilder
        Returns:
        The bytes for graphName.
      • setGraphName

        public DebuggedGraph.Builder setGraphName​(java.lang.String value)
         Name of the graph (if available).
         
        string graph_name = 2;
        Parameters:
        value - The graphName to set.
        Returns:
        This builder for chaining.
      • clearGraphName

        public DebuggedGraph.Builder clearGraphName()
         Name of the graph (if available).
         
        string graph_name = 2;
        Returns:
        This builder for chaining.
      • setGraphNameBytes

        public DebuggedGraph.Builder setGraphNameBytes​(com.google.protobuf.ByteString value)
         Name of the graph (if available).
         
        string graph_name = 2;
        Parameters:
        value - The bytes for graphName to set.
        Returns:
        This builder for chaining.
      • getInstrumentedOpsList

        public com.google.protobuf.ProtocolStringList getInstrumentedOpsList()
         Names of the instrumented ops. This can be used to look up op name
         based on the numeric-summary tensors (2nd column).
         
        repeated string instrumented_ops = 3;
        Specified by:
        getInstrumentedOpsList in interface DebuggedGraphOrBuilder
        Returns:
        A list containing the instrumentedOps.
      • getInstrumentedOpsCount

        public int getInstrumentedOpsCount()
         Names of the instrumented ops. This can be used to look up op name
         based on the numeric-summary tensors (2nd column).
         
        repeated string instrumented_ops = 3;
        Specified by:
        getInstrumentedOpsCount in interface DebuggedGraphOrBuilder
        Returns:
        The count of instrumentedOps.
      • getInstrumentedOps

        public java.lang.String getInstrumentedOps​(int index)
         Names of the instrumented ops. This can be used to look up op name
         based on the numeric-summary tensors (2nd column).
         
        repeated string instrumented_ops = 3;
        Specified by:
        getInstrumentedOps in interface DebuggedGraphOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The instrumentedOps at the given index.
      • getInstrumentedOpsBytes

        public com.google.protobuf.ByteString getInstrumentedOpsBytes​(int index)
         Names of the instrumented ops. This can be used to look up op name
         based on the numeric-summary tensors (2nd column).
         
        repeated string instrumented_ops = 3;
        Specified by:
        getInstrumentedOpsBytes in interface DebuggedGraphOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the instrumentedOps at the given index.
      • setInstrumentedOps

        public DebuggedGraph.Builder setInstrumentedOps​(int index,
                                                        java.lang.String value)
         Names of the instrumented ops. This can be used to look up op name
         based on the numeric-summary tensors (2nd column).
         
        repeated string instrumented_ops = 3;
        Parameters:
        index - The index to set the value at.
        value - The instrumentedOps to set.
        Returns:
        This builder for chaining.
      • addInstrumentedOps

        public DebuggedGraph.Builder addInstrumentedOps​(java.lang.String value)
         Names of the instrumented ops. This can be used to look up op name
         based on the numeric-summary tensors (2nd column).
         
        repeated string instrumented_ops = 3;
        Parameters:
        value - The instrumentedOps to add.
        Returns:
        This builder for chaining.
      • addAllInstrumentedOps

        public DebuggedGraph.Builder addAllInstrumentedOps​(java.lang.Iterable<java.lang.String> values)
         Names of the instrumented ops. This can be used to look up op name
         based on the numeric-summary tensors (2nd column).
         
        repeated string instrumented_ops = 3;
        Parameters:
        values - The instrumentedOps to add.
        Returns:
        This builder for chaining.
      • clearInstrumentedOps

        public DebuggedGraph.Builder clearInstrumentedOps()
         Names of the instrumented ops. This can be used to look up op name
         based on the numeric-summary tensors (2nd column).
         
        repeated string instrumented_ops = 3;
        Returns:
        This builder for chaining.
      • addInstrumentedOpsBytes

        public DebuggedGraph.Builder addInstrumentedOpsBytes​(com.google.protobuf.ByteString value)
         Names of the instrumented ops. This can be used to look up op name
         based on the numeric-summary tensors (2nd column).
         
        repeated string instrumented_ops = 3;
        Parameters:
        value - The bytes of the instrumentedOps to add.
        Returns:
        This builder for chaining.
      • getOriginalGraphDef

        public com.google.protobuf.ByteString getOriginalGraphDef()
         Original (uninstrumented) GraphDef (if available).
         
        bytes original_graph_def = 4;
        Specified by:
        getOriginalGraphDef in interface DebuggedGraphOrBuilder
        Returns:
        The originalGraphDef.
      • setOriginalGraphDef

        public DebuggedGraph.Builder setOriginalGraphDef​(com.google.protobuf.ByteString value)
         Original (uninstrumented) GraphDef (if available).
         
        bytes original_graph_def = 4;
        Parameters:
        value - The originalGraphDef to set.
        Returns:
        This builder for chaining.
      • clearOriginalGraphDef

        public DebuggedGraph.Builder clearOriginalGraphDef()
         Original (uninstrumented) GraphDef (if available).
         
        bytes original_graph_def = 4;
        Returns:
        This builder for chaining.
      • getInstrumentedGraphDef

        public com.google.protobuf.ByteString getInstrumentedGraphDef()
         An encoded version of a GraphDef.
         This graph may include the debugger-inserted ops.
         
        bytes instrumented_graph_def = 5;
        Specified by:
        getInstrumentedGraphDef in interface DebuggedGraphOrBuilder
        Returns:
        The instrumentedGraphDef.
      • setInstrumentedGraphDef

        public DebuggedGraph.Builder setInstrumentedGraphDef​(com.google.protobuf.ByteString value)
         An encoded version of a GraphDef.
         This graph may include the debugger-inserted ops.
         
        bytes instrumented_graph_def = 5;
        Parameters:
        value - The instrumentedGraphDef to set.
        Returns:
        This builder for chaining.
      • clearInstrumentedGraphDef

        public DebuggedGraph.Builder clearInstrumentedGraphDef()
         An encoded version of a GraphDef.
         This graph may include the debugger-inserted ops.
         
        bytes instrumented_graph_def = 5;
        Returns:
        This builder for chaining.
      • getOuterContextId

        public java.lang.String getOuterContextId()
         IDs of the immediate enclosing context (graph), if any.
         
        string outer_context_id = 6;
        Specified by:
        getOuterContextId in interface DebuggedGraphOrBuilder
        Returns:
        The outerContextId.
      • getOuterContextIdBytes

        public com.google.protobuf.ByteString getOuterContextIdBytes()
         IDs of the immediate enclosing context (graph), if any.
         
        string outer_context_id = 6;
        Specified by:
        getOuterContextIdBytes in interface DebuggedGraphOrBuilder
        Returns:
        The bytes for outerContextId.
      • setOuterContextId

        public DebuggedGraph.Builder setOuterContextId​(java.lang.String value)
         IDs of the immediate enclosing context (graph), if any.
         
        string outer_context_id = 6;
        Parameters:
        value - The outerContextId to set.
        Returns:
        This builder for chaining.
      • clearOuterContextId

        public DebuggedGraph.Builder clearOuterContextId()
         IDs of the immediate enclosing context (graph), if any.
         
        string outer_context_id = 6;
        Returns:
        This builder for chaining.
      • setOuterContextIdBytes

        public DebuggedGraph.Builder setOuterContextIdBytes​(com.google.protobuf.ByteString value)
         IDs of the immediate enclosing context (graph), if any.
         
        string outer_context_id = 6;
        Parameters:
        value - The bytes for outerContextId to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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