Classes | |
class | CompactTextGenerator |
class | Parser |
class | ParserImpl |
class | PrettyTextGenerator |
class | Printer |
class | PrinterImpl |
interface | TextGenerator |
class | TypeRegistry |
Static Public Member Functions | |
static Parser | parser () |
static Parser | parser () |
static Printer | printer () |
static Printer | printer () |
Private Member Functions | |
JsonFormat () | |
JsonFormat () | |
Static Private Member Functions | |
static String | getTypeName (String typeUrl) throws InvalidProtocolBufferException |
static String | getTypeName (String typeUrl) throws InvalidProtocolBufferException |
static String | unsignedToString (final int value) |
static String | unsignedToString (final int value) |
static String | unsignedToString (final long value) |
static String | unsignedToString (final long value) |
Static Private Attributes | |
static final Logger | logger = Logger.getLogger(JsonFormat.class.getName()) |
Utility classes to convert protobuf messages to/from JSON format. The JSON format follows Proto3 JSON specification and only proto3 features are supported. Proto2 only features (e.g., extensions and unknown fields) will be discarded in the conversion. That is, when converting proto2 messages to JSON format, extensions and unknown fields will be treated as if they do not exist. This applies to proto2 messages embedded in proto3 messages as well.
Definition at line 101 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java.
|
inlineprivate |
Definition at line 104 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java.
|
inlineprivate |
Definition at line 105 of file protobuf/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java.
|
inlinestaticprivate |
Definition at line 1289 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java.
|
inlinestaticprivate |
Definition at line 1289 of file protobuf/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java.
|
inlinestatic |
Creates a Parser with default configuration.
Definition at line 396 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java.
|
inlinestatic |
Creates a Parser with default configuration.
Definition at line 396 of file protobuf/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java.
|
inlinestatic |
Creates a Printer with default configurations.
Definition at line 109 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java.
|
inlinestatic |
Creates a Printer with default configurations.
Definition at line 110 of file protobuf/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java.
|
inlinestaticprivate |
Convert an unsigned 32-bit integer to a string.
Definition at line 1270 of file protobuf/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java.
|
inlinestaticprivate |
Convert an unsigned 32-bit integer to a string.
Definition at line 1270 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java.
|
inlinestaticprivate |
Convert an unsigned 64-bit integer to a string.
Definition at line 1279 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java.
|
inlinestaticprivate |
Convert an unsigned 64-bit integer to a string.
Definition at line 1279 of file protobuf/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java.
|
staticprivate |
Definition at line 102 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java.