Package net.morimekta.providence.model
Interface ProgramType_OrBuilder
-
- All Superinterfaces:
net.morimekta.providence.PMessageOrBuilder<ProgramType>
,net.morimekta.providence.PValue<ProgramType>
- All Known Implementing Classes:
ProgramType
,ProgramType._Builder
@Generated(value="net.morimekta.providence:providence-generator-java", comments="java:serializable") public interface ProgramType_OrBuilder extends net.morimekta.providence.PMessageOrBuilder<ProgramType>
<namespace>* <include>* <declataion>*
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<Declaration>
getDecl()
List of declarations in the program file.java.lang.String
getDocumentation()
Program documentation must come before the first statement of the header.java.util.Map<java.lang.String,java.lang.String>
getIncludes()
List of included thrift files.java.util.Map<java.lang.String,java.lang.String>
getNamespaces()
Map of language to laguage dependent namespace identifier.java.lang.String
getProgramName()
The program name, deducted from the .thrift IDL file name.boolean
hasDecl()
boolean
hasDocumentation()
boolean
hasIncludes()
boolean
hasNamespaces()
boolean
hasProgramName()
int
numDecl()
int
numIncludes()
int
numNamespaces()
java.util.Optional<java.util.List<Declaration>>
optionalDecl()
List of declarations in the program file.java.util.Optional<java.lang.String>
optionalDocumentation()
Program documentation must come before the first statement of the header.java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>
optionalIncludes()
List of included thrift files.java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>
optionalNamespaces()
Map of language to laguage dependent namespace identifier.
-
-
-
Method Detail
-
getDocumentation
java.lang.String getDocumentation()
Program documentation must come before the first statement of the header.- Returns:
- The documentation value.
-
optionalDocumentation
@Nonnull java.util.Optional<java.lang.String> optionalDocumentation()
Program documentation must come before the first statement of the header.- Returns:
- Optional documentation value.
-
hasDocumentation
boolean hasDocumentation()
- Returns:
- If documentation is present.
-
getProgramName
@Nonnull java.lang.String getProgramName()
The program name, deducted from the .thrift IDL file name.- Returns:
- The program_name value.
-
hasProgramName
boolean hasProgramName()
- Returns:
- If program_name is present.
-
getIncludes
java.util.Map<java.lang.String,java.lang.String> getIncludes()
List of included thrift files. Same as from the actual thrift file.include "<program>.thrift"
- Returns:
- The includes value.
-
optionalIncludes
@Nonnull java.util.Optional<java.util.Map<java.lang.String,java.lang.String>> optionalIncludes()
List of included thrift files. Same as from the actual thrift file.include "<program>.thrift"
- Returns:
- Optional includes value.
-
hasIncludes
boolean hasIncludes()
- Returns:
- If includes is present.
-
numIncludes
int numIncludes()
- Returns:
- Number of entries in includes.
-
getNamespaces
java.util.Map<java.lang.String,java.lang.String> getNamespaces()
Map of language to laguage dependent namespace identifier.namespace <key> <value>
- Returns:
- The namespaces value.
-
optionalNamespaces
@Nonnull java.util.Optional<java.util.Map<java.lang.String,java.lang.String>> optionalNamespaces()
Map of language to laguage dependent namespace identifier.namespace <key> <value>
- Returns:
- Optional namespaces value.
-
hasNamespaces
boolean hasNamespaces()
- Returns:
- If namespaces is present.
-
numNamespaces
int numNamespaces()
- Returns:
- Number of entries in namespaces.
-
getDecl
java.util.List<Declaration> getDecl()
List of declarations in the program file. Same order as in the thrift file.- Returns:
- The decl value.
-
optionalDecl
@Nonnull java.util.Optional<java.util.List<Declaration>> optionalDecl()
List of declarations in the program file. Same order as in the thrift file.- Returns:
- Optional decl value.
-
hasDecl
boolean hasDecl()
- Returns:
- If decl is present.
-
numDecl
int numDecl()
- Returns:
- Number of entries in decl.
-
-