Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Add a SetInParent equivalent so that is possible to set empty messages as fields of another message #5

@ecerulm

Description

@ecerulm

for a message like

message ListRequest {
}

message ServerRequest {
   optional ListRequest list = 1;
}

There is no way (that I know of) to conveniently set the list field to be present. In the original protobuf you could

req = mypackage.ServerRequest()
req.list.SetInParent()

to ensure that the list would be included although optional and empty. But there seems that there is no way to do that with protobuf3. Or ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions