Package com.google.protobuf
Enum DescriptorProtos.FieldOptions.OptionTargetType
- java.lang.Object
-
- java.lang.Enum<DescriptorProtos.FieldOptions.OptionTargetType>
-
- com.google.protobuf.DescriptorProtos.FieldOptions.OptionTargetType
-
- All Implemented Interfaces:
Internal.EnumLite,ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<DescriptorProtos.FieldOptions.OptionTargetType>
- Enclosing class:
- DescriptorProtos.FieldOptions
public static enum DescriptorProtos.FieldOptions.OptionTargetType extends java.lang.Enum<DescriptorProtos.FieldOptions.OptionTargetType> implements ProtocolMessageEnum
Protobuf enumgoogle.protobuf.FieldOptions.OptionTargetType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description TARGET_TYPE_ENUMTARGET_TYPE_ENUM = 6;TARGET_TYPE_ENUM_ENTRYTARGET_TYPE_ENUM_ENTRY = 7;TARGET_TYPE_EXTENSION_RANGETARGET_TYPE_EXTENSION_RANGE = 2;TARGET_TYPE_FIELDTARGET_TYPE_FIELD = 4;TARGET_TYPE_FILETARGET_TYPE_FILE = 1;TARGET_TYPE_MESSAGETARGET_TYPE_MESSAGE = 3;TARGET_TYPE_METHODTARGET_TYPE_METHOD = 9;TARGET_TYPE_ONEOFTARGET_TYPE_ONEOF = 5;TARGET_TYPE_SERVICETARGET_TYPE_SERVICE = 8;TARGET_TYPE_UNKNOWNTARGET_TYPE_UNKNOWN = 0;
-
Field Summary
Fields Modifier and Type Field Description static intTARGET_TYPE_ENUM_ENTRY_VALUETARGET_TYPE_ENUM_ENTRY = 7;static intTARGET_TYPE_ENUM_VALUETARGET_TYPE_ENUM = 6;static intTARGET_TYPE_EXTENSION_RANGE_VALUETARGET_TYPE_EXTENSION_RANGE = 2;static intTARGET_TYPE_FIELD_VALUETARGET_TYPE_FIELD = 4;static intTARGET_TYPE_FILE_VALUETARGET_TYPE_FILE = 1;static intTARGET_TYPE_MESSAGE_VALUETARGET_TYPE_MESSAGE = 3;static intTARGET_TYPE_METHOD_VALUETARGET_TYPE_METHOD = 9;static intTARGET_TYPE_ONEOF_VALUETARGET_TYPE_ONEOF = 5;static intTARGET_TYPE_SERVICE_VALUETARGET_TYPE_SERVICE = 8;static intTARGET_TYPE_UNKNOWN_VALUETARGET_TYPE_UNKNOWN = 0;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static DescriptorProtos.FieldOptions.OptionTargetTypeforNumber(int value)static Descriptors.EnumDescriptorgetDescriptor()Descriptors.EnumDescriptorgetDescriptorForType()Return the enum type's descriptor, which contains information about each defined value, etc.intgetNumber()Return the value's numeric value as defined in the .proto file.Descriptors.EnumValueDescriptorgetValueDescriptor()Return the value's descriptor, which contains information such as value name, number, and type.static Internal.EnumLiteMap<DescriptorProtos.FieldOptions.OptionTargetType>internalGetValueMap()static DescriptorProtos.FieldOptions.OptionTargetTypevalueOf(int value)Deprecated.static DescriptorProtos.FieldOptions.OptionTargetTypevalueOf(Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static DescriptorProtos.FieldOptions.OptionTargetTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DescriptorProtos.FieldOptions.OptionTargetType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TARGET_TYPE_UNKNOWN
public static final DescriptorProtos.FieldOptions.OptionTargetType TARGET_TYPE_UNKNOWN
TARGET_TYPE_UNKNOWN = 0;
-
TARGET_TYPE_FILE
public static final DescriptorProtos.FieldOptions.OptionTargetType TARGET_TYPE_FILE
TARGET_TYPE_FILE = 1;
-
TARGET_TYPE_EXTENSION_RANGE
public static final DescriptorProtos.FieldOptions.OptionTargetType TARGET_TYPE_EXTENSION_RANGE
TARGET_TYPE_EXTENSION_RANGE = 2;
-
TARGET_TYPE_MESSAGE
public static final DescriptorProtos.FieldOptions.OptionTargetType TARGET_TYPE_MESSAGE
TARGET_TYPE_MESSAGE = 3;
-
TARGET_TYPE_FIELD
public static final DescriptorProtos.FieldOptions.OptionTargetType TARGET_TYPE_FIELD
TARGET_TYPE_FIELD = 4;
-
TARGET_TYPE_ONEOF
public static final DescriptorProtos.FieldOptions.OptionTargetType TARGET_TYPE_ONEOF
TARGET_TYPE_ONEOF = 5;
-
TARGET_TYPE_ENUM
public static final DescriptorProtos.FieldOptions.OptionTargetType TARGET_TYPE_ENUM
TARGET_TYPE_ENUM = 6;
-
TARGET_TYPE_ENUM_ENTRY
public static final DescriptorProtos.FieldOptions.OptionTargetType TARGET_TYPE_ENUM_ENTRY
TARGET_TYPE_ENUM_ENTRY = 7;
-
TARGET_TYPE_SERVICE
public static final DescriptorProtos.FieldOptions.OptionTargetType TARGET_TYPE_SERVICE
TARGET_TYPE_SERVICE = 8;
-
TARGET_TYPE_METHOD
public static final DescriptorProtos.FieldOptions.OptionTargetType TARGET_TYPE_METHOD
TARGET_TYPE_METHOD = 9;
-
-
Field Detail
-
TARGET_TYPE_UNKNOWN_VALUE
public static final int TARGET_TYPE_UNKNOWN_VALUE
TARGET_TYPE_UNKNOWN = 0;- See Also:
- Constant Field Values
-
TARGET_TYPE_FILE_VALUE
public static final int TARGET_TYPE_FILE_VALUE
TARGET_TYPE_FILE = 1;- See Also:
- Constant Field Values
-
TARGET_TYPE_EXTENSION_RANGE_VALUE
public static final int TARGET_TYPE_EXTENSION_RANGE_VALUE
TARGET_TYPE_EXTENSION_RANGE = 2;- See Also:
- Constant Field Values
-
TARGET_TYPE_MESSAGE_VALUE
public static final int TARGET_TYPE_MESSAGE_VALUE
TARGET_TYPE_MESSAGE = 3;- See Also:
- Constant Field Values
-
TARGET_TYPE_FIELD_VALUE
public static final int TARGET_TYPE_FIELD_VALUE
TARGET_TYPE_FIELD = 4;- See Also:
- Constant Field Values
-
TARGET_TYPE_ONEOF_VALUE
public static final int TARGET_TYPE_ONEOF_VALUE
TARGET_TYPE_ONEOF = 5;- See Also:
- Constant Field Values
-
TARGET_TYPE_ENUM_VALUE
public static final int TARGET_TYPE_ENUM_VALUE
TARGET_TYPE_ENUM = 6;- See Also:
- Constant Field Values
-
TARGET_TYPE_ENUM_ENTRY_VALUE
public static final int TARGET_TYPE_ENUM_ENTRY_VALUE
TARGET_TYPE_ENUM_ENTRY = 7;- See Also:
- Constant Field Values
-
TARGET_TYPE_SERVICE_VALUE
public static final int TARGET_TYPE_SERVICE_VALUE
TARGET_TYPE_SERVICE = 8;- See Also:
- Constant Field Values
-
TARGET_TYPE_METHOD_VALUE
public static final int TARGET_TYPE_METHOD_VALUE
TARGET_TYPE_METHOD = 9;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static DescriptorProtos.FieldOptions.OptionTargetType[] 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 (DescriptorProtos.FieldOptions.OptionTargetType c : DescriptorProtos.FieldOptions.OptionTargetType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DescriptorProtos.FieldOptions.OptionTargetType 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 namejava.lang.NullPointerException- if the argument is null
-
getNumber
public final int getNumber()
Description copied from interface:ProtocolMessageEnumReturn the value's numeric value as defined in the .proto file.- Specified by:
getNumberin interfaceInternal.EnumLite- Specified by:
getNumberin interfaceProtocolMessageEnum
-
valueOf
@Deprecated public static DescriptorProtos.FieldOptions.OptionTargetType valueOf(int value)
Deprecated.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:
value- 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 namejava.lang.NullPointerException- if the argument is null
-
forNumber
public static DescriptorProtos.FieldOptions.OptionTargetType forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static Internal.EnumLiteMap<DescriptorProtos.FieldOptions.OptionTargetType> internalGetValueMap()
-
getValueDescriptor
public final Descriptors.EnumValueDescriptor getValueDescriptor()
Description copied from interface:ProtocolMessageEnumReturn the value's descriptor, which contains information such as value name, number, and type.- Specified by:
getValueDescriptorin interfaceProtocolMessageEnum
-
getDescriptorForType
public final Descriptors.EnumDescriptor getDescriptorForType()
Description copied from interface:ProtocolMessageEnumReturn the enum type's descriptor, which contains information about each defined value, etc.- Specified by:
getDescriptorForTypein interfaceProtocolMessageEnum
-
getDescriptor
public static Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static DescriptorProtos.FieldOptions.OptionTargetType valueOf(Descriptors.EnumValueDescriptor desc)
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:
desc- 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 namejava.lang.NullPointerException- if the argument is null
-
-