public class Proto extends AbstractUserTypeContainer implements UserTypeContainer
| Modifier and Type | Field and Description |
|---|---|
protected Package |
aPackage |
protected ProtoContext |
context |
protected String |
filename |
protected List<Import> |
imports |
protected Module |
module |
protected List<Service> |
services |
protected Syntax |
syntax |
declaredExtensions, enums, messages, parentname, optionscomments, sourceCodeLocation| Constructor and Description |
|---|
Proto() |
| Modifier and Type | Method and Description |
|---|---|
void |
addImport(Import anImport) |
void |
addService(Service service) |
String |
getCanonicalName() |
ProtoContext |
getContext() |
DescriptorType |
getDescriptorType() |
String |
getFilename()
Full filename (including path, relative to root of source tree)
|
List<Import> |
getImports() |
Module |
getModule() |
String |
getNamespace()
Returns string prefix that is common for all children full names.
|
Package |
getPackage() |
List<Import> |
getPublicImports() |
List<Service> |
getServices() |
Syntax |
getSyntax() |
boolean |
isPackageSet() |
boolean |
isSyntaxSet() |
void |
setContext(ProtoContext context) |
void |
setFilename(String filename) |
void |
setImports(List<Import> imports) |
void |
setModule(Module module) |
void |
setPackage(Package aPackage) |
void |
setServices(List<Service> services) |
void |
setSyntax(Syntax syntax) |
String |
toString() |
addDeclaredExtension, addEnum, addMessage, getDeclaredExtensions, getEnums, getMessages, getParent, setEnumsgetName, getOptions, setNameaddComment, getCommentLines, getComments, getSourceCodeLocation, setComments, setSourceCodeLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, getOptionsgetCommentLines, getComments, getParent, getSourceCodeLocationaddMessage, getMessage, getMessagesaddEnum, getEnum, getEnumsaddDeclaredExtension, getDeclaredExtensionsprotected Module module
protected ProtoContext context
protected String filename
protected Syntax syntax
protected Package aPackage
public ProtoContext getContext()
public void setContext(ProtoContext context)
public DescriptorType getDescriptorType()
getDescriptorType in interface Descriptorpublic String getFilename()
public void setFilename(String filename)
public Syntax getSyntax()
public void setSyntax(Syntax syntax)
public boolean isSyntaxSet()
public Package getPackage()
public void setPackage(Package aPackage)
public boolean isPackageSet()
public void addImport(Import anImport)
public void addService(Service service)
public String getNamespace()
UserTypeContainergetNamespace in interface UserTypeContainerpublic String getCanonicalName()
public Module getModule()
public void setModule(Module module)
Copyright © 2015–2017. All rights reserved.