RProtoBuf (version 0.4.15)

number-methods: Gets the declared tag number of a field

Description

Gets the declared tag number of a field

Arguments

See Also

The method is implemented for '>FieldDescriptor and '>EnumValueDescriptor classes.

Examples

Run this code
# NOT RUN {
proto.file <- system.file( "proto", "addressbook.proto", package = "RProtoBuf" )
Person <- P( "tutorial.Person", file = proto.file )
# }
# NOT RUN {
number(Person$id)
number(Person$email)
as.character(Person)

number(value(tutorial.Person$PhoneType, name="HOME"))
# }

Run the code above in your browser using DataCamp Workspace