Package net.morimekta.providence.model
Interface ProgramMeta_OrBuilder
-
- All Superinterfaces:
PMessageOrBuilder<ProgramMeta>
,PValue<ProgramMeta>
- All Known Implementing Classes:
ProgramMeta
,ProgramMeta._Builder
@Generated(value="net.morimekta.providence:providence-generator-java", comments="java:serializable") public interface ProgramMeta_OrBuilder extends PMessageOrBuilder<ProgramMeta>
A meta object describing a parsed program file. This may include the included programs as their own meta file. The lines of the original program .thrift file is also included.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<java.lang.String>
getFileLines()
The lines of the program filejava.lang.String
getFilePath()
Full absolute path to the file.java.util.Map<java.lang.String,ProgramMeta>
getIncludes()
Map of program name to meta of included programsProgramType
getProgram()
The program type definitionboolean
hasFileLines()
boolean
hasFilePath()
boolean
hasIncludes()
boolean
hasProgram()
int
numFileLines()
int
numIncludes()
java.util.Optional<java.util.List<java.lang.String>>
optionalFileLines()
The lines of the program filejava.util.Optional<java.lang.String>
optionalFilePath()
Full absolute path to the file.java.util.Optional<java.util.Map<java.lang.String,ProgramMeta>>
optionalIncludes()
Map of program name to meta of included programsjava.util.Optional<ProgramType>
optionalProgram()
The program type definition-
Methods inherited from interface net.morimekta.providence.PMessageOrBuilder
descriptor, get, get, has, has, toBuilder, toMessage
-
-
-
-
Method Detail
-
getFilePath
java.lang.String getFilePath()
Full absolute path to the file.- Returns:
- The file_path value.
-
optionalFilePath
@Nonnull java.util.Optional<java.lang.String> optionalFilePath()
Full absolute path to the file.- Returns:
- Optional file_path value.
-
hasFilePath
boolean hasFilePath()
- Returns:
- If file_path is present.
-
getFileLines
java.util.List<java.lang.String> getFileLines()
The lines of the program file- Returns:
- The file_lines value.
-
optionalFileLines
@Nonnull java.util.Optional<java.util.List<java.lang.String>> optionalFileLines()
The lines of the program file- Returns:
- Optional file_lines value.
-
hasFileLines
boolean hasFileLines()
- Returns:
- If file_lines is present.
-
numFileLines
int numFileLines()
- Returns:
- Number of entries in file_lines.
-
getProgram
ProgramType getProgram()
The program type definition- Returns:
- The program value.
-
optionalProgram
@Nonnull java.util.Optional<ProgramType> optionalProgram()
The program type definition- Returns:
- Optional program value.
-
hasProgram
boolean hasProgram()
- Returns:
- If program is present.
-
getIncludes
java.util.Map<java.lang.String,ProgramMeta> getIncludes()
Map of program name to meta of included programs- Returns:
- The includes value.
-
optionalIncludes
@Nonnull java.util.Optional<java.util.Map<java.lang.String,ProgramMeta>> optionalIncludes()
Map of program name to meta of included programs- Returns:
- Optional includes value.
-
hasIncludes
boolean hasIncludes()
- Returns:
- If includes is present.
-
numIncludes
int numIncludes()
- Returns:
- Number of entries in includes.
-
-