Lines Matching defs:Registry
15 type Registry struct { struct
17 msgs map[string]*Message
20 enums map[string]*Enum
23 files map[string]*File
26 prefix string
29 importPath string
32 pkgMap map[string]string
35 pkgAliases map[string]string
38 allowDeleteBody bool
53 func (r *Registry) Load(req *plugin.CodeGeneratorRequest) error {
83 func (r *Registry) loadFile(file *descriptor.FileDescriptorProto) {
107 func (r *Registry) registerMsg(file *File, outerPath []string, msgs []*descriptor.DescriptorProto) {
133 … *Registry) registerEnum(file *File, outerPath []string, enums []*descriptor.EnumDescriptorProto) {
149 func (r *Registry) LookupMsg(location, name string) (*Message, error) {
175 func (r *Registry) LookupEnum(location, name string) (*Enum, error) {
200 func (r *Registry) LookupFile(name string) (*File, error) {
209 func (r *Registry) AddPkgMap(file, protoPkg string) {
214 func (r *Registry) SetPrefix(prefix string) {
221 func (r *Registry) SetImportPath(importPath string) {
229 func (r *Registry) ReserveGoPackageAlias(alias, pkgpath string) error {
243 func (r *Registry) goPackagePath(f *descriptor.FileDescriptorProto) string {
265 func (r *Registry) GetAllFQMNs() []string {
274 func (r *Registry) GetAllFQENs() []string {
284 func (r *Registry) SetAllowDeleteBody(allow bool) {