Class/Object

scalapb.options

ScalaPbOptions

Related Docs: object ScalaPbOptions | package options

Permalink

final case class ScalaPbOptions(packageName: Option[String] = _root_.scala.None, flatPackage: Option[Boolean] = _root_.scala.None, import: Seq[String] = _root_.scala.collection.Seq.empty, preamble: Seq[String] = _root_.scala.collection.Seq.empty, singleFile: Option[Boolean] = _root_.scala.None, noPrimitiveWrappers: Option[Boolean] = _root_.scala.None, primitiveWrappers: Option[Boolean] = _root_.scala.None, collectionType: Option[String] = _root_.scala.None, preserveUnknownFields: Option[Boolean] = _root_.scala.None, objectName: Option[String] = _root_.scala.None, scope: Option[OptionsScope] = _root_.scala.None, lenses: Option[Boolean] = _root_.scala.None, retainSourceCodeInfo: Option[Boolean] = _root_.scala.None, mapType: Option[String] = _root_.scala.None, testOnlyNoJavaConversions: Option[Boolean] = _root_.scala.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 and no_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.

objectName

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.

scope

Experimental: scope to apply the given options.

lenses

If true, lenses will not be generated.

retainSourceCodeInfo

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.

mapType

Scala type to be used for maps. If unspecified, scala.collection.immutable.Map will be used.

testOnlyNoJavaConversions

For use in tests only. Inhibit Java conversions even when when generator parameters request for it.

Annotations
@SerialVersionUID()
Linear Supertypes
Product, Equals, Updatable[ScalaPbOptions], Message[ScalaPbOptions], GeneratedMessage, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScalaPbOptions
  2. Product
  3. Equals
  4. Updatable
  5. Message
  6. GeneratedMessage
  7. Serializable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScalaPbOptions(packageName: Option[String] = _root_.scala.None, flatPackage: Option[Boolean] = _root_.scala.None, import: Seq[String] = _root_.scala.collection.Seq.empty, preamble: Seq[String] = _root_.scala.collection.Seq.empty, singleFile: Option[Boolean] = _root_.scala.None, noPrimitiveWrappers: Option[Boolean] = _root_.scala.None, primitiveWrappers: Option[Boolean] = _root_.scala.None, collectionType: Option[String] = _root_.scala.None, preserveUnknownFields: Option[Boolean] = _root_.scala.None, objectName: Option[String] = _root_.scala.None, scope: Option[OptionsScope] = _root_.scala.None, lenses: Option[Boolean] = _root_.scala.None, retainSourceCodeInfo: Option[Boolean] = _root_.scala.None, mapType: Option[String] = _root_.scala.None, testOnlyNoJavaConversions: Option[Boolean] = _root_.scala.None)

    Permalink

    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 and no_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.

    objectName

    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.

    scope

    Experimental: scope to apply the given options.

    lenses

    If true, lenses will not be generated.

    retainSourceCodeInfo

    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.

    mapType

    Scala type to be used for maps. If unspecified, scala.collection.immutable.Map will be used.

    testOnlyNoJavaConversions

    For use in tests only. Inhibit Java conversions even when when generator parameters request for it.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addAllImport(__vs: TraversableOnce[String]): ScalaPbOptions

    Permalink
  5. def addAllPreamble(__vs: TraversableOnce[String]): ScalaPbOptions

    Permalink
  6. def addImport(__vs: String*): ScalaPbOptions

    Permalink
  7. def addPreamble(__vs: String*): ScalaPbOptions

    Permalink
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clearCollectionType: ScalaPbOptions

    Permalink
  10. def clearFlatPackage: ScalaPbOptions

    Permalink
  11. def clearImport: ScalaPbOptions

    Permalink
  12. def clearLenses: ScalaPbOptions

    Permalink
  13. def clearMapType: ScalaPbOptions

    Permalink
  14. def clearNoPrimitiveWrappers: ScalaPbOptions

    Permalink
  15. def clearObjectName: ScalaPbOptions

    Permalink
  16. def clearPackageName: ScalaPbOptions

    Permalink
  17. def clearPreamble: ScalaPbOptions

    Permalink
  18. def clearPreserveUnknownFields: ScalaPbOptions

    Permalink
  19. def clearPrimitiveWrappers: ScalaPbOptions

    Permalink
  20. def clearRetainSourceCodeInfo: ScalaPbOptions

    Permalink
  21. def clearScope: ScalaPbOptions

    Permalink
  22. def clearSingleFile: ScalaPbOptions

    Permalink
  23. def clearTestOnlyNoJavaConversions: ScalaPbOptions

    Permalink
  24. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. val collectionType: Option[String]

    Permalink

    Scala type to be used for repeated fields.

    Scala type to be used for repeated fields. If unspecified, scala.collection.Seq will be used.

  26. def companion: ScalaPbOptions.type

    Permalink
    Definition Classes
    ScalaPbOptionsGeneratedMessage
  27. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  29. val flatPackage: Option[Boolean]

    Permalink

    If true, the compiler does not append the proto base file name into the generated package name.

    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.

  30. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  31. def getCollectionType: String

    Permalink
  32. def getField(__field: FieldDescriptor): PValue

    Permalink
    Definition Classes
    ScalaPbOptionsGeneratedMessage
  33. def getFieldByNumber(__fieldNumber: Int): Any

    Permalink
    Definition Classes
    ScalaPbOptionsGeneratedMessage
  34. def getFlatPackage: Boolean

    Permalink
  35. def getLenses: Boolean

    Permalink
  36. def getMapType: String

    Permalink
  37. def getNoPrimitiveWrappers: Boolean

    Permalink
  38. def getObjectName: String

    Permalink
  39. def getPackageName: String

    Permalink
  40. def getPreserveUnknownFields: Boolean

    Permalink
  41. def getPrimitiveWrappers: Boolean

    Permalink
  42. def getRetainSourceCodeInfo: Boolean

    Permalink
  43. def getScope: OptionsScope

    Permalink
  44. def getSingleFile: Boolean

    Permalink
  45. def getTestOnlyNoJavaConversions: Boolean

    Permalink
  46. val import: Seq[String]

    Permalink

    Adds the following imports at the top of the file (this is meant to provide implicit TypeMappers)

  47. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  48. val lenses: Option[Boolean]

    Permalink

    If true, lenses will not be generated.

  49. val mapType: Option[String]

    Permalink

    Scala type to be used for maps.

    Scala type to be used for maps. If unspecified, scala.collection.immutable.Map will be used.

  50. def mergeFrom(_input__: CodedInputStream): ScalaPbOptions

    Permalink
    Definition Classes
    ScalaPbOptionsMessage
  51. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  52. val noPrimitiveWrappers: Option[Boolean]

    Permalink

    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.

    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.

  53. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  54. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  55. val objectName: Option[String]

    Permalink

    If defined, sets the name of the file-level object that would be generated.

    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.

  56. val packageName: Option[String]

    Permalink

    If set then it overrides the java_package and package.

  57. val preamble: Seq[String]

    Permalink

    Text to add to the generated scala file.

    Text to add to the generated scala file. This can be used only when single_file is true.

  58. val preserveUnknownFields: Option[Boolean]

    Permalink

    If set to true, all generated messages in this file will preserve unknown fields.

  59. val primitiveWrappers: Option[Boolean]

    Permalink

    DEPRECATED.

    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.

  60. val retainSourceCodeInfo: Option[Boolean]

    Permalink

    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.

    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.

  61. val scope: Option[OptionsScope]

    Permalink

    Experimental: scope to apply the given options.

  62. final def serializedSize: Int

    Permalink
    Definition Classes
    ScalaPbOptionsGeneratedMessage
  63. val singleFile: Option[Boolean]

    Permalink

    If true, all messages and enums (but not services) will be written to a single Scala file.

  64. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  65. val testOnlyNoJavaConversions: Option[Boolean]

    Permalink

    For use in tests only.

    For use in tests only. Inhibit Java conversions even when when generator parameters request for it.

  66. def toByteArray: Array[Byte]

    Permalink
    Definition Classes
    GeneratedMessage
  67. def toByteString: ByteString

    Permalink
    Definition Classes
    GeneratedMessage
  68. def toPMessage: PMessage

    Permalink
    Definition Classes
    GeneratedMessage
  69. def toProtoString: String

    Permalink

    Returns a human-readable ASCII format representation of this message.

    Returns a human-readable ASCII format representation of this message.

    The original message can be decoded from this format by using fromAscii on the companion object.

    returns

    human-readable representation of this message.

    Definition Classes
    ScalaPbOptionsGeneratedMessage
  70. def update(ms: (Lens[ScalaPbOptions, ScalaPbOptions]) ⇒ Mutation[ScalaPbOptions]*): ScalaPbOptions

    Permalink
    Definition Classes
    Updatable
  71. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  72. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  73. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  74. def withCollectionType(__v: String): ScalaPbOptions

    Permalink
  75. def withFlatPackage(__v: Boolean): ScalaPbOptions

    Permalink
  76. def withImport(__v: Seq[String]): ScalaPbOptions

    Permalink
  77. def withLenses(__v: Boolean): ScalaPbOptions

    Permalink
  78. def withMapType(__v: String): ScalaPbOptions

    Permalink
  79. def withNoPrimitiveWrappers(__v: Boolean): ScalaPbOptions

    Permalink
  80. def withObjectName(__v: String): ScalaPbOptions

    Permalink
  81. def withPackageName(__v: String): ScalaPbOptions

    Permalink
  82. def withPreamble(__v: Seq[String]): ScalaPbOptions

    Permalink
  83. def withPreserveUnknownFields(__v: Boolean): ScalaPbOptions

    Permalink
  84. def withPrimitiveWrappers(__v: Boolean): ScalaPbOptions

    Permalink
  85. def withRetainSourceCodeInfo(__v: Boolean): ScalaPbOptions

    Permalink
  86. def withScope(__v: OptionsScope): ScalaPbOptions

    Permalink
  87. def withSingleFile(__v: Boolean): ScalaPbOptions

    Permalink
  88. def withTestOnlyNoJavaConversions(__v: Boolean): ScalaPbOptions

    Permalink
  89. def writeDelimitedTo(output: OutputStream): Unit

    Permalink
    Definition Classes
    GeneratedMessage
  90. def writeTo(_output__: CodedOutputStream): Unit

    Permalink
    Definition Classes
    ScalaPbOptionsGeneratedMessage
  91. def writeTo(output: OutputStream): Unit

    Permalink
    Definition Classes
    GeneratedMessage

Deprecated Value Members

  1. def getAllFields: Map[FieldDescriptor, Any]

    Permalink
    Definition Classes
    GeneratedMessage
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use toPMessage

  2. def getField(field: FieldDescriptor): Any

    Permalink
    Definition Classes
    GeneratedMessage
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use getField that accepts a ScalaPB descriptor and returns PValue

Inherited from Product

Inherited from Equals

Inherited from Updatable[ScalaPbOptions]

Inherited from Message[ScalaPbOptions]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped