Uses of Class
com.google.protobuf.TextFormat.ParseException
Packages that use TextFormat.ParseException
-
Uses of TextFormat.ParseException in com.google.protobuf
Subclasses of TextFormat.ParseException in com.google.protobufModifier and TypeClassDescriptionstatic classThrown when encountering an unknown field while parsing a text format message.Methods in com.google.protobuf that return TextFormat.ParseExceptionModifier and TypeMethodDescriptionprivate TextFormat.ParseExceptionTextFormat.Tokenizer.floatParseException(NumberFormatException e) Constructs an appropriateTextFormat.ParseExceptionfor the givenNumberFormatExceptionwhen trying to parse a float or double.private TextFormat.ParseExceptionTextFormat.Tokenizer.integerParseException(NumberFormatException e) Constructs an appropriateTextFormat.ParseExceptionfor the givenNumberFormatExceptionwhen trying to parse an integer.(package private) TextFormat.ParseExceptionTextFormat.Tokenizer.parseException(String description) Returns aTextFormat.ParseExceptionwith the current line and column numbers in the description, suitable for throwing.(package private) TextFormat.ParseExceptionTextFormat.Tokenizer.parseExceptionPreviousToken(String description) Returns aTextFormat.ParseExceptionwith 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 voidTextFormat.Parser.checkUnknownFields(List<TextFormat.Parser.UnknownField> unknownFields) (package private) voidIf the next token exactly matchestoken, consume it.booleanTextFormat.Tokenizer.consumeBoolean()If the next token is a boolean, consume it and return its value.(package private) ByteStringTextFormat.Tokenizer.consumeByteString()If the next token is a string, consume it, unescape it as aByteString, and return it.private voidTextFormat.Tokenizer.consumeByteString(List<ByteString> list) LikeTextFormat.Tokenizer.consumeByteString()but adds each token of the string to the given list.doubleTextFormat.Tokenizer.consumeDouble()If the next token is a double, consume it and return its value.private voidTextFormat.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 fromtokenizerand merge it intobuilder.private voidTextFormat.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 fromtokenizerand merge it intobuilder.floatTextFormat.Tokenizer.consumeFloat()If the next token is a float, consume it and return its value.private StringTextFormat.Parser.consumeFullTypeName(TextFormat.Tokenizer tokenizer) (package private) StringTextFormat.Tokenizer.consumeIdentifier()If the next token is an identifier, consume it and return its value.(package private) intTextFormat.Tokenizer.consumeInt32()If the next token is a 32-bit signed integer, consume it and return its value.(package private) longTextFormat.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) intTextFormat.Tokenizer.consumeUInt32()If the next token is a 32-bit unsigned integer, consume it and return its value.(package private) longTextFormat.Tokenizer.consumeUInt64()If the next token is a 64-bit unsigned integer, consume it and return its value.private voidTextFormat.Parser.guessFieldTypeAndSkip(TextFormat.Tokenizer tokenizer, Descriptors.Descriptor type, int recursionLimit) Tries to guess the type of this field and skip it.static voidTextFormat.merge(CharSequence input, ExtensionRegistry extensionRegistry, Message.Builder builder) Parse a text-format message frominputand merge the contents intobuilder.static voidTextFormat.merge(CharSequence input, Message.Builder builder) Parse a text-format message frominputand merge the contents intobuilder.voidTextFormat.Parser.merge(CharSequence input, ExtensionRegistry extensionRegistry, Message.Builder builder) Parse a text-format message frominputand merge the contents intobuilder.voidTextFormat.Parser.merge(CharSequence input, Message.Builder builder) Parse a text-format message frominputand merge the contents intobuilder.private voidTextFormat.Parser.mergeAnyFieldValue(TextFormat.Tokenizer tokenizer, ExtensionRegistry extensionRegistry, MessageReflection.MergeTarget target, TextFormatParseInfoTree.Builder parseTreeBuilder, List<TextFormat.Parser.UnknownField> unknownFields, Descriptors.Descriptor anyDescriptor, int recursionLimit) private voidTextFormat.Parser.mergeField(TextFormat.Tokenizer tokenizer, ExtensionRegistry extensionRegistry, MessageReflection.MergeTarget target, TextFormatParseInfoTree.Builder parseTreeBuilder, List<TextFormat.Parser.UnknownField> unknownFields, int recursionLimit) Parse a single field fromtokenizerand merge it intotarget.private voidTextFormat.Parser.mergeField(TextFormat.Tokenizer tokenizer, ExtensionRegistry extensionRegistry, MessageReflection.MergeTarget target, List<TextFormat.Parser.UnknownField> unknownFields, int recursionLimit) Parse a single field fromtokenizerand 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 voidTextFormat.Parser.skipField(TextFormat.Tokenizer tokenizer, Descriptors.Descriptor type, int recursionLimit) Skips the next field including the field's name and value.private voidTextFormat.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 voidTextFormat.Parser.skipFieldShortFormedRepeated(TextFormat.Tokenizer tokenizer, boolean scalarAllowed, Descriptors.Descriptor type, int recursionLimit) Skips a short-formed repeated field value.private voidTextFormat.Parser.skipFieldValue(TextFormat.Tokenizer tokenizer) Skips a field value.