public class Field extends AbstractDescriptor
| Modifier and Type | Field and Description |
|---|---|
static DynamicMessage.Value |
DV_TRUE |
protected int |
index |
static int |
MAX_TAG_VALUE |
protected FieldModifier |
modifier |
protected int |
tag |
protected FieldType |
type |
protected String |
typeName |
name, optionscomments, sourceCodeLocation| Constructor and Description |
|---|
Field(FieldContainer parent) |
| Modifier and Type | Method and Description |
|---|---|
DescriptorType |
getDescriptorType() |
int |
getIndex()
Field index in the container (order, starting from 1)
|
FieldModifier |
getModifier() |
Oneof |
getOneof() |
FieldContainer |
getParent() |
int |
getTag() |
FieldType |
getType() |
String |
getTypeName() |
boolean |
hasModifier() |
boolean |
isMap() |
boolean |
isOneofPart() |
boolean |
isRepeated()
Test if this field is `repeated`.
|
void |
setIndex(int index) |
void |
setModifier(FieldModifier modifier) |
void |
setOneof(Oneof oneof) |
void |
setParent(Message parent) |
void |
setTag(int tag) |
void |
setType(FieldType type) |
void |
setTypeName(String typeName) |
String |
toString() |
getName, getOptions, setNameaddComment, getCommentLines, getComments, getSourceCodeLocation, setComments, setSourceCodeLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCommentLines, getComments, getSourceCodeLocationpublic static final int MAX_TAG_VALUE
public static final DynamicMessage.Value DV_TRUE
protected FieldModifier modifier
protected String typeName
protected FieldType type
protected int tag
protected int index
public Field(FieldContainer parent)
public FieldContainer getParent()
public void setParent(Message parent)
public FieldModifier getModifier()
public void setModifier(FieldModifier modifier)
public boolean hasModifier()
public String getTypeName()
public void setTypeName(String typeName)
public int getTag()
public void setTag(int tag)
public FieldType getType()
public void setType(FieldType type)
public int getIndex()
public void setIndex(int index)
public Oneof getOneof()
public void setOneof(Oneof oneof)
public boolean isOneofPart()
public boolean isRepeated()
public boolean isMap()
public DescriptorType getDescriptorType()
Copyright © 2015–2016. All rights reserved.