Package org.infinispan.protostream
Library for easy and efficient marshalling of Java objects in Protocol Buffers format.
-
Interface Summary Interface Description AnnotationMetadataCreator<MetadataOutType,AnnotatedDescriptorType extends AnnotatedDescriptor> Creates an application specific alternative metadata representation of anAnnotationElement.Annotation
value.BaseMarshaller<T> This is the base interface of the marshaller hierarchy, exposing common methods for identifying the Java and Protobuf types handled by this marshaller instance.DescriptorParser Deprecated. since 4.4.EnumMarshaller<E extends Enum<E>> Contract to be implemented by marshallers ofEnum
types.FileDescriptorSource.ProgressCallback A callback interface that receives status notifications during the processing of files defined by aFileDescriptorSource
.GeneratedSchema An annotation-based generated proto schema file.ImmutableSerializationContext A repository of Protobuf type definitions and their marshallers.Message Deprecated. this mechanism was replaced byUnknownFieldSetHandler
interface.MessageMarshaller<T> Deprecated. since 4.3.1.Final.MessageMarshaller.ProtoStreamReader A high-level interface for the wire encoding of a Protobuf stream that allows reading named (and typed) message fields.MessageMarshaller.ProtoStreamWriter A high-level interface for the wire encoding of a Protobuf stream that allows writing named (and typed) message fields.ProtobufTagMarshaller<T> A marshaller for message types that has direct access to the low level Protobuf streams (TagReader/TagWriter) to freely read and write tags.ProtobufTagMarshaller.OperationContext Base interface for marshalling operation contexts.ProtobufTagMarshaller.ReadContext Operation context of unmarshalling operations.ProtobufTagMarshaller.WriteContext Operation context of marshalling operations.RawProtobufMarshaller<T> Deprecated. replaced byProtobufTagMarshaller
.RawProtoStreamReader Deprecated. replaced byTagReader
.RawProtoStreamWriter Deprecated. replaced byTagWriter
.SerializationContext A repository for Protobuf type definitions and their marshallers.SerializationContext.InstanceMarshallerProvider<T> Interface to be implemented for dynamic lookup of marshallers where the type is part of the entity being marshalled.SerializationContext.MarshallerProvider Deprecated. Since 4.4.SerializationContextInitializer An interface to be used in conjunction with theAutoProtoSchemaBuilder
annotation.TagHandler An event based interface for consuming a (read only) Protobuf stream containing exactly one top level message.TagReader TagWriter UnknownFieldSet UnknownFieldSet
keeps track of fields seen during parsing of a protocol message but whose field numbers are not recognized by the user provided marshallers (are never requested by them).UnknownFieldSetHandler<T> Deprecated. since 4.3.1.WrappedMessageTypeIdMapper Deprecated. since 4.3.1 because it does not suit the intended purpose. -
Class Summary Class Description FileDescriptorSource Aggregator for source proto files to be passed toSerializationContext.registerProtoFiles(FileDescriptorSource)
.MessageContext<E extends MessageContext<E>> A nested message processing context.ProtobufParser ProtobufUtil This is the entry point to the ProtoStream library.Version Provides version information about this ProtoStream release.WrappedMessage A wrapper for messages, enums or primitive types that encodes the type of the inner object/value and also helps keep track of where the message ends. -
Exception Summary Exception Description AnnotationParserException Exception indicating a syntax or semantic error encountered during parsing or validation of annotations.DescriptorParserException Exception for parse error.MalformedProtobufException