Class BaseProtoSchemaGenerator

  • Direct Known Subclasses:
    RuntimeProtoSchemaGenerator

    public abstract class BaseProtoSchemaGenerator
    extends Object
    Generates a protobuf schema (proto file) based on annotations and also generates marshallers for the types.

    This class is not to be directly invoked by users. See ProtoSchemaBuilder instead.

    Generators are not expected to be stateless, so reuse must be done taking this into account.

    Since:
    3.0
    Author:
    [email protected]
    • Field Detail

      • generateSchemaDebugComments

        public static boolean generateSchemaDebugComments
        Set this flag to true to enable output of debug comments in the generated Protobuf schema.
      • generateMarshallerDebugComments

        public static boolean generateMarshallerDebugComments
        Set this flag to true to enable output of debug comments in the generated marshaller source code.
      • fileName

        protected final String fileName
        Protobuf schema file name.
      • generator

        protected final String generator
      • packageName

        protected final String packageName
        Protobuf schema package name.
      • classes

        protected final Set<XClass> classes
        Initial set of classes.
      • autoImportClasses

        protected final boolean autoImportClasses
        Indicates if class dependencies are automatically added when discovered or will generate an error.