Uses of Class
com.google.protobuf.TextFormat.ParseException
-
Uses of TextFormat.ParseException in com.google.protobuf
Subclasses of TextFormat.ParseException in com.google.protobufModifier and TypeClassDescriptionstatic class
Deprecated.This exception is unused and will be removed in the next breaking release (v5.x.x).Methods in com.google.protobuf that return TextFormat.ParseExceptionModifier and TypeMethodDescriptionprivate TextFormat.ParseException
TextFormat.Tokenizer.floatParseException
(NumberFormatException e) Constructs an appropriateTextFormat.ParseException
for the givenNumberFormatException
when trying to parse a float or double.private TextFormat.ParseException
TextFormat.Tokenizer.integerParseException
(NumberFormatException e) Constructs an appropriateTextFormat.ParseException
for the givenNumberFormatException
when trying to parse an integer.(package private) TextFormat.ParseException
TextFormat.Tokenizer.parseException
(String description) Returns aTextFormat.ParseException
with the current line and column numbers in the description, suitable for throwing.(package private) TextFormat.ParseException
TextFormat.Tokenizer.parseExceptionPreviousToken
(String description) Returns aTextFormat.ParseException
with the line and column numbers of the previous token in the description, suitable for throwing.Methods in com.google.protobuf that throw TextFormat.ParseExceptionModifier and TypeMethodDescriptionprivate void
TextFormat.Parser.checkUnknownFields
(List<TextFormat.Parser.UnknownField> unknownFields) (package private) void
If the next token exactly matchestoken
, consume it.boolean
TextFormat.Tokenizer.consumeBoolean()
If the next token is a boolean, consume it and return its value.(package private) ByteString
TextFormat.Tokenizer.consumeByteString()
If the next token is a string, consume it, unescape it as aByteString
, and return it.private void
TextFormat.Tokenizer.consumeByteString
(List<ByteString> list) LikeTextFormat.Tokenizer.consumeByteString()
but adds each token of the string to the given list.double
TextFormat.Tokenizer.consumeDouble()
If the next token is a double, consume it and return its value.private void
TextFormat.Parser.consumeFieldValue
(TextFormat.Tokenizer tokenizer, ExtensionRegistry extensionRegistry, MessageReflection.MergeTarget target, Descriptors.FieldDescriptor field, ExtensionRegistry.ExtensionInfo extension, TextFormatParseInfoTree.Builder parseTreeBuilder, List<TextFormat.Parser.UnknownField> unknownFields, int recursionLimit) Parse a single field value fromtokenizer
and merge it intobuilder
.private void
TextFormat.Parser.consumeFieldValues
(TextFormat.Tokenizer tokenizer, ExtensionRegistry extensionRegistry, MessageReflection.MergeTarget target, Descriptors.FieldDescriptor field, ExtensionRegistry.ExtensionInfo extension, TextFormatParseInfoTree.Builder parseTreeBuilder, List<TextFormat.Parser.UnknownField> unknownFields, int recursionLimit) Parse a one or more field values fromtokenizer
and merge it intobuilder
.float
TextFormat.Tokenizer.consumeFloat()
If the next token is a float, consume it and return its value.private void
TextFormat.Parser.consumeFullTypeName
(TextFormat.Tokenizer tokenizer) (package private) String
TextFormat.Tokenizer.consumeIdentifier()
If the next token is an identifier, consume it and return its value.(package private) int
TextFormat.Tokenizer.consumeInt32()
If the next token is a 32-bit signed integer, consume it and return its value.(package private) long
TextFormat.Tokenizer.consumeInt64()
If the next token is a 64-bit signed integer, consume it and return its value.TextFormat.Tokenizer.consumeString()
If the next token is a string, consume it and return its (unescaped) value.(package private) int
TextFormat.Tokenizer.consumeUInt32()
If the next token is a 32-bit unsigned integer, consume it and return its value.(package private) long
TextFormat.Tokenizer.consumeUInt64()
If the next token is a 64-bit unsigned integer, consume it and return its value.private void
TextFormat.Parser.guessFieldTypeAndSkip
(TextFormat.Tokenizer tokenizer, Descriptors.Descriptor type, int recursionLimit) Tries to guess the type of this field and skip it.static void
TextFormat.merge
(CharSequence input, ExtensionRegistry extensionRegistry, Message.Builder builder) Parse a text-format message frominput
and merge the contents intobuilder
.static void
TextFormat.merge
(CharSequence input, Message.Builder builder) Parse a text-format message frominput
and merge the contents intobuilder
.void
TextFormat.Parser.merge
(CharSequence input, ExtensionRegistry extensionRegistry, Message.Builder builder) Parse a text-format message frominput
and merge the contents intobuilder
.void
TextFormat.Parser.merge
(CharSequence input, Message.Builder builder) Parse a text-format message frominput
and merge the contents intobuilder
.private void
TextFormat.Parser.mergeAnyFieldValue
(TextFormat.Tokenizer tokenizer, ExtensionRegistry extensionRegistry, MessageReflection.MergeTarget target, TextFormatParseInfoTree.Builder parseTreeBuilder, List<TextFormat.Parser.UnknownField> unknownFields, Descriptors.Descriptor anyDescriptor, int recursionLimit) private void
TextFormat.Parser.mergeField
(TextFormat.Tokenizer tokenizer, ExtensionRegistry extensionRegistry, MessageReflection.MergeTarget target, TextFormatParseInfoTree.Builder parseTreeBuilder, List<TextFormat.Parser.UnknownField> unknownFields, int recursionLimit) Parse a single field fromtokenizer
and merge it intotarget
.private void
TextFormat.Parser.mergeField
(TextFormat.Tokenizer tokenizer, ExtensionRegistry extensionRegistry, MessageReflection.MergeTarget target, List<TextFormat.Parser.UnknownField> unknownFields, int recursionLimit) Parse a single field fromtokenizer
and merge it intobuilder
.static <T extends Message>
TTextFormat.parse
(CharSequence input, ExtensionRegistry extensionRegistry, Class<T> protoClass) Parse a text-format message frominput
.static <T extends Message>
TTextFormat.parse
(CharSequence input, Class<T> protoClass) Parse a text-format message frominput
.private void
TextFormat.Parser.skipField
(TextFormat.Tokenizer tokenizer, Descriptors.Descriptor type, int recursionLimit) Skips the next field including the field's name and value.private void
TextFormat.Parser.skipFieldMessage
(TextFormat.Tokenizer tokenizer, Descriptors.Descriptor type, int recursionLimit) Skips the whole body of a message including the beginning delimiter and the ending delimiter.private void
TextFormat.Parser.skipFieldShortFormedRepeated
(TextFormat.Tokenizer tokenizer, boolean scalarAllowed, Descriptors.Descriptor type, int recursionLimit) Skips a short-formed repeated field value.private void
TextFormat.Parser.skipFieldValue
(TextFormat.Tokenizer tokenizer) Skips a field value.