public static enum WireFormat.FieldType extends java.lang.Enum<WireFormat.FieldType>
Descriptors.FieldDescriptor.Type
. This is only here to support the
lite runtime and should not be used by users.Enum Constant and Description |
---|
BOOL |
BYTES |
DOUBLE |
ENUM |
FIXED32 |
FIXED64 |
FLOAT |
GROUP |
INT32 |
INT64 |
MESSAGE |
SFIXED32 |
SFIXED64 |
SINT32 |
SINT64 |
STRING |
UINT32 |
UINT64 |
Modifier and Type | Method and Description |
---|---|
WireFormat.JavaType |
getJavaType() |
int |
getWireType() |
boolean |
isPackable() |
static WireFormat.FieldType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WireFormat.FieldType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WireFormat.FieldType DOUBLE
public static final WireFormat.FieldType FLOAT
public static final WireFormat.FieldType INT64
public static final WireFormat.FieldType UINT64
public static final WireFormat.FieldType INT32
public static final WireFormat.FieldType FIXED64
public static final WireFormat.FieldType FIXED32
public static final WireFormat.FieldType BOOL
public static final WireFormat.FieldType STRING
public static final WireFormat.FieldType GROUP
public static final WireFormat.FieldType MESSAGE
public static final WireFormat.FieldType BYTES
public static final WireFormat.FieldType UINT32
public static final WireFormat.FieldType ENUM
public static final WireFormat.FieldType SFIXED32
public static final WireFormat.FieldType SFIXED64
public static final WireFormat.FieldType SINT32
public static final WireFormat.FieldType SINT64
public static WireFormat.FieldType[] values()
for (WireFormat.FieldType c : WireFormat.FieldType.values()) System.out.println(c);
public static WireFormat.FieldType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic WireFormat.JavaType getJavaType()
public int getWireType()
public boolean isPackable()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.