Class SourceFile.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, SourceFileOrBuilder
    Enclosing class:
    SourceFile

    public static final class SourceFile.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SourceFile.Builder>
    implements SourceFileOrBuilder
     Content of a source file involved in the execution of the debugged TensorFlow
     program.
     
    Protobuf type org.platanios.tensorflow.proto.SourceFile
    • 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<SourceFile.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

        public java.lang.String getFilePath()
         Path to the file.
         
        string file_path = 1;
        Specified by:
        getFilePath in interface SourceFileOrBuilder
        Returns:
        The filePath.
      • getFilePathBytes

        public com.google.protobuf.ByteString getFilePathBytes()
         Path to the file.
         
        string file_path = 1;
        Specified by:
        getFilePathBytes in interface SourceFileOrBuilder
        Returns:
        The bytes for filePath.
      • setFilePath

        public SourceFile.Builder setFilePath​(java.lang.String value)
         Path to the file.
         
        string file_path = 1;
        Parameters:
        value - The filePath to set.
        Returns:
        This builder for chaining.
      • clearFilePath

        public SourceFile.Builder clearFilePath()
         Path to the file.
         
        string file_path = 1;
        Returns:
        This builder for chaining.
      • setFilePathBytes

        public SourceFile.Builder setFilePathBytes​(com.google.protobuf.ByteString value)
         Path to the file.
         
        string file_path = 1;
        Parameters:
        value - The bytes for filePath to set.
        Returns:
        This builder for chaining.
      • getHostName

        public java.lang.String getHostName()
         Name of the host on which the file is located.
         
        string host_name = 2;
        Specified by:
        getHostName in interface SourceFileOrBuilder
        Returns:
        The hostName.
      • getHostNameBytes

        public com.google.protobuf.ByteString getHostNameBytes()
         Name of the host on which the file is located.
         
        string host_name = 2;
        Specified by:
        getHostNameBytes in interface SourceFileOrBuilder
        Returns:
        The bytes for hostName.
      • setHostName

        public SourceFile.Builder setHostName​(java.lang.String value)
         Name of the host on which the file is located.
         
        string host_name = 2;
        Parameters:
        value - The hostName to set.
        Returns:
        This builder for chaining.
      • clearHostName

        public SourceFile.Builder clearHostName()
         Name of the host on which the file is located.
         
        string host_name = 2;
        Returns:
        This builder for chaining.
      • setHostNameBytes

        public SourceFile.Builder setHostNameBytes​(com.google.protobuf.ByteString value)
         Name of the host on which the file is located.
         
        string host_name = 2;
        Parameters:
        value - The bytes for hostName to set.
        Returns:
        This builder for chaining.
      • getLinesList

        public com.google.protobuf.ProtocolStringList getLinesList()
         Line-by-line content of the file.
         
        repeated string lines = 3;
        Specified by:
        getLinesList in interface SourceFileOrBuilder
        Returns:
        A list containing the lines.
      • getLinesCount

        public int getLinesCount()
         Line-by-line content of the file.
         
        repeated string lines = 3;
        Specified by:
        getLinesCount in interface SourceFileOrBuilder
        Returns:
        The count of lines.
      • getLines

        public java.lang.String getLines​(int index)
         Line-by-line content of the file.
         
        repeated string lines = 3;
        Specified by:
        getLines in interface SourceFileOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The lines at the given index.
      • getLinesBytes

        public com.google.protobuf.ByteString getLinesBytes​(int index)
         Line-by-line content of the file.
         
        repeated string lines = 3;
        Specified by:
        getLinesBytes in interface SourceFileOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the lines at the given index.
      • setLines

        public SourceFile.Builder setLines​(int index,
                                           java.lang.String value)
         Line-by-line content of the file.
         
        repeated string lines = 3;
        Parameters:
        index - The index to set the value at.
        value - The lines to set.
        Returns:
        This builder for chaining.
      • addLines

        public SourceFile.Builder addLines​(java.lang.String value)
         Line-by-line content of the file.
         
        repeated string lines = 3;
        Parameters:
        value - The lines to add.
        Returns:
        This builder for chaining.
      • addAllLines

        public SourceFile.Builder addAllLines​(java.lang.Iterable<java.lang.String> values)
         Line-by-line content of the file.
         
        repeated string lines = 3;
        Parameters:
        values - The lines to add.
        Returns:
        This builder for chaining.
      • clearLines

        public SourceFile.Builder clearLines()
         Line-by-line content of the file.
         
        repeated string lines = 3;
        Returns:
        This builder for chaining.
      • addLinesBytes

        public SourceFile.Builder addLinesBytes​(com.google.protobuf.ByteString value)
         Line-by-line content of the file.
         
        repeated string lines = 3;
        Parameters:
        value - The bytes of the lines to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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