| Modifier and Type | Class and Description |
|---|---|
| public static class | ProtobufMapper.
Base implementation for "Vanilla" |
| private static class | ProtobufMapper.
Helper class to contain dynamically constructed "shared" instance of
mapper, should one be needed via |
| 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 | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static ProtobufMapper. | |
| public static ProtobufMapper. | |
| 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 FileDescriptorSet | |
| public FileDescriptorSet | |
| public FileDescriptorSet | |
| public ProtobufMapper. | rebuild()
Overrides tools. Method for creating a new |
| public ProtobufSchemaLoader | schemaLoader()
Accessor for reusable |
| public void | |
| public static ProtobufMapper | shared()
Accessor method for getting globally shared "default" |
| public ProtobufFactory | tokenStreamFactory()
Overrides tools. Method that can be used to get hold of |
| public Version | version()
Overrides tools. Implements tools. 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 | |
| ProtobufMapper | back to summary |
|---|---|
| public ProtobufMapper() | |
| ProtobufMapper | back to summary |
|---|---|
| public ProtobufMapper(ProtobufFactory f) | |
| ProtobufMapper | back to summary |
|---|---|
| public ProtobufMapper(ProtobufMapper. | |
| builder | back to summary |
|---|---|
| public static ProtobufMapper. | |
| builder | back to summary |
|---|---|
| public static ProtobufMapper. | |
| 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) Convenience method for constructing protoc definition that matches
given Java type. Uses
| |
| generateSchemaFor | back to summary |
|---|---|
| public ProtobufSchema generateSchemaFor(Class<?> type) Convenience method for constructing protoc definition that matches
given Java type. Uses
| |
| generateSchemaFor | back to summary |
|---|---|
| public ProtobufSchema generateSchemaFor(TypeReference<?> type) Convenience method for constructing protoc definition that matches
given Java type. Uses
| |
| 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 | |
| rebuild | back to summary |
|---|---|
| public ProtobufMapper. Overrides tools. Doc from tools. Method for creating a new
| |
| schemaLoader | back to summary |
|---|---|
| public ProtobufSchemaLoader schemaLoader() Accessor for reusable | |
| setSchemaLoader | back to summary |
|---|---|
| public void setSchemaLoader(ProtobufSchemaLoader l) | |
| shared | back to summary |
|---|---|
| public static ProtobufMapper shared() Accessor method for getting globally shared "default" | |
| tokenStreamFactory | back to summary |
|---|---|
| public ProtobufFactory tokenStreamFactory() Overrides tools. Doc from tools. Method that can be used to get hold of Warning note that all
| |
| version | back to summary |
|---|---|
| public Version version() Overrides tools. Implements tools. Doc from tools. Method that will return version information stored in and read from jar that contains this class.
| |
ObjectMapper, used with
Protobuf backend.
| Modifier and Type | Class and Description |
|---|---|
| protected static class |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Builder(ProtobufMapper.
State to restore to initialize constructed Builder stateNote while technically public, not intended for external use
(since |
| Modifier and Type | Method and Description |
|---|---|
| protected MapperBuilderState | |
| public ProtobufMapper | build()
Implements abstract tools. Method to call to create actual mapper instance. |
| Builder | back to summary |
|---|---|
| public Builder(ProtobufFactory f) | |
| Builder | back to summary |
|---|---|
| public Builder(ProtobufMapper. Note while technically public, not intended for external use
(since
| |
| _saveState | back to summary |
|---|---|
| protected MapperBuilderState _saveState() Implements abstract tools.
| |
| build | back to summary |
|---|---|
| public ProtobufMapper build() Implements abstract tools. Doc from tools. Method to call to create actual mapper instance.
Implementation detail: usually construction occurs by passing
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | readResolve()
Implements abstract tools. Method required to support JDK deserialization; made `abstract` here to ensure sub-classes must implement it. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides tools. | |
| StateImpl | back to summary |
|---|---|
| public StateImpl(ProtobufMapper. | |
| readResolve | back to summary |
|---|---|
| protected Object readResolve() Implements abstract tools. Doc from tools. Method required to support JDK deserialization; made `abstract` here to ensure sub-classes must implement it.
| |