public final class ProtoType extends Object
Modifier and Type | Field and Description |
---|---|
static ProtoType |
BOOL |
static ProtoType |
BYTES |
static ProtoType |
DOUBLE |
static ProtoType |
FIXED32 |
static ProtoType |
FIXED64 |
static ProtoType |
FLOAT |
static ProtoType |
INT32 |
static ProtoType |
INT64 |
static ProtoType |
SFIXED32 |
static ProtoType |
SFIXED64 |
static ProtoType |
SINT32 |
static ProtoType |
SINT64 |
static ProtoType |
STRING |
static ProtoType |
UINT32 |
static ProtoType |
UINT64 |
Modifier and Type | Method and Description |
---|---|
String |
enclosingTypeOrPackage()
Returns the enclosing type, or null if this type is not nested in another type.
|
boolean |
equals(Object o) |
static ProtoType |
get(String name) |
static ProtoType |
get(String enclosingTypeOrPackage,
String typeName) |
int |
hashCode() |
boolean |
isMap() |
boolean |
isScalar() |
ProtoType |
keyType()
The type of the map's keys.
|
ProtoType |
nestedType(String name) |
String |
simpleName() |
String |
toString() |
ProtoType |
valueType()
The type of the map's values.
|
public static final ProtoType BOOL
public static final ProtoType BYTES
public static final ProtoType DOUBLE
public static final ProtoType FLOAT
public static final ProtoType FIXED32
public static final ProtoType FIXED64
public static final ProtoType INT32
public static final ProtoType INT64
public static final ProtoType SFIXED32
public static final ProtoType SFIXED64
public static final ProtoType SINT32
public static final ProtoType SINT64
public static final ProtoType STRING
public static final ProtoType UINT32
public static final ProtoType UINT64
public String simpleName()
public String enclosingTypeOrPackage()
public boolean isScalar()
public boolean isMap()
public ProtoType valueType()
isMap
is true.Copyright © 2013–2016 Square, Inc.. All rights reserved.