Package com.google.protobuf
Enum Field.Kind
- java.lang.Object
-
- java.lang.Enum<Field.Kind>
-
- com.google.protobuf.Field.Kind
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<Field.Kind>
- Enclosing class:
- Field
public static enum Field.Kind extends java.lang.Enum<Field.Kind> implements com.google.protobuf.ProtocolMessageEnum
Basic field types.
Protobuf enumgoogle.protobuf.Field.Kind
-
-
Enum Constant Summary
Enum Constants Enum Constant Description TYPE_BOOLField type bool.TYPE_BYTESField type bytes.TYPE_DOUBLEField type double.TYPE_ENUMField type enum.TYPE_FIXED32Field type fixed32.TYPE_FIXED64Field type fixed64.TYPE_FLOATField type float.TYPE_GROUPField type group.TYPE_INT32Field type int32.TYPE_INT64Field type int64.TYPE_MESSAGEField type message.TYPE_SFIXED32Field type sfixed32.TYPE_SFIXED64Field type sfixed64.TYPE_SINT32Field type sint32.TYPE_SINT64Field type sint64.TYPE_STRINGField type string.TYPE_UINT32Field type uint32.TYPE_UINT64Field type uint64.TYPE_UNKNOWNField type unknown.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intTYPE_BOOL_VALUEField type bool.static intTYPE_BYTES_VALUEField type bytes.static intTYPE_DOUBLE_VALUEField type double.static intTYPE_ENUM_VALUEField type enum.static intTYPE_FIXED32_VALUEField type fixed32.static intTYPE_FIXED64_VALUEField type fixed64.static intTYPE_FLOAT_VALUEField type float.static intTYPE_GROUP_VALUEField type group.static intTYPE_INT32_VALUEField type int32.static intTYPE_INT64_VALUEField type int64.static intTYPE_MESSAGE_VALUEField type message.static intTYPE_SFIXED32_VALUEField type sfixed32.static intTYPE_SFIXED64_VALUEField type sfixed64.static intTYPE_SINT32_VALUEField type sint32.static intTYPE_SINT64_VALUEField type sint64.static intTYPE_STRING_VALUEField type string.static intTYPE_UINT32_VALUEField type uint32.static intTYPE_UINT64_VALUEField type uint64.static intTYPE_UNKNOWN_VALUEField type unknown.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Field.KindforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<Field.Kind>internalGetValueMap()static Field.KindvalueOf(int value)Deprecated.static Field.KindvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static Field.KindvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Field.Kind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TYPE_UNKNOWN
public static final Field.Kind TYPE_UNKNOWN
Field type unknown.
TYPE_UNKNOWN = 0;
-
TYPE_DOUBLE
public static final Field.Kind TYPE_DOUBLE
Field type double.
TYPE_DOUBLE = 1;
-
TYPE_FLOAT
public static final Field.Kind TYPE_FLOAT
Field type float.
TYPE_FLOAT = 2;
-
TYPE_INT64
public static final Field.Kind TYPE_INT64
Field type int64.
TYPE_INT64 = 3;
-
TYPE_UINT64
public static final Field.Kind TYPE_UINT64
Field type uint64.
TYPE_UINT64 = 4;
-
TYPE_INT32
public static final Field.Kind TYPE_INT32
Field type int32.
TYPE_INT32 = 5;
-
TYPE_FIXED64
public static final Field.Kind TYPE_FIXED64
Field type fixed64.
TYPE_FIXED64 = 6;
-
TYPE_FIXED32
public static final Field.Kind TYPE_FIXED32
Field type fixed32.
TYPE_FIXED32 = 7;
-
TYPE_BOOL
public static final Field.Kind TYPE_BOOL
Field type bool.
TYPE_BOOL = 8;
-
TYPE_STRING
public static final Field.Kind TYPE_STRING
Field type string.
TYPE_STRING = 9;
-
TYPE_GROUP
public static final Field.Kind TYPE_GROUP
Field type group. Proto2 syntax only, and deprecated.
TYPE_GROUP = 10;
-
TYPE_MESSAGE
public static final Field.Kind TYPE_MESSAGE
Field type message.
TYPE_MESSAGE = 11;
-
TYPE_BYTES
public static final Field.Kind TYPE_BYTES
Field type bytes.
TYPE_BYTES = 12;
-
TYPE_UINT32
public static final Field.Kind TYPE_UINT32
Field type uint32.
TYPE_UINT32 = 13;
-
TYPE_ENUM
public static final Field.Kind TYPE_ENUM
Field type enum.
TYPE_ENUM = 14;
-
TYPE_SFIXED32
public static final Field.Kind TYPE_SFIXED32
Field type sfixed32.
TYPE_SFIXED32 = 15;
-
TYPE_SFIXED64
public static final Field.Kind TYPE_SFIXED64
Field type sfixed64.
TYPE_SFIXED64 = 16;
-
TYPE_SINT32
public static final Field.Kind TYPE_SINT32
Field type sint32.
TYPE_SINT32 = 17;
-
TYPE_SINT64
public static final Field.Kind TYPE_SINT64
Field type sint64.
TYPE_SINT64 = 18;
-
UNRECOGNIZED
public static final Field.Kind UNRECOGNIZED
-
-
Field Detail
-
TYPE_UNKNOWN_VALUE
public static final int TYPE_UNKNOWN_VALUE
Field type unknown.
TYPE_UNKNOWN = 0;- See Also:
- Constant Field Values
-
TYPE_DOUBLE_VALUE
public static final int TYPE_DOUBLE_VALUE
Field type double.
TYPE_DOUBLE = 1;- See Also:
- Constant Field Values
-
TYPE_FLOAT_VALUE
public static final int TYPE_FLOAT_VALUE
Field type float.
TYPE_FLOAT = 2;- See Also:
- Constant Field Values
-
TYPE_INT64_VALUE
public static final int TYPE_INT64_VALUE
Field type int64.
TYPE_INT64 = 3;- See Also:
- Constant Field Values
-
TYPE_UINT64_VALUE
public static final int TYPE_UINT64_VALUE
Field type uint64.
TYPE_UINT64 = 4;- See Also:
- Constant Field Values
-
TYPE_INT32_VALUE
public static final int TYPE_INT32_VALUE
Field type int32.
TYPE_INT32 = 5;- See Also:
- Constant Field Values
-
TYPE_FIXED64_VALUE
public static final int TYPE_FIXED64_VALUE
Field type fixed64.
TYPE_FIXED64 = 6;- See Also:
- Constant Field Values
-
TYPE_FIXED32_VALUE
public static final int TYPE_FIXED32_VALUE
Field type fixed32.
TYPE_FIXED32 = 7;- See Also:
- Constant Field Values
-
TYPE_BOOL_VALUE
public static final int TYPE_BOOL_VALUE
Field type bool.
TYPE_BOOL = 8;- See Also:
- Constant Field Values
-
TYPE_STRING_VALUE
public static final int TYPE_STRING_VALUE
Field type string.
TYPE_STRING = 9;- See Also:
- Constant Field Values
-
TYPE_GROUP_VALUE
public static final int TYPE_GROUP_VALUE
Field type group. Proto2 syntax only, and deprecated.
TYPE_GROUP = 10;- See Also:
- Constant Field Values
-
TYPE_MESSAGE_VALUE
public static final int TYPE_MESSAGE_VALUE
Field type message.
TYPE_MESSAGE = 11;- See Also:
- Constant Field Values
-
TYPE_BYTES_VALUE
public static final int TYPE_BYTES_VALUE
Field type bytes.
TYPE_BYTES = 12;- See Also:
- Constant Field Values
-
TYPE_UINT32_VALUE
public static final int TYPE_UINT32_VALUE
Field type uint32.
TYPE_UINT32 = 13;- See Also:
- Constant Field Values
-
TYPE_ENUM_VALUE
public static final int TYPE_ENUM_VALUE
Field type enum.
TYPE_ENUM = 14;- See Also:
- Constant Field Values
-
TYPE_SFIXED32_VALUE
public static final int TYPE_SFIXED32_VALUE
Field type sfixed32.
TYPE_SFIXED32 = 15;- See Also:
- Constant Field Values
-
TYPE_SFIXED64_VALUE
public static final int TYPE_SFIXED64_VALUE
Field type sfixed64.
TYPE_SFIXED64 = 16;- See Also:
- Constant Field Values
-
TYPE_SINT32_VALUE
public static final int TYPE_SINT32_VALUE
Field type sint32.
TYPE_SINT32 = 17;- See Also:
- Constant Field Values
-
TYPE_SINT64_VALUE
public static final int TYPE_SINT64_VALUE
Field type sint64.
TYPE_SINT64 = 18;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Field.Kind[] 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 (Field.Kind c : Field.Kind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Field.Kind 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()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static Field.Kind 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 Field.Kind 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 com.google.protobuf.Internal.EnumLiteMap<Field.Kind> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static Field.Kind valueOf(com.google.protobuf.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
-
-