enum StatusCode {
success = 0;
failure = 1;
unknown = 2;
}
# tony612/protobuf-elixir
iex(3)> StatusCode.value(:success)
0
iex(4)> StatusCode.value(:failure)
1
# xflagstudio/protobuf-elixir
iex(5)> StatusCode.success()
0
iex(6)> StatusCode.failure()
1