#include </data/code/userver/libraries/protobuf/include/userver/protobuf/json/convert_options.hpp>
Options which affect how protobuf message is converted to a JSON ValueBuilder/Value.
Definition at line 28 of file convert_options.hpp.
Public Attributes | |
| bool | always_print_fields_with_no_presence = false |
| Always output protobuf message fields that do not have explicit presence. This fields are: | |
| bool | always_print_enums_as_ints = false |
| Output enum values as integers, not as their string names. | |
| bool | preserve_proto_field_names = false |
| Output field names exactly how specified in the proto file (usually lower_snake_case). By default, protobuf message field names are converted to lowerCamelCase format. | |
| bool | nonportable_raw_any = false |
| Serialize google.protobuf.Any as a raw {"typeUrl": "...", "value": "<base64>"} JSON object without looking up the payload descriptor in the descriptor pool. When set, value is base64-encoded protobuf wire bytes of the payload. If preserve_proto_field_names is true, type_url is used instead of typeUrl. | |
| bool protobuf::json::PrintOptions::always_print_enums_as_ints = false |
Output enum values as integers, not as their string names.
Definition at line 36 of file convert_options.hpp.
| bool protobuf::json::PrintOptions::always_print_fields_with_no_presence = false |
Always output protobuf message fields that do not have explicit presence. This fields are:
Definition at line 33 of file convert_options.hpp.
| bool protobuf::json::PrintOptions::nonportable_raw_any = false |
Serialize google.protobuf.Any as a raw {"typeUrl": "...", "value": "<base64>"} JSON object without looking up the payload descriptor in the descriptor pool. When set, value is base64-encoded protobuf wire bytes of the payload. If preserve_proto_field_names is true, type_url is used instead of typeUrl.
Definition at line 55 of file convert_options.hpp.
| bool protobuf::json::PrintOptions::preserve_proto_field_names = false |
Output field names exactly how specified in the proto file (usually lower_snake_case). By default, protobuf message field names are converted to lowerCamelCase format.
Definition at line 46 of file convert_options.hpp.