Package io.protostuff.compiler.model
Enum DescriptorType
- java.lang.Object
-
- java.lang.Enum<DescriptorType>
-
- io.protostuff.compiler.model.DescriptorType
-
- All Implemented Interfaces:
Serializable,Comparable<DescriptorType>
public enum DescriptorType extends Enum<DescriptorType>
Descriptor type for options lookup. For each descriptor type there is a pre-defined message in thegoogle/protobuf/descriptor.proto.- Author:
- Kostiantyn Shchepanovskyi
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ENUMENUM_CONSTANTGROUPMAPMESSAGEMESSAGE_FIELDONEOFPROTOSERVICESERVICE_METHOD
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DescriptorTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DescriptorType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROTO
public static final DescriptorType PROTO
-
ENUM
public static final DescriptorType ENUM
-
ENUM_CONSTANT
public static final DescriptorType ENUM_CONSTANT
-
MESSAGE
public static final DescriptorType MESSAGE
-
MESSAGE_FIELD
public static final DescriptorType MESSAGE_FIELD
-
MAP
public static final DescriptorType MAP
-
GROUP
public static final DescriptorType GROUP
-
SERVICE
public static final DescriptorType SERVICE
-
SERVICE_METHOD
public static final DescriptorType SERVICE_METHOD
-
ONEOF
public static final DescriptorType ONEOF
-
-
Method Detail
-
values
public static DescriptorType[] 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 (DescriptorType c : DescriptorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DescriptorType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-