Skip to content

Question: How to parse .proto file into a FileDescriptor in C# #6853

Closed
@RicoSuter

Description

What version of protobuf and what language are you using?
C#

After trying for a long time I cannot figure out how to read an existing .proto file and get a FileDescriptor from it (i.e. I need to process the proto metadata in C#). FileDescriptor.BuildFromByteStrings seems to take a different binary format and not the plaintext .proto contents as UTF8 byte array. I think this must be super simple to do but I can't find the API to do so.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions