diff --git a/gogoproto/gogo.pb.go b/gogoproto/gogo.pb.go index 1e91766aee..455bb45244 100644 --- a/gogoproto/gogo.pb.go +++ b/gogoproto/gogo.pb.go @@ -705,6 +705,15 @@ var E_Wktpointer = &proto.ExtensionDesc{ Filename: "gogo.proto", } +var E_Genregistry = &proto.ExtensionDesc{ + ExtendedType: (*descriptor.ServiceOptions)(nil), + ExtensionType: (*bool)(nil), + Field: 168001, + Name: "gogoproto.genregistry", + Tag: "varint,168001,opt,name=genregistry", + Filename: "gogo.proto", +} + func init() { proto.RegisterExtension(E_GoprotoEnumPrefix) proto.RegisterExtension(E_GoprotoEnumStringer) @@ -782,93 +791,96 @@ func init() { proto.RegisterExtension(E_Stdtime) proto.RegisterExtension(E_Stdduration) proto.RegisterExtension(E_Wktpointer) + proto.RegisterExtension(E_Genregistry) } func init() { proto.RegisterFile("gogo.proto", fileDescriptor_592445b5231bc2b9) } var fileDescriptor_592445b5231bc2b9 = []byte{ - // 1328 bytes of a gzipped FileDescriptorProto + // 1351 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x98, 0x49, 0x6f, 0x1c, 0x45, - 0x14, 0x80, 0x85, 0x48, 0x64, 0x4f, 0x79, 0x8b, 0xc7, 0xc6, 0x84, 0x08, 0x44, 0xe0, 0xc4, 0xc9, - 0x3e, 0x45, 0x28, 0x65, 0x45, 0x96, 0x63, 0x39, 0x56, 0x10, 0x0e, 0xc6, 0x89, 0xc3, 0x76, 0x18, - 0xf5, 0xf4, 0x94, 0xdb, 0x8d, 0xbb, 0xbb, 0x9a, 0xee, 0xea, 0x10, 0xe7, 0x86, 0xc2, 0x22, 0x84, - 0xd8, 0x91, 0x20, 0x21, 0x09, 0x04, 0xc4, 0xbe, 0x86, 0x7d, 0xb9, 0x70, 0x61, 0xb9, 0xf2, 0x1f, - 0xb8, 0x00, 0x66, 0xf7, 0xcd, 0x17, 0xf4, 0xba,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0x4d, 0x5d, - 0x3d, 0x27, 0x61, 0x19, 0xc9, 0x7e, 0x3e, 0xbb, 0x2b, 0xdf, 0xce, 0x58, 0x29, 0xd0, 0xf6, 0xa4, - 0x65, 0xd1, 0x13, 0x4a, 0x89, 0x24, 0x6d, 0x38, 0x41, 0xb7, 0xed, 0x1d, 0xf1, 0x83, 0xd2, 0x78, - 0x6e, 0xb3, 0x33, 0x8b, 0x0b, 0x05, 0x39, 0x1b, 0x04, 0x7c, 0x85, 0x5d, 0xdb, 0xe5, 0xa9, 0xb0, - 0x70, 0x9e, 0x47, 0xe7, 0xf8, 0x8e, 0x27, 0x03, 0xb4, 0x4b, 0x8c, 0x3e, 0x2f, 0x73, 0x69, 0xe1, - 0x7c, 0x19, 0x9d, 0x75, 0x64, 0x29, 0xa5, 0x60, 0xbc, 0x8d, 0x8d, 0x9e, 0x12, 0x49, 0x53, 0xa6, - 0xa2, 0x21, 0x1e, 0xc8, 0x9c, 0xc0, 0x42, 0x77, 0x01, 0x75, 0x23, 0x08, 0xce, 0x03, 0x07, 0xae, - 0x83, 0xac, 0x7f, 0xd5, 0x71, 0x85, 0x85, 0xe2, 0x22, 0x2a, 0xfa, 0x60, 0x3d, 0xa0, 0xb3, 0x6c, - 0xd0, 0x93, 0xc5, 0x2d, 0x59, 0xe0, 0x97, 0x10, 0x1f, 0x20, 0x06, 0x15, 0xb1, 0x8c, 0xb3, 0xc0, - 0x51, 0x36, 0x3b, 0x78, 0x85, 0x14, 0xc4, 0xa0, 0xa2, 0x87, 0xb0, 0xbe, 0x4a, 0x8a, 0x54, 0x8b, - 0xe7, 0x0c, 0x1b, 0x90, 0x51, 0xb0, 0x21, 0x23, 0x9b, 0x4d, 0x5c, 0x46, 0x03, 0x43, 0x04, 0x04, - 0xd3, 0xac, 0x66, 0x9b, 0x88, 0x37, 0x36, 0xe9, 0x78, 0x50, 0x06, 0x16, 0xd8, 0x08, 0x15, 0x28, - 0x5f, 0x46, 0x16, 0x8a, 0x37, 0x51, 0x31, 0xac, 0x61, 0x78, 0x1b, 0x4a, 0xa4, 0xca, 0x13, 0x36, - 0x92, 0xb7, 0xe8, 0x36, 0x10, 0xc1, 0x50, 0x36, 0x45, 0xe4, 0xae, 0xd9, 0x19, 0xde, 0xa6, 0x50, - 0x12, 0x03, 0x8a, 0x39, 0x36, 0x14, 0x3a, 0x49, 0xba, 0xe6, 0x04, 0x56, 0xe9, 0x78, 0x07, 0x1d, - 0x83, 0x25, 0x84, 0x11, 0xc9, 0xa2, 0x5e, 0x34, 0xef, 0x52, 0x44, 0x34, 0x0c, 0x8f, 0x5e, 0xaa, - 0x9c, 0x66, 0x20, 0x1a, 0xbd, 0xd8, 0xde, 0xa3, 0xa3, 0x57, 0xb0, 0x8b, 0xba, 0x71, 0x9a, 0xd5, - 0x52, 0xff, 0x8c, 0x95, 0xe6, 0x7d, 0xca, 0x74, 0x0e, 0x00, 0x7c, 0x0f, 0xbb, 0xae, 0x6b, 0x9b, - 0xb0, 0x90, 0x7d, 0x80, 0xb2, 0x89, 0x2e, 0xad, 0x02, 0x4b, 0x42, 0xaf, 0xca, 0x0f, 0xa9, 0x24, - 0x88, 0x8a, 0x6b, 0x89, 0x8d, 0x67, 0x51, 0xea, 0xac, 0xf6, 0x16, 0xb5, 0x8f, 0x28, 0x6a, 0x05, - 0xdb, 0x11, 0xb5, 0x13, 0x6c, 0x02, 0x8d, 0xbd, 0xe5, 0xf5, 0x63, 0x2a, 0xac, 0x05, 0xbd, 0xd2, - 0x99, 0xdd, 0xfb, 0xd8, 0xbe, 0x32, 0x9c, 0xa7, 0x95, 0x88, 0x52, 0x60, 0x1a, 0xa1, 0x13, 0x5b, - 0x98, 0xaf, 0xa0, 0x99, 0x2a, 0xfe, 0x7c, 0x29, 0x58, 0x74, 0x62, 0x90, 0xdf, 0xcd, 0xf6, 0x92, - 0x3c, 0x8b, 0x12, 0xe1, 0x4a, 0x2f, 0xf2, 0xcf, 0x88, 0x96, 0x85, 0xfa, 0x93, 0x4a, 0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, 0x0f, - 0x01, 0x0b, 0x65, 0x22, 0x94, 0xe3, 0xa5, 0x26, 0xf6, 0x4f, 0x64, 0x4b, 0x00, 0x60, 0xd7, 0x49, - 0x95, 0xcd, 0x7d, 0xff, 0x45, 0x30, 0x01, 0xb0, 0x69, 0xb8, 0x5e, 0x17, 0x1b, 0x26, 0xf6, 0x6f, - 0xda, 0x34, 0xae, 0xe7, 0x87, 0x58, 0x0d, 0x2e, 0xf3, 0xb7, 0x4a, 0x26, 0xf8, 0x1f, 0x84, 0xdb, - 0x04, 0x7c, 0x73, 0xaa, 0x5a, 0xca, 0x37, 0x07, 0xfb, 0x5f, 0xcc, 0x34, 0xad, 0xe7, 0xb3, 0x6c, - 0x20, 0x55, 0xad, 0x56, 0x86, 0xf3, 0xa9, 0x01, 0xff, 0x6f, 0xbb, 0x7c, 0x65, 0x51, 0x32, 0x90, - 0xed, 0x07, 0xd7, 0x55, 0x2c, 0xfd, 0x48, 0x89, 0xc4, 0x64, 0xd8, 0x42, 0x83, 0x86, 0x1c, 0x9e, - 0x67, 0x63, 0xae, 0x0c, 0xab, 0xdc, 0x61, 0xb6, 0x20, 0x17, 0xe4, 0x52, 0x5e, 0x67, 0xee, 0xbd, - 0xd9, 0xf3, 0xd5, 0x5a, 0xd6, 0x9c, 0x74, 0x65, 0x38, 0x05, 0xbf, 0x3c, 0xda, 0x2f, 0x54, 0xcb, - 0xdf, 0x21, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0x9c, 0xaf, 0x70, 0x4e, 0x83, 0x15, 0x00, 0x00, + 0x14, 0x80, 0x85, 0x48, 0x94, 0x99, 0xb2, 0x1d, 0xc7, 0xe3, 0x10, 0x42, 0x04, 0x22, 0x70, 0xe2, + 0x64, 0x9f, 0x22, 0x94, 0xb2, 0x22, 0xcb, 0xb1, 0x1c, 0x2b, 0x08, 0x07, 0x63, 0xc7, 0x61, 0x3b, + 0x8c, 0x7a, 0x7a, 0xca, 0xed, 0xc6, 0xdd, 0x5d, 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c0, 0x34, 0x43, 0x27, + 0xb6, 0x30, 0x5f, 0x41, 0x33, 0x55, 0xfc, 0x99, 0x52, 0x30, 0xe7, 0xc4, 0x20, 0xbf, 0x9b, 0xed, + 0x27, 0x79, 0x16, 0x25, 0xc2, 0x95, 0x5e, 0xe4, 0x9f, 0x11, 0x6d, 0x0b, 0xf5, 0x27, 0x95, 0x54, + 0x2d, 0x69, 0x38, 0x98, 0x8f, 0xb3, 0x3d, 0xe5, 0xac, 0xd2, 0xf4, 0xc3, 0x58, 0x26, 0xca, 0x60, + 0xfc, 0x94, 0x32, 0x55, 0x72, 0xc7, 0x73, 0x8c, 0xcf, 0xb0, 0xdd, 0xf9, 0x9f, 0xb6, 0x8f, 0xe4, + 0x67, 0x28, 0x1a, 0xea, 0x50, 0x58, 0x38, 0x5c, 0x19, 0xc6, 0x4e, 0x62, 0x53, 0xff, 0x3e, 0xa7, + 0xc2, 0x81, 0x08, 0x16, 0x0e, 0xb5, 0x1e, 0x0b, 0xe8, 0xf6, 0x16, 0x86, 0x2f, 0xa8, 0x70, 0x10, + 0x83, 0x0a, 0x1a, 0x18, 0x2c, 0x14, 0x5f, 0x92, 0x82, 0x18, 0x50, 0xdc, 0xd9, 0x69, 0xb4, 0x89, + 0xf0, 0xfc, 0x54, 0x25, 0x0e, 0xac, 0x36, 0xa8, 0xbe, 0xda, 0xe8, 0x1e, 0xc2, 0x16, 0x34, 0x14, + 0x2a, 0x51, 0x28, 0xd2, 0xd4, 0xf1, 0x04, 0x4c, 0x1c, 0x16, 0x1b, 0xfb, 0x9a, 0x2a, 0x91, 0x86, + 0xc1, 0xde, 0xb4, 0x09, 0x11, 0xc2, 0xee, 0x3a, 0xee, 0x8a, 0x8d, 0xee, 0x9b, 0xca, 0xe6, 0x16, + 0x89, 0x05, 0xa7, 0x36, 0xff, 0x64, 0xd1, 0xaa, 0x58, 0xb7, 0x7a, 0x3a, 0xbf, 0xad, 0xcc, 0x3f, + 0x4b, 0x05, 0x59, 0xd4, 0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 0x5b, 0xd9, 0xf2, 0xc7, 0xcc, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0xab, + 0xa4, 0xf5, 0x54, 0xc8, 0x15, 0x00, 0x00, } diff --git a/gogoproto/gogo.proto b/gogoproto/gogo.proto index b80c85653f..a5d57377d2 100644 --- a/gogoproto/gogo.proto +++ b/gogoproto/gogo.proto @@ -142,3 +142,8 @@ extend google.protobuf.FieldOptions { optional bool wktpointer = 65012; } + +extend google.protobuf.ServiceOptions { + optional bool genregistry = 168001; +} + diff --git a/gogoproto/helper.go b/gogoproto/helper.go index 390d4e4be6..e7a5351811 100644 --- a/gogoproto/helper.go +++ b/gogoproto/helper.go @@ -413,3 +413,13 @@ func HasSizecache(file *google_protobuf.FileDescriptorProto, message *google_pro func HasUnkeyed(file *google_protobuf.FileDescriptorProto, message *google_protobuf.DescriptorProto) bool { return proto.GetBoolExtension(message.Options, E_GoprotoUnkeyed, proto.GetBoolExtension(file.Options, E_GoprotoUnkeyedAll, true)) } + +func IsServiceGenRegistry(service *google_protobuf.ServiceDescriptorProto) bool { + if service == nil { + return false + } + if service.Options == nil { + return false + } + return proto.GetBoolExtension(service.Options, E_Genregistry, false) +} diff --git a/protoc-gen-gogo/grpc/grpc.go b/protoc-gen-gogo/grpc/grpc.go index cf527f8e01..0809f3f358 100755 --- a/protoc-gen-gogo/grpc/grpc.go +++ b/protoc-gen-gogo/grpc/grpc.go @@ -39,6 +39,7 @@ import ( "strconv" "strings" + "github.com/gogo/protobuf/gogoproto" pb "github.com/gogo/protobuf/protoc-gen-gogo/descriptor" "github.com/gogo/protobuf/protoc-gen-gogo/generator" ) @@ -151,7 +152,7 @@ func (g *grpc) generateService(file *generator.FileDescriptor, service *pb.Servi } servName := generator.CamelCase(origServName) deprecated := service.GetOptions().GetDeprecated() - + genRegistry := gogoproto.IsServiceGenRegistry(service) g.P() g.P(fmt.Sprintf(`// %sClient is the client API for %s service. // @@ -273,6 +274,20 @@ func (g *grpc) generateService(file *generator.FileDescriptor, service *pb.Servi g.P("},") g.P("Metadata: \"", file.GetName(), "\",") g.P("}") + + if genRegistry { + registry := servName + "ServiceRegistry" + g.P() + g.P("type _", registry, " struct {") + g.P("ServiceDesc *", grpcPkg, ".ServiceDesc") + g.P("ImplService ", serverType) + g.P() + g.P("}") + g.P("var ", registry, " = _", registry, "{") + g.P("ServiceDesc: ", serviceDescVar, ",") + g.P("}") + g.P() + } g.P() }