MCPcopy Create free account
hub / github.com/bufbuild/buf / ImageToFileDescriptorSet

Function ImageToFileDescriptorSet

private/bufpkg/bufimage/bufimage.go:570–572  ·  view source on GitHub ↗

ImageToFileDescriptorSet returns a new FileDescriptorSet for the Image.

(image Image)

Source from the content-addressed store, hash-verified

568
569// ImageToFileDescriptorSet returns a new FileDescriptorSet for the Image.
570func ImageToFileDescriptorSet(image Image) *descriptorpb.FileDescriptorSet {
571 return protodescriptor.FileDescriptorSetForFileDescriptors(ImageToFileDescriptorProtos(image)...)
572}
573
574// ImageToFileDescriptorProtos returns the FileDescriptorProtos for the Image.
575func ImageToFileDescriptorProtos(image Image) []*descriptorpb.FileDescriptorProto {

Callers 6

testCompareFunction · 0.92
TestCompareGoogleapisFunction · 0.92
TestTransitivePublicFunction · 0.92
TestBasicFunction · 0.92
errorMethod · 0.92
PutImageMethod · 0.92

Tested by 5

testCompareFunction · 0.74
TestCompareGoogleapisFunction · 0.74
TestTransitivePublicFunction · 0.74
TestBasicFunction · 0.74
errorMethod · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…