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

Function imageFileToProtoImageFile

private/bufpkg/bufimage/util.go:304–317  ·  view source on GitHub ↗
(imageFile ImageFile)

Source from the content-addressed store, hash-verified

302}
303
304func imageFileToProtoImageFile(imageFile ImageFile) (*imagev1.ImageFile, error) {
305 var protoCommitID string
306 if imageFile.CommitID() != uuid.Nil {
307 protoCommitID = uuidutil.ToDashless(imageFile.CommitID())
308 }
309 return fileDescriptorProtoToProtoImageFile(
310 imageFile.FileDescriptorProto(),
311 imageFile.IsImport(),
312 imageFile.IsSyntaxUnspecified(),
313 imageFile.UnusedDependencyIndexes(),
314 imageFile.FullName(),
315 protoCommitID,
316 ), nil
317}
318
319func fileDescriptorProtoToProtoImageFile(
320 fileDescriptorProto *descriptorpb.FileDescriptorProto,

Callers 2

ImageToProtoImageFunction · 0.85

Calls 8

ToDashlessFunction · 0.92
CommitIDMethod · 0.65
FileDescriptorProtoMethod · 0.65
IsImportMethod · 0.65
IsSyntaxUnspecifiedMethod · 0.65
FullNameMethod · 0.65

Used in the wild real call sites across dependent graphs

searching dependent graphs…