code: func loadFileDesc(name string) (*descpb.FileDescriptorProto, error) {
  	gzblob := proto.FileDescriptor(name)
  	if gzblob == nil {
  		return nil, fmt.Errorf("no such proto file registered")
  	}
  
  	r, err := gzip.NewReader(bytes.NewReader(gzblob))
  	if err != nil {
  		return nil, fmt.Errorf("failed to open gzip reader - %s", err)
  	}
  	defer r.Close()
  
  	b, err := ioutil.ReadAll(r)
  	if err != nil {
  		return nil, fmt.Errorf("failed to uncompress descriptor - %s", err)
  	}
  
  	fd := &descpb.FileDescriptorProto{}
  	if err := proto.Unmarshal(b, fd); err != nil {
  		return nil, fmt.Errorf("malformed FileDescriptorProto - %s", err)
  	}
  
  	return fd, nil
  }
docs: // loadFileDesc loads a FileDescriptorProto for a given proto module, specified
  // by its full path.
  //
  // The module should be registered in the process's protobuf descriptors set.