Class FunctionType._Builder

  • All Implemented Interfaces:
    net.morimekta.providence.PBuilder<FunctionType>, net.morimekta.providence.serializer.binary.BinaryReader
    Enclosing class:
    FunctionType

    public static class FunctionType._Builder
    extends net.morimekta.providence.PMessageBuilder<FunctionType,FunctionType._Field>
    implements net.morimekta.providence.serializer.binary.BinaryReader
    (oneway)? <return_type> <name>'('<param>*')' (throws '(' <exception>+ ')')?
    • Constructor Detail

      • _Builder

        public _Builder()
        Make a providence_model.FunctionType builder.
      • _Builder

        public _Builder​(FunctionType base)
        Make a mutating builder off a base providence_model.FunctionType.
        Parameters:
        base - The base FunctionType
    • Method Detail

      • setDocumentation

        @Nonnull
        public FunctionType._Builder setDocumentation​(java.lang.String value)
        Sets the value of documentation.
        Parameters:
        value - The new value
        Returns:
        The builder
      • isSetDocumentation

        public boolean isSetDocumentation()
        Checks for presence of the documentation field.
        Returns:
        True if documentation has been set.
      • isModifiedDocumentation

        public boolean isModifiedDocumentation()
        Checks if documentation has been modified since the _Builder was created.
        Returns:
        True if documentation has been modified.
      • clearDocumentation

        @Nonnull
        public FunctionType._Builder clearDocumentation()
        Clears the documentation field.
        Returns:
        The builder
      • getDocumentation

        public java.lang.String getDocumentation()
        Gets the value of the contained documentation.
        Returns:
        The field value
      • setOneWay

        @Nonnull
        public FunctionType._Builder setOneWay​(boolean value)
        Sets the value of one_way.
        Parameters:
        value - The new value
        Returns:
        The builder
      • isSetOneWay

        public boolean isSetOneWay()
        Checks for presence of the one_way field.
        Returns:
        True if one_way has been set.
      • isModifiedOneWay

        public boolean isModifiedOneWay()
        Checks if one_way has been modified since the _Builder was created.
        Returns:
        True if one_way has been modified.
      • clearOneWay

        @Nonnull
        public FunctionType._Builder clearOneWay()
        Clears the one_way field.
        Returns:
        The builder
      • getOneWay

        public boolean getOneWay()
        Gets the value of the contained one_way.
        Returns:
        The field value
      • setReturnType

        @Nonnull
        public FunctionType._Builder setReturnType​(java.lang.String value)
        Sets the value of return_type.
        Parameters:
        value - The new value
        Returns:
        The builder
      • isSetReturnType

        public boolean isSetReturnType()
        Checks for presence of the return_type field.
        Returns:
        True if return_type has been set.
      • isModifiedReturnType

        public boolean isModifiedReturnType()
        Checks if return_type has been modified since the _Builder was created.
        Returns:
        True if return_type has been modified.
      • clearReturnType

        @Nonnull
        public FunctionType._Builder clearReturnType()
        Clears the return_type field.
        Returns:
        The builder
      • getReturnType

        public java.lang.String getReturnType()
        Gets the value of the contained return_type.
        Returns:
        The field value
      • setName

        @Nonnull
        public FunctionType._Builder setName​(java.lang.String value)
        Sets the value of name.
        Parameters:
        value - The new value
        Returns:
        The builder
      • isSetName

        public boolean isSetName()
        Checks for presence of the name field.
        Returns:
        True if name has been set.
      • isModifiedName

        public boolean isModifiedName()
        Checks if name has been modified since the _Builder was created.
        Returns:
        True if name has been modified.
      • clearName

        @Nonnull
        public FunctionType._Builder clearName()
        Clears the name field.
        Returns:
        The builder
      • getName

        public java.lang.String getName()
        Gets the value of the contained name.
        Returns:
        The field value
      • setParams

        @Nonnull
        public FunctionType._Builder setParams​(java.util.Collection<FieldType> value)
        Sets the value of params.
        Parameters:
        value - The new value
        Returns:
        The builder
      • addToParams

        @Nonnull
        public FunctionType._Builder addToParams​(FieldType... values)
        Adds entries to params.
        Parameters:
        values - The added value
        Returns:
        The builder
      • isSetParams

        public boolean isSetParams()
        Checks for presence of the params field.
        Returns:
        True if params has been set.
      • isModifiedParams

        public boolean isModifiedParams()
        Checks if params has been modified since the _Builder was created.
        Returns:
        True if params has been modified.
      • clearParams

        @Nonnull
        public FunctionType._Builder clearParams()
        Clears the params field.
        Returns:
        The builder
      • mutableParams

        @Nonnull
        public java.util.List<FieldType> mutableParams()
        Gets the builder for the contained params.
        Returns:
        The field builder
      • setExceptions

        @Nonnull
        public FunctionType._Builder setExceptions​(java.util.Collection<FieldType> value)
        Sets the value of exceptions.
        Parameters:
        value - The new value
        Returns:
        The builder
      • addToExceptions

        @Nonnull
        public FunctionType._Builder addToExceptions​(FieldType... values)
        Adds entries to exceptions.
        Parameters:
        values - The added value
        Returns:
        The builder
      • isSetExceptions

        public boolean isSetExceptions()
        Checks for presence of the exceptions field.
        Returns:
        True if exceptions has been set.
      • isModifiedExceptions

        public boolean isModifiedExceptions()
        Checks if exceptions has been modified since the _Builder was created.
        Returns:
        True if exceptions has been modified.
      • clearExceptions

        @Nonnull
        public FunctionType._Builder clearExceptions()
        Clears the exceptions field.
        Returns:
        The builder
      • mutableExceptions

        @Nonnull
        public java.util.List<FieldType> mutableExceptions()
        Gets the builder for the contained exceptions.
        Returns:
        The field builder
      • setAnnotations

        @Nonnull
        public FunctionType._Builder setAnnotations​(java.util.Map<java.lang.String,java.lang.String> value)
        Sets the value of annotations.
        Parameters:
        value - The new value
        Returns:
        The builder
      • putInAnnotations

        @Nonnull
        public FunctionType._Builder putInAnnotations​(java.lang.String key,
                                                      java.lang.String value)
        Adds a mapping to annotations.
        Parameters:
        key - The inserted key
        value - The inserted value
        Returns:
        The builder
      • isSetAnnotations

        public boolean isSetAnnotations()
        Checks for presence of the annotations field.
        Returns:
        True if annotations has been set.
      • isModifiedAnnotations

        public boolean isModifiedAnnotations()
        Checks if annotations has been modified since the _Builder was created.
        Returns:
        True if annotations has been modified.
      • clearAnnotations

        @Nonnull
        public FunctionType._Builder clearAnnotations()
        Clears the annotations field.
        Returns:
        The builder
      • mutableAnnotations

        @Nonnull
        public java.util.Map<java.lang.String,java.lang.String> mutableAnnotations()
        Gets the builder for the contained annotations.
        Returns:
        The field builder
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • mutator

        public net.morimekta.providence.PMessageBuilder mutator​(int key)
        Specified by:
        mutator in class net.morimekta.providence.PMessageBuilder<FunctionType,FunctionType._Field>
      • isModified

        public boolean isModified​(int key)
        Specified by:
        isModified in class net.morimekta.providence.PMessageBuilder<FunctionType,FunctionType._Field>
      • readBinary

        public void readBinary​(net.morimekta.util.io.BigEndianBinaryReader reader,
                               boolean strict)
                        throws java.io.IOException
        Specified by:
        readBinary in interface net.morimekta.providence.serializer.binary.BinaryReader
        Throws:
        java.io.IOException
      • build

        public FunctionType build()
        Specified by:
        build in interface net.morimekta.providence.PBuilder<FunctionType>