| Modifier and Type | Class and Description |
|---|---|
| public static class | ProtobufMapper.
Base implementation for "Vanilla" |
| Modifier and Type | Field and Description |
|---|---|
| protected volatile DescriptorLoader | _descriptorLoader
Lazily constructed instance of |
| private final ReentrantLock | |
| protected ProtobufSchemaLoader | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static ProtobufMapper. | |
| public static ProtobufMapper. | |
| public ProtobufMapper | copy()
Overrides com. Method for creating a new |
| public DescriptorLoader | descriptorLoader()
Accessors that may be used instead of convenience |
| public ProtobufSchema | Returns: GeneratedProtobufSchemaResolved type to generate type)ProtobufSchema forConvenience method for constructing protoc definition that matches given Java type. |
| public ProtobufSchema | Returns: GeneratedProtobufSchemaType-erased type to generate type)ProtobufSchema forConvenience method for constructing protoc definition that matches given Java type. |
| public ProtobufSchema | Returns: GeneratedProtobufSchemaType to generate type)ProtobufSchema forConvenience method for constructing protoc definition that matches given Java type. |
| public ProtobufFactory | getFactory()
Overrides com. Accessor for finding underlying data format factory
( |
| public FileDescriptorSet | |
| public FileDescriptorSet | |
| public FileDescriptorSet | |
| public ProtobufSchemaLoader | schemaLoader()
Accessor for reusable |
| public void | |
| public Version | version()
Overrides com. Implements com. Method that will return version information stored in and read from jar that contains this class. |
| _descriptorLoader | back to summary |
|---|---|
| protected volatile DescriptorLoader _descriptorLoader Lazily constructed instance of
| |
| _descriptorLock | back to summary |
|---|---|
| private final ReentrantLock _descriptorLock | |
| _schemaLoader | back to summary |
|---|---|
| protected ProtobufSchemaLoader _schemaLoader | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| ProtobufMapper | back to summary |
|---|---|
| public ProtobufMapper() | |
| ProtobufMapper | back to summary |
|---|---|
| public ProtobufMapper(ProtobufFactory f) | |
| ProtobufMapper | back to summary |
|---|---|
| protected ProtobufMapper(ProtobufMapper src) | |
| builder | back to summary |
|---|---|
public static ProtobufMapper.
| |
| builder | back to summary |
|---|---|
public static ProtobufMapper.
| |
| copy | back to summary |
|---|---|
| public ProtobufMapper copy() Overrides com. Doc from com. Method for creating a new Method is typically used when multiple, differently configured mappers are needed. Although configuration is shared, cached serializers and deserializers are NOT shared, which means that the new instance may be re-configured before use; meaning that it behaves the same way as if an instance was constructed from scratch.
| |
| descriptorLoader | back to summary |
|---|---|
| public DescriptorLoader descriptorLoader() throws IOException Accessors that may be used instead of convenience
| |
| generateSchemaFor | back to summary |
|---|---|
| public ProtobufSchema generateSchemaFor(JavaType type) throws JsonMappingException Convenience method for constructing protoc definition that matches
given Java type. Uses
| |
| generateSchemaFor | back to summary |
|---|---|
| public ProtobufSchema generateSchemaFor(Class<?> type) throws JsonMappingException Convenience method for constructing protoc definition that matches
given Java type. Uses
| |
| generateSchemaFor | back to summary |
|---|---|
| public ProtobufSchema generateSchemaFor(TypeReference<?> type) throws JsonMappingException Convenience method for constructing protoc definition that matches
given Java type. Uses
| |
| getFactory | back to summary |
|---|---|
| public ProtobufFactory getFactory() Overrides com. Doc from com. Accessor for finding underlying data format factory
(
| |
| loadDescriptorSet | back to summary |
|---|---|
public FileDescriptorSet loadDescriptorSet(URL src) throws IOException
| |
| loadDescriptorSet | back to summary |
|---|---|
public FileDescriptorSet loadDescriptorSet(File src) throws IOException
| |
| loadDescriptorSet | back to summary |
|---|---|
public FileDescriptorSet loadDescriptorSet(InputStream src) throws IOException
| |
| schemaLoader | back to summary |
|---|---|
| public ProtobufSchemaLoader schemaLoader() Accessor for reusable | |
| setSchemaLoader | back to summary |
|---|---|
| public void setSchemaLoader(ProtobufSchemaLoader l) | |
| version | back to summary |
|---|---|
| public Version version() Overrides com. Implements com. Doc from com. Method that will return version information stored in and read from jar that contains this class.
| |
ObjectMapper, used with
Protobuf backend.
| Access | Constructor and Description |
|---|---|
| public |
| Builder | back to summary |
|---|---|
| public Builder(ProtobufMapper m) | |