Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsMessageProjection ¶
func IsMessageProjection(file *descriptor.FileDescriptorProto, message *generator.Descriptor) bool
Types ¶
type Context ¶
type Context struct { *generator.Generator generator.PluginImports }
func (*Context) Generate ¶
func (p *Context) Generate(file *generator.FileDescriptor, message *generator.Descriptor, ccTypeName string)
type OrderedFields ¶
type OrderedFields []*descriptor.FieldDescriptorProto
func (OrderedFields) Len ¶
func (v OrderedFields) Len() int
func (OrderedFields) Less ¶
func (v OrderedFields) Less(i, j int) bool
func (OrderedFields) Swap ¶
func (v OrderedFields) Swap(i, j int)
type Polymorph ¶
type Polymorph struct { *generator.Generator generator.PluginImports // contains filtered or unexported fields }
func (*Polymorph) GenerateFile ¶
func (p *Polymorph) GenerateFile()
func (*Polymorph) GenerateMsg ¶
func (p *Polymorph) GenerateMsg(file *generator.FileDescriptor, message *generator.Descriptor, ccTypeName string, isHead bool)
type Projection ¶
func (*Projection) Generate ¶
func (p *Projection) Generate(file *generator.FileDescriptor, message *generator.Descriptor, ccTypeName string)
func (*Projection) Init ¶
func (p *Projection) Init(g *generator.Generator)
Click to show internal directories.
Click to hide internal directories.