New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to get FileDescriptorSet serialization in C# #5441
Comments
You can call |
Hi @acozzette, sure so I completely get that if I have the appropriate The reason that doing things from the |
That's because it's meant to go with the rest of the changes from #5936 in the 3.11 release which should be in the next month if this comment is still accurate. So I'd just wait a little bit. |
I didn’t notice the 3.11 plan at all. Thanks for the explanation.
…On Fri, 25 Oct 2019 at 5:40 pm, ObsidianMinor ***@***.***> wrote:
this change does not appear to have been applied to any release
That's because it's meant to go with the rest of the changes from #5936
<#5936> in the 3.11
release which should be in the next month if this comment
<#5936 (comment)>
is still accurate. So I'd just wait a little bit.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#5441?email_source=notifications&email_token=ACBFOULQKEMN2FHJWDYFJY3QQKIHRA5CNFSM4GJL6NIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECHLHHQ#issuecomment-546223006>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACBFOUKYSRTZWQPWJR46UWTQQKIHRANCNFSM4GJL6NIA>
.
|
@nagytech it this a regression with respect to some of the older releases (= e.g. something we broke in let's say the last release) or this never worked, so you're basically filing a feature request? |
I'm not the author of this issue. However, from what I can tell they are requesting a new feature. However, I would argue that it's some level of debt to the C# implementation of Protobuf given that these same fields are not internal to the other frameworks. |
resolved |
What language does this apply to?
This issue relates to the C#
Google.Protobuf
package.Describe the problem you are trying to solve.
Currently there is no way to obtain a
ByteString
from generated code, which represents either a message/proto-file with its dependencies which can be used withprotoc
. The appropriate data structure for this isFileDescriptorSet
.In particular I'd like to be able to generate protobuf code for another language given the generated C# protobuf code. We can already get an
IList<FileDescriptor>
of dependencies through theDependencies
property onFileDescriptor
, all that needs to be done is bundling that with the instance of theFileDescrpitor
and putting that into aFileDescriptorSet
data structure and serializing.Describe the solution you'd like
I'd like to add facility to get the serialized representation of
FileDescriptorSet
, containing all dependencies from either aFileDescriptor
or aMessageDescriptor
. This is code I'd be happy to write/test myself.Describe alternatives you've considered
Ultimately the 2 formats for specifying protobuf messages are:
FileDescriptorSet
sGiven the necessary information is already stored in generated code to obtain the
FileDescriptorSet
, and this mechanism allows for easy bundling of dependencies, that seemed like the best way forward.Additional context
The reason I'm looking to generate code for other languages, given the generated code for one (in this case C#), is to facilitate adding Protobuf support to the Pact contract testing framework. I can provide additional context if required.
The text was updated successfully, but these errors were encountered: