public abstract class ProtoContainerElement extends ProtoElement
| Modifier | Constructor and Description |
|---|---|
protected |
ProtoContainerElement(ProtoElement parent,
java.lang.String name,
java.lang.String path)
Creates the container element, given its parent and (simple) name, and a list of messages and
enum types.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildChildren(java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> messageList,
java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> enumList,
java.lang.String path,
int messageTypeNumber,
int enumTypeNumber,
ExtensionPool extensionPool) |
com.google.common.collect.ImmutableList<EnumType> |
getEnums()
Returns the enums.
|
com.google.common.collect.ImmutableList<MessageType> |
getMessages()
Returns the messages.
|
getFile, getFullName, getLocation, getModel, getParent, getSimpleName, getSyntax, isDeprecated, isReachableaddAttribute, getAttribute, getAttributeOrDefault, hasAttribute, putAttribute, removeAttributeprotected ProtoContainerElement(@Nullable
ProtoElement parent,
java.lang.String name,
java.lang.String path)
buildChildren(java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto>, java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto>, java.lang.String, int, int, com.google.api.tools.framework.model.ExtensionPool) in the constructor to initialize
child elements. The initialization is done in the child so methods like ProtoElement.getFullName()
work during initialization.public com.google.common.collect.ImmutableList<MessageType> getMessages()
public com.google.common.collect.ImmutableList<EnumType> getEnums()
protected void buildChildren(java.util.List<com.google.protobuf.DescriptorProtos.DescriptorProto> messageList,
java.util.List<com.google.protobuf.DescriptorProtos.EnumDescriptorProto> enumList,
java.lang.String path,
int messageTypeNumber,
int enumTypeNumber,
ExtensionPool extensionPool)