You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A proto3 JSON implementation may provide the following options:
Emit fields with default values: Fields with default values are omitted by default in proto3 JSON output. An implementation
may provide an option to override this behavior and output fields with their default values.
Given, for example, the following proto definitions:
message X{
int n = 1;
}
my code:
x = X();
print(x.toProto3Json());
Current output: {}
What I want: {n: 0}
The text was updated successfully, but these errors were encountered:
JSON options
Given, for example, the following proto definitions:
my code:
Current output:
{}
What I want:
{n: 0}
The text was updated successfully, but these errors were encountered: