Package ucar.nc2.stream
Enum NcStreamProto.DataType
- java.lang.Object
-
- java.lang.Enum<NcStreamProto.DataType>
-
- ucar.nc2.stream.NcStreamProto.DataType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<NcStreamProto.DataType>
- Enclosing class:
- NcStreamProto
public static enum NcStreamProto.DataType extends Enum<NcStreamProto.DataType> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumDataType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BYTE
BYTE = 1;
CHAR
CHAR = 0;
DOUBLE
DOUBLE = 6;
ENUM1
ENUM1 = 10;
ENUM2
ENUM2 = 11;
ENUM4
ENUM4 = 12;
FLOAT
FLOAT = 5;
INT
INT = 3;
LONG
LONG = 4;
OPAQUE
OPAQUE = 13;
SEQUENCE
SEQUENCE = 9;
SHORT
SHORT = 2;
STRING
STRING = 7;
STRUCTURE
STRUCTURE = 8;
UBYTE
UBYTE = 14;
UINT
UINT = 16;
ULONG
ULONG = 17;
UNRECOGNIZED
USHORT
USHORT = 15;
-
Field Summary
Fields Modifier and Type Field Description static int
BYTE_VALUE
BYTE = 1;
static int
CHAR_VALUE
CHAR = 0;
static int
DOUBLE_VALUE
DOUBLE = 6;
static int
ENUM1_VALUE
ENUM1 = 10;
static int
ENUM2_VALUE
ENUM2 = 11;
static int
ENUM4_VALUE
ENUM4 = 12;
static int
FLOAT_VALUE
FLOAT = 5;
static int
INT_VALUE
INT = 3;
static int
LONG_VALUE
LONG = 4;
static int
OPAQUE_VALUE
OPAQUE = 13;
static int
SEQUENCE_VALUE
SEQUENCE = 9;
static int
SHORT_VALUE
SHORT = 2;
static int
STRING_VALUE
STRING = 7;
static int
STRUCTURE_VALUE
STRUCTURE = 8;
static int
UBYTE_VALUE
UBYTE = 14;
static int
UINT_VALUE
UINT = 16;
static int
ULONG_VALUE
ULONG = 17;
static int
USHORT_VALUE
USHORT = 15;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static NcStreamProto.DataType
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<NcStreamProto.DataType>
internalGetValueMap()
static NcStreamProto.DataType
valueOf(int value)
Deprecated.static NcStreamProto.DataType
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static NcStreamProto.DataType
valueOf(String name)
Returns the enum constant of this type with the specified name.static NcStreamProto.DataType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHAR
public static final NcStreamProto.DataType CHAR
CHAR = 0;
-
BYTE
public static final NcStreamProto.DataType BYTE
BYTE = 1;
-
SHORT
public static final NcStreamProto.DataType SHORT
SHORT = 2;
-
INT
public static final NcStreamProto.DataType INT
INT = 3;
-
LONG
public static final NcStreamProto.DataType LONG
LONG = 4;
-
FLOAT
public static final NcStreamProto.DataType FLOAT
FLOAT = 5;
-
DOUBLE
public static final NcStreamProto.DataType DOUBLE
DOUBLE = 6;
-
STRING
public static final NcStreamProto.DataType STRING
STRING = 7;
-
STRUCTURE
public static final NcStreamProto.DataType STRUCTURE
STRUCTURE = 8;
-
SEQUENCE
public static final NcStreamProto.DataType SEQUENCE
SEQUENCE = 9;
-
ENUM1
public static final NcStreamProto.DataType ENUM1
ENUM1 = 10;
-
ENUM2
public static final NcStreamProto.DataType ENUM2
ENUM2 = 11;
-
ENUM4
public static final NcStreamProto.DataType ENUM4
ENUM4 = 12;
-
OPAQUE
public static final NcStreamProto.DataType OPAQUE
OPAQUE = 13;
-
UBYTE
public static final NcStreamProto.DataType UBYTE
UBYTE = 14;
-
USHORT
public static final NcStreamProto.DataType USHORT
USHORT = 15;
-
UINT
public static final NcStreamProto.DataType UINT
UINT = 16;
-
ULONG
public static final NcStreamProto.DataType ULONG
ULONG = 17;
-
UNRECOGNIZED
public static final NcStreamProto.DataType UNRECOGNIZED
-
-
Field Detail
-
CHAR_VALUE
public static final int CHAR_VALUE
CHAR = 0;
- See Also:
- Constant Field Values
-
BYTE_VALUE
public static final int BYTE_VALUE
BYTE = 1;
- See Also:
- Constant Field Values
-
SHORT_VALUE
public static final int SHORT_VALUE
SHORT = 2;
- See Also:
- Constant Field Values
-
INT_VALUE
public static final int INT_VALUE
INT = 3;
- See Also:
- Constant Field Values
-
LONG_VALUE
public static final int LONG_VALUE
LONG = 4;
- See Also:
- Constant Field Values
-
FLOAT_VALUE
public static final int FLOAT_VALUE
FLOAT = 5;
- See Also:
- Constant Field Values
-
DOUBLE_VALUE
public static final int DOUBLE_VALUE
DOUBLE = 6;
- See Also:
- Constant Field Values
-
STRING_VALUE
public static final int STRING_VALUE
STRING = 7;
- See Also:
- Constant Field Values
-
STRUCTURE_VALUE
public static final int STRUCTURE_VALUE
STRUCTURE = 8;
- See Also:
- Constant Field Values
-
SEQUENCE_VALUE
public static final int SEQUENCE_VALUE
SEQUENCE = 9;
- See Also:
- Constant Field Values
-
ENUM1_VALUE
public static final int ENUM1_VALUE
ENUM1 = 10;
- See Also:
- Constant Field Values
-
ENUM2_VALUE
public static final int ENUM2_VALUE
ENUM2 = 11;
- See Also:
- Constant Field Values
-
ENUM4_VALUE
public static final int ENUM4_VALUE
ENUM4 = 12;
- See Also:
- Constant Field Values
-
OPAQUE_VALUE
public static final int OPAQUE_VALUE
OPAQUE = 13;
- See Also:
- Constant Field Values
-
UBYTE_VALUE
public static final int UBYTE_VALUE
UBYTE = 14;
- See Also:
- Constant Field Values
-
USHORT_VALUE
public static final int USHORT_VALUE
USHORT = 15;
- See Also:
- Constant Field Values
-
UINT_VALUE
public static final int UINT_VALUE
UINT = 16;
- See Also:
- Constant Field Values
-
ULONG_VALUE
public static final int ULONG_VALUE
ULONG = 17;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static NcStreamProto.DataType[] 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 (NcStreamProto.DataType c : NcStreamProto.DataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NcStreamProto.DataType 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
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static NcStreamProto.DataType 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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
forNumber
public static NcStreamProto.DataType 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<NcStreamProto.DataType> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static NcStreamProto.DataType 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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-