public static class FunctionType._Builder extends net.morimekta.providence.PMessageBuilder<FunctionType> implements Decl._Builder, FunctionType_OrBuilder, net.morimekta.providence.serializer.binary.BinaryReader
Decl._Builder, Decl._FieldkDescriptor| Constructor and Description |
|---|
_Builder()
Make a p_model.FunctionType builder instance.
|
_Builder(FunctionType base)
Make a mutating builder off a base p_model.FunctionType.
|
| Modifier and Type | Method and Description |
|---|---|
FunctionType._Builder |
addTo(int key,
Object value) |
FunctionType._Builder |
addToExceptions(FieldType... values)
Adds entries to the
exceptions list. |
FunctionType._Builder |
addToParams(FieldType... values)
Adds entries to the
params list. |
FunctionType |
build() |
FunctionType._Builder |
clear(int key) |
FunctionType._Builder |
clearAnnotations()
Clear the
annotations field. |
FunctionType._Builder |
clearDocumentation()
Clear the
documentation field. |
FunctionType._Builder |
clearExceptions()
Clear the
exceptions field. |
FunctionType._Builder |
clearName()
Clear the
name field. |
FunctionType._Builder |
clearOneWay()
Clear the
one_way field. |
FunctionType._Builder |
clearParams()
Clear the
params field. |
FunctionType._Builder |
clearReturnType()
Clear the
return_type field. |
net.morimekta.providence.descriptor.PStructDescriptor<FunctionType> |
descriptor() |
boolean |
equals(Object o) |
<T> T |
get(int key) |
Map<String,String> |
getAnnotations() |
String |
getDocumentation()
Documentation for the specific declaration.
|
List<FieldType> |
getExceptions() |
String |
getName()
Name of the type, constant or service.
|
List<FieldType> |
getParams() |
String |
getReturnType() |
boolean |
has(int key) |
boolean |
hasAnnotations()
Checks for presence of the
annotations field. |
boolean |
hasDocumentation()
Checks for presence of the
documentation field. |
boolean |
hasExceptions()
Checks for presence of the
exceptions field. |
int |
hashCode() |
boolean |
hasName()
Checks for presence of the
name field. |
boolean |
hasOneWay()
Checks for presence of the
one_way field. |
boolean |
hasParams()
Checks for presence of the
params field. |
boolean |
hasReturnType()
Checks for presence of the
return_type field. |
boolean |
isModified(int key) |
boolean |
isModifiedAnnotations()
Checks if the
annotations 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 |
isModifiedExceptions()
Checks if the
exceptions field has been modified since the
builder was created. |
boolean |
isModifiedName()
Checks if the
name field has been modified since the
builder was created. |
boolean |
isModifiedOneWay()
Checks if the
one_way field has been modified since the
builder was created. |
boolean |
isModifiedParams()
Checks if the
params field has been modified since the
builder was created. |
boolean |
isModifiedReturnType()
Checks if the
return_type field has been modified since the
builder was created. |
boolean |
isOneWay() |
boolean |
isSet(int key) |
boolean |
isSetAnnotations()
Checks for explicit presence of the
annotations field. |
boolean |
isSetDocumentation()
Checks for explicit presence of the
documentation field. |
boolean |
isSetExceptions()
Checks for explicit presence of the
exceptions field. |
boolean |
isSetName()
Checks for explicit presence of the
name field. |
boolean |
isSetOneWay()
Checks for explicit presence of the
one_way field. |
boolean |
isSetParams()
Checks for explicit presence of the
params field. |
boolean |
isSetReturnType()
Checks for explicit presence of the
return_type field. |
FunctionType._Builder |
merge(FunctionType from) |
Map<String,String> |
mutableAnnotations() |
List<FieldType> |
mutableExceptions() |
List<FieldType> |
mutableParams() |
net.morimekta.providence.PMessageBuilder |
mutator(int key) |
int |
numAnnotations() |
int |
numExceptions() |
int |
numParams() |
Optional<Map<String,String>> |
optionalAnnotations() |
Optional<String> |
optionalDocumentation()
Documentation for the specific declaration.
|
Optional<List<FieldType>> |
optionalExceptions() |
Optional<Boolean> |
optionalOneWay() |
Optional<String> |
optionalReturnType() |
FunctionType._Builder |
putInAnnotations(String key,
String value)
Adds a mapping to the
annotations map. |
void |
readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict) |
FunctionType._Builder |
set(int key,
Object value) |
FunctionType._Builder |
setAnnotations(Map<String,String> value)
Set the
annotations field value. |
FunctionType._Builder |
setDocumentation(String value)
Set the
documentation field value. |
FunctionType._Builder |
setExceptions(Collection<FieldType> value)
Set the
exceptions field value. |
FunctionType._Builder |
setName(String value)
Set the
name field value. |
FunctionType._Builder |
setOneWay(boolean value)
Set the
one_way field value. |
FunctionType._Builder |
setOneWay(Boolean value)
Set the
one_way field value. |
FunctionType._Builder |
setParams(Collection<FieldType> value)
Set the
params field value. |
FunctionType._Builder |
setReturnType(String value)
Set the
return_type field value. |
boolean |
valid() |
FunctionType._Builder |
validate() |
addTo, clear, isModified, isSet, modifiedFieldNames, modifiedFields, mutator, presentFieldNames, presentFields, setpublic _Builder()
public _Builder(FunctionType base)
base - The base FunctionType@Nonnull public FunctionType._Builder merge(FunctionType from)
merge in class net.morimekta.providence.PMessageBuilder<FunctionType>@Nonnull public FunctionType._Builder setDocumentation(String value)
documentation field value.setDocumentation in interface Decl._Buildervalue - The new valuepublic boolean isSetDocumentation()
documentation field.public boolean hasDocumentation()
documentation field.hasDocumentation in interface Declpublic boolean isModifiedDocumentation()
documentation field has been modified since the
builder was created.@Nonnull public FunctionType._Builder clearDocumentation()
documentation field.clearDocumentation in interface Decl._Builderpublic String getDocumentation()
DeclgetDocumentation in interface Decldocumentation field value@Nonnull public Optional<String> optionalDocumentation()
DecloptionalDocumentation in interface Decldocumentation field value@Nonnull public FunctionType._Builder setOneWay(Boolean value)
one_way field value.value - The new value@Nonnull public FunctionType._Builder setOneWay(boolean value)
one_way field value.value - The new valuepublic boolean isSetOneWay()
one_way field.public boolean hasOneWay()
one_way field.hasOneWay in interface FunctionType_OrBuilderpublic boolean isModifiedOneWay()
one_way field has been modified since the
builder was created.@Nonnull public FunctionType._Builder clearOneWay()
one_way field.public boolean isOneWay()
isOneWay in interface FunctionType_OrBuilderone_way field value@Nonnull public Optional<Boolean> optionalOneWay()
optionalOneWay in interface FunctionType_OrBuilderone_way field value@Nonnull public FunctionType._Builder setReturnType(String value)
return_type field value.value - The new valuepublic boolean isSetReturnType()
return_type field.public boolean hasReturnType()
return_type field.hasReturnType in interface FunctionType_OrBuilderpublic boolean isModifiedReturnType()
return_type field has been modified since the
builder was created.@Nonnull public FunctionType._Builder clearReturnType()
return_type field.public String getReturnType()
getReturnType in interface FunctionType_OrBuilderreturn_type field value@Nonnull public Optional<String> optionalReturnType()
optionalReturnType in interface FunctionType_OrBuilderreturn_type field value@Nonnull public FunctionType._Builder setName(String value)
name field value.setName in interface Decl._Buildervalue - The new valuepublic boolean isSetName()
name field.public boolean hasName()
name field.public boolean isModifiedName()
name field has been modified since the
builder was created.@Nonnull public FunctionType._Builder clearName()
name field.clearName in interface Decl._Builderpublic String getName()
Decl@Nonnull public FunctionType._Builder setParams(Collection<FieldType> value)
params field value.value - The new value@Nonnull public FunctionType._Builder addToParams(FieldType... values)
params list.values - The added valuepublic boolean isSetParams()
params field.public boolean hasParams()
params field.hasParams in interface FunctionType_OrBuilderpublic boolean isModifiedParams()
params field has been modified since the
builder was created.@Nonnull public FunctionType._Builder clearParams()
params field.public List<FieldType> getParams()
getParams in interface FunctionType_OrBuilderparams field valuepublic int numParams()
numParams in interface FunctionType_OrBuilderparams.@Nonnull public FunctionType._Builder setExceptions(Collection<FieldType> value)
exceptions field value.value - The new value@Nonnull public FunctionType._Builder addToExceptions(FieldType... values)
exceptions list.values - The added valuepublic boolean isSetExceptions()
exceptions field.public boolean hasExceptions()
exceptions field.hasExceptions in interface FunctionType_OrBuilderpublic boolean isModifiedExceptions()
exceptions field has been modified since the
builder was created.@Nonnull public FunctionType._Builder clearExceptions()
exceptions field.public List<FieldType> mutableExceptions()
exceptions containerpublic List<FieldType> getExceptions()
getExceptions in interface FunctionType_OrBuilderexceptions field value@Nonnull public Optional<List<FieldType>> optionalExceptions()
optionalExceptions in interface FunctionType_OrBuilderexceptions field valuepublic int numExceptions()
numExceptions in interface FunctionType_OrBuilderexceptions.@Nonnull public FunctionType._Builder setAnnotations(Map<String,String> value)
annotations field value.value - The new value@Nonnull public FunctionType._Builder putInAnnotations(String key, String value)
annotations map.key - The inserted keyvalue - The inserted valuepublic boolean isSetAnnotations()
annotations field.public boolean hasAnnotations()
annotations field.hasAnnotations in interface FunctionType_OrBuilderpublic boolean isModifiedAnnotations()
annotations field has been modified since the
builder was created.@Nonnull public FunctionType._Builder clearAnnotations()
annotations field.public Map<String,String> mutableAnnotations()
annotations containerpublic Map<String,String> getAnnotations()
getAnnotations in interface FunctionType_OrBuilderannotations field value@Nonnull public Optional<Map<String,String>> optionalAnnotations()
optionalAnnotations in interface FunctionType_OrBuilderannotations field valuepublic int numAnnotations()
numAnnotations in interface FunctionType_OrBuilderannotations.public net.morimekta.providence.PMessageBuilder mutator(int key)
mutator in class net.morimekta.providence.PMessageBuilder<FunctionType>@Nonnull public FunctionType._Builder set(int key, Object value)
set in class net.morimekta.providence.PMessageBuilder<FunctionType>public boolean isSet(int key)
isSet in class net.morimekta.providence.PMessageBuilder<FunctionType>public boolean isModified(int key)
isModified in class net.morimekta.providence.PMessageBuilder<FunctionType>public <T> T get(int key)
get in interface net.morimekta.providence.PMessageOrBuilder<FunctionType>public boolean has(int key)
has in interface net.morimekta.providence.PMessageOrBuilder<FunctionType>@Nonnull public FunctionType._Builder addTo(int key, Object value)
addTo in class net.morimekta.providence.PMessageBuilder<FunctionType>@Nonnull public FunctionType._Builder clear(int key)
clear in class net.morimekta.providence.PMessageBuilder<FunctionType>public boolean valid()
valid in class net.morimekta.providence.PMessageBuilder<FunctionType>public FunctionType._Builder validate()
validate in class net.morimekta.providence.PMessageBuilder<FunctionType>@Nonnull public net.morimekta.providence.descriptor.PStructDescriptor<FunctionType> descriptor()
descriptor in interface net.morimekta.providence.PMessageOrBuilder<FunctionType>descriptor in interface net.morimekta.providence.PValue<FunctionType>public void readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict)
throws IOException
readBinary in interface net.morimekta.providence.serializer.binary.BinaryReaderIOException@Nonnull public FunctionType build()
build in interface Decl._Builderbuild in class net.morimekta.providence.PMessageBuilder<FunctionType>Copyright © 2015–2020 morimekta.net. All rights reserved.