public static interface GrpcJsonTranscoder.PrintOptionsOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAddWhitespace()
Whether to add spaces, line breaks and indentation to make the JSON
output easy to read.
|
boolean |
getAlwaysPrintEnumsAsInts()
Whether to always print enums as ints.
|
boolean |
getAlwaysPrintPrimitiveFields()
Whether to always print primitive fields.
|
boolean |
getPreserveProtoFieldNames()
Whether to preserve proto field names.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean getAddWhitespace()
Whether to add spaces, line breaks and indentation to make the JSON output easy to read. Defaults to false.
bool add_whitespace = 1;boolean getAlwaysPrintPrimitiveFields()
Whether to always print primitive fields. By default primitive fields with default values will be omitted in JSON output. For example, an int32 field set to 0 will be omitted. Setting this flag to true will override the default behavior and print primitive fields regardless of their values. Defaults to false.
bool always_print_primitive_fields = 2;boolean getAlwaysPrintEnumsAsInts()
Whether to always print enums as ints. By default they are rendered as strings. Defaults to false.
bool always_print_enums_as_ints = 3;boolean getPreserveProtoFieldNames()
Whether to preserve proto field names. By default protobuf will generate JSON field names using the ``json_name`` option, or lower camel case, in that order. Setting this flag will preserve the original field names. Defaults to false.
bool preserve_proto_field_names = 4;Copyright © 2018–2021 The Envoy Project. All rights reserved.