摘要:
在proto中,可以使用OneOf类型,使用一个字段存储不同类型的数据。类似go中的interface。 假设有proto如下,Val是一个OneOf数据类型,它可以为double/int/str...中的任意一种。 TestPB中引用了value,类型为Val。 syntax = "proto3" 阅读全文
posted @ 2023-10-11 19:56
superpigwin
阅读(773)
评论(0)
推荐(0)
浙公网安备 33010602011771号