dimanche 17 mai 2020

Don't know how to reflection oneof filed

I have a protobuf message defined something like this

message Foo
{
 oneof test  //oneof field
    {
        int32 a = 1;
        MM b = 2;
    }
}

message MM
{
   string  str =1;
}

how i reflect of oneof filed in protobuf

Aucun commentaire:

Enregistrer un commentaire