Uses of Class
com.google.protobuf.util.JsonFormat.Printer
Packages that use JsonFormat.Printer
-
Uses of JsonFormat.Printer in com.google.protobuf.util
Methods in com.google.protobuf.util that return JsonFormat.PrinterModifier and TypeMethodDescriptionJsonFormat.Printer.includingDefaultValueFields()
Creates a newJsonFormat.Printer
that will also print fields set to their defaults.JsonFormat.Printer.includingDefaultValueFields
(Set<Descriptors.FieldDescriptor> fieldsToAlwaysOutput) Creates a newJsonFormat.Printer
that will also print default-valued fields if their FieldDescriptors are found in the supplied set.JsonFormat.Printer.omittingInsignificantWhitespace()
Create a newJsonFormat.Printer
that will omit all insignificant whitespace in the JSON output.JsonFormat.Printer.preservingProtoFieldNames()
Creates a newJsonFormat.Printer
that is configured to use the original proto field names as defined in the .proto file rather than converting them to lowerCamelCase.static JsonFormat.Printer
JsonFormat.printer()
Creates aJsonFormat.Printer
with default configurations.JsonFormat.Printer.printingEnumsAsInts()
Creates a newJsonFormat.Printer
that will print enum field values as integers instead of as string.JsonFormat.Printer.sortingMapKeys()
Create a newJsonFormat.Printer
that will sort the map keys in the JSON output.JsonFormat.Printer.usingTypeRegistry
(TypeRegistry registry) Creates a newJsonFormat.Printer
using the given registry.JsonFormat.Printer.usingTypeRegistry
(JsonFormat.TypeRegistry oldRegistry) Creates a newJsonFormat.Printer
using the given registry.