nscn.polaris2.protoc.bridge.codegen
Members list
Type members
Classlikes
Base class for a protoc code generator.
Base class for a protoc code generator.
Implementors provide process and, if their .proto options are custom extensions, registerExtensions - without the registry the options arrive as unknown fields and silently read back as defaults.
The same object works as a standalone protoc-gen-* executable (via main) and as an in-JVM generator driven by the bridge (via run).
Attributes
- Supertypes
A CodeGeneratorRequest with its file protos already linked into FileDescriptors.
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
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
CodeGenRequest.type
Either the files a generator produced, or the reason it could not.
Either the files a generator produced, or the reason it could not.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
CodeGenResponse.type
The descriptor queries a generator needs for editions, including stand-ins for the three protobuf-java methods that are package-private.
The descriptor queries a generator needs for editions, including stand-ins for the three protobuf-java methods that are package-private.
A generator should ask these questions through feature-resolved predicates - hasPresence, isPacked, isClosed - and not by testing the syntax. What is left here is the handful of cases where protobuf-java's public API has a gap.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Editions.type