Enum PrimitiveType.Kind
- All Implemented Interfaces:
ProtocolEnum,Serializable,Comparable<PrimitiveType.Kind>,java.lang.constant.Constable
- Enclosing class:
- PrimitiveType
Supported built-in types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA boolean.A string of octets.A 64 bit floating point number.A 32 bit integer without runlength encoding.A 64 bit integer without runlength encoding.A 32 bit floating point number.A 32 bit integer.A 64 bit integer.A signed 32 bit integer without runlength encoding.A signed 64 bit integer without runlength encoding.A signed 32 bit integer.A signed 64 bit integer.A string of characters.An unsigned 32 bit integer.An unsigned 64 bit integer. -
Method Summary
Modifier and TypeMethodDescriptionThe protocol name of aPrimitiveType.Kindconstant.static PrimitiveType.KindreadKind(DataReader in) Reads a new instance from the given binary reader.static PrimitiveType.KindreadKind(JsonReader in) Reads a new instance from the given reader.static PrimitiveType.KindReturns the enum constant of this type with the specified name.static PrimitiveType.KindvalueOfProtocol(String protocolName) Looks up aPrimitiveType.Kindconstant by it's protocol name.static PrimitiveType.Kind[]values()Returns an array containing the constants of this enum type, in the order they are declared.final voidwriteTo(DataWriter out) Writes this instance to the given binary output.final voidwriteTo(JsonWriter out) Writes this instance to the given output.
-
Enum Constant Details
-
INT_32
A 32 bit integer. -
UINT_32
An unsigned 32 bit integer. -
SINT_32
A signed 32 bit integer. -
FIXED_32
A 32 bit integer without runlength encoding. -
SFIXED_32
A signed 32 bit integer without runlength encoding. -
INT_64
A 64 bit integer. -
UINT_64
An unsigned 64 bit integer. -
SINT_64
A signed 64 bit integer. -
FIXED_64
A 64 bit integer without runlength encoding. -
SFIXED_64
A signed 64 bit integer without runlength encoding. -
BOOL
A boolean. -
STRING
A string of characters. -
FLOAT
A 32 bit floating point number. -
DOUBLE
A 64 bit floating point number. -
BYTES
A string of octets.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
protocolName
The protocol name of aPrimitiveType.Kindconstant.- Specified by:
protocolNamein interfaceProtocolEnum- See Also:
-
valueOfProtocol
Looks up aPrimitiveType.Kindconstant by it's protocol name. -
writeTo
Writes this instance to the given output.- Throws:
IOException
-
readKind
Reads a new instance from the given reader.- Throws:
IOException
-
writeTo
Writes this instance to the given binary output.- Throws:
IOException
-
readKind
Reads a new instance from the given binary reader.- Throws:
IOException
-