public abstract class Field<T> extends AnnotationContainer implements Comparable<Field<?>>, HasName, HasOptions
Message.| Modifier and Type | Class and Description |
|---|---|
static class |
Field.Bool |
static class |
Field.Bytes |
static class |
Field.Double |
static class |
Field.Fixed32 |
static class |
Field.Fixed64 |
static class |
Field.Float |
static class |
Field.Int32 |
static class |
Field.Int64 |
static class |
Field.Modifier |
static class |
Field.Reference |
static class |
Field.SFixed32 |
static class |
Field.SFixed64 |
static class |
Field.SInt32 |
static class |
Field.SInt64 |
static class |
Field.String |
static class |
Field.UInt32 |
static class |
Field.UInt64 |
add, addAnnotations, addDoc, err, getA, getAnnotation, getAnnotationMap, getAnnotations, getDocs, hasAnnotation, isEmptyApublic LinkedHashMap<String,Object> getStandardOptions()
public LinkedHashMap<String,Object> getExtraOptions()
public LinkedHashMap<String,Object> getO()
public LinkedHashMap<String,Object> getOptions()
getOptions in interface HasOptionspublic <V> V getOption(String key)
key.public boolean hasOption(String key)
public void putStandardOption(String key, Object value)
putStandardOption in interface HasOptionspublic void putExtraOption(String key, Object value)
putExtraOption in interface HasOptionspublic String getDefaultValueConstant()
public int getNumber()
public Field.Modifier getModifier()
public boolean isPackable()
public T getDefaultValue()
public boolean isRepeated()
public boolean isRequired()
public boolean isOptional()
public boolean isDefaultValueSet()
public boolean isNumberField()
public boolean isEnumField()
public boolean isMessageField()
public boolean isBytesField()
public boolean isStringField()
public boolean isBoolField()
public boolean isDelimited()
public int compareTo(Field<?> f)
compareTo in interface Comparable<Field<?>>public abstract String getJavaType()
public String getProtoType()
public String getDefaultValueAsString()
public Message getOwner()
Copyright © 2009–2021. All rights reserved.