Android GRPC Protobuf无法正确建立/连结

时间:2019-07-01 17:36:39

标签: java android grpc proto protobuf-java

我在我的项目的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

0 个答案:

没有答案