Class GraphDebugInfo.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, GraphDebugInfoOrBuilder
    Enclosing class:
    GraphDebugInfo

    public static final class GraphDebugInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<GraphDebugInfo.Builder>
    implements GraphDebugInfoOrBuilder
    Protobuf type org.platanios.tensorflow.proto.GraphDebugInfo
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<GraphDebugInfo.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<GraphDebugInfo.Builder>
      • internalGetFieldAccessorTable

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public com.google.protobuf.ProtocolStringList getFilesList()
         This stores all the source code file names and can be indexed by the
         `file_index`.
         
        repeated string files = 1;
        Specified by:
        getFilesList in interface GraphDebugInfoOrBuilder
        Returns:
        A list containing the files.
      • getFilesCount

        public int getFilesCount()
         This stores all the source code file names and can be indexed by the
         `file_index`.
         
        repeated string files = 1;
        Specified by:
        getFilesCount in interface GraphDebugInfoOrBuilder
        Returns:
        The count of files.
      • getFiles

        public java.lang.String getFiles​(int index)
         This stores all the source code file names and can be indexed by the
         `file_index`.
         
        repeated string files = 1;
        Specified by:
        getFiles in interface GraphDebugInfoOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The files at the given index.
      • getFilesBytes

        public com.google.protobuf.ByteString getFilesBytes​(int index)
         This stores all the source code file names and can be indexed by the
         `file_index`.
         
        repeated string files = 1;
        Specified by:
        getFilesBytes in interface GraphDebugInfoOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the files at the given index.
      • setFiles

        public GraphDebugInfo.Builder setFiles​(int index,
                                               java.lang.String value)
         This stores all the source code file names and can be indexed by the
         `file_index`.
         
        repeated string files = 1;
        Parameters:
        index - The index to set the value at.
        value - The files to set.
        Returns:
        This builder for chaining.
      • addFiles

        public GraphDebugInfo.Builder addFiles​(java.lang.String value)
         This stores all the source code file names and can be indexed by the
         `file_index`.
         
        repeated string files = 1;
        Parameters:
        value - The files to add.
        Returns:
        This builder for chaining.
      • addAllFiles

        public GraphDebugInfo.Builder addAllFiles​(java.lang.Iterable<java.lang.String> values)
         This stores all the source code file names and can be indexed by the
         `file_index`.
         
        repeated string files = 1;
        Parameters:
        values - The files to add.
        Returns:
        This builder for chaining.
      • clearFiles

        public GraphDebugInfo.Builder clearFiles()
         This stores all the source code file names and can be indexed by the
         `file_index`.
         
        repeated string files = 1;
        Returns:
        This builder for chaining.
      • addFilesBytes

        public GraphDebugInfo.Builder addFilesBytes​(com.google.protobuf.ByteString value)
         This stores all the source code file names and can be indexed by the
         `file_index`.
         
        repeated string files = 1;
        Parameters:
        value - The bytes of the files to add.
        Returns:
        This builder for chaining.
      • getTracesCount

        public int getTracesCount()
        Description copied from interface: GraphDebugInfoOrBuilder
         This maps a node name to a stack trace in the source code.
         The map key is a mangling of the containing function and op name with
         syntax:
           op.name '@' func_name
         For ops in the top-level graph, the func_name is the empty string.
         Note that op names are restricted to a small number of characters which
         exclude '@', making it impossible to collide keys of this form. Function
         names accept a much wider set of characters.
         It would be preferable to avoid mangling and use a tuple key of (op.name,
         func_name), but this is not supported with protocol buffers.
         
        map<string, .org.platanios.tensorflow.proto.GraphDebugInfo.StackTrace> traces = 2;
        Specified by:
        getTracesCount in interface GraphDebugInfoOrBuilder
      • containsTraces

        public boolean containsTraces​(java.lang.String key)
         This maps a node name to a stack trace in the source code.
         The map key is a mangling of the containing function and op name with
         syntax:
           op.name '@' func_name
         For ops in the top-level graph, the func_name is the empty string.
         Note that op names are restricted to a small number of characters which
         exclude '@', making it impossible to collide keys of this form. Function
         names accept a much wider set of characters.
         It would be preferable to avoid mangling and use a tuple key of (op.name,
         func_name), but this is not supported with protocol buffers.
         
        map<string, .org.platanios.tensorflow.proto.GraphDebugInfo.StackTrace> traces = 2;
        Specified by:
        containsTraces in interface GraphDebugInfoOrBuilder
      • getTracesMap

        public java.util.Map<java.lang.String,​GraphDebugInfo.StackTrace> getTracesMap()
         This maps a node name to a stack trace in the source code.
         The map key is a mangling of the containing function and op name with
         syntax:
           op.name '@' func_name
         For ops in the top-level graph, the func_name is the empty string.
         Note that op names are restricted to a small number of characters which
         exclude '@', making it impossible to collide keys of this form. Function
         names accept a much wider set of characters.
         It would be preferable to avoid mangling and use a tuple key of (op.name,
         func_name), but this is not supported with protocol buffers.
         
        map<string, .org.platanios.tensorflow.proto.GraphDebugInfo.StackTrace> traces = 2;
        Specified by:
        getTracesMap in interface GraphDebugInfoOrBuilder
      • getTracesOrDefault

        public GraphDebugInfo.StackTrace getTracesOrDefault​(java.lang.String key,
                                                            GraphDebugInfo.StackTrace defaultValue)
         This maps a node name to a stack trace in the source code.
         The map key is a mangling of the containing function and op name with
         syntax:
           op.name '@' func_name
         For ops in the top-level graph, the func_name is the empty string.
         Note that op names are restricted to a small number of characters which
         exclude '@', making it impossible to collide keys of this form. Function
         names accept a much wider set of characters.
         It would be preferable to avoid mangling and use a tuple key of (op.name,
         func_name), but this is not supported with protocol buffers.
         
        map<string, .org.platanios.tensorflow.proto.GraphDebugInfo.StackTrace> traces = 2;
        Specified by:
        getTracesOrDefault in interface GraphDebugInfoOrBuilder
      • getTracesOrThrow

        public GraphDebugInfo.StackTrace getTracesOrThrow​(java.lang.String key)
         This maps a node name to a stack trace in the source code.
         The map key is a mangling of the containing function and op name with
         syntax:
           op.name '@' func_name
         For ops in the top-level graph, the func_name is the empty string.
         Note that op names are restricted to a small number of characters which
         exclude '@', making it impossible to collide keys of this form. Function
         names accept a much wider set of characters.
         It would be preferable to avoid mangling and use a tuple key of (op.name,
         func_name), but this is not supported with protocol buffers.
         
        map<string, .org.platanios.tensorflow.proto.GraphDebugInfo.StackTrace> traces = 2;
        Specified by:
        getTracesOrThrow in interface GraphDebugInfoOrBuilder
      • removeTraces

        public GraphDebugInfo.Builder removeTraces​(java.lang.String key)
         This maps a node name to a stack trace in the source code.
         The map key is a mangling of the containing function and op name with
         syntax:
           op.name '@' func_name
         For ops in the top-level graph, the func_name is the empty string.
         Note that op names are restricted to a small number of characters which
         exclude '@', making it impossible to collide keys of this form. Function
         names accept a much wider set of characters.
         It would be preferable to avoid mangling and use a tuple key of (op.name,
         func_name), but this is not supported with protocol buffers.
         
        map<string, .org.platanios.tensorflow.proto.GraphDebugInfo.StackTrace> traces = 2;
      • getMutableTraces

        @Deprecated
        public java.util.Map<java.lang.String,​GraphDebugInfo.StackTrace> getMutableTraces()
        Deprecated.
        Use alternate mutation accessors instead.
      • putTraces

        public GraphDebugInfo.Builder putTraces​(java.lang.String key,
                                                GraphDebugInfo.StackTrace value)
         This maps a node name to a stack trace in the source code.
         The map key is a mangling of the containing function and op name with
         syntax:
           op.name '@' func_name
         For ops in the top-level graph, the func_name is the empty string.
         Note that op names are restricted to a small number of characters which
         exclude '@', making it impossible to collide keys of this form. Function
         names accept a much wider set of characters.
         It would be preferable to avoid mangling and use a tuple key of (op.name,
         func_name), but this is not supported with protocol buffers.
         
        map<string, .org.platanios.tensorflow.proto.GraphDebugInfo.StackTrace> traces = 2;
      • putAllTraces

        public GraphDebugInfo.Builder putAllTraces​(java.util.Map<java.lang.String,​GraphDebugInfo.StackTrace> values)
         This maps a node name to a stack trace in the source code.
         The map key is a mangling of the containing function and op name with
         syntax:
           op.name '@' func_name
         For ops in the top-level graph, the func_name is the empty string.
         Note that op names are restricted to a small number of characters which
         exclude '@', making it impossible to collide keys of this form. Function
         names accept a much wider set of characters.
         It would be preferable to avoid mangling and use a tuple key of (op.name,
         func_name), but this is not supported with protocol buffers.
         
        map<string, .org.platanios.tensorflow.proto.GraphDebugInfo.StackTrace> traces = 2;
      • setUnknownFields

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

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