You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generated service registration function signatures will change from concrete types to an interfaces. Note that there will be no impact on most usages because the previous concrete type and generated service code both already implemented the interface.
However, customers that reference the modified code in one or more of the following four ways will be broken by an unmitigated change:
Creating a variable with the generated function signature as the type for use in code, like so:
// Where *grpc.Server is being changed to grpc.ServiceRegistrarvarmyRegisterFuncfunc(*grpc.Server, FooServer)
// call site that would break with change to RegisterFooServermyRegisterFunc=foopb.RegisterFooServer
Passing the function as a parameter typed as the function signature, like so:
// Where *grpc.Server is being changed to grpc.ServiceRegistrarfuncmyFunc(registerFuncfunc(*grpc.Server, FooServer)) { ... }
// call site that would break with change to RegisterFooServermyFunc(foopb.RegisterFooServer)
Making the function signature the type of a struct property, like so:
typeMyFoostruct {
// Where *grpc.Server is being changed to grpc.ServiceRegistrarRegisterFoofunc(*grpc.Server, FooServer)
}
// call site that would break with change to RegisterFooServermyFoo:=MyFoo{
RegisterFoo: foopb.RegisterFooServer,
}
Reflecting over the exported surface looking for a function with the old signature.
The text was updated successfully, but these errors were encountered:
Client
All GAPIC clients.
Environment
All environments
Impact
Generated service registration function signatures will change from concrete types to an interfaces. Note that there will be no impact on most usages because the previous concrete type and generated service code both already implemented the interface.
However, customers that reference the modified code in one or more of the following four ways will be broken by an unmitigated change:
The text was updated successfully, but these errors were encountered: