Index
All Classes and Interfaces|All Packages
A
- apply(MethodVisitor, Implementation.Context) - Method in class org.curioswitch.common.protobuf.json.bytebuddy.Goto
- apply(MethodVisitor, Implementation.Context) - Method in class org.curioswitch.common.protobuf.json.bytebuddy.IfEqual
- apply(MethodVisitor, Implementation.Context) - Method in class org.curioswitch.common.protobuf.json.bytebuddy.IfFalse
- apply(MethodVisitor, Implementation.Context) - Method in class org.curioswitch.common.protobuf.json.bytebuddy.IfIntsNotEqual
- apply(MethodVisitor, Implementation.Context) - Method in class org.curioswitch.common.protobuf.json.bytebuddy.IfNotNull
- apply(MethodVisitor, Implementation.Context) - Method in class org.curioswitch.common.protobuf.json.bytebuddy.IfRefsEqual
- apply(MethodVisitor, Implementation.Context) - Method in class org.curioswitch.common.protobuf.json.bytebuddy.IfRefsNotEqual
- apply(MethodVisitor, Implementation.Context) - Method in class org.curioswitch.common.protobuf.json.bytebuddy.IfTrue
- apply(MethodVisitor, Implementation.Context) - Method in class org.curioswitch.common.protobuf.json.bytebuddy.SetJumpTargetLabel
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.
C
- checkArrayEnd(JsonParser) - Static method in class org.curioswitch.common.protobuf.json.ParseSupport
-
Returns whether the current token is ']'.
- checkNull(JsonParser) - Static method in class org.curioswitch.common.protobuf.json.ParseSupport
-
Returns whether the current token is 'null'.
- checkObjectEnd(JsonToken) - Static method in class org.curioswitch.common.protobuf.json.ParseSupport
-
Returns whether the
JsonTokenis '}'. - checkRecursionLimit(int) - Static method in class org.curioswitch.common.protobuf.json.ParseSupport
-
Checks whether the
currentDepthof nested message parsing is higher than the limit, and throwsInvalidProtocolBufferExceptionif so.
D
- doMerge(JsonParser, int, Message.Builder) - Method in class org.curioswitch.common.protobuf.json.TypeSpecificMarshaller
- doWrite(T, JsonGenerator) - Method in class org.curioswitch.common.protobuf.json.TypeSpecificMarshaller
G
- Goto - Class in org.curioswitch.common.protobuf.json.bytebuddy
-
A
StackManipulationwhich jumps unconditionally to a destination. - Goto(Label) - Constructor for class org.curioswitch.common.protobuf.json.bytebuddy.Goto
I
- IfEqual - Class in org.curioswitch.common.protobuf.json.bytebuddy
-
A
StackManipulationwhich jumps to a destination if two items on the execution stack are equal. - IfEqual(Class<?>, Label) - Constructor for class org.curioswitch.common.protobuf.json.bytebuddy.IfEqual
- IfFalse - Class in org.curioswitch.common.protobuf.json.bytebuddy
-
A
StackManipulationwhich jumps to a destination if the boolean value on the stack is false. - IfFalse(Label) - Constructor for class org.curioswitch.common.protobuf.json.bytebuddy.IfFalse
- IfIntsNotEqual - Class in org.curioswitch.common.protobuf.json.bytebuddy
-
StackManipulationwhich jumps to a destination if the two ints on the execution stack are not equal. - IfIntsNotEqual(Label) - Constructor for class org.curioswitch.common.protobuf.json.bytebuddy.IfIntsNotEqual
- IfNotNull - Class in org.curioswitch.common.protobuf.json.bytebuddy
-
A
StackManipulationwhich jumps to a destination if one item on the execution stack is not null. - IfNotNull(Label) - Constructor for class org.curioswitch.common.protobuf.json.bytebuddy.IfNotNull
- IfRefsEqual - Class in org.curioswitch.common.protobuf.json.bytebuddy
-
StackManipulationwhich jumps to a destination if the two references on the execution stack are equal. - IfRefsEqual(Label) - Constructor for class org.curioswitch.common.protobuf.json.bytebuddy.IfRefsEqual
- IfRefsNotEqual - Class in org.curioswitch.common.protobuf.json.bytebuddy
-
StackManipulationwhich jumps to a destination if the two references on the execution stack are not equal. - IfRefsNotEqual(Label) - Constructor for class org.curioswitch.common.protobuf.json.bytebuddy.IfRefsNotEqual
- IfTrue - Class in org.curioswitch.common.protobuf.json.bytebuddy
-
A
StackManipulationwhich jumps to a destination if the boolean value on the stack is true. - IfTrue(Label) - Constructor for class org.curioswitch.common.protobuf.json.bytebuddy.IfTrue
- 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.
- isValid() - Method in class org.curioswitch.common.protobuf.json.bytebuddy.Goto
- isValid() - Method in class org.curioswitch.common.protobuf.json.bytebuddy.IfEqual
- isValid() - Method in class org.curioswitch.common.protobuf.json.bytebuddy.IfFalse
- isValid() - Method in class org.curioswitch.common.protobuf.json.bytebuddy.IfIntsNotEqual
- isValid() - Method in class org.curioswitch.common.protobuf.json.bytebuddy.IfNotNull
- isValid() - Method in class org.curioswitch.common.protobuf.json.bytebuddy.IfRefsEqual
- isValid() - Method in class org.curioswitch.common.protobuf.json.bytebuddy.IfRefsNotEqual
- isValid() - Method in class org.curioswitch.common.protobuf.json.bytebuddy.IfTrue
- isValid() - Method in class org.curioswitch.common.protobuf.json.bytebuddy.SetJumpTargetLabel
M
- mapIterator(Map<?, ?>, boolean, boolean) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- mapUnknownEnumValue(int) - Static method in class org.curioswitch.common.protobuf.json.ParseSupport
-
Returns the default value for an enum if it was read as an unknown, for singular fields.
- 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.
N
- normalizeUnsignedInt32(int) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- normalizeUnsignedInt64(long) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
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.
- org.curioswitch.common.protobuf.json.bytebuddy - package org.curioswitch.common.protobuf.json.bytebuddy
-
Bytecode writers for generating code not supported natively by the Byte Buddy library.
P
- parseArrayStart(JsonParser) - Static method in class org.curioswitch.common.protobuf.json.ParseSupport
-
Checks whether the current token is '[' and advances past it.
- parseBool(JsonParser) - Static method in class org.curioswitch.common.protobuf.json.ParseSupport
-
Parsers a bool value out of the input.
- parseBytes(JsonParser) - Static method in class org.curioswitch.common.protobuf.json.ParseSupport
-
Parsers a bytes value out of the input.
- parseDouble(JsonParser) - Static method in class org.curioswitch.common.protobuf.json.ParseSupport
-
Parsers a double value out of the input.
- parseEnum(JsonParser, Descriptors.EnumDescriptor, boolean) - Static method in class org.curioswitch.common.protobuf.json.ParseSupport
-
Parsers an enum value out of the input.
- parseFloat(JsonParser) - Static method in class org.curioswitch.common.protobuf.json.ParseSupport
-
Parsers a float value out of the input.
- parseInt32(JsonParser) - Static method in class org.curioswitch.common.protobuf.json.ParseSupport
-
Parsers an int32 value out of the input.
- parseInt64(JsonParser) - Static method in class org.curioswitch.common.protobuf.json.ParseSupport
-
Parsers an int64 value out of the input.
- parseMessage(JsonParser, TypeSpecificMarshaller<T>, int) - Static method in class org.curioswitch.common.protobuf.json.ParseSupport
-
Parsers a
Messagevalue out of the input. - parseObjectStart(JsonParser) - Static method in class org.curioswitch.common.protobuf.json.ParseSupport
-
Checks the current token is '{' and advances past it.
- parseString(JsonParser) - Static method in class org.curioswitch.common.protobuf.json.ParseSupport
-
Parsers a string value out of the input.
- ParseSupport - Class in org.curioswitch.common.protobuf.json
-
Static methods for parsing various protobuf types.
- parseUInt32(JsonParser) - Static method in class org.curioswitch.common.protobuf.json.ParseSupport
-
Parsers a uint32 value out of the input.
- parseUInt64(JsonParser) - Static method in class org.curioswitch.common.protobuf.json.ParseSupport
-
Parsers a uint64 value out of the input.
- 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.
- printBool(boolean, JsonGenerator) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- printBytes(ByteString, JsonGenerator) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- printDouble(double, JsonGenerator) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- printEnum(int, JsonGenerator, Descriptors.EnumDescriptor) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- printEnum(Descriptors.EnumValueDescriptor, JsonGenerator) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- printFloat(float, JsonGenerator) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- 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.
- printMessage(T, JsonGenerator, TypeSpecificMarshaller<T>) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- printNull(int, JsonGenerator) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- printRepeatedBool(List<Boolean>, JsonGenerator) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- printRepeatedBytes(List<ByteString>, JsonGenerator) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- printRepeatedDouble(List<Double>, JsonGenerator) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- printRepeatedEnum(List<Integer>, JsonGenerator, Descriptors.EnumDescriptor) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- printRepeatedFloat(List<Float>, JsonGenerator) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- printRepeatedMessage(List<T>, JsonGenerator, TypeSpecificMarshaller<T>) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- printRepeatedNull(List<Integer>, JsonGenerator) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- printRepeatedSignedInt32(List<Integer>, JsonGenerator) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- printRepeatedSignedInt64(List<Long>, JsonGenerator) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- printRepeatedString(List<String>, JsonGenerator) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- printRepeatedUnsignedInt32(List<Integer>, JsonGenerator) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- printRepeatedUnsignedInt64(List<Long>, JsonGenerator) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- printSignedInt32(int, JsonGenerator) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- printSignedInt64(long, JsonGenerator) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- printString(String, JsonGenerator) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- printUnsignedInt32(int, JsonGenerator) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- printUnsignedInt64(long, JsonGenerator) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
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
- serializeString(String) - Static method in class org.curioswitch.common.protobuf.json.SerializeSupport
- SerializeSupport - Class in org.curioswitch.common.protobuf.json
- SetJumpTargetLabel - Class in org.curioswitch.common.protobuf.json.bytebuddy
-
Adds a jump target label.
- SetJumpTargetLabel(Label) - Constructor for class org.curioswitch.common.protobuf.json.bytebuddy.SetJumpTargetLabel
- sortingMapKeys(boolean) - Method in class org.curioswitch.common.protobuf.json.MessageMarshaller.Builder
-
Sets whether map keys will be sorted in the JSON output.
T
- throwIfFieldAlreadyWritten(int, int, String) - Static method in class org.curioswitch.common.protobuf.json.ParseSupport
-
Checks the field presence of the field with number
fieldNumberand variableNamefullName. - throwIfOneofAlreadyWritten(JsonParser, Object, String, boolean) - Static method in class org.curioswitch.common.protobuf.json.ParseSupport
-
Checks whether the oneof whose
oneofCasehas already been set. - throwIfRepeatedValueNull(JsonParser) - Static method in class org.curioswitch.common.protobuf.json.ParseSupport
-
Throws an exception if the current token is 'null'.
- throwIfUnknownField(String, String) - Static method in class org.curioswitch.common.protobuf.json.ParseSupport
-
Throws an
InvalidProtocolBufferExceptionindicating the field with variableNamefieldNameis not part ofMessagewith variableNamemessageName. - TypeSpecificMarshaller<T extends com.google.protobuf.Message> - Class in org.curioswitch.common.protobuf.json
-
Abstract class for protobuf marshallers.
- TypeSpecificMarshaller(T) - Constructor for class org.curioswitch.common.protobuf.json.TypeSpecificMarshaller
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 and Interfaces|All Packages