final case class ScalaPbOptions(packageName: Option[String] = None, flatPackage: Option[Boolean] = None, import: Seq[String] = _root_.scala.collection.Seq.empty, preamble: Seq[String] = _root_.scala.collection.Seq.empty, singleFile: Option[Boolean] = None, noPrimitiveWrappers: Option[Boolean] = None, primitiveWrappers: Option[Boolean] = None, collectionType: Option[String] = None, preserveUnknownFields: Option[Boolean] = None, testOnlyNoJavaConversions: Option[Boolean] = None) extends GeneratedMessage with Message[ScalaPbOptions] with Updatable[ScalaPbOptions] with Product with Serializable
- packageName
If set then it overrides the java_package and package.
- flatPackage
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.
- import
Adds the following imports at the top of the file (this is meant to provide implicit TypeMappers)
- preamble
Text to add to the generated scala file. This can be used only when single_file is true.
- singleFile
If true, all messages and enums (but not services) will be written to a single Scala file.
- noPrimitiveWrappers
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.
- primitiveWrappers
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
andno_primitive_wrappers
.- collectionType
Scala type to be used for repeated fields. If unspecified,
scala.collection.Seq
will be used.- preserveUnknownFields
If set to true, all generated messages in this file will preserve unknown fields.
- testOnlyNoJavaConversions
For use in tests only. Inhibit Java conversions even when when generator parameters request for it.
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- ScalaPbOptions
- Product
- Equals
- Updatable
- Message
- GeneratedMessage
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ScalaPbOptions(packageName: Option[String] = None, flatPackage: Option[Boolean] = None, import: Seq[String] = _root_.scala.collection.Seq.empty, preamble: Seq[String] = _root_.scala.collection.Seq.empty, singleFile: Option[Boolean] = None, noPrimitiveWrappers: Option[Boolean] = None, primitiveWrappers: Option[Boolean] = None, collectionType: Option[String] = None, preserveUnknownFields: Option[Boolean] = None, testOnlyNoJavaConversions: Option[Boolean] = None)
- packageName
If set then it overrides the java_package and package.
- flatPackage
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.
- import
Adds the following imports at the top of the file (this is meant to provide implicit TypeMappers)
- preamble
Text to add to the generated scala file. This can be used only when single_file is true.
- singleFile
If true, all messages and enums (but not services) will be written to a single Scala file.
- noPrimitiveWrappers
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.
- primitiveWrappers
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
andno_primitive_wrappers
.- collectionType
Scala type to be used for repeated fields. If unspecified,
scala.collection.Seq
will be used.- preserveUnknownFields
If set to true, all generated messages in this file will preserve unknown fields.
- testOnlyNoJavaConversions
For use in tests only. Inhibit Java conversions even when when generator parameters request for it.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAllImport(__vs: TraversableOnce[String]): ScalaPbOptions
- def addAllPreamble(__vs: TraversableOnce[String]): ScalaPbOptions
- def addImport(__vs: String*): ScalaPbOptions
- def addPreamble(__vs: String*): ScalaPbOptions
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearCollectionType: ScalaPbOptions
- def clearFlatPackage: ScalaPbOptions
- def clearImport: ScalaPbOptions
- def clearNoPrimitiveWrappers: ScalaPbOptions
- def clearPackageName: ScalaPbOptions
- def clearPreamble: ScalaPbOptions
- def clearPreserveUnknownFields: ScalaPbOptions
- def clearPrimitiveWrappers: ScalaPbOptions
- def clearSingleFile: ScalaPbOptions
- def clearTestOnlyNoJavaConversions: ScalaPbOptions
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- val collectionType: Option[String]
-
def
companion: ScalaPbOptions.type
- Definition Classes
- ScalaPbOptions → GeneratedMessage
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- val flatPackage: Option[Boolean]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- def getCollectionType: String
-
def
getField(__field: FieldDescriptor): PValue
- Definition Classes
- ScalaPbOptions → GeneratedMessage
-
def
getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- ScalaPbOptions → GeneratedMessage
- def getFlatPackage: Boolean
- def getNoPrimitiveWrappers: Boolean
- def getPackageName: String
- def getPreserveUnknownFields: Boolean
- def getPrimitiveWrappers: Boolean
- def getSingleFile: Boolean
- def getTestOnlyNoJavaConversions: Boolean
- val import: Seq[String]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mergeFrom(_input__: CodedInputStream): ScalaPbOptions
- Definition Classes
- ScalaPbOptions → Message
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val noPrimitiveWrappers: Option[Boolean]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val packageName: Option[String]
- val preamble: Seq[String]
- val preserveUnknownFields: Option[Boolean]
- val primitiveWrappers: Option[Boolean]
-
final
def
serializedSize: Int
- Definition Classes
- ScalaPbOptions → GeneratedMessage
- val singleFile: Option[Boolean]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val testOnlyNoJavaConversions: Option[Boolean]
-
def
toByteArray: Array[Byte]
- Definition Classes
- GeneratedMessage
-
def
toByteString: ByteString
- Definition Classes
- GeneratedMessage
-
def
toPMessage: PMessage
- Definition Classes
- GeneratedMessage
-
def
toString(): String
- Definition Classes
- ScalaPbOptions → AnyRef → Any
-
def
update(ms: (Lens[ScalaPbOptions, ScalaPbOptions]) ⇒ Mutation[ScalaPbOptions]*): ScalaPbOptions
- Definition Classes
- Updatable
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def withCollectionType(__v: String): ScalaPbOptions
- def withFlatPackage(__v: Boolean): ScalaPbOptions
- def withImport(__v: Seq[String]): ScalaPbOptions
- def withNoPrimitiveWrappers(__v: Boolean): ScalaPbOptions
- def withPackageName(__v: String): ScalaPbOptions
- def withPreamble(__v: Seq[String]): ScalaPbOptions
- def withPreserveUnknownFields(__v: Boolean): ScalaPbOptions
- def withPrimitiveWrappers(__v: Boolean): ScalaPbOptions
- def withSingleFile(__v: Boolean): ScalaPbOptions
- def withTestOnlyNoJavaConversions(__v: Boolean): ScalaPbOptions
-
def
writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
-
def
writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- ScalaPbOptions → GeneratedMessage
-
def
writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
Deprecated Value Members
-
def
getAllFields: Map[FieldDescriptor, Any]
- Definition Classes
- GeneratedMessage
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0) Use toPMessage
-
def
getField(field: FieldDescriptor): Any
- Definition Classes
- GeneratedMessage
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0) Use getField that accepts a ScalaPB descriptor and returns PValue