Google.Protobuf.JsonParser.Settings

Settings controlling JSON parsing.

Summary

Constructors and Destructors

Settings(int recursionLimit)
Creates a new Settings object with the specified recursion limit.
Settings(int recursionLimit, TypeRegistry typeRegistry)
Creates a new Settings object with the specified recursion limit and type registry.

Properties

Default
Settings
Default settings, as used by JsonParser.Default.
RecursionLimit
int
The maximum depth of messages to parse.
TypeRegistry
TypeRegistry
The type registry used to parse Any messages.

Properties

Default

Settings Default

Default settings, as used by JsonParser.Default.

This has the same default recursion limit as CodedInputStream, and an empty type registry.

RecursionLimit

int RecursionLimit

The maximum depth of messages to parse.

Note that this limit only applies to parsing messages, not collections - so a message within a collection within a message only counts as depth 2, not 3.

TypeRegistry

TypeRegistry TypeRegistry

The type registry used to parse Any messages.

Public functions

Settings

 Settings(
  int recursionLimit
)

Creates a new Settings object with the specified recursion limit.

Details
Parameters
recursionLimit
The maximum depth of messages to parse

Settings

 Settings(
  int recursionLimit,
  TypeRegistry typeRegistry
)

Creates a new Settings object with the specified recursion limit and type registry.

Details
Parameters
recursionLimit
The maximum depth of messages to parse
typeRegistry
The type registry used to parse Any messages