Class ProvidenceHttpError._Builder

    • Constructor Detail

      • _Builder

        public _Builder()
        Make a p_http.ProvidenceHttpError builder instance.
      • _Builder

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

      • setMessage

        @Nonnull
        public ProvidenceHttpError._Builder setMessage​(java.lang.String value)
        Set the message field value.
        Parameters:
        value - The new value
        Returns:
        The builder
      • isSetMessage

        public boolean isSetMessage()
        Checks for explicit presence of the message field.
        Returns:
        True if message has been set.
      • isModifiedMessage

        public boolean isModifiedMessage()
        Checks if the message field has been modified since the builder was created.
        Returns:
        True if message has been modified.
      • setStatusCode

        @Nonnull
        public ProvidenceHttpError._Builder setStatusCode​(java.lang.Integer value)
        Set the status_code field value.
        Parameters:
        value - The new value
        Returns:
        The builder
      • setStatusCode

        @Nonnull
        public ProvidenceHttpError._Builder setStatusCode​(int value)
        Set the status_code field value.
        Parameters:
        value - The new value
        Returns:
        The builder
      • isSetStatusCode

        public boolean isSetStatusCode()
        Checks for explicit presence of the status_code field.
        Returns:
        True if status_code has been set.
      • isModifiedStatusCode

        public boolean isModifiedStatusCode()
        Checks if the status_code field has been modified since the builder was created.
        Returns:
        True if status_code has been modified.
      • initCause

        @Nonnull
        public ProvidenceHttpError._Builder initCause​(java.lang.Throwable cause)
        Initializes the cause of the p_http.ProvidenceHttpError
        Parameters:
        cause - The cause
        Returns:
        Builder instance
      • 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<ProvidenceHttpError>
      • isSet

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

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

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

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

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

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