Settings controlling JSON formatting.
More...
|
| Settings (bool formatDefaultValues) |
| Creates a new Settings object with the specified formatting of default values and an empty type registry. More...
|
|
| Settings (bool formatDefaultValues, TypeRegistry typeRegistry) |
| Creates a new Settings object with the specified formatting of default values and type registry. More...
|
|
Settings controlling JSON formatting.
◆ Settings() [1/2]
Google.Protobuf.JsonFormatter.Settings.Settings |
( |
bool |
formatDefaultValues | ) |
|
|
inline |
Creates a new Settings object with the specified formatting of default values and an empty type registry.
- Parameters
-
formatDefaultValues | true if default values (0, empty strings etc) should be formatted; false otherwise. |
◆ Settings() [2/2]
Google.Protobuf.JsonFormatter.Settings.Settings |
( |
bool |
formatDefaultValues, |
|
|
TypeRegistry |
typeRegistry |
|
) |
| |
|
inline |
Creates a new Settings object with the specified formatting of default values and type registry.
- Parameters
-
formatDefaultValues | true if default values (0, empty strings etc) should be formatted; false otherwise. |
typeRegistry | The TypeRegistry to use when formatting Any messages. |
◆ Default
Settings Google.Protobuf.JsonFormatter.Settings.Default |
|
staticget |
◆ FormatDefaultValues
bool Google.Protobuf.JsonFormatter.Settings.FormatDefaultValues |
|
get |
Whether fields whose values are the default for the field type (e.g. 0 for integers) should be formatted (true) or omitted (false).
◆ TypeRegistry
TypeRegistry Google.Protobuf.JsonFormatter.Settings.TypeRegistry |
|
get |
The type registry used to format Any messages.
The documentation for this class was generated from the following file:
- Source/ThirdParty/libwebrtc/Source/third_party/protobuf/csharp/src/Google.Protobuf/JsonFormatter.cs