Protocol buffers protobuff中的.Net字典类型

Protocol buffers protobuff中的.Net字典类型,protocol-buffers,Protocol Buffers,你能帮我在protobuff中识别这种类型吗。缺少错误“>” class-SomeRequest { 字典值; } 消息请求 { map值=1; } 基本上,你不能这么做。你能得到的最接近的东西是有重复元素的地图,因此: 消息请求 { map值=1; } 信息事物{ 重复字符串项=1; } 或者用c#术语: class-SomeRequest { 字典值; } 阶级事务 { 清单项目; } class SomeRequest { Dictionary<long,List&l

你能帮我在protobuff中识别这种类型吗。缺少错误“>”

class-SomeRequest
{
字典值;
}   
消息请求
{
map值=1;
}

基本上,你不能这么做。你能得到的最接近的东西是有重复元素的地图,因此:

消息请求
{
map值=1;
}
信息事物{
重复字符串项=1;
}
或者用c#术语:

class-SomeRequest
{
字典值;
}
阶级事务
{
清单项目;
}
class SomeRequest
{
   Dictionary<long,List<string>> values;
}   
message SomeRequest
{
   map<int64,repeated string> values = 1;
}