| Constructor and Description |
|---|
MessageDecodeOptions()
New decode options with default values.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxDecodeDepth()
Returns the maximum decode depth allowed before error when decoding Maps, Lists,
Arrays, and certain related DescribedTypes from an encoded payload.
|
int |
getZeroWidthArrayElementLimit()
Gets the configured maximum number of elements that can be decoded from an array
encoded with the zero-width elements (ulong0, uint0, list0, boolean-true,
boolean-false, null).
|
MessageDecodeOptions |
setMaxDecodeDepth(int maxDecodeDepth)
Configures the maximum decode depth allowed before error when decoding Maps, Lists,
Arrays, and certain related DescribedTypes from an encoded payload.
|
MessageDecodeOptions |
setZeroWidthArrayElementLimit(int zeroWidthElementLimit)
Configures the maximum number of array elements allowed while decoding arrays
of zero-width elements (ulong0, uint0, list0, boolean-true, boolean-false, null)
before a decode exception.
|
public MessageDecodeOptions()
public int getZeroWidthArrayElementLimit()
public MessageDecodeOptions setZeroWidthArrayElementLimit(int zeroWidthElementLimit)
zeroWidthElementLimit - The configured max zero-width elements allowed.MessageDecodeOptions instance.public int getMaxDecodeDepth()
public MessageDecodeOptions setMaxDecodeDepth(int maxDecodeDepth)
maxDecodeDepth - The configured max decode depth allowed.MessageDecodeOptions instance.Copyright © 2026 The Apache Software Foundation. All rights reserved.