英文: How do I import annotations into proto? 问题 我正在尝试将注释导入到我的proto文件中。我将"google"文件夹复制到"...
我应该使用Get方法来获取值,还是直接使用字段?
英文: Should I use Get methods to get values or should I use fields directly? 问题 我第一次使用Go语言的protobuf(和...
Why has methods are not generated using protoc 3.17.* if in protobuf repo they say it should?
英文: Why has methods are not generated using protoc 3.17.* if in protobuf repo they say it should? 问题...
Protoc无法创建服务。
英文: Protoc doesn't create service 问题 我只会翻译文本内容,不会执行代码。以下是翻译的结果: 我只是尝试使用协议缓冲区生成 Golang 代码,但无法使用 p...
proto.UnmarshalText在未知字段上失败
英文: proto UnmarshalText fails on unknown field 问题 在Golang中,当文本包含未知字段时,UnmarshalText会失败。 例如,以下代码可以正常工...
proto: 文件已经在不同的包中注册
英文: proto: file is already registered with different packages 问题 我有两个在不同的Go包下编译的proto文件,但当我在服务器上注册它们...
警告:缺少 ‘go_package’ 选项
英文: WARNING: Missing 'go_package' option 问题 当我运行协议命令生成pb.go文件时,我遇到了以下错误。但是我可以生成pb.go文件。我该如何解...
如何将生成的 proto 文件添加到其他模块的源集中?
英文: How to add proto generated files in source sets of other modules? 问题 我有一个使用 Proto 生成 DTO 的多模块 Gr...
ProtoBuf模式的命名空间错误。
英文: ProtoBuf schema having wrong namespace 问题 我已经按照你提供的要求,将代码部分翻译成中文,如下所示: 我已经定义了我的 Protobuf 模式如下: m...
将Jason反序列化为ProtoBuffer消息时,空值设置为默认值。
英文: When deserializing Jason to ProtoBuffer message null values set to default values 问题 I'm using P...
5