Hi Bart,
There are two standard solutions for this (quite common) problem.
1) Define .protobuf-name property inside your option(s). For example:
$ cat t.piqi
.enum [
.name e
.option [
.name o
.protobuf-name "e_o"
]
]
$ cat t.piqi.proto
enum e {
e_o = 1;
}
2. Define .protobuf-prefix property to add prefixes to all your enum
options at once -- this shorthand is supported since v0.6.0. For
example:
$ cat t.piqi
.enum [
.name e
.protobuf-prefix "e_"
.option [
.name o
]
]
$ cat t.piqi.proto
enum e {
e_o = 1;
}
Anton
> --
> You received this message because you are subscribed to the Google Groups
> "piqi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
piqi+uns...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>