What language/framework?
On Wed, 5 May 2021, 09:58 Danny Lee, <[email protected]> wrote:
> Hello everyone,
>
> There is a proto file as below.
> And it is required not to use the .options file.
>
> How to decode the data below:
> MsgInfo.data.msg2_data.data.msg22_data.jobs.job_data.job_attr.age
>
> Any useful suggestions and code will be appreciated!
>
> Thanks!
>
> ===================================
> syntax = "proto3";
>
>
> message MsgInfo {
> uint32 node_id = 1;
>
> oneof data {
> SubMsg1 msg1_data = 14;
> SubMsg2 msg2_data = 15;
> }
> }
>
> message SubMsg1 {
> oneof data {
> SubMsg11 msg11_data = 1;
> SubMsg12 msg12_data = 2;
> }
> }
>
> message SubMsg2 {
> oneof data {
> SubMsg21 msg21_data = 1;
> SubMsg22 msg22_data = 2;
> }
> }
>
>
>
> message SubMsg11 {
> bytes name = 1;
> }
>
> message SubMsg12 {
> string strname = 1;
> }
>
>
> message SubMsg21 {
> bytes name = 1;
> }
>
> message SubMsg2234 {
> string age = 1;
> bytes version = 2;
> string checksum = 3;
> }
>
> message SubMsg223 {
> string job_id = 1;
>
> oneof job_data {
> string job_node = 16;
> SubMsg2234 job_attr = 17;
> }
> }
>
> message SubMsg22 {
> repeated SubMsg223 jobs = 1;
> }
> ===================================
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" 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/protobuf/CAAjHcFAEe2nhtRODHrsAqm1NrF1ts8x-ko5AA5vKExKOq5hbpg%40mail.gmail.com
> <https://groups.google.com/d/msgid/protobuf/CAAjHcFAEe2nhtRODHrsAqm1NrF1ts8x-ko5AA5vKExKOq5hbpg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" 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/protobuf/CAF95VAzDqRSu8nrXqaF1wqyq5LGKFXTe0aVo3SVB5wEhx0CDCw%40mail.gmail.com.