CodeGenRequest

nscn.polaris2.protoc.bridge.codegen.CodeGenRequest
See theCodeGenRequest companion object
final case class CodeGenRequest(parameter: String, filesToGenerate: Seq[FileDescriptor], allProtos: Seq[FileDescriptor], compilerVersion: Option[Version], asProto: CodeGeneratorRequest)

A CodeGeneratorRequest with its file protos already linked into FileDescriptors.

Linking matters for editions: FileDescriptor.buildFrom is what runs protobuf-java's feature resolution, so only after this do hasPresence, isPacked, isClosed and friends report edition-aware answers. Reading FileDescriptorProto directly would force every generator to reimplement that resolution.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def sourceFileDescriptors: Seq[FileDescriptorProto]

Files exactly as the user wrote them, before protoc's edition feature defaults were folded in. Empty unless protoc decided to send them (it does since 5.27).

Files exactly as the user wrote them, before protoc's edition feature defaults were folded in. Empty unless protoc decided to send them (it does since 5.27).

Attributes

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product