func validateProtoImage(protoImage *imagev1.Image) error {
	if protoImage == nil {
		return errors.New("nil Image")
	}
	if len(protoImage.File) == 0 {
		return errors.New("image contains no files")
	}
	for _, protoImageFile := range protoImage.File {
		if err := validateProtoImageFile(protoImageFile); err != nil {
			return err
		}
	}
	return nil
}
// we validate the actual fields of the FileDescriptorProtos as part of newImageFile
we validate the actual fields of the FileDescriptorProtos as part of newImageFile
// we validate the actual fields of the FileDescriptorProtos as part of newImageFile
func validateProtoImage(protoImage *imagev1.Image) error {
	if protoImage == nil {
		return errors.New("nil Image")
	}
	if len(protoImage.File) == 0 {
		return errors.New("image contains no files")
	}
	for _, protoImageFile := range protoImage.File {
		if err := validateProtoImageFile(protoImageFile); err != nil {
			return err
		}
	}
	return nil
}
func validateProtoImage ( protoImage * imagev1 . Image ) error { if protoImage == nil { return errors . New ( " " ) } if len ( protoImage . File ) == 0 { return errors . New ( " " ) } for _ , protoImageFile := range protoImage . File { if err := validateProtoImageFile ( protoImageFile ) ; err != nil { return err } } return nil }
we validate the actual fields of the FileDescriptorProtos as part of newImageFile
we validate the actual fields of the FileDescriptorProtos as part of newImageFile