Additional classes and traits to mix in to an individual enum value.
Can be specified only if this field is repeated. If unspecified,
it falls back to the file option named collection_type
, which defaults
to scala.collection.Seq
.
If the field is a map, you can specify custom Scala types for the key or value.
Custom annotations to add to the field.
Do not box this value in Option[T]
Additional classes and traits to mix in to the case class.
Additional classes and traits to mix in to the companion object.
Custom annotations to add to the generated case class.
All instances of this message will be converted to this type. An implicit TypeMapper must be present.
Custom annotations to add to the companion object of the generated class.
Additional traits to mix in to a oneof.
If set then it overrides the java_package and package.
If true, the compiler does not append the proto base file name into the generated package name. If false (the default), the generated scala package name is the package_name.basename where basename is the proto file name without the .proto extension.
Adds the following imports at the top of the file (this is meant to provide implicit TypeMappers)
Text to add to the generated scala file. This can be used only when single_file is true.
If true, all messages and enums (but not services) will be written to a single Scala file.
By default, wrappers defined at https://github.com/google/protobuf/blob/master/src/google/protobuf/wrappers.proto, are mapped to an Option[T] where T is a primitive type. When this field is set to true, we do not perform this transformation.
DEPRECATED. In ScalaPB <= 0.5.47, it was necessary to explicitly enable
primitive_wrappers. This field remains here for backwards compatibility,
but it has no effect on generated code. It is an error to set both
primitive_wrappers
and no_primitive_wrappers
.
Scala type to be used for repeated fields. If unspecified,
scala.collection.Seq
will be used.
If set to true, all generated messages in this file will preserve unknown fields.
If defined, sets the name of the file-level object that would be generated. This
object extends GeneratedFileObject
and contains descriptors, and list of message
and enum companions.
Experimental: scope to apply the given options.
If true, lenses will not be generated.
If true, then source-code info information will be included in the generated code - normally the source code info is cleared out to reduce code size. The source code info is useful for extracting source code location from the descriptors as well as comments.
For use in tests only. Inhibit Java conversions even when when generator parameters request for it.
Additional classes and traits to mix in to the base trait
Additional classes and traits to mix in to the companion object.
All instances of this enum will be converted to this type. An implicit TypeMapper must be present.