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.Printerthat will also print fields set to their defaults.JsonFormat.Printer.includingDefaultValueFields(Set<Descriptors.FieldDescriptor> fieldsToAlwaysOutput) Creates a newJsonFormat.Printerthat will also print default-valued fields if their FieldDescriptors are found in the supplied set.JsonFormat.Printer.omittingInsignificantWhitespace()Create a newJsonFormat.Printerthat omits insignificant whitespace in the JSON output.JsonFormat.Printer.preservingProtoFieldNames()Creates a newJsonFormat.Printerthat is configured to use the original proto field names as defined in the .proto file rather than converting them to lowerCamelCase.static JsonFormat.PrinterJsonFormat.printer()Creates aJsonFormat.Printerwith default configurations.JsonFormat.Printer.printingEnumsAsInts()Creates a newJsonFormat.Printerthat prints enum field values as integers instead of as string.JsonFormat.Printer.sortingMapKeys()Create a newJsonFormat.Printerthat will sort the map keys in the JSON output.JsonFormat.Printer.usingTypeRegistry(TypeRegistry registry) Creates a newJsonFormat.Printerusing the given registry.JsonFormat.Printer.usingTypeRegistry(JsonFormat.TypeRegistry oldRegistry) Creates a newJsonFormat.Printerusing the given registry.