【问题标题】:Protobuf-net with oneof in .proto file.proto 文件中带有 oneof 的 Protobuf-net
【发布时间】:2015-02-09 09:58:53
【问题描述】:

我正在使用来自 protobuf-net 的 ProtoGen 工具(版本 1.0.0.280)从 .proto 文件生成 .cs 文件。

但是,使用oneof 关键字会导致错误:

test.proto:13:3: Expected "required", "optional", or "repeated".
test.proto:13:25: Missing field number.

This question 提到oneof 是一项新功能,可能不会得到普遍支持。

我想我拥有最新的 ProtoGen 版本,但是否有支持此功能的更新(测试版?)版本,或者正在计划中?

【问题讨论】:

    标签: c# protobuf-net


    【解决方案1】:

    似乎尚不支持此功能。

    Protobuf-net Github Issues 中列出了多个功能请求,问题为#47#54

    【讨论】:

      猜你喜欢
      • 2017-05-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多