Skip to content
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

How am I able to create enum of strings? #99

Open
antonphilin opened this issue Apr 12, 2021 · 1 comment
Open

How am I able to create enum of strings? #99

antonphilin opened this issue Apr 12, 2021 · 1 comment

Comments

@antonphilin
Copy link

antonphilin commented Apr 12, 2021

Hi there,
I have quite a lot of enums of string used on my project
example:
enum Corpus {
INSTANT = "INSTANT",
FULL = "FULL",
}
but, as far as I see in the .proto file allow use only.
enum Corpus {
INSTANT = 0;
FULL = 1;
}

but that means I need to rethink the way I write enum. but It impossible, so maybe anybody could advise me on how to get/create an enum of strings through .proto file?

@agreatfool
Copy link
Owner

I think this is a pure protobuffer usage questions, for better response, maybe you could post your question here: https://github.com/protocolbuffers/protobuf/issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants