Enum Class FileDescriptor.Status
- All Implemented Interfaces:
Serializable, Comparable<FileDescriptor.Status>, Constable
- Enclosing class:
FileDescriptor
The validation status of a .proto file. Only
RESOLVED files contribute to the current state (known
types) of the SerializationContext.- Since:
- 2.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA possibly recoverable error was encountered during processing.An unrecoverable parsing error was encountered during processing.Processed successfully.Not processed yet. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) booleanisError()(package private) booleanstatic FileDescriptor.StatusReturns the enum constant of this class with the specified name.static FileDescriptor.Status[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNRESOLVED
Not processed yet. -
RESOLVED
Processed successfully. -
ERROR
A possibly recoverable error was encountered during processing. -
PARSING_ERROR
An unrecoverable parsing error was encountered during processing.
-
-
Constructor Details
-
Status
private Status()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isResolved
boolean isResolved() -
isError
boolean isError()
-