Class EnumValue._Builder

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

    public static class EnumValue._Builder
    extends net.morimekta.providence.PMessageBuilder<EnumValue,EnumValue._Field>
    implements net.morimekta.providence.serializer.binary.BinaryReader
    <name> (= <value>)
    • Constructor Detail

      • _Builder

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

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

      • setDocumentation

        @Nonnull
        public EnumValue._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 EnumValue._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
      • setName

        @Nonnull
        public EnumValue._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 EnumValue._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
      • setId

        @Nonnull
        public EnumValue._Builder setId​(int value)
        Sets the value of id.
        Parameters:
        value - The new value
        Returns:
        The builder
      • isSetId

        public boolean isSetId()
        Checks for presence of the id field.
        Returns:
        True if id has been set.
      • isModifiedId

        public boolean isModifiedId()
        Checks if id has been modified since the _Builder was created.
        Returns:
        True if id has been modified.
      • clearId

        @Nonnull
        public EnumValue._Builder clearId()
        Clears the id field.
        Returns:
        The builder
      • getId

        public int getId()
        Gets the value of the contained id.
        Returns:
        The field value
      • setAnnotations

        @Nonnull
        public EnumValue._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 EnumValue._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 EnumValue._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<EnumValue,EnumValue._Field>
      • isSet

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

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

        public boolean valid()
        Specified by:
        valid in class net.morimekta.providence.PMessageBuilder<EnumValue,EnumValue._Field>
      • validate

        public void validate()
        Specified by:
        validate in class net.morimekta.providence.PMessageBuilder<EnumValue,EnumValue._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 EnumValue build()
        Specified by:
        build in interface net.morimekta.providence.PBuilder<EnumValue>