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
In summary, I'm looking for ways to attend the interface grpcurl.DescriptorSource out of a protoregistry.GlobalFiles. Is there a simple way or would it involve deeper changes in grpcurl?
The text was updated successfully, but these errors were encountered:
balena-zh
changed the title
In deprecating old APIs, what would be a reasonable upgrade?
In deprecating old APIs, what would be a reasonable upgrade for "github.com/jhump/protoreflect/desc" and "github.com/jhump/protoreflect/dynamic"?
Jan 2, 2025
In summary, I'm looking for ways to attend the interface grpcurl.DescriptorSource out of a protoregistry.GlobalFiles. Is there a simple way or would it involve deeper changes in grpcurl?
You would use the desc.WrapDescriptor or desc.WrapFile to adapt the protoreflect.Descriptor types, returned from a *protoregistry.Files, to the desc.Descriptor types.
Ideally, the grpcurl module would be updated to directly use the google.golang.org/protobuf module and its reflection types instead of the github.com/jhump/protoreflect/desc types. In general, APIs that directly refer to types in github.com/jhump/protoreflect likely need a v2 release that instead refers to the types in the protobuf runtime. The reason they do not is that they were written before the google.golang.org/protobuf was first released and before it had any reflection support.
I'm looking for ways to upgrade constructions such as those found in https://github.com/fullstorydev/grpcurl/blob/b9a11e9fea796d968e2dd83573312ead4b6fd831/desc_source.go.
In summary, I'm looking for ways to attend the interface
grpcurl.DescriptorSource
out of aprotoregistry.GlobalFiles
. Is there a simple way or would it involve deeper changes ingrpcurl
?Example:
Which is consumed like
The text was updated successfully, but these errors were encountered: