public static class TextFormat.Parser.Builder
extends java.lang.Object
Parser
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TextFormat.Parser |
build() |
TextFormat.Parser.Builder |
setAllowUnknownExtensions(boolean allowUnknownExtensions)
Set whether this parser will allow unknown extensions.
|
TextFormat.Parser.Builder |
setAllowUnknownFields(boolean allowUnknownFields)
Set whether this parser will allow unknown fields.
|
TextFormat.Parser.Builder |
setParseInfoTreeBuilder(TextFormatParseInfoTree.Builder parseInfoTreeBuilder) |
TextFormat.Parser.Builder |
setSingularOverwritePolicy(TextFormat.Parser.SingularOverwritePolicy p)
Sets parser behavior when a non-repeated field appears more than once.
|
TextFormat.Parser.Builder |
setTypeRegistry(TypeRegistry typeRegistry)
Sets the TypeRegistry for resolving Any.
|
public TextFormat.Parser.Builder setTypeRegistry(TypeRegistry typeRegistry)
java.lang.IllegalArgumentException
- if a registry is already set.public TextFormat.Parser.Builder setAllowUnknownFields(boolean allowUnknownFields)
Use of this parameter is discouraged which may hide some errors (e.g. spelling error on field name).
public TextFormat.Parser.Builder setAllowUnknownExtensions(boolean allowUnknownExtensions)
public TextFormat.Parser.Builder setSingularOverwritePolicy(TextFormat.Parser.SingularOverwritePolicy p)
public TextFormat.Parser.Builder setParseInfoTreeBuilder(TextFormatParseInfoTree.Builder parseInfoTreeBuilder)
public TextFormat.Parser build()