Class ProgramMeta

    • Method Detail

      • getFilePath

        public java.lang.String getFilePath()
        Full absolute path to the file.
        Specified by:
        getFilePath in interface ProgramMeta_OrBuilder
        Returns:
        The file_path value
      • optionalFilePath

        @Nonnull
        public java.util.Optional<java.lang.String> optionalFilePath()
        Full absolute path to the file.
        Specified by:
        optionalFilePath in interface ProgramMeta_OrBuilder
        Returns:
        Optional of the file_path field value.
      • getFileLines

        public java.util.List<java.lang.String> getFileLines()
        The lines of the program file
        Specified by:
        getFileLines in interface ProgramMeta_OrBuilder
        Returns:
        The file_lines value
      • optionalFileLines

        @Nonnull
        public java.util.Optional<java.util.List<java.lang.String>> optionalFileLines()
        The lines of the program file
        Specified by:
        optionalFileLines in interface ProgramMeta_OrBuilder
        Returns:
        Optional of the file_lines field value.
      • getIncludes

        public java.util.Map<java.lang.String,​ProgramMeta> getIncludes()
        Map of program name to meta of included programs
        Specified by:
        getIncludes in interface ProgramMeta_OrBuilder
        Returns:
        The includes value
      • optionalIncludes

        @Nonnull
        public java.util.Optional<java.util.Map<java.lang.String,​ProgramMeta>> optionalIncludes()
        Map of program name to meta of included programs
        Specified by:
        optionalIncludes in interface ProgramMeta_OrBuilder
        Returns:
        Optional of the includes field value.
      • has

        public boolean has​(int key)
        Specified by:
        has in interface PMessageOrBuilder<ProgramMeta>
        Parameters:
        key - The key of the field.
        Returns:
        Whether the field is present.
      • get

        public <T> T get​(int key)
        Specified by:
        get in interface PMessageOrBuilder<ProgramMeta>
        Type Parameters:
        T - The return type.
        Parameters:
        key - The key of the field.
        Returns:
        The value of the field.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • asString

        @Nonnull
        public java.lang.String asString()
        Description copied from interface: PMessage
        Pure string representation of content. Does not contain type info.
        Specified by:
        asString in interface PMessage<ProgramMeta>
        Specified by:
        asString in interface net.morimekta.util.Stringable
        Returns:
        String representation.
      • compareTo

        public int compareTo​(ProgramMeta other)
        Specified by:
        compareTo in interface java.lang.Comparable<ProgramMeta>
      • writeBinary

        public int writeBinary​(net.morimekta.util.io.BigEndianBinaryWriter writer)
                        throws java.io.IOException
        Description copied from interface: BinaryWriter
        Write the current message to the binary writer. NOTE: This method is not intended to be used directly. Instead use the BinarySerializer.serialize(OutputStream, PMessageOrBuilder) call.
        Specified by:
        writeBinary in interface BinaryWriter
        Parameters:
        writer - The binary writer to write to.
        Returns:
        The number of bytes written.
        Throws:
        java.io.IOException - If it failed to write the message for any reason.
      • builder

        public static ProgramMeta._Builder builder()
        Make a p_model.ProgramMeta builder.
        Returns:
        The builder instance.