【发布时间】:2022-12-15 17:28:38
【问题描述】:
我们可以在 protobuf 字段名称中定义正则表达式吗?我将请求作为 client.py 文件中的字典列表发送
"cur_cur_bin" : [{"cur_cur_bin1_bin3_bin1" : 4,"cur_cur_bin3_bin5_bin8" : 6} ]
我定义了 .proto 文件,
int32 cur_cur_bin1_bin3_bin1 = 1;
}
message Message{
repeated cur_cur_BIN cur_cur_bin = 1;
}```
any one can explain how to define this type of field in .proto file dynamically. because
(bin1) having some range like (1 - [1-8]) same for (bin3) like (3 -[8-11]) like this.
【问题讨论】:
标签: protocol-buffers prototype protobuf-python