Settings controlling JSON parsing.
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
|
Default settings, as used by JsonParser.Default.
|
RecursionLimit
|
int
The maximum depth of messages to parse.
|
TypeRegistry
|
The type registry used to parse Any messages.
|
Settings Default
Default settings, as used by JsonParser.Default.
This has the same default recursion limit as CodedInputStream, and an empty type registry.
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.
Settings( int recursionLimit )
Creates a new Settings object with the specified recursion limit.
Details | |||
---|---|---|---|
Parameters |
|
Settings( int recursionLimit, TypeRegistry typeRegistry )
Creates a new Settings object with the specified recursion limit and type registry.
Details | |||||
---|---|---|---|---|---|
Parameters |
|