public class Oneof extends AbstractElement implements FieldContainer, GroupContainer
| Modifier and Type | Field and Description |
|---|---|
protected List<Field> |
fields |
protected List<Group> |
groups |
protected String |
name |
protected String |
namespace |
protected Message |
parent |
comments, sourceCodeLocation| Modifier and Type | Method and Description |
|---|---|
void |
addField(Field field) |
void |
addGroup(Group group) |
Field |
getField(int tag) |
Field |
getField(String name) |
int |
getFieldCount() |
List<Field> |
getFields() |
List<Group> |
getGroups() |
String |
getName() |
String |
getNamespace() |
Message |
getParent() |
void |
setFields(List<Field> fields) |
void |
setGroups(List<Group> groups) |
void |
setName(String name) |
void |
setNamespace(String namespace) |
String |
toString() |
addComment, getCommentLines, getComments, getSourceCodeLocation, setComments, setSourceCodeLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCommentLines, getComments, getSourceCodeLocationprotected final Message parent
protected String name
protected String namespace
public Oneof(Message parent)
public String getName()
public void setName(String name)
public String getNamespace()
public void setNamespace(String namespace)
public List<Field> getFields()
getFields in interface FieldContainerpublic int getFieldCount()
getFieldCount in interface FieldContainerpublic void setFields(List<Field> fields)
setFields in interface FieldContainerpublic void addField(Field field)
addField in interface FieldContainerpublic Field getField(String name)
getField in interface FieldContainerpublic Field getField(int tag)
getField in interface FieldContainerpublic List<Group> getGroups()
getGroups in interface GroupContainerpublic void setGroups(List<Group> groups)
setGroups in interface GroupContainerpublic void addGroup(Group group)
addGroup in interface GroupContainerCopyright © 2015–2017. All rights reserved.