Package net.morimekta.providence.model
Interface FieldType_OrBuilder
-
- All Superinterfaces:
Decl
,PMessageOrBuilder<FieldType>
,PValue<FieldType>
- All Known Implementing Classes:
FieldType
,FieldType._Builder
@Generated(value="net.morimekta.providence:providence-generator-java", comments="java:serializable") public interface FieldType_OrBuilder extends Decl, PMessageOrBuilder<FieldType>
For fields: (<key>:)? (required|optional)? <type> <name> (= <default_value>)? For const: const <type> <name> = <default_value>Fields without key is assigned values ranging from 65335 and down (2^16-1) in order of appearance. Because of the "in order of appearance" the field *must* be filled by the IDL parser.
Consts are always given the key '0'.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.morimekta.providence.model.Decl
Decl._Builder, Decl._Field
-
-
Field Summary
-
Fields inherited from interface net.morimekta.providence.model.Decl
kDescriptor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
getAnnotations()
java.lang.String
getDefaultValue()
int
getId()
FieldRequirement
getRequirement()
java.lang.String
getType()
boolean
hasAnnotations()
boolean
hasDefaultValue()
boolean
hasId()
boolean
hasRequirement()
boolean
hasType()
int
numAnnotations()
java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>
optionalAnnotations()
java.util.Optional<java.lang.String>
optionalDefaultValue()
java.util.Optional<FieldRequirement>
optionalRequirement()
-
Methods inherited from interface net.morimekta.providence.model.Decl
getDocumentation, getName, hasDocumentation, hasName, optionalDocumentation
-
Methods inherited from interface net.morimekta.providence.PMessageOrBuilder
descriptor, get, get, has, has, toBuilder, toMessage
-
-
-
-
Method Detail
-
getId
int getId()
- Returns:
- The id value.
-
hasId
boolean hasId()
- Returns:
- If id is present.
-
getRequirement
FieldRequirement getRequirement()
- Returns:
- The requirement value.
-
optionalRequirement
@Nonnull java.util.Optional<FieldRequirement> optionalRequirement()
- Returns:
- Optional requirement value.
-
hasRequirement
boolean hasRequirement()
- Returns:
- If requirement is present.
-
getType
@Nonnull java.lang.String getType()
- Returns:
- The type value.
-
hasType
boolean hasType()
- Returns:
- If type is present.
-
getDefaultValue
java.lang.String getDefaultValue()
- Returns:
- The default_value value.
-
optionalDefaultValue
@Nonnull java.util.Optional<java.lang.String> optionalDefaultValue()
- Returns:
- Optional default_value value.
-
hasDefaultValue
boolean hasDefaultValue()
- Returns:
- If default_value is present.
-
getAnnotations
java.util.Map<java.lang.String,java.lang.String> getAnnotations()
- Returns:
- The annotations value.
-
optionalAnnotations
@Nonnull java.util.Optional<java.util.Map<java.lang.String,java.lang.String>> optionalAnnotations()
- Returns:
- Optional annotations value.
-
hasAnnotations
boolean hasAnnotations()
- Returns:
- If annotations is present.
-
numAnnotations
int numAnnotations()
- Returns:
- Number of entries in annotations.
-
-