Enum ProvidenceHttpError._Field

    • Method Detail

      • values

        public static ProvidenceHttpError._Field[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ProvidenceHttpError._Field c : ProvidenceHttpError._Field.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ProvidenceHttpError._Field valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getId

        public int getId()
        Specified by:
        getId in interface net.morimekta.providence.descriptor.PField<ProvidenceHttpError>
      • getRequirement

        @Nonnull
        public net.morimekta.providence.descriptor.PRequirement getRequirement()
        Specified by:
        getRequirement in interface net.morimekta.providence.descriptor.PField<ProvidenceHttpError>
      • getDescriptor

        @Nonnull
        public net.morimekta.providence.descriptor.PDescriptor getDescriptor()
        Specified by:
        getDescriptor in interface net.morimekta.providence.descriptor.PField<ProvidenceHttpError>
      • getArgumentsType

        @Nullable
        public net.morimekta.providence.descriptor.PStructDescriptor getArgumentsType()
        Specified by:
        getArgumentsType in interface net.morimekta.providence.descriptor.PField<ProvidenceHttpError>
      • getName

        @Nonnull
        public java.lang.String getName()
        Specified by:
        getName in interface net.morimekta.providence.descriptor.PField<ProvidenceHttpError>
      • getPojoName

        @Nonnull
        public java.lang.String getPojoName()
        Specified by:
        getPojoName in interface net.morimekta.providence.descriptor.PField<ProvidenceHttpError>
      • hasDefaultValue

        public boolean hasDefaultValue()
        Specified by:
        hasDefaultValue in interface net.morimekta.providence.descriptor.PField<ProvidenceHttpError>
      • getDefaultValue

        @Nullable
        public java.lang.Object getDefaultValue()
        Specified by:
        getDefaultValue in interface net.morimekta.providence.descriptor.PField<ProvidenceHttpError>
      • onMessageType

        @Nonnull
        public net.morimekta.providence.descriptor.PMessageDescriptor<ProvidenceHttpError> onMessageType()
        Specified by:
        onMessageType in interface net.morimekta.providence.descriptor.PField<ProvidenceHttpError>
      • findById

        public static ProvidenceHttpError._Field findById​(int id)
        Parameters:
        id - Field ID
        Returns:
        The identified field or null
      • findByName

        public static ProvidenceHttpError._Field findByName​(java.lang.String name)
        Parameters:
        name - Field name
        Returns:
        The named field or null
      • findByPojoName

        public static ProvidenceHttpError._Field findByPojoName​(java.lang.String name)
        Parameters:
        name - Field POJO name
        Returns:
        The named field or null
      • fieldForId

        public static ProvidenceHttpError._Field fieldForId​(int id)
        Parameters:
        id - Field ID
        Returns:
        The identified field
        Throws:
        java.lang.IllegalArgumentException - If no such field
      • fieldForName

        public static ProvidenceHttpError._Field fieldForName​(java.lang.String name)
        Parameters:
        name - Field name
        Returns:
        The named field
        Throws:
        java.lang.IllegalArgumentException - If no such field
      • fieldForPojoName

        public static ProvidenceHttpError._Field fieldForPojoName​(java.lang.String name)
        Parameters:
        name - Field POJO name
        Returns:
        The named field
        Throws:
        java.lang.IllegalArgumentException - If no such field