Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WellKnownTypesFS embed.FS
Functions ¶
func GenerateDescriptor ¶
func GenerateDescriptor(proto *parser.Proto) *descriptorpb.FileDescriptorProto
func ReadWellKnownType ¶
func ResolveKindsFromDependencies ¶
func ResolveKindsFromDependencies(files []*descriptorpb.FileDescriptorProto)
Go through all message types from all protos, and find any message fields which have a typename set but not a type. These will (should) be types imported from other packages where we couldn't tell if they were enum or message types at the time. According to the docs, we should be able to leave the type field empty, but that does not appear to be correct as it casuses proto to think some enums are messages.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.