type enumV1 … type messageV1 … var legacyFileDescCache … // legacyLoadFileDesc unmarshals b as a compressed FileDescriptorProto message. // // This assumes that b is immutable and that b does not refer to part of a // concatenated series of GZIP files (which would require shenanigans that // rely on the concatenation properties of both protobufs and GZIP). // File descriptors generated by protoc-gen-go do not rely on that property. func legacyLoadFileDesc(b []byte) protoreflect.FileDescriptor { … } type resolverOnly … func (r resolverOnly) FindFileByPath(path string) (protoreflect.FileDescriptor, error) { … } func (r resolverOnly) FindDescriptorByName(name protoreflect.FullName) (protoreflect.Descriptor, error) { … } func (resolverOnly) RegisterFile(protoreflect.FileDescriptor) error { … }