Package | Description |
---|---|
com.google.protobuf.util |
Modifier and Type | Method and Description |
---|---|
JsonFormat.Printer |
JsonFormat.Printer.includingDefaultValueFields()
Creates a new
JsonFormat.Printer that will also print fields set to their
defaults. |
JsonFormat.Printer |
JsonFormat.Printer.includingDefaultValueFields(Set<Descriptors.FieldDescriptor> fieldsToAlwaysOutput)
Creates a new
JsonFormat.Printer that will also print default-valued fields if their
FieldDescriptors are found in the supplied set. |
JsonFormat.Printer |
JsonFormat.Printer.omittingInsignificantWhitespace()
Create a new
JsonFormat.Printer that will omit all insignificant whitespace in the JSON output. |
JsonFormat.Printer |
JsonFormat.Printer.preservingProtoFieldNames()
Creates a new
JsonFormat.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 a
JsonFormat.Printer with default configurations. |
JsonFormat.Printer |
JsonFormat.Printer.printingEnumsAsInts()
Creates a new
JsonFormat.Printer that will print enum field values as integers instead of as
string. |
JsonFormat.Printer |
JsonFormat.Printer.usingTypeRegistry(JsonFormat.TypeRegistry registry)
Creates a new
JsonFormat.Printer using the given registry. |
Copyright © 2008–2019. All rights reserved.