Hello All
I know the functionality of *oneof *in protofile to switch but don't know
exactly how to use it .
I have a problem with similar structure.
//proto 3
//Client side
message A
{
}
message B
{
}
message C
{
oneof Data
{
A data1 =20;
B data2 = 30;
}
}
Now at the server side I will sending one data A or B to be received by
Client. Which is the best method to switch between the usage of the data.
How to handle the situation when I have to send both A & B to be received
by Client. Any alternative of *oneof *Because oneof will clear the other
message.
Can anyone provide links for the the examples highlighting how to switch
between the messages, shall be very helpful,
Thanks and Regards
Rohit
--
You received this message because you are subscribed to the Google Groups
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/grpc-io/ac0a8fa7-d780-47cc-b730-b7678474491fo%40googlegroups.com.