Modifier and Type | Method and Description |
---|---|
ProtoFile.Builder |
addDependencies(Collection<String> dependencies) |
ProtoFile.Builder |
addDependency(String dependency) |
ProtoFile.Builder |
addExtendDeclaration(ExtendElement extend) |
ProtoFile.Builder |
addExtendDeclarations(Collection<ExtendElement> extendDeclarations) |
ProtoFile.Builder |
addOption(OptionElement option) |
ProtoFile.Builder |
addOptions(Collection<OptionElement> options) |
ProtoFile.Builder |
addPublicDependencies(Collection<String> dependencies) |
ProtoFile.Builder |
addPublicDependency(String dependency) |
ProtoFile.Builder |
addService(ServiceElement service) |
ProtoFile.Builder |
addServices(Collection<ServiceElement> services) |
ProtoFile.Builder |
addType(TypeElement type) |
ProtoFile.Builder |
addTypes(Collection<TypeElement> types) |
ProtoFile |
build() |
ProtoFile.Builder |
packageName(String packageName) |
ProtoFile.Builder |
syntax(ProtoFile.Syntax syntax) |
public ProtoFile.Builder packageName(String packageName)
public ProtoFile.Builder syntax(ProtoFile.Syntax syntax)
public ProtoFile.Builder addDependency(String dependency)
public ProtoFile.Builder addDependencies(Collection<String> dependencies)
public ProtoFile.Builder addPublicDependency(String dependency)
public ProtoFile.Builder addPublicDependencies(Collection<String> dependencies)
public ProtoFile.Builder addType(TypeElement type)
public ProtoFile.Builder addTypes(Collection<TypeElement> types)
public ProtoFile.Builder addService(ServiceElement service)
public ProtoFile.Builder addServices(Collection<ServiceElement> services)
public ProtoFile.Builder addExtendDeclaration(ExtendElement extend)
public ProtoFile.Builder addExtendDeclarations(Collection<ExtendElement> extendDeclarations)
public ProtoFile.Builder addOption(OptionElement option)
public ProtoFile.Builder addOptions(Collection<OptionElement> options)
public ProtoFile build()
Copyright © 2015 Square, Inc.. All Rights Reserved.