Annotation Type ProtoClass
-
@Target(TYPE) @Retention(SOURCE) public @interface ProtoClassMap between a domain class to a protobuf generated class. The annotated class is the domain class
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<? extends com.google.protobuf.Message>protoClass
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanblacklist"whitelist" mode means that each field that we want to map from protobuf message need to marked withProtoFieldannotation.java.lang.Class<? extends Mapper>mapperDeprecated.useProtoClassMapperbooleanwithInheritedFieldsConsider annotated fields in super classes as well.
-
-
-
-
mapper
@Deprecated java.lang.Class<? extends Mapper> mapper
Deprecated.useProtoClassMapperBy default, use other annotations for mapping, for exampleProtoFieldIf return a mapper then the mapper is responsible for the conversion between the domain class and the protobuf generated class- Returns:
- mapper better domain class and protobuf generated class
- Default:
- org.silbertb.proto.domainconverter.custom.NullMapper.class
-
-
-
blacklist
boolean blacklist
"whitelist" mode means that each field that we want to map from protobuf message need to marked withProtoFieldannotation. "blacklist" mode means that each field is mapped by default as if it was annotated with emptyProtoField. The default can be changed using of the other field annotations and specifically by usingProtoIgnorewhich means that the annotated field is not mapped at all.- Returns:
- false for "whitelist" mode and true for "blacklist" mode
- Default:
- false
-
-