Enum JavaType (3.19.4)

public enum JavaType extends Enum<JavaType>

Enum that identifies the Java types required to store protobuf fields.

Static Fields

NameDescription
BOOLEAN
BYTE_STRING
DOUBLE
ENUM
FLOAT
INT
LONG
MESSAGE
STRING
VOID

Static Methods

NameDescription
valueOf(String name)
values()

Methods

NameDescription
getBoxedType()
getDefaultDefault()

The default default value for fields of this type, if it's a primitive type.

getType()

Gets the required type for a field that would hold a value of this type.

isValidType(Class<?> t)

Indicates whether or not this JavaType can be applied to a field of the given type.