public class EnumValue extends ProtoElement
| Modifier and Type | Method and Description |
|---|---|
static EnumValue |
create(EnumType parent,
com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto proto,
java.lang.String path)
Creates an enum value backed up by the given proto.
|
int |
getIndex()
Get the index position of this value in its parent.
|
int |
getNumber()
Return the number of the enum value.
|
com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto |
getProto()
Returns the underlying proto representation.
|
TypeRef |
getType()
Gets the type.
|
boolean |
isDeprecated()
Returns true if this object represents something that is configured as deprecated.
|
void |
setType(TypeRef type)
For setting the type.
|
java.lang.String |
toString() |
getFile, getFullName, getLocation, getModel, getParent, getSimpleName, getSyntax, isReachableaddAttribute, getAttribute, getAttributeOrDefault, hasAttribute, putAttribute, removeAttributepublic static EnumValue create(EnumType parent, com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto proto, java.lang.String path)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isDeprecated()
isDeprecated in class ProtoElementpublic com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto getProto()
public int getNumber()
public int getIndex()
public TypeRef getType()
public void setType(TypeRef type)