public final class FieldDescriptor extends AnnotatedDescriptorImpl implements AnnotatedDescriptor
| Modifier and Type | Class and Description |
|---|---|
static class |
FieldDescriptor.Builder |
annotations, documentation, fullName, name, processedAnnotations| Modifier and Type | Method and Description |
|---|---|
protected AnnotationConfiguration |
getAnnotationConfig(String annotationName)
Subclasses are responsible for fetching the
AnnotationConfiguration from the appropriate config (it it
exists) and to validate that the target is suitable. |
Descriptor |
getContainingMessage() |
Object |
getDefaultValue() |
EnumDescriptor |
getEnumType() |
FileDescriptor |
getFileDescriptor()
Return the containing files's descriptor
|
JavaType |
getJavaType() |
Label |
getLabel() |
Descriptor |
getMessageType() |
int |
getNumber() |
Option |
getOption(String name) |
Object |
getOptionByName(String name) |
List<Option> |
getOptions() |
Type |
getType() |
String |
getTypeName() |
int |
getWireTag() |
boolean |
hasDefaultValue() |
boolean |
isExtension() |
boolean |
isPacked() |
boolean |
isRepeated() |
boolean |
isRequired() |
String |
toString() |
getAnnotations, getAnnotationsConfig, getDocumentation, getFullName, getName, getProcessedAnnotationclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAnnotations, getDocumentation, getFullName, getName, getProcessedAnnotationpublic int getNumber()
public int getWireTag()
public Type getType()
public Descriptor getMessageType()
public Label getLabel()
public boolean isRequired()
public boolean isRepeated()
public boolean isPacked()
public Object getDefaultValue()
public boolean isExtension()
public boolean hasDefaultValue()
public JavaType getJavaType()
public EnumDescriptor getEnumType()
public String getTypeName()
public FileDescriptor getFileDescriptor()
AnnotatedDescriptorgetFileDescriptor in interface AnnotatedDescriptornull)public Descriptor getContainingMessage()
protected AnnotationConfiguration getAnnotationConfig(String annotationName)
AnnotatedDescriptorImplAnnotationConfiguration from the appropriate config (it it
exists) and to validate that the target is suitable.getAnnotationConfig in class AnnotatedDescriptorImplCopyright © 2020 JBoss, a division of Red Hat. All rights reserved.