| Modifier and Type | Class and Description |
|---|---|
| public static class | TextFormat.InvalidEscapeSequenceException
Thrown by |
| public static class | TextFormat.ParseException
Thrown when parsing an invalid text format message. |
| public static class | TextFormat.Parser
Parser for text-format proto2 instances. |
| private static class | TextFormat.Printer
Helper class for converting protobufs to text. |
| private static class | TextFormat.TextGenerator
An inner class for writing text to the output stream. |
| private static class | TextFormat.Tokenizer
Represents a stream of tokens parsed from a |
| public static class | TextFormat.UnknownFieldParseException
Thrown when encountering an unknown field while parsing a text format message. |
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private static final TextFormat. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static int | digitValue(final byte c)
Interpret a character as a digit (in any base up to 36) and return the numeric value. |
| public static String | escapeBytes(ByteString input)
Escapes bytes in the format used in protocol buffer text format, which is the same as the format used for C string literals. |
| public static String | |
| public static String | escapeDoubleQuotesAndBackslashes(final String input)
Escape double quotes and backslashes in a String for unicode output of a message. |
| pack-priv static String | |
| public static TextFormat. | |
| private static boolean | |
| private static boolean | |
| public static void | |
| public static void | merge(final CharSequence input, final Message.
Parse a text-format message from |
| public static void | merge(final Readable input, final ExtensionRegistry extensionRegistry, final Message.
Parse a text-format message from |
| public static void | merge(final CharSequence input, final ExtensionRegistry extensionRegistry, final Message.
Parse a text-format message from |
| private static TextFormat. | |
| public static <T extends Message> T | Returns: the parsed message, guaranteed initializedParse a text-format message from |
| public static <T extends Message> T | Returns: the parsed message, guaranteed initializedParse a text-format message from |
| pack-priv static int | |
| pack-priv static long | |
| private static long | |
| pack-priv static int | |
| pack-priv static long | |
| public static void | print(final MessageOrBuilder message, final Appendable output)
Outputs a textual representation of the Protocol Message supplied into the parameter output. |
| public static void | print(final UnknownFieldSet fields, final Appendable output)
Outputs a textual representation of |
| public static void | |
| public static String | |
| public static void | printFieldValue(final Descriptors.
the descriptor of the field field,the value of the field value, final Appendable the output to which to append the formatted value output)Outputs a textual representation of the value of given field value. |
| public static String | printToString(final MessageOrBuilder message)
Like |
| public static String | printToString(final UnknownFieldSet fields)
Like |
| public static String | printToUnicodeString(final MessageOrBuilder message)
Same as |
| public static String | printToUnicodeString(final UnknownFieldSet fields)
Same as |
| public static void | printUnicode(final MessageOrBuilder message, final Appendable output)
Same as |
| public static void | printUnicode(final UnknownFieldSet fields, final Appendable output)
Same as |
| public static void | printUnicodeFieldValue(final Descriptors.
the descriptor of the field field,the value of the field value, final Appendable the output to which to append the formatted value output)Outputs a unicode textual representation of the value of given field value. |
| public static void | printUnknownFieldValue(final int
the field's tag number tag, final Object the value of the field value, final Appendable the output to which to append the formatted value output)Outputs a textual representation of the value of an unknown field. |
| private static void | |
| public static String | shortDebugString(final MessageOrBuilder message)
Generates a human readable form of this message, useful for debugging and other purposes, with no newline characters. |
| public static String | shortDebugString(final Descriptors.
Generates a human readable form of the field, useful for debugging and other purposes, with no newline characters. |
| public static String | shortDebugString(final UnknownFieldSet fields)
Generates a human readable form of the unknown fields, useful for debugging and other purposes, with no newline characters. |
| private static TextFormat. | |
| public static ByteString | unescapeBytes(final CharSequence charString)
Un-escape a byte sequence as escaped using |
| pack-priv static String | |
| public static String | |
| public static String |