Class JsonFormatter.Settings
Inheritance
JsonFormatter.Settings
Assembly: Google.Protobuf.dll
public sealed class JsonFormatter.Settings
Constructors
Declaration
public Settings(bool formatDefaultValues)
Parameters
Type |
Name |
Description |
bool |
formatDefaultValues |
|
Declaration
public Settings(bool formatDefaultValues, TypeRegistry typeRegistry)
Parameters
Properties
Declaration
public static JsonFormatter.Settings Default { get; }
Property Value
Declaration
public bool FormatDefaultValues { get; }
Property Value
Declaration
public bool FormatEnumsAsIntegers { get; }
Property Value
Declaration
public string Indentation { get; }
Property Value
Declaration
public bool PreserveProtoFieldNames { get; }
Property Value
Declaration
public TypeRegistry TypeRegistry { get; }
Property Value
Methods
Declaration
public JsonFormatter.Settings WithFormatDefaultValues(bool formatDefaultValues)
Parameters
Type |
Name |
Description |
bool |
formatDefaultValues |
|
Returns
Declaration
public JsonFormatter.Settings WithFormatEnumsAsIntegers(bool formatEnumsAsIntegers)
Parameters
Type |
Name |
Description |
bool |
formatEnumsAsIntegers |
|
Returns
Declaration
public JsonFormatter.Settings WithIndentation(string indentation = " ")
Parameters
Type |
Name |
Description |
string |
indentation |
|
Returns
Declaration
public JsonFormatter.Settings WithPreserveProtoFieldNames(bool preserveProtoFieldNames)
Parameters
Type |
Name |
Description |
bool |
preserveProtoFieldNames |
|
Returns
Declaration
public JsonFormatter.Settings WithTypeRegistry(TypeRegistry typeRegistry)
Parameters
Returns