Index
All Classes|All Packages
B
- build() - Method in class org.curioswitch.common.protobuf.json.MessageMarshaller.Builder
-
Returns the built
MessageMarshaller, generatingTypeSpecificMarshallerfor all registeredMessagetypes. - builder() - Static method in class org.curioswitch.common.protobuf.json.MessageMarshaller
-
Returns a new
MessageMarshaller.Builderfor registeringMessagetypes for use in aMessageMarshalleras well as setting various serialization and parsing options.
I
- ignoringUnknownFields(boolean) - Method in class org.curioswitch.common.protobuf.json.MessageMarshaller.Builder
-
Sets whether unknown fields should be allowed when parsing JSON input.
- includingDefaultValueFields(boolean) - Method in class org.curioswitch.common.protobuf.json.MessageMarshaller.Builder
-
Set whether unset fields will be serialized with their default values.
M
- mergeValue(byte[], Message.Builder) - Method in class org.curioswitch.common.protobuf.json.MessageMarshaller
-
Merges the JSON UTF-8 bytes into the provided
Message.Builder. - mergeValue(JsonParser, Message.Builder) - Method in class org.curioswitch.common.protobuf.json.MessageMarshaller
-
Merges the content inside the
JsonParserinto the providedMessage.Builder. - mergeValue(InputStream, Message.Builder) - Method in class org.curioswitch.common.protobuf.json.MessageMarshaller
-
Merges the JSON bytes inside the provided
InputStreaminto the providedMessage.Builder. - mergeValue(String, Message.Builder) - Method in class org.curioswitch.common.protobuf.json.MessageMarshaller
-
Merges the JSON
Stringinto the providedMessage.Builder. - MessageMarshaller - Class in org.curioswitch.common.protobuf.json
-
A marshaller of pre-registered
Messagetypes. - MessageMarshaller.Builder - Class in org.curioswitch.common.protobuf.json
-
A
MessageMarshaller.BuilderofMessageMarshallers, allows registeringMessagetypes to marshall and set options.
O
- omittingInsignificantWhitespace(boolean) - Method in class org.curioswitch.common.protobuf.json.MessageMarshaller.Builder
-
Whether the serialized JSON output will omit all insignificant whitespace.
- org.curioswitch.common.protobuf.json - package org.curioswitch.common.protobuf.json
-
Code for efficiently marshalling between protobuf objects and JSON.
P
- preservingProtoFieldNames(boolean) - Method in class org.curioswitch.common.protobuf.json.MessageMarshaller.Builder
-
Set whether field names should use the original name in the .proto file instead of converting to lowerCamelCase when serializing messages.
- printingEnumsAsInts(boolean) - Method in class org.curioswitch.common.protobuf.json.MessageMarshaller.Builder
-
Sets whether enum values should be printed as their integer value rather than their name.
R
- register(Message) - Method in class org.curioswitch.common.protobuf.json.MessageMarshaller.Builder
-
Registers the type of the provided
Messagefor use with the createdMessageMarshaller. - register(Class<? extends Message>) - Method in class org.curioswitch.common.protobuf.json.MessageMarshaller.Builder
-
Registers the provided
Messagetype for use with the createdMessageMarshaller.
S
- sortingMapKeys(boolean) - Method in class org.curioswitch.common.protobuf.json.MessageMarshaller.Builder
-
Sets whether map keys will be sorted in the JSON output.
W
- writeValue(T, JsonGenerator) - Method in class org.curioswitch.common.protobuf.json.MessageMarshaller
-
Converts a
Messageinto a JSON, writing to the providedJsonGenerator. - writeValue(T, OutputStream) - Method in class org.curioswitch.common.protobuf.json.MessageMarshaller
-
Converts a
Messageinto JSON, writing to the providedOutputStream. - writeValueAsBytes(T) - Method in class org.curioswitch.common.protobuf.json.MessageMarshaller
-
Converts a
Messageinto JSON as UTF-8 encoded bytes. - writeValueAsString(T) - Method in class org.curioswitch.common.protobuf.json.MessageMarshaller
-
Converts a
Messageinto a JSONString.
All Classes|All Packages