Skip to content

How to override oneof type generated name #1335

@jknovi

Description

@jknovi

I have a proto message like this:

message MessageType {
  enum Type { ... };

  oneof type { ... };
}

This then generates two distinct enum Type definitions which won't compile. In this case I'm ok having a different name for the oneof enum type, but I haven't figured out how to tell prost to override the name. Is this possible, if not, are there any workarounds for it?

Metadata

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