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 BYTEBYTE = 1;CHARCHAR = 0;DOUBLEDOUBLE = 6;ENUM1ENUM1 = 10;ENUM2ENUM2 = 11;ENUM4ENUM4 = 12;FLOATFLOAT = 5;INTINT = 3;LONGLONG = 4;OPAQUEOPAQUE = 13;SEQUENCESEQUENCE = 9;SHORTSHORT = 2;STRINGSTRING = 7;STRUCTURESTRUCTURE = 8;UBYTEUBYTE = 14;UINTUINT = 16;ULONGULONG = 17;UNRECOGNIZEDUSHORTUSHORT = 15;
-
Field Summary
Fields Modifier and Type Field Description static intBYTE_VALUEBYTE = 1;static intCHAR_VALUECHAR = 0;static intDOUBLE_VALUEDOUBLE = 6;static intENUM1_VALUEENUM1 = 10;static intENUM2_VALUEENUM2 = 11;static intENUM4_VALUEENUM4 = 12;static intFLOAT_VALUEFLOAT = 5;static intINT_VALUEINT = 3;static intLONG_VALUELONG = 4;static intOPAQUE_VALUEOPAQUE = 13;static intSEQUENCE_VALUESEQUENCE = 9;static intSHORT_VALUESHORT = 2;static intSTRING_VALUESTRING = 7;static intSTRUCTURE_VALUESTRUCTURE = 8;static intUBYTE_VALUEUBYTE = 14;static intUINT_VALUEUINT = 16;static intULONG_VALUEULONG = 17;static intUSHORT_VALUEUSHORT = 15;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static NcStreamProto.DataTypeforNumber(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<NcStreamProto.DataType>internalGetValueMap()static NcStreamProto.DataTypevalueOf(int value)Deprecated.static NcStreamProto.DataTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static NcStreamProto.DataTypevalueOf(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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin 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:
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 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
-
-