Class FunctionType._Builder

    • Constructor Detail

      • _Builder

        public _Builder()
        Make a p_model.FunctionType builder instance.
      • _Builder

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

      • setDocumentation

        @Nonnull
        public FunctionType._Builder setDocumentation​(java.lang.String value)
        Set the documentation field value.
        Specified by:
        setDocumentation in interface Decl._Builder
        Parameters:
        value - The new value
        Returns:
        The builder
      • isSetDocumentation

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

        public boolean hasDocumentation()
        Checks for presence of the documentation field.
        Specified by:
        hasDocumentation in interface Decl
        Returns:
        True if documentation is present.
      • isModifiedDocumentation

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

        public java.lang.String getDocumentation()
        Description copied from interface: Decl
        Documentation for the specific declaration.
        Specified by:
        getDocumentation in interface Decl
        Returns:
        The documentation field value
      • optionalDocumentation

        @Nonnull
        public java.util.Optional<java.lang.String> optionalDocumentation()
        Description copied from interface: Decl
        Documentation for the specific declaration.
        Specified by:
        optionalDocumentation in interface Decl
        Returns:
        Optional documentation field value
      • setOneWay

        @Nonnull
        public FunctionType._Builder setOneWay​(java.lang.Boolean value)
        Set the one_way field value.
        Parameters:
        value - The new value
        Returns:
        The builder
      • setOneWay

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

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

        public boolean hasOneWay()
        Checks for presence of the one_way field.
        Specified by:
        hasOneWay in interface FunctionType_OrBuilder
        Returns:
        True if one_way is present.
      • isModifiedOneWay

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

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

        @Nonnull
        public java.util.Optional<java.lang.Boolean> optionalOneWay()
        Specified by:
        optionalOneWay in interface FunctionType_OrBuilder
        Returns:
        Optional one_way field value
      • setReturnType

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

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

        public boolean hasReturnType()
        Checks for presence of the return_type field.
        Specified by:
        hasReturnType in interface FunctionType_OrBuilder
        Returns:
        True if return_type is present.
      • isModifiedReturnType

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

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

        @Nonnull
        public java.util.Optional<java.lang.String> optionalReturnType()
        Specified by:
        optionalReturnType in interface FunctionType_OrBuilder
        Returns:
        Optional return_type field value
      • setName

        @Nonnull
        public FunctionType._Builder setName​(java.lang.String value)
        Set the name field value.
        Specified by:
        setName in interface Decl._Builder
        Parameters:
        value - The new value
        Returns:
        The builder
      • isSetName

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

        public boolean hasName()
        Checks for presence of the name field.
        Specified by:
        hasName in interface Decl
        Returns:
        True if name is present.
      • isModifiedName

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

        public java.lang.String getName()
        Description copied from interface: Decl
        Name of the type, constant or service.
        Specified by:
        getName in interface Decl
        Returns:
        The name field value
      • setParams

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

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

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

        public boolean hasParams()
        Checks for presence of the params field.
        Specified by:
        hasParams in interface FunctionType_OrBuilder
        Returns:
        True if params is present.
      • isModifiedParams

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

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

        public java.util.List<FieldType> mutableParams()
        Returns:
        The mutable params container
      • setExceptions

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

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

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

        public boolean hasExceptions()
        Checks for presence of the exceptions field.
        Specified by:
        hasExceptions in interface FunctionType_OrBuilder
        Returns:
        True if exceptions is present.
      • isModifiedExceptions

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

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

        public java.util.List<FieldType> mutableExceptions()
        Returns:
        The mutable exceptions container
      • setAnnotations

        @Nonnull
        public FunctionType._Builder setAnnotations​(java.util.Map<java.lang.String,​java.lang.String> value)
        Set the annotations field value.
        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 the annotations map.
        Parameters:
        key - The inserted key
        value - The inserted value
        Returns:
        The builder
      • isSetAnnotations

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

        public boolean hasAnnotations()
        Checks for presence of the annotations field.
        Specified by:
        hasAnnotations in interface FunctionType_OrBuilder
        Returns:
        True if annotations is present.
      • isModifiedAnnotations

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

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

        public java.util.Map<java.lang.String,​java.lang.String> mutableAnnotations()
        Returns:
        The mutable annotations container
      • getAnnotations

        public java.util.Map<java.lang.String,​java.lang.String> getAnnotations()
        Specified by:
        getAnnotations in interface FunctionType_OrBuilder
        Returns:
        The annotations field value
      • optionalAnnotations

        @Nonnull
        public java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>> optionalAnnotations()
        Specified by:
        optionalAnnotations in interface FunctionType_OrBuilder
        Returns:
        Optional annotations field value
      • 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>
      • set

        @Nonnull
        public FunctionType._Builder set​(int key,
                                         java.lang.Object value)
        Specified by:
        set in class net.morimekta.providence.PMessageBuilder<FunctionType>
      • isSet

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

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

        public <T> T get​(int key)
        Specified by:
        get in interface net.morimekta.providence.PMessageOrBuilder<FunctionType>
      • has

        public boolean has​(int key)
        Specified by:
        has in interface net.morimekta.providence.PMessageOrBuilder<FunctionType>
      • addTo

        @Nonnull
        public FunctionType._Builder addTo​(int key,
                                           java.lang.Object value)
        Specified by:
        addTo in class net.morimekta.providence.PMessageBuilder<FunctionType>
      • valid

        public boolean valid()
        Specified by:
        valid in class net.morimekta.providence.PMessageBuilder<FunctionType>
      • descriptor

        @Nonnull
        public net.morimekta.providence.descriptor.PStructDescriptor<FunctionType> descriptor()
        Specified by:
        descriptor in interface net.morimekta.providence.PMessageOrBuilder<FunctionType>
        Specified by:
        descriptor in interface net.morimekta.providence.PValue<FunctionType>
      • 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