C# Class Google.Protobuf.JsonFormatter.Settings

Settings controlling JSON formatting.
Show file Open project: mirror/chromium Class Usage Examples

Public Methods

Method Description
Settings ( bool formatDefaultValues ) : System

Creates a new Settings object with the specified formatting of default values and an empty type registry.

Settings ( bool formatDefaultValues, Google.Protobuf.Reflection.TypeRegistry typeRegistry ) : System

Creates a new Settings object with the specified formatting of default values and type registry.

Private Methods

Method Description
Settings ( ) : System

Method Details

Settings() public method

Creates a new Settings object with the specified formatting of default values and an empty type registry.
public Settings ( bool formatDefaultValues ) : System
formatDefaultValues bool true if default values (0, empty strings etc) should be formatted; false otherwise.
return System

Settings() public method

Creates a new Settings object with the specified formatting of default values and type registry.
public Settings ( bool formatDefaultValues, Google.Protobuf.Reflection.TypeRegistry typeRegistry ) : System
formatDefaultValues bool true if default values (0, empty strings etc) should be formatted; false otherwise.
typeRegistry Google.Protobuf.Reflection.TypeRegistry The to use when formatting messages.
return System