forked from TrueCloudLab/frostfs-api-go
[#108] protogen: Distinguish between empty and nil messages
Refs #59 Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
11e194d274
commit
5fece80b42
18 changed files with 282 additions and 283 deletions
2
util/proto/test/custom/test_frostfs.pb.go
generated
2
util/proto/test/custom/test_frostfs.pb.go
generated
|
@ -288,7 +288,7 @@ func (x *Primitives) EmitProtobuf(mm *easyproto.MessageMarshaler) {
|
|||
}
|
||||
}
|
||||
if inner, ok := x.FieldM.(*Primitives_FieldAux); ok {
|
||||
if inner.FieldAux != nil && inner.FieldAux.StableSize() != 0 {
|
||||
if inner.FieldAux != nil {
|
||||
inner.FieldAux.EmitProtobuf(mm.AppendMessage(403))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue