func (p *rpcx) typeName(str string) string {
	return p.gen.TypeName(p.objectNamed(str))
}
Given a type name defined in a .proto, return its name as we will print it.
package rpcx
import (
	"fmt"
	"strings"
	pb "github.com/gogo/protobuf/protoc-gen-gogo/descriptor"
	"github.com/gogo/protobuf/protoc-gen-gogo/generator"
)
const (
	rpcxServerPkgPath   = "github.com/smallnest/rpcx/server"
	rpcxClientPkgPath   = "github.com/smallnest/rpcx/client"
	rpcxProtocolPkgPath = "github.com/smallnest/rpcx/protocol"
)
func init() {
	generator.RegisterPlugin(new(rpcx))
}
type rpcx struct {
	gen *generator.Generator
}
func (p *rpcx) Name() string {
	return "rpcx"
}
func (p *rpcx) Init(gen *generator.Generator) {
	p.gen = gen
}
func (p *rpcx) objectNamed(name string) generator.Object {
	p.gen.RecordTypeUse(name)
	return p.gen.ObjectNamed(name)
}