GeneratorParams

scalapb.compiler.GeneratorParams$
See theGeneratorParams companion class

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def fromString(params: String): Either[String, GeneratorParams]
def fromStringCollectUnrecognized(params: String): Either[String, (GeneratorParams, Seq[String])]

Parses generator parameters from the comma-separated string, collects the unrecognized ones.

Parses generator parameters from the comma-separated string, collects the unrecognized ones.

This allows subsequent generators to try and process those parameters.

Attributes

Returns:

Returns Left(error) if a parsing error occurred. On success, it returns Right((params, remainder)) where params are recognized parameters and remainder are all unrecognized params.