Я использую Protobufs в Gradle Java в моем проекте, но у меня возникла проблема с анализом прото ниже
https://github.com/lightningnetwork/lnd/blob/master/lnrpc/rpc.proto
Кажется, что он не построен правильно, и все мои классы не найдены
Если я закомментирую "с //" строками ниже, он строит, но не уверен почему?
message MultiChanBackup {
/**
Is the set of all channels that are included in this multi-channel backup.
*/
//repeated ChannelPoint chan_points = 1 [ json_name = "chan_points" ];
/**
A single encrypted blob containing all the static channel backups of the
channel listed above. This can be stored as a single file or blob, and
safely be replaced with any prior/future versions.
*/
//bytes multi_chan_backup = 2 [ json_name = "multi_chan_backup" ];
}
message ChanBackupExportRequest {}
message ChanBackupSnapshot {
/**
The set of new channels that have been added since the last channel backup
snapshot was requested.
*/
ChannelBackups single_chan_backups = 1 [ json_name = "single_chan_backups" ];
/**
A multi-channel backup that covers all open channels currently known to
lnd.
*/
//MultiChanBackup multi_chan_backup = 2 [ json_name = "multi_chan_backup" ];
}
message ChannelBackups {
/**
A set of single-chan static channel backups.
*/
//repeated ChannelBackup chan_backups = 1 [ json_name = "chan_backups" ];
}
Я не получаю никаких ошибок сборки, просто ошибка lnrpc.Rpc не найдена при импорте
вот пример проекта
https://github.com/mandelmonkey/protoTest