public static final class GrpcJsonTranscoder.PrintOptions extends com.google.protobuf.GeneratedMessageV3 implements GrpcJsonTranscoder.PrintOptionsOrBuilder
envoy.config.filter.http.transcoder.v2.GrpcJsonTranscoder.PrintOptions| Modifier and Type | Class and Description |
|---|---|
static class |
GrpcJsonTranscoder.PrintOptions.Builder
Protobuf type
envoy.config.filter.http.transcoder.v2.GrpcJsonTranscoder.PrintOptions |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ADD_WHITESPACE_FIELD_NUMBER |
static int |
ALWAYS_PRINT_ENUMS_AS_INTS_FIELD_NUMBER |
static int |
ALWAYS_PRINT_PRIMITIVE_FIELDS_FIELD_NUMBER |
static int |
PRESERVE_PROTO_FIELD_NAMES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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.
|
static GrpcJsonTranscoder.PrintOptions |
getDefaultInstance() |
GrpcJsonTranscoder.PrintOptions |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<GrpcJsonTranscoder.PrintOptions> |
getParserForType() |
boolean |
getPreserveProtoFieldNames()
Whether to preserve proto field names.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static GrpcJsonTranscoder.PrintOptions.Builder |
newBuilder() |
static GrpcJsonTranscoder.PrintOptions.Builder |
newBuilder(GrpcJsonTranscoder.PrintOptions prototype) |
GrpcJsonTranscoder.PrintOptions.Builder |
newBuilderForType() |
protected GrpcJsonTranscoder.PrintOptions.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static GrpcJsonTranscoder.PrintOptions |
parseDelimitedFrom(InputStream input) |
static GrpcJsonTranscoder.PrintOptions |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GrpcJsonTranscoder.PrintOptions |
parseFrom(byte[] data) |
static GrpcJsonTranscoder.PrintOptions |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GrpcJsonTranscoder.PrintOptions |
parseFrom(ByteBuffer data) |
static GrpcJsonTranscoder.PrintOptions |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GrpcJsonTranscoder.PrintOptions |
parseFrom(com.google.protobuf.ByteString data) |
static GrpcJsonTranscoder.PrintOptions |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GrpcJsonTranscoder.PrintOptions |
parseFrom(com.google.protobuf.CodedInputStream input) |
static GrpcJsonTranscoder.PrintOptions |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GrpcJsonTranscoder.PrintOptions |
parseFrom(InputStream input) |
static GrpcJsonTranscoder.PrintOptions |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<GrpcJsonTranscoder.PrintOptions> |
parser() |
GrpcJsonTranscoder.PrintOptions.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ADD_WHITESPACE_FIELD_NUMBER
public static final int ALWAYS_PRINT_PRIMITIVE_FIELDS_FIELD_NUMBER
public static final int ALWAYS_PRINT_ENUMS_AS_INTS_FIELD_NUMBER
public static final int PRESERVE_PROTO_FIELD_NAMES_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean getAddWhitespace()
Whether to add spaces, line breaks and indentation to make the JSON output easy to read. Defaults to false.
bool add_whitespace = 1;getAddWhitespace in interface GrpcJsonTranscoder.PrintOptionsOrBuilderpublic 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;getAlwaysPrintPrimitiveFields in interface GrpcJsonTranscoder.PrintOptionsOrBuilderpublic 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;getAlwaysPrintEnumsAsInts in interface GrpcJsonTranscoder.PrintOptionsOrBuilderpublic 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;getPreserveProtoFieldNames in interface GrpcJsonTranscoder.PrintOptionsOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static GrpcJsonTranscoder.PrintOptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GrpcJsonTranscoder.PrintOptions parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GrpcJsonTranscoder.PrintOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GrpcJsonTranscoder.PrintOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GrpcJsonTranscoder.PrintOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GrpcJsonTranscoder.PrintOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GrpcJsonTranscoder.PrintOptions parseFrom(InputStream input) throws IOException
IOExceptionpublic static GrpcJsonTranscoder.PrintOptions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GrpcJsonTranscoder.PrintOptions parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static GrpcJsonTranscoder.PrintOptions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GrpcJsonTranscoder.PrintOptions parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static GrpcJsonTranscoder.PrintOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic GrpcJsonTranscoder.PrintOptions.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static GrpcJsonTranscoder.PrintOptions.Builder newBuilder()
public static GrpcJsonTranscoder.PrintOptions.Builder newBuilder(GrpcJsonTranscoder.PrintOptions prototype)
public GrpcJsonTranscoder.PrintOptions.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected GrpcJsonTranscoder.PrintOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static GrpcJsonTranscoder.PrintOptions getDefaultInstance()
public static com.google.protobuf.Parser<GrpcJsonTranscoder.PrintOptions> parser()
public com.google.protobuf.Parser<GrpcJsonTranscoder.PrintOptions> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public GrpcJsonTranscoder.PrintOptions getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.