Versions in this module Expand all Collapse all v1 v1.28.0 Apr 5, 2021 v1.27.0 Apr 5, 2021 Changes in this version + type CommentSet struct + Leading Comments + LeadingDetached []Comments + Trailing Comments + type Comments string + func (c Comments) String() string + type Enum struct + Comments CommentSet + Desc protoreflect.EnumDescriptor + GoIdent GoIdent + Location Location + Values []*EnumValue + type EnumValue struct + Comments CommentSet + Desc protoreflect.EnumValueDescriptor + GoIdent GoIdent + Location Location + Parent *Enum + type Extension = Field + type Field struct + Comments CommentSet + Desc protoreflect.FieldDescriptor + Enum *Enum + Extendee *Message + GoIdent GoIdent + GoName string + Location Location + Message *Message + Oneof *Oneof + Parent *Message + type File struct + Desc protoreflect.FileDescriptor + Enums []*Enum + Extensions []*Extension + Generate bool + GeneratedFilenamePrefix string + GoDescriptorIdent GoIdent + GoImportPath GoImportPath + GoPackageName GoPackageName + Messages []*Message + Proto *descriptorpb.FileDescriptorProto + Services []*Service + type GeneratedFile struct + func (g *GeneratedFile) Annotate(symbol string, loc Location) + func (g *GeneratedFile) Content() ([]byte, error) + func (g *GeneratedFile) Import(importPath GoImportPath) + func (g *GeneratedFile) P(v ...interface{}) + func (g *GeneratedFile) QualifiedGoIdent(ident GoIdent) string + func (g *GeneratedFile) Skip() + func (g *GeneratedFile) Unskip() + func (g *GeneratedFile) Write(p []byte) (n int, err error) + type GoIdent struct + GoImportPath GoImportPath + GoName string + func (id GoIdent) String() string + type GoImportPath string + func (p GoImportPath) Ident(s string) GoIdent + func (p GoImportPath) String() string + type GoPackageName string + type Location struct + Path protoreflect.SourcePath + SourceFile string + type Message struct + Comments CommentSet + Desc protoreflect.MessageDescriptor + Enums []*Enum + Extensions []*Extension + Fields []*Field + GoIdent GoIdent + Location Location + Messages []*Message + Oneofs []*Oneof + type Method struct + Comments CommentSet + Desc protoreflect.MethodDescriptor + GoName string + Input *Message + Location Location + Output *Message + Parent *Service + type Oneof struct + Comments CommentSet + Desc protoreflect.OneofDescriptor + Fields []*Field + GoIdent GoIdent + GoName string + Location Location + Parent *Message + type Options struct + ImportRewriteFunc func(GoImportPath) GoImportPath + ParamFunc func(name, value string) error + func (opts Options) New(req *pluginpb.CodeGeneratorRequest) (*Plugin, error) + func (opts Options) Run(f func(*Plugin) error) + type Plugin struct + Files []*File + FilesByPath map[string]*File + Request *pluginpb.CodeGeneratorRequest + SupportedFeatures uint64 + func (gen *Plugin) Error(err error) + func (gen *Plugin) NewGeneratedFile(filename string, goImportPath GoImportPath) *GeneratedFile + func (gen *Plugin) Response() *pluginpb.CodeGeneratorResponse + type Service struct + Comments CommentSet + Desc protoreflect.ServiceDescriptor + GoName string + Location Location + Methods []*Method