@Target(value={METHOD,CONSTRUCTOR}) @Retention(value=RUNTIME) @Documented public @interface ProtoFactory
This annotation is meant to support creation of immutable messages. When used in a class, all protobuf fields must be declared with annotations on instance fields or getter methods. Setter are not allowed to be annotated.
Classes that do not have a constructor or static method annotated with this annotation must at least have an accessible no-argument constructor to be used for instantiating the class.
NOTE This annotation can be processed at runtime only if parameter name debug information was emitted by the compiler, ie. the compiler was invoked with the -parameters flag. Usage of this annotation at compile time is possible regardless of that.
Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.