Package ucar.nc2.stream
Enum NcStreamProto.Attribute.Type
- java.lang.Object
-
- java.lang.Enum<NcStreamProto.Attribute.Type>
-
- ucar.nc2.stream.NcStreamProto.Attribute.Type
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<NcStreamProto.Attribute.Type>
- Enclosing class:
- NcStreamProto.Attribute
public static enum NcStreamProto.Attribute.Type extends Enum<NcStreamProto.Attribute.Type> implements com.google.protobuf.ProtocolMessageEnum
< 5.0
Protobuf enumAttribute.Type
-
-
Field Summary
Fields Modifier and Type Field Description static int
BYTE_VALUE
BYTE = 1;
static int
DOUBLE_VALUE
DOUBLE = 6;
static int
FLOAT_VALUE
FLOAT = 5;
static int
INT_VALUE
INT = 3;
static int
LONG_VALUE
LONG = 4;
static int
SHORT_VALUE
SHORT = 2;
static int
STRING_VALUE
STRING = 0;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static NcStreamProto.Attribute.Type
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.Attribute.Type>
internalGetValueMap()
static NcStreamProto.Attribute.Type
valueOf(int value)
Deprecated.static NcStreamProto.Attribute.Type
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static NcStreamProto.Attribute.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static NcStreamProto.Attribute.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final NcStreamProto.Attribute.Type STRING
STRING = 0;
-
BYTE
public static final NcStreamProto.Attribute.Type BYTE
BYTE = 1;
-
SHORT
public static final NcStreamProto.Attribute.Type SHORT
SHORT = 2;
-
INT
public static final NcStreamProto.Attribute.Type INT
INT = 3;
-
LONG
public static final NcStreamProto.Attribute.Type LONG
LONG = 4;
-
FLOAT
public static final NcStreamProto.Attribute.Type FLOAT
FLOAT = 5;
-
DOUBLE
public static final NcStreamProto.Attribute.Type DOUBLE
DOUBLE = 6;
-
UNRECOGNIZED
public static final NcStreamProto.Attribute.Type UNRECOGNIZED
-
-
Field Detail
-
STRING_VALUE
public static final int STRING_VALUE
STRING = 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
-
-
Method Detail
-
values
public static NcStreamProto.Attribute.Type[] 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.Attribute.Type c : NcStreamProto.Attribute.Type.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.Attribute.Type 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.Attribute.Type 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.Attribute.Type 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.Attribute.Type> 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.Attribute.Type 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
-
-