add: add elements of a repeated field of a message

add-methodsR Documentation

add elements of a repeated field of a message

Description

Add elements to a repeated field of a message.

Methods

signature(object = "Message")

add elements to a repeated field of a message

Examples

unitest.proto.file <- system.file("tinytest", "data", "unittest.proto",
				  package = "RProtoBuf" )
readProtoFiles(file = unitest.proto.file)

test <- new(protobuf_unittest.TestAllTypes)
test$add("repeated_int32", 1)
test$add("repeated_int32", 2:10)
test$repeated_int32

eddelbuettel/rprotobuf documentation built on March 27, 2024, 12:22 p.m.