Skip to content

adding repeated values  #4

@maheshpolus

Description

@maheshpolus

can you please add how to use repeated ? to more clarity how to set values to a repeated field?

message Message {
string id = 3;
repeated todo todos = 9;
}

message todo {
int32 id = 1;
string description = 2;
}

todosData = [{id:1, description: 'i want to study protobuf"}. {id: 2, description: ''how to add this'}];
message.setid('3');
message. ?????

please help

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