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'.

    • 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.