@@ -317,11 +317,11 @@ func clientSignature(g *protogen.GeneratedFile, method *protogen.Method) string
317
317
func clientStreamInterface (g * protogen.GeneratedFile , method * protogen.Method ) string {
318
318
typeParam := g .QualifiedGoIdent (method .Input .GoIdent ) + ", " + g .QualifiedGoIdent (method .Output .GoIdent )
319
319
if method .Desc .IsStreamingClient () && method .Desc .IsStreamingServer () {
320
- return g .QualifiedGoIdent (grpcPackage .Ident ("BidiStreamClient " )) + "[" + typeParam + "]"
320
+ return g .QualifiedGoIdent (grpcPackage .Ident ("BidiStreamingClient " )) + "[" + typeParam + "]"
321
321
} else if method .Desc .IsStreamingClient () {
322
- return g .QualifiedGoIdent (grpcPackage .Ident ("ClientStreamClient " )) + "[" + typeParam + "]"
322
+ return g .QualifiedGoIdent (grpcPackage .Ident ("ClientStreamingClient " )) + "[" + typeParam + "]"
323
323
} else { // i.e. if method.Desc.IsStreamingServer()
324
- return g .QualifiedGoIdent (grpcPackage .Ident ("ServerStreamClient " )) + "[" + g .QualifiedGoIdent (method .Output .GoIdent ) + "]"
324
+ return g .QualifiedGoIdent (grpcPackage .Ident ("ServerStreamingClient " )) + "[" + g .QualifiedGoIdent (method .Output .GoIdent ) + "]"
325
325
}
326
326
}
327
327
@@ -347,7 +347,7 @@ func genClientMethod(gen *protogen.Plugin, file *protogen.File, g *protogen.Gene
347
347
streamImpl := unexport (service .GoName ) + method .GoName + "Client"
348
348
if * useGenericStreams {
349
349
typeParam := g .QualifiedGoIdent (method .Input .GoIdent ) + ", " + g .QualifiedGoIdent (method .Output .GoIdent )
350
- streamImpl = g .QualifiedGoIdent (grpcPackage .Ident ("StreamClientImpl " )) + "[" + typeParam + "]"
350
+ streamImpl = g .QualifiedGoIdent (grpcPackage .Ident ("GenericClientStream " )) + "[" + typeParam + "]"
351
351
}
352
352
353
353
serviceDescVar := service .GoName + "_ServiceDesc"
@@ -484,11 +484,11 @@ func genServiceDesc(file *protogen.File, g *protogen.GeneratedFile, serviceDescV
484
484
func serverStreamInterface (g * protogen.GeneratedFile , method * protogen.Method ) string {
485
485
typeParam := g .QualifiedGoIdent (method .Input .GoIdent ) + ", " + g .QualifiedGoIdent (method .Output .GoIdent )
486
486
if method .Desc .IsStreamingClient () && method .Desc .IsStreamingServer () {
487
- return g .QualifiedGoIdent (grpcPackage .Ident ("BidiStreamServer " )) + "[" + typeParam + "]"
487
+ return g .QualifiedGoIdent (grpcPackage .Ident ("BidiStreamingServer " )) + "[" + typeParam + "]"
488
488
} else if method .Desc .IsStreamingClient () {
489
- return g .QualifiedGoIdent (grpcPackage .Ident ("ClientStreamServer " )) + "[" + typeParam + "]"
489
+ return g .QualifiedGoIdent (grpcPackage .Ident ("ClientStreamingServer " )) + "[" + typeParam + "]"
490
490
} else { // i.e. if method.Desc.IsStreamingServer()
491
- return g .QualifiedGoIdent (grpcPackage .Ident ("ServerStreamServer " )) + "[" + g .QualifiedGoIdent (method .Output .GoIdent ) + "]"
491
+ return g .QualifiedGoIdent (grpcPackage .Ident ("ServerStreamingServer " )) + "[" + g .QualifiedGoIdent (method .Output .GoIdent ) + "]"
492
492
}
493
493
}
494
494
@@ -518,7 +518,7 @@ func genServerMethod(gen *protogen.Plugin, file *protogen.File, g *protogen.Gene
518
518
streamImpl := unexport (service .GoName ) + method .GoName + "Server"
519
519
if * useGenericStreams {
520
520
typeParam := g .QualifiedGoIdent (method .Input .GoIdent ) + ", " + g .QualifiedGoIdent (method .Output .GoIdent )
521
- streamImpl = g .QualifiedGoIdent (grpcPackage .Ident ("StreamServerImpl " )) + "[" + typeParam + "]"
521
+ streamImpl = g .QualifiedGoIdent (grpcPackage .Ident ("GenericServerStream " )) + "[" + typeParam + "]"
522
522
}
523
523
524
524
g .P ("func " , hnameFuncNameFormatter (hname ), "(srv interface{}, stream " , grpcPackage .Ident ("ServerStream" ), ") error {" )
0 commit comments