@Immutable public class EnumDescriptor extends AbstractDescriptor
DescriptorProtos.EnumDescriptorProto with additional information.javaPkgName, name, outerClass, protoPkgName, registry| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getComment()
Get the comment on this enum.
|
java.lang.String |
getValueComment(java.lang.String valueName)
Get the comment on a particular value of the enum.
|
java.util.Map<java.lang.String,java.lang.Integer> |
getValues()
Get the name-value pairs for possible values of the enum.
|
getJavaPkgName, getName, getNameWithinOuterClass, getProtoPkgName, getQualifiedName, getQualifiedOriginalName, getQualifiedProtoName@Nonnull public java.lang.String getComment()
@Nonnull
public java.lang.String getValueComment(@Nonnull
java.lang.String valueName)
valueName - The name of the value.@Nonnull public java.util.Map<java.lang.String,java.lang.Integer> getValues()