public class Oneof extends ProtoElement
| Modifier and Type | Method and Description |
|---|---|
static Oneof |
create(ProtoContainerElement parent,
com.google.protobuf.DescriptorProtos.OneofDescriptorProto proto,
java.lang.String path) |
java.util.List<Field> |
getFields()
Gets all fields belonging to this oneof.
|
java.lang.String |
getName()
Gets the name of the oneof.
|
java.util.Map<com.google.protobuf.Descriptors.FieldDescriptor,java.lang.Object> |
getOptionFields()
Return this element's options from the proto.
|
java.lang.Iterable<Field> |
getVisibleFields()
Gets all visible fields belonging to this oneof.
|
java.lang.String |
toString() |
getFile, getFullName, getLocation, getModel, getParent, getSimpleName, getSyntax, isDeprecated, isReachableaddAttribute, getAttribute, getAttributeOrDefault, hasAttribute, putAttribute, removeAttributepublic static Oneof create(ProtoContainerElement parent, com.google.protobuf.DescriptorProtos.OneofDescriptorProto proto, java.lang.String path)
public java.lang.String getName()
public java.util.Map<com.google.protobuf.Descriptors.FieldDescriptor,java.lang.Object> getOptionFields()
getOptionFields in class ProtoElementpublic java.util.List<Field> getFields()
public java.lang.Iterable<Field> getVisibleFields()
public java.lang.String toString()
toString in class java.lang.Object