/// <param name="formatDefaultValues"><c>true</c> if default values (0, empty strings etc) should be formatted; <c>false</c> otherwise.</param>
/// <param name="typeRegistry">The <see cref="TypeRegistry"/> to use when formatting <see cref="Any"/> messages. TypeRegistry.Empty will be used if it is null.</param>
/// <param name="formatEnumsAsIntegers"><c>true</c> to format the enums as integers; <c>false</c> to format enums as enum names.</param>
/// <param name="preserveProtoFieldNames"><c>true</c> to preserve proto field names; <c>false</c> to convert them to lowerCamelCase.</param>
privateSettings(boolformatDefaultValues,
TypeRegistrytypeRegistry,
boolformatEnumsAsIntegers)
boolformatEnumsAsIntegers,
boolpreserveProtoFieldNames)
{
FormatDefaultValues=formatDefaultValues;
TypeRegistry=typeRegistry??TypeRegistry.Empty;
FormatEnumsAsIntegers=formatEnumsAsIntegers;
PreserveProtoFieldNames=preserveProtoFieldNames;
}
/// <summary>
/// Creates a new <see cref="Settings"/> object with the specified formatting of default values and the current settings.
/// </summary>
/// <param name="formatDefaultValues"><c>true</c> if default values (0, empty strings etc) should be formatted; <c>false</c> otherwise.</param>