(imageFile ImageFile)
| 302 | } |
| 303 | |
| 304 | func 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 | |
| 319 | func fileDescriptorProtoToProtoImageFile( |
| 320 | fileDescriptorProto *descriptorpb.FileDescriptorProto, |
searching dependent graphs…