public static class ProgramType._Builder extends net.morimekta.providence.PMessageBuilder<ProgramType> implements ProgramType_OrBuilder, net.morimekta.providence.serializer.binary.BinaryReader
| Constructor and Description |
|---|
_Builder()
Make a p_model.ProgramType builder instance.
|
_Builder(ProgramType base)
Make a mutating builder off a base p_model.ProgramType.
|
| Modifier and Type | Method and Description |
|---|---|
ProgramType._Builder |
addTo(int key,
Object value) |
ProgramType._Builder |
addToDecl(Declaration... values)
Adds entries to the
decl list. |
ProgramType |
build() |
ProgramType._Builder |
clear(int key) |
ProgramType._Builder |
clearDecl()
Clear the
decl field. |
ProgramType._Builder |
clearDocumentation()
Clear the
documentation field. |
ProgramType._Builder |
clearIncludes()
Clear the
includes field. |
ProgramType._Builder |
clearNamespaces()
Clear the
namespaces field. |
ProgramType._Builder |
clearProgramName()
Clear the
program_name field. |
net.morimekta.providence.descriptor.PStructDescriptor<ProgramType> |
descriptor() |
boolean |
equals(Object o) |
<T> T |
get(int key) |
List<Declaration> |
getDecl()
List of declarations in the program file.
|
String |
getDocumentation()
Program documentation must come before the first statement of the header.
|
Map<String,String> |
getIncludes()
List of included thrift files.
|
Map<String,String> |
getNamespaces()
Map of language to laguage dependent namespace identifier.
|
String |
getProgramName()
The program name, deducted from the .thrift IDL file name.
|
boolean |
has(int key) |
boolean |
hasDecl()
Checks for presence of the
decl field. |
boolean |
hasDocumentation()
Checks for presence of the
documentation field. |
int |
hashCode() |
boolean |
hasIncludes()
Checks for presence of the
includes field. |
boolean |
hasNamespaces()
Checks for presence of the
namespaces field. |
boolean |
hasProgramName()
Checks for presence of the
program_name field. |
boolean |
isModified(int key) |
boolean |
isModifiedDecl()
Checks if the
decl field has been modified since the
builder was created. |
boolean |
isModifiedDocumentation()
Checks if the
documentation field has been modified since the
builder was created. |
boolean |
isModifiedIncludes()
Checks if the
includes field has been modified since the
builder was created. |
boolean |
isModifiedNamespaces()
Checks if the
namespaces field has been modified since the
builder was created. |
boolean |
isModifiedProgramName()
Checks if the
program_name field has been modified since the
builder was created. |
boolean |
isSet(int key) |
boolean |
isSetDecl()
Checks for explicit presence of the
decl field. |
boolean |
isSetDocumentation()
Checks for explicit presence of the
documentation field. |
boolean |
isSetIncludes()
Checks for explicit presence of the
includes field. |
boolean |
isSetNamespaces()
Checks for explicit presence of the
namespaces field. |
boolean |
isSetProgramName()
Checks for explicit presence of the
program_name field. |
ProgramType._Builder |
merge(ProgramType from) |
List<Declaration> |
mutableDecl()
List of declarations in the program file.
|
Map<String,String> |
mutableIncludes()
List of included thrift files.
|
Map<String,String> |
mutableNamespaces()
Map of language to laguage dependent namespace identifier.
|
net.morimekta.providence.PMessageBuilder |
mutator(int key) |
int |
numDecl()
List of declarations in the program file.
|
int |
numIncludes()
List of included thrift files.
|
int |
numNamespaces()
Map of language to laguage dependent namespace identifier.
|
Optional<List<Declaration>> |
optionalDecl()
List of declarations in the program file.
|
Optional<String> |
optionalDocumentation()
Program documentation must come before the first statement of the header.
|
Optional<Map<String,String>> |
optionalIncludes()
List of included thrift files.
|
Optional<Map<String,String>> |
optionalNamespaces()
Map of language to laguage dependent namespace identifier.
|
ProgramType._Builder |
putInIncludes(String key,
String value)
Adds a mapping to the
includes map. |
ProgramType._Builder |
putInNamespaces(String key,
String value)
Adds a mapping to the
namespaces map. |
void |
readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict) |
ProgramType._Builder |
set(int key,
Object value) |
ProgramType._Builder |
setDecl(Collection<Declaration> value)
Set the
decl field value. |
ProgramType._Builder |
setDocumentation(String value)
Set the
documentation field value. |
ProgramType._Builder |
setIncludes(Map<String,String> value)
Set the
includes field value. |
ProgramType._Builder |
setNamespaces(Map<String,String> value)
Set the
namespaces field value. |
ProgramType._Builder |
setProgramName(String value)
Set the
program_name field value. |
boolean |
valid() |
ProgramType._Builder |
validate() |
addTo, clear, isModified, isSet, modifiedFieldNames, modifiedFields, mutator, presentFieldNames, presentFields, setpublic _Builder()
public _Builder(ProgramType base)
base - The base ProgramType@Nonnull public ProgramType._Builder merge(ProgramType from)
merge in class net.morimekta.providence.PMessageBuilder<ProgramType>@Nonnull public ProgramType._Builder setDocumentation(String value)
documentation field value.
Program documentation must come before the first statement of the header.
value - The new valuepublic boolean isSetDocumentation()
documentation field.public boolean hasDocumentation()
documentation field.hasDocumentation in interface ProgramType_OrBuilderpublic boolean isModifiedDocumentation()
documentation field has been modified since the
builder was created.@Nonnull public ProgramType._Builder clearDocumentation()
documentation field.public String getDocumentation()
getDocumentation in interface ProgramType_OrBuilderdocumentation field value@Nonnull public Optional<String> optionalDocumentation()
optionalDocumentation in interface ProgramType_OrBuilderdocumentation field value@Nonnull public ProgramType._Builder setProgramName(String value)
program_name field value.
The program name, deducted from the .thrift IDL file name.
value - The new valuepublic boolean isSetProgramName()
program_name field.public boolean hasProgramName()
program_name field.hasProgramName in interface ProgramType_OrBuilderpublic boolean isModifiedProgramName()
program_name field has been modified since the
builder was created.@Nonnull public ProgramType._Builder clearProgramName()
program_name field.public String getProgramName()
getProgramName in interface ProgramType_OrBuilderprogram_name field value@Nonnull public ProgramType._Builder setIncludes(Map<String,String> value)
includes field value.
List of included thrift files. Same as from the actual thrift file.
include "<program>.thrift"
value - The new value@Nonnull public ProgramType._Builder putInIncludes(String key, String value)
includes map.
List of included thrift files. Same as from the actual thrift file.
include "<program>.thrift"
key - The inserted keyvalue - The inserted valuepublic boolean isSetIncludes()
includes field.public boolean hasIncludes()
includes field.hasIncludes in interface ProgramType_OrBuilderpublic boolean isModifiedIncludes()
includes field has been modified since the
builder was created.@Nonnull public ProgramType._Builder clearIncludes()
includes field.public Map<String,String> mutableIncludes()
include "<program>.thrift"
includes containerpublic Map<String,String> getIncludes()
include "<program>.thrift"
getIncludes in interface ProgramType_OrBuilderincludes field value@Nonnull public Optional<Map<String,String>> optionalIncludes()
include "<program>.thrift"
optionalIncludes in interface ProgramType_OrBuilderincludes field valuepublic int numIncludes()
include "<program>.thrift"
numIncludes in interface ProgramType_OrBuilderincludes.@Nonnull public ProgramType._Builder setNamespaces(Map<String,String> value)
namespaces field value.
Map of language to laguage dependent namespace identifier.
namespace <key> <value>
value - The new value@Nonnull public ProgramType._Builder putInNamespaces(String key, String value)
namespaces map.
Map of language to laguage dependent namespace identifier.
namespace <key> <value>
key - The inserted keyvalue - The inserted valuepublic boolean isSetNamespaces()
namespaces field.public boolean hasNamespaces()
namespaces field.hasNamespaces in interface ProgramType_OrBuilderpublic boolean isModifiedNamespaces()
namespaces field has been modified since the
builder was created.@Nonnull public ProgramType._Builder clearNamespaces()
namespaces field.public Map<String,String> mutableNamespaces()
namespace <key> <value>
namespaces containerpublic Map<String,String> getNamespaces()
namespace <key> <value>
getNamespaces in interface ProgramType_OrBuildernamespaces field value@Nonnull public Optional<Map<String,String>> optionalNamespaces()
namespace <key> <value>
optionalNamespaces in interface ProgramType_OrBuildernamespaces field valuepublic int numNamespaces()
namespace <key> <value>
numNamespaces in interface ProgramType_OrBuildernamespaces.@Nonnull public ProgramType._Builder setDecl(Collection<Declaration> value)
decl field value.
List of declarations in the program file. Same order as in the thrift file.
value - The new value@Nonnull public ProgramType._Builder addToDecl(Declaration... values)
decl list.
List of declarations in the program file. Same order as in the thrift file.
values - The added valuepublic boolean isSetDecl()
decl field.public boolean hasDecl()
decl field.hasDecl in interface ProgramType_OrBuilderpublic boolean isModifiedDecl()
decl field has been modified since the
builder was created.@Nonnull public ProgramType._Builder clearDecl()
decl field.public List<Declaration> mutableDecl()
decl containerpublic List<Declaration> getDecl()
getDecl in interface ProgramType_OrBuilderdecl field value@Nonnull public Optional<List<Declaration>> optionalDecl()
optionalDecl in interface ProgramType_OrBuilderdecl field valuepublic int numDecl()
numDecl in interface ProgramType_OrBuilderdecl.public net.morimekta.providence.PMessageBuilder mutator(int key)
mutator in class net.morimekta.providence.PMessageBuilder<ProgramType>@Nonnull public ProgramType._Builder set(int key, Object value)
set in class net.morimekta.providence.PMessageBuilder<ProgramType>public boolean isSet(int key)
isSet in class net.morimekta.providence.PMessageBuilder<ProgramType>public boolean isModified(int key)
isModified in class net.morimekta.providence.PMessageBuilder<ProgramType>public <T> T get(int key)
get in interface net.morimekta.providence.PMessageOrBuilder<ProgramType>public boolean has(int key)
has in interface net.morimekta.providence.PMessageOrBuilder<ProgramType>@Nonnull public ProgramType._Builder addTo(int key, Object value)
addTo in class net.morimekta.providence.PMessageBuilder<ProgramType>@Nonnull public ProgramType._Builder clear(int key)
clear in class net.morimekta.providence.PMessageBuilder<ProgramType>public boolean valid()
valid in class net.morimekta.providence.PMessageBuilder<ProgramType>public ProgramType._Builder validate()
validate in class net.morimekta.providence.PMessageBuilder<ProgramType>@Nonnull public net.morimekta.providence.descriptor.PStructDescriptor<ProgramType> descriptor()
descriptor in interface net.morimekta.providence.PMessageOrBuilder<ProgramType>descriptor in interface net.morimekta.providence.PValue<ProgramType>public void readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict)
throws IOException
readBinary in interface net.morimekta.providence.serializer.binary.BinaryReaderIOException@Nonnull public ProgramType build()
build in class net.morimekta.providence.PMessageBuilder<ProgramType>Copyright © 2015–2020 morimekta.net. All rights reserved.