public final class EnumType extends Type
Modifier and Type | Method and Description |
---|---|
boolean |
allowAlias() |
EnumConstant |
constant(int tag)
Returns the constant tagged
tag , or null if this enum has no such constant. |
EnumConstant |
constant(String name)
Returns the constant named
name , or null if this enum has no such constant. |
com.google.common.collect.ImmutableList<EnumConstant> |
constants() |
String |
documentation() |
Location |
location() |
com.google.common.collect.ImmutableList<Type> |
nestedTypes() |
Options |
options() |
ProtoType |
type() |
public String documentation()
documentation
in class Type
public com.google.common.collect.ImmutableList<Type> nestedTypes()
nestedTypes
in class Type
public boolean allowAlias()
public EnumConstant constant(String name)
name
, or null if this enum has no such constant.public EnumConstant constant(int tag)
tag
, or null if this enum has no such constant.public com.google.common.collect.ImmutableList<EnumConstant> constants()
Copyright © 2013–2016 Square, Inc.. All rights reserved.