when I use grpc in python.
```
message Response {
bool is_admin = 1;
repeated string names = 2;
}
```
grpc server return a False for is_admin, and null value for names;
But in client, I use json_format.MessageToDict.
if I don't use including_default_value_fields=True, the is_admin will not
found in dict.
{}
If I use including_default_value_fields=True, the names is a list.But I
don't need names.
{"is_admin": False, "names": []}
what can i do ?
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/protobuf/96cbb396-a118-42ac-9577-eec5a62b521en%40googlegroups.com.