0

我在我的项目中使用 gradle java 中的 protobufs,但在解析下面的 proto 时遇到问题 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

4

0 回答 0